<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>