gcc-7.2.0 on solaris 10 x86
Neal Elliott via gcc-help
gcc-help@gcc.gnu.org
Wed Sep 13 13:26:00 GMT 2017
Hello everyone,
I attempted to build gcc 7.2.0 on my solaris machine with the following configure options:
CFLAGS="-I/usr/local/include -m64" LDFLAGS="-L/usr/local/lib" CXXFLAGS="-I/usr/local/include" ../configure --disable-multilib --with-system-zlib --enable-languages=c,c++
make fails with the error:
g++ -std=gnu++98 -g -DIN_GCC -fno-strict-aliasing -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -fno-PIE -L/usr/local/lib -no-pie -o build/genmddeps \
build/genmddeps.o build/read-md.o build/errors.o ../build-i386-pc-solaris2.10/libiberty/libiberty.a
g++: unrecognized option `-no-pie'
ld: warning: file ../build-i386-pc-solaris2.10/libiberty/libiberty.a(concat.o): wrong ELF class: ELFCLASS64
Undefined first referenced
symbol in file
_obstack_free build/read-md.o
unlock_std_streams build/read-md.o
htab_hash_pointer build/read-md.o
htab_delete build/read-md.o
htab_create build/read-md.o
concat build/read-md.o
_obstack_begin build/read-md.o
_sch_istable build/read-md.o
_obstack_newchunk build/read-md.o
htab_traverse build/read-md.o
htab_find build/read-md.o
lbasename build/read-md.o
xstrndup build/read-md.o
_sch_toupper build/read-md.o
htab_hash_string build/read-md.o
htab_find_slot build/read-md.o
xmalloc build/genmddeps.o
xstrdup build/read-md.o
ld: fatal: symbol referencing errors. No output written to build/genmddeps
collect2: ld returned 1 exit status
gmake[3]: *** [build/genmddeps] Error 1
gmake[3]: Leaving directory `/home/neellio/gcc-7.2.0/build/gcc'
gmake[2]: *** [all-stage1-gcc] Error 2
gmake[2]: Leaving directory `/home/neellio/gcc-7.2.0/build'
gmake[1]: *** [stage1-bubble] Error 2
gmake[1]: Leaving directory `/home/neellio/gcc-7.2.0/build'
gmake: *** [all] Error 2
here is the version of gcc that I'm using to build, and the version of the operating system that I'm building it on:
-bash-3.2$ uname -a
SunOS unknown 5.10 Generic_147148-26 i86pc i386 i86pc
-bash-3.2$ isainfo
amd64 i386
-bash-3.2$ isainfo -v
64-bit amd64 applications
amd_lzcnt amd_sse4a sse2 sse fxsr mmx cmov amd_sysc cx8 tsc fpu
32-bit i386 applications
amd_lzcnt amd_sse4a sse2 sse fxsr mmx cmov amd_sysc cx8 tsc fpu
-bash-3.2$ gcc -v
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs
Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
has anyone built gcc 7.2.0 on solaris 10, and if so what does your build environment look like?
Thank you all in advance,
Neal
More information about the Gcc-help
mailing list