pkgsrc-Users archive

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

Can't compile lang/gcc4[68] on Solaris 11 (Sparc)



Hi,

while trying to compile lang/gcc46 or lang/gcc48, either from 2014Q2 or from the trunk, on Solaris 11, I get the following errors:

When building lang/gcc46:

gmake[3]: Entering directory `/opt/pkgsrc/lang/gcc46/work/obj/gcc'
gawk -f /opt/pkgsrc/lang/gcc46/work/gcc-4.6.4/gcc/opt-functions.awk -f /opt/pkgsrc/lang/gcc46/work/gcc-4.6.4/gcc/opth-gen.awk \
       < optionlist > tmp-options.h
/bin/bash /opt/pkgsrc/lang/gcc46/work/gcc-4.6.4/gcc/../move-if-change tmp-options.h options.h
echo timestamp > s-options-h
/opt/pkgsrc/lang/gcc46/work/obj/./prev-gcc/xgcc -B/opt/pkgsrc/lang/gcc46/work/obj/./prev-gcc/ -B/opt/pkg/gcc46/sparc-sun-solaris2.11/bin/ -B/opt/pkg/gcc46/sparc-sun-solaris2.11/bin/ -B/opt/pkg/gcc46/sparc-sun-solaris2.11/lib/ -isystem /opt/pkg/gcc46/sparc-sun-solaris2.11/include -isystem /opt/pkg/gcc46/sparc-sun-solaris2.11/sys-include      -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat   -DHAVE_CONFIG_H -DGENERATOR_FILE -static-libstdc++ -static-libgcc  -o build/genconstants \
    build/genconstants.o build/read-md.o build/errors.o .././libiberty/libiberty.a
Undefined                       first referenced
 symbol                             in file
__stack_chk_fail                    build/genconstants.o
__stack_chk_guard                   build/genconstants.o
ld: fatal: symbol referencing errors. No output written to build/genconstants
collect2: ld returned 1 exit status
gmake[3]: *** [build/genconstants] Error 1
gmake[3]: Leaving directory `/opt/pkgsrc/lang/gcc46/work/obj/gcc'

When building lang/gcc48, with -gcc-graphite, occuring in lang/gcc48-libs:

/opt/pkgsrc/lang/gcc48-libs/work/build/./gcc/xgcc -B/opt/pkgsrc/lang/gcc48-libs/work/build/./gcc/ -B/opt/pkg/gcc48/sparc-sun-solaris2.11/bin/ -B/opt/pkg/gcc48/sparc-sun-solaris2.11/lib/ -isystem /opt/pkg/gcc48/sparc-sun-solaris2.11/include -isystem /opt/pkg/gcc48/sparc-sun-solaris2.11/sys-include    -O2  -g -O2 -g0 -pipe -I/usr/include -I/opt/pkg/gcc45/include -I/opt/pkg/gcc45/lib/gcc/sparc-sun-solaris2.11/4.5.3/include -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fPIC -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector  -shared -nodefaultlibs -Wl,-h,libgcc_s.so.1 -Wl,-z,text -Wl,-z,defs -Wl,-M,libgcc.map -o /libgcc_s.so.1.tmp -g -O2 -g0 -pipe -I/usr/include -I/opt/pkg/gcc45/include -I/opt/pkg/gcc45/lib/gcc/sparc-sun-solaris2.11/4.5.3/include -B./ _muldi3_s.o _negdi2_s.o _lshrdi3_s.o _ashldi3_s.o _ashrdi3_s.o _cmpdi2_s.o _ucmpdi2_s.o _clear_cache_s.o _trampoline_s.o __main_s.o _absvsi2_s.o _absvdi2_s.o _addvsi3_s.o _addvdi3_s.o _subvsi3_s.o _subvdi3_s.o _mulvsi3_s.o _mulvdi3_s.o _negvsi2_s.o _negvdi2_s.o _ctors_s.o _ffssi2_s.o _ffsdi2_s.o _clz_s.o _clzsi2_s.o _clzdi2_s.o _ctzsi2_s.o _ctzdi2_s.o _popcount_tab_s.o _popcountsi2_s.o _popcountdi2_s.o _paritysi2_s.o _paritydi2_s.o _powisf2_s.o _powidf2_s.o _powixf2_s.o _powitf2_s.o _mulsc3_s.o _muldc3_s.o _mulxc3_s.o _multc3_s.o _divsc3_s.o _divdc3_s.o _divxc3_s.o _divtc3_s.o _bswapsi2_s.o _bswapdi2_s.o _clrsbsi2_s.o _clrsbdi2_s.o _fixunssfsi_s.o _fixunsdfsi_s.o _fixunsxfsi_s.o _fixsfdi_s.o _fixdfdi_s.o _fixxfdi_s.o _fixtfdi_s.o _fixunssfdi_s.o _fixunsdfdi_s.o _fixunsxfdi_s.o _fixunstfdi_s.o _floatdisf_s.o _floatdidf_s.o _floatdixf_s.o _floatditf_s.o _floatundisf_s.o _floatundidf_s.o _floatundixf_s.o _floatunditf_s.o _divdi3_s.o _moddi3_s.o _udivdi3_s.o _umoddi3_s.o _udiv_w_sdiv_s.o _udivmoddi4_s.o enable-execute-stack_s.o unwind-dw2_s.o unwind-dw2-fde-dip_s.o unwind-sjlj_s.o unwind-c_s.o emutls_s.o libgcc.a -lc && rm -f /libgcc_s.so && if [ -f /libgcc_s.so.1 ]; then mv -f /libgcc_s.so.1 /libgcc_s.so.1.backup; else true; fi && mv /libgcc_s.so.1.tmp /libgcc_s.so.1 && ln -s libgcc_s.so.1 /libgcc_s.so
ld.so.1: xgcc: fatal: relocation error: file /opt/pkgsrc/lang/gcc48-libs/work/build/sparc-sun-solaris2.11/libstdc++-v3/src/.libs/libstdc++.so.6: symbol __stack_chk_guard: referenced symbol not found

OTOH, lang/gcc4[57] as well as a self-compiled GCC 4.8.3 build just fine, using GCC 4.5 as installed from Solaris package repositories.

Any idea what could be the problem with gcc4[68]?

Thanks...


    Dirk
--

Dirk Heinrichs, Senior Systems Engineer, Engineering Solutions
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Tel: +49 2226 1596666 (Ansage) 1149
Email: dhs%recommind.com@localhost
Skype: dirk.heinrichs.recommind
www.recommind.com


Home | Main Index | Thread Index | Old Index