[OpenIndiana-discuss] g++ 4.6 from SFE repository

Ewald Ertl ewald.ertl at gmail.com
Fri Jan 13 18:42:51 UTC 2012


Hi,

On Fri, Jan 13, 2012 at 7:01 PM, Milan Jurik <milan.jurik at xylab.cz> wrote:
> Hi,
>
> could you send output from
>
> g++ -v
>
> ?
Here is the output:

[ewer at sunray1:/sdk/vsop/V4.04_10/Release]>g++ -v
Lese Spezifikationen von /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/specs
Konfiguriert mit: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
Thread-Modell: posix
gcc-Version 3.4.6


Strange that here the assembler is /usr/ccs/bin/as

Thanks
Ewald
>
> Best regards,
>
> Milan
>
> Ewald Ertl píše v čt 12. 01. 2012 v 11:19 +0100:
>> Hello,
>>
>> I'm trying to compile a simple C++ file on my OpenIndiana 151a with
>> the g++ from the SFE repository.
>>
>> root at solewer:/usr/gcc/4.6# g++ --version
>> g++ (GCC) 4.6.2
>> Copyright (C) 2011 Free Software Foundation, Inc.
>> This is free software; see the source for copying conditions.  There is NO
>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>>
>> But this results in a lot of errors during the assembly stage:
>> root at solewer:~# g++ a.cpp
>> Assembler: a.cpp
>>     "/var/tmp//cclAa4ot.s", line 80 : Syntax error
>>     Near line: "    .uleb128 .LLSDACSE549-.LLSDACSB549"
>>     "/var/tmp//cclAa4ot.s", line 82 : Syntax error
>>     Near line: "    .uleb128 .LEHB0-.LFB549"
>>     "/var/tmp//cclAa4ot.s", line 83 : Syntax error
>>     Near line: "    .uleb128 .LEHE0-.LEHB0"
>>
>>
>> With the g++ from /usr/sfw/bin ( pkg://openindiana.org/developer/gcc-3
>> )  the compilation succeeded.
>>
>> I've now started with execsnoop to see whats happening:
>>
>> g++ from the SFE repository uses the default assembler:
>>  UID    PID   PPID ARGS
>>     0   7755   7662 g++ a.cpp
>>     0   7756   7755
>> /usr/gcc/4.6/lib/gcc/i386-pc-solaris2.11/4.6.2/cc1plus -quiet a.cpp
>> -quiet -dum
>>     0   7758   7662 /usr/bin/hostname
>>     0   7757   7755 /usr/ccs/bin/as -s -o /var/tmp//ccYHayjp.o
>> /var/tmp//ccXHayjp.s
>>
>> but using /usr/sfw/bin/g++ from (
>> pkg://openindiana.org/developer/gcc-3 ) the gcc  has its own assembler
>>
>>     0   7762   7662 /usr/sfw/bin/g++ a.cpp
>>     0   7763   7762
>> /usr/sfw/libexec/gcc/i386-pc-solaris2.11/3.4.3/cc1plus -quiet a.cpp
>> -quiet -dum
>>     0   7764   7762 /usr/sfw/libexec/gcc/i386-pc-solaris2.11/3.4.3/as
>> --traditional-format -Qy -s -
>>     0   7765   7762
>> /usr/sfw/libexec/gcc/i386-pc-solaris2.11/3.4.3/collect2 -Y
>> P,/usr/ccs/lib:/lib:
>>
>>
>> Compiling a C file with  gcc works for both 4.6.2 and 3.4.3
>>
>> Has anyone else problems?
>>
>> Thanks for any help
>> Ewald
>>
>> _______________________________________________
>> OpenIndiana-discuss mailing list
>> OpenIndiana-discuss at openindiana.org
>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>
>
>
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss



More information about the OpenIndiana-discuss mailing list