pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Issues building lang/gcc4[67] on Solaris



Hi,

I tried to setup pkgsrc on our Solaris build machine as suggested
in http://www.netbsd.org/docs/pkgsrc/platforms.html#solaris.

It fails locally with "Illegal mnemonic" like

sno@xbuild:pkgsrc/lang/gcc46 $ bmake
[...]
/bin/bash ./libtool --tag=CC   --mode=compile
/var/tmp/pkgsrc/lang/gcc46/work/obj/./gcc/xgcc
-B/var/tmp/pkgsrc/lang/gcc46/work/obj/./gcc/
-B/opt/pkg/gcc46/i386-pc-solaris2.10/bin/
-B/opt/pkg/gcc46/i386-pc-solaris2.10/lib/ -isystem
/opt/pkg/gcc46/i386-pc-solaris2.10/include -isystem
/opt/pkg/gcc46/i386-pc-solaris2.10/sys-include    -DHAVE_CONFIG_H -I.
-I/var/tmp/pkgsrc/lang/gcc46/work/gcc-4.6.3/libgomp
-I/var/tmp/pkgsrc/lang/gcc46/work/gcc-4.6.3/libgomp/config/posix
-I/var/tmp/pkgsrc/lang/gcc46/work/gcc-4.6.3/libgomp  -Wall -Werror
-Wc,-pthread -g -O -I/var/tmp/pkgsrc/lang/gcc46/work/.buildlink/include
 -m64 -MT barrier.lo -MD -MP -MF .deps/barrier.Tpo -c -o barrier.lo
/var/tmp/pkgsrc/lang/gcc46/work/gcc-4.6.3/libgomp/barrier.c
libtool: compile:  /var/tmp/pkgsrc/lang/gcc46/work/obj/./gcc/xgcc
-B/var/tmp/pkgsrc/lang/gcc46/work/obj/./gcc/
-B/opt/pkg/gcc46/i386-pc-solaris2.10/bin/
-B/opt/pkg/gcc46/i386-pc-solaris2.10/lib/ -isystem
/opt/pkg/gcc46/i386-pc-solaris2.10/include -isystem
/opt/pkg/gcc46/i386-pc-solaris2.10/sys-include -DHAVE_CONFIG_H -I.
-I/var/tmp/pkgsrc/lang/gcc46/work/gcc-4.6.3/libgomp
-I/var/tmp/pkgsrc/lang/gcc46/work/gcc-4.6.3/libgomp/config/posix
-I/var/tmp/pkgsrc/lang/gcc46/work/gcc-4.6.3/libgomp -Wall -pthread
-Werror -g -O -I/var/tmp/pkgsrc/lang/gcc46/work/.buildlink/include -m64
-MT barrier.lo -MD -MP -MF .deps/barrier.Tpo -c
/var/tmp/pkgsrc/lang/gcc46/work/gcc-4.6.3/libgomp/barrier.c  -fPIC -DPIC
-o .libs/barrier.o
Assembler: barrier.c
        "/var/tmp//ccIof6kf.s", line 17 : Illegal mnemonic
        Near line: "    rex64"
        "/var/tmp//ccIof6kf.s", line 17 : Syntax error
        Near line: "    rex64"
gmake[9]: *** [barrier.lo] Error 1


Same picture (other mnemonic) for gcc47.

What can I do to get a newer gcc compiled on that machine without
applying patches modifying libraries? For several reasons the machine
must not be updated to a newer ABI ..

sno@xbuild:pkgsrc/lang/gcc46 $ uname -a
SunOS xbuild 5.10 Generic_141415-08 i86pc i386 i86pc
sno@xbuild:pkgsrc/lang/gcc46 $ isainfo -k
amd64

Thanks in advance for any hint,
Jens


Home | Main Index | Thread Index | Old Index