[erlang-questions] Solaris 10 build problems.

Alex Arnon <>
Tue Mar 17 12:52:11 CET 2009


Hi All,

I'm trying to build R12B5 on an i386 Solaris 10, with no success. Uname -a
is:

    SunOS teja 5.10 Generic_137138-09 i86pc i386 i86pc Solaris


1. Running ./configure with only -prefix will set it to use
'/opt/SUNWspro/bin/cc' as the compiler, which then fails during compilation:

    ...
    "beam/beam_emu.c", line 5230: warning: operands have incompatible
pointer types: op "!="
    "beam/beam_emu.c", line 5893: warning: statement not reached
    cc: acomp failed for beam/beam_emu.c
    gmake[3]: *** [obj/i386-pc-solaris2.10/opt/plain/beam_emu.o] Error 2
    gmake[3]: Leaving directory
`/home/alex/devel/erlang/build/otp_src_R12B-5/erts/emulator'
    gmake[2]: *** [opt] Error 2
    ...

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:

    :~/devel/erlang/build/otp_src_R12B-5% time ./configure
--prefix=/home/alex/devel/erlang/r12b5

    Ignoring the --cache-file argument since it can cause the system to be
erroneously configured
    Disabling caching
    checking build system type... i386-pc-solaris2.10
    checking host system type... i386-pc-solaris2.10
    checking for gcc... gcc
    checking for C compiler default output file name... configure: error: C
compiler cannot create executables
    See `config.log' for more details.

... config.log's tail is:

    ## confdefs.h. ##
    ## ----------- ##

    #define PACKAGE_BUGREPORT ""
    #define PACKAGE_NAME ""
    #define PACKAGE_STRING ""
    #define PACKAGE_TARNAME ""
    #define PACKAGE_VERSION ""

    configure: exit 77


I have tried to compile a small C program using gcc - it works. So, why does
configure decide it's no good...?


Regards,
Alex.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090317/0bf23d04/attachment.html>


More information about the erlang-questions mailing list