[erlang-questions] Solaris 10 build issues - R11B-4

Toby Thain <>
Tue May 22 02:12:54 CEST 2007


On 21-May-07, at 2:50 PM, Brad Anderson wrote:

> Rudolph van Graan wrote:
>> Hey,
>>
>> We had to put the gnu gcc in /usr/sfw/bin at the front of the path to
>> get past this error.
>
> Ding ding ding!  This worked.  Thank you!
>
> Full disclosure to help others in the future:
>
> # which as ; which ld ; which cc ; which make ; which gcc
> /usr/ccs/bin/as
> /usr/ucb/ld
> /usr/ucb/cc
> /usr/local/bin/make
> /usr/sfw/bin/gcc
>
> # echo $PATH
> /usr/bin:/usr/openwin/bin:/usr/ucb:/usr/sfw/bin:/opt/sfw/bin:/usr/ 
> local/bin:/usr/ccs/bin

I use something like:

/usr/bin:/usr/openwin/bin:/usr/perl5/5.8.4/bin:/usr/apache2/bin:/usr/ 
sfw/bin:/usr/ccs/bin:/opt/sfw/bin:/usr/local/bin:/usr/sbin:/opt/ 
SUNWspro/bin


>
> I kind of have a mess of toolsets on the box now, and I'm not even  
> sure I
> needed to install much more than GNU Make

You don't need to install that; it's bundled as 'gmake'.


> (as the /usr/ccs/bin/make did not
> work) and OpenSSL above and beyond the 11/06 Solaris DVD.
>

I don't believe anything more than bundled packages are required to  
build Erlang/OTP (incl openssl) on Solaris 10; I've done it several  
times.

--Toby


> Thank you, Rudolph & Mats
>
> Cheers,
> Brad
>
>
>>
>> Rudolph van Graan
>>
>> Software Architect
>> Pattern Matched Technologies
>>
>> E-Mail:  
>> Tel:     086 1000 700 (SA Only)
>> Mobile:  +27 83 390 7767
>> Fax:     +27 12 665 9566
>> Web:     www.patternmatched.com
>>
>>
>> On May 21, 2007, at 6:21 PM, Brad Anderson wrote:
>>
>>> Hi all,
>>>
>>> I'm trying to get OTP R11B-4 to compile on Solaris 10 (x86,  
>>> 32bit).  I've
>>> placed the needed packages on the system so far:
>>> gcc 3.4.6
>>> openssl-0.9.8e
>>> make-3.81
>>> and their dependencies...
>>>
>>> Also, I received an 'ar' error in ./configure, so I added Solaris
>>> binutils to
>>> the path.
>>>
>>> Any insight would be appreciated.
>>>
>>> Cheers,
>>> Brad
>>>
>>>
>>> Here's what I'm getting:
>>>
>>> gcc -g -O2
>>> -I/export/home/root/installs/erlang/otp_src_R11B-4/erts/i386-pc- 
>>> solaris2.10
>>>
>>> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -DUSE_THREADS  - 
>>> D_THREAD_SAFE
>>> -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DHYBRID -DHAVE_CONFIG_H - 
>>> Wall
>>> -Wstrict-prototypes -Wmissing-prototypes -DUSE_THREADS  - 
>>> D_THREAD_SAFE
>>> -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS  -Ibeam -Isys/unix -Isys/ 
>>> common
>>> -Ii386-pc-solaris2.10/opt/hybrid -Ii386-pc-solaris2.10 -Izlib -Ihipe
>>> -I../include/internal -I../include/internal/i386-pc-solaris2.10 -c
>>> hipe/hipe_x86_glue.S -o
>>> obj/i386-pc-solaris2.10/opt/hybrid/hipe_x86_glue.o
>>> Assembler:
>>>        "/var/tmp//ccdhWGox.s", line 1 : Syntax error
>>>        Near line: " .section ".text""
>>>        "/var/tmp//ccdhWGox.s", line 8 : Illegal mnemonic
>>>        Near line: " .global x86_call_to_native"
>>>        "/var/tmp//ccdhWGox.s", line 8 : Syntax error
>>>        Near line: " .global x86_call_to_native"
>>>        "/var/tmp//ccdhWGox.s", line 8 : Illegal mnemonic
>>>        Near line: " .global x86_call_to_native"
>>>        "/var/tmp//ccdhWGox.s", line 9 : Illegal mnemonic
>>>        Near line: " .global nbif_return"
>>>        "/var/tmp//ccdhWGox.s", line 9 : Syntax error
>>>        Near line: " .global nbif_return"
>>>        "/var/tmp//ccdhWGox.s", line 9 : Illegal mnemonic
>>>        Near line: " .global nbif_return"
>>>        "/var/tmp//ccdhWGox.s", line 23 : Syntax error
>>>        Near line: " movl %eax, 80(%ebp) # save retval"
>>>        "/var/tmp//ccdhWGox.s", line 35 : Syntax error
>>>        Near line: " movl 32(%esp), %esi # kills HP, if HP_IN_ESI  
>>> is true"
>>>        "/var/tmp//ccdhWGox.s", line 37 : Syntax error
>>>        Near line: " movl 40(%esp), %ebp # kills %ebp"
>>>        "/var/tmp//ccdhWGox.s", line 41 : Illegal mnemonic
>>>        Near line: " .global nbif_callemu"
>>>        "/var/tmp//ccdhWGox.s", line 41 : Syntax error
>>>        Near line: " .global nbif_callemu"
>>>        "/var/tmp//ccdhWGox.s", line 41 : Illegal mnemonic
>>>        Near line: " .global nbif_callemu"
>>>        "/var/tmp//ccdhWGox.s", line 51 : Illegal mnemonic
>>>        Near line: " .global nbif_apply"
>>>        "/var/tmp//ccdhWGox.s", line 51 : Syntax error
>>>        Near line: " .global nbif_apply"
>>>        "/var/tmp//ccdhWGox.s", line 51 : Illegal mnemonic
>>>        Near line: " .global nbif_apply"
>>>        "/var/tmp//ccdhWGox.s", line 57 : Illegal mnemonic
>>>        Near line: " .global nbif_ccallemu3"
>>>        "/var/tmp//ccdhWGox.s", line 57 : Syntax error
>>>        Near line: " .global nbif_ccallemu3"
>>>        "/var/tmp//ccdhWGox.s", line 57 : Illegal mnemonic
>>>        Near line: " .global nbif_ccallemu3"
>>>        "/var/tmp//ccdhWGox.s", line 70 : Illegal mnemonic
>>>        Near line: " .global nbif_ccallemu2"
>>>        "/var/tmp//ccdhWGox.s", line 70 : Syntax error
>>>        Near line: " .global nbif_ccallemu2"
>>>        "/var/tmp//ccdhWGox.s", line 70 : Illegal mnemonic
>>>        Near line: " .global nbif_ccallemu2"
>>>        "/var/tmp//ccdhWGox.s", line 83 : Illegal mnemonic
>>>        Near line: " .global nbif_ccallemu1"
>>>        "/var/tmp//ccdhWGox.s", line 83 : Syntax error
>>>        Near line: " .global nbif_ccallemu1"
>>>        "/var/tmp//ccdhWGox.s", line 83 : Illegal mnemonic
>>>        Near line: " .global nbif_ccallemu1"
>>>        "/var/tmp//ccdhWGox.s", line 95 : Illegal mnemonic
>>>        Near line: " .global nbif_ccallemu0"
>>>        "/var/tmp//ccdhWGox.s", line 95 : Syntax error
>>>        Near line: " .global nbif_ccallemu0"
>>>        "/var/tmp//ccdhWGox.s", line 95 : Illegal mnemonic
>>>        Near line: " .global nbif_ccallemu0"
>>>        "/var/tmp//ccdhWGox.s", line 110 : Illegal mnemonic
>>>        Near line: " .global nbif_suspend_0"
>>>        "/var/tmp//ccdhWGox.s", line 110 : Syntax error
>>>        Near line: " .global nbif_suspend_0"
>>>        "/var/tmp//ccdhWGox.s", line 110 : Illegal mnemonic
>>>        Near line: " .global nbif_suspend_0"
>>> Too many errors - Goodbye
>>> make[3]: *** [obj/i386-pc-solaris2.10/opt/hybrid/hipe_x86_glue.o]  
>>> Error 1
>>> make[3]: Leaving directory
>>> `/export/home/root/installs/erlang/otp_src_R11B-4/erts/emulator'
>>> make[2]: *** [opt] Error 2
>>> make[2]: Leaving directory
>>> `/export/home/root/installs/erlang/otp_src_R11B-4/erts/emulator'
>>> make[1]: *** [hybrid] Error 2
>>> make[1]: Leaving directory
>>> `/export/home/root/installs/erlang/otp_src_R11B-4/erts'
>>> make: *** [emulator] Error 2
>>>
>>>
>>> _______________________________________________
>>> erlang-questions mailing list
>>> 
>>> http://www.erlang.org/mailman/listinfo/erlang-questions
>>>
>>
>>
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list