<div dir="ltr">Hi All,<br><br>I'm trying to build R12B5 on an i386 Solaris 10, with no success. Uname -a is:<br><br>Â Â Â SunOS teja 5.10 Generic_137138-09 i86pc i386 i86pc Solaris<br><br><br>1. Running ./configure with only -prefix will set it to use '/opt/SUNWspro/bin/cc' as the compiler, which then fails during compilation:<br>
<br>Â Â Â ...<br>Â Â Â "beam/beam_emu.c", line 5230: warning: operands have incompatible pointer types: op "!="<br>Â Â Â "beam/beam_emu.c", line 5893: warning: statement not reached<br>Â Â Â cc: acomp failed for beam/beam_emu.c<br>
   gmake[3]: *** [obj/i386-pc-solaris2.10/opt/plain/beam_emu.o] Error 2<br>   gmake[3]: Leaving directory `/home/alex/devel/erlang/build/otp_src_R12B-5/erts/emulator'<br>   gmake[2]: *** [opt] Error 2<br>   ...<br>
<br>2. Setting environment variable CC to 'gcc' or '/usr/sfw/bin/gcc' (ver. 3.4.3 or 3.4.5) cause configure to blow up with:<br><br>Â Â Â alex@teja:~/devel/erlang/build/otp_src_R12B-5% time ./configure --prefix=/home/alex/devel/erlang/r12b5<br>
<br>Â Â Â Ignoring the --cache-file argument since it can cause the system to be erroneously configured<br>Â Â Â Disabling caching<br>Â Â Â checking build system type... i386-pc-solaris2.10<br>Â Â Â checking host system type... i386-pc-solaris2.10<br>
   checking for gcc... gcc<br>   checking for C compiler default output file name... configure: error: C compiler cannot create executables<br>   See `config.log' for more details.<br><br>... config.log's tail is:<br>
<br>Â Â Â ## confdefs.h. ##<br>Â Â Â ## ----------- ##<br><br>Â Â Â #define PACKAGE_BUGREPORT ""<br>Â Â Â #define PACKAGE_NAME ""<br>Â Â Â #define PACKAGE_STRING ""<br>Â Â Â #define PACKAGE_TARNAME ""<br>
   #define PACKAGE_VERSION ""<br><br>   configure: exit 77<br><br><br>I have tried to compile a small C program using gcc - it works. So, why does configure decide it's no good...?<br><br><br>Regards,<br>Alex.<br>
<br></div>