[OpenIndiana-discuss] g++ 4.6 from SFE repository
Ewald Ertl
ewald.ertl at gmail.com
Thu Jan 12 10:19:52 UTC 2012
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
More information about the OpenIndiana-discuss
mailing list