[Bug target/82092] [8/9 regression] gcc fails to link genmodes on darwin (cfiStartsArray[i] != cfiStartsArray[i-1])
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82092 --- Comment #21 from zf --- With the patch, make of gcc8.2.0 runs without errors on OS 10.9.5. The produced compiler builds .o files of a test program, but I have a problem with linking. This could be my fault, I am not that familiar with the needed paths. I Installed gcc the new recommended way, in a own folder and might have missed setting some paths. yves$ echo $PATH /usr/local/gcc-8.2/bin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local yves$ echo $DYLD_LIBRARY_PATH /usr/local/gcc-8.2/lib yves$ gcc-8.2 hello-world.cpp Undefined symbols for architecture x86_64: "std::basic_ostream >::operator<<(std::basic_ostream >& (*)(std::basic_ostream >&))", referenced from: _main in cc3Uycyg.o "std::ios_base::Init::Init()", referenced from: __static_initialization_and_destruction_0(int, int) in cc3Uycyg.o "std::ios_base::Init::~Init()", referenced from: __static_initialization_and_destruction_0(int, int) in cc3Uycyg.o "std::cout", referenced from: _main in cc3Uycyg.o "std::basic_ostream >& std::endl >(std::basic_ostream >&)", referenced from: _main in cc3Uycyg.o "std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)", referenced from: _main in cc3Uycyg.o ld: symbol(s) not found for architecture x86_64 collect2: Fehler: ld gab 1 als Ende-Status zurück
[Bug target/82092] [8/9 regression] gcc fails to link genmodes on darwin (cfiStartsArray[i] != cfiStartsArray[i-1])
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82092 --- Comment #19 from zf --- With OS 10.9.5 I run in the very same error with gcc 8.2.0 as with 8.1.0: /bin/sh ../../../libgcc/../mkinstalldirs . /Volumes/Platte/yves/Desktop/gcc-8.2.0/build/./gcc/xgcc -B/Volumes/Platte/yves/Desktop/gcc-8.2.0/build/./gcc/ -B/usr/local/gcc-8.2/x86_64-apple-darwin13.4.0/bin/ -B/usr/local/gcc-8.2/x86_64-apple-darwin13.4.0/lib/ -isystem /usr/local/gcc-8.2/x86_64-apple-darwin13.4.0/include -isystem /usr/local/gcc-8.2/x86_64-apple-darwin13.4.0/sys-include-g -O2 -m32 -O2 -g -O2 -DIN_GCC-W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -mmacosx-version-min=10.5 -pipe -fno-common -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -mmacosx-version-min=10.5 -pipe -fno-common -I. -I. -I../../.././gcc -I../../../../libgcc -I../../../../libgcc/. -I../../../../libgcc/../gcc -I../../../../libgcc/../include -DHAVE_CC_TLS -DUSE_EMUTLS -o _udiv_w_sdiv.o -MT _udiv_w_sdiv.o -MD -MP -MF _udiv_w_sdiv.dep -DL_udiv_w_sdiv -c ../../../../libgcc/libgcc2.c \ -fexceptions -fnon-call-exceptions -fvisibility=hidden -DHIDE_EXPORTS /Volumes/Platte/yves/Desktop/gcc-8.2.0/build/./gcc/xgcc -B/Volumes/Platte/yves/Desktop/gcc-8.2.0/build/./gcc/ -B/usr/local/gcc-8.2/x86_64-apple-darwin13.4.0/bin/ -B/usr/local/gcc-8.2/x86_64-apple-darwin13.4.0/lib/ -isystem /usr/local/gcc-8.2/x86_64-apple-darwin13.4.0/include -isystem /usr/local/gcc-8.2/x86_64-apple-darwin13.4.0/sys-include-O2 -g -O2 -DIN_GCC-W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -mmacosx-version-min=10.5 -pipe -fno-common -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -dynamiclib -nodefaultlibs -install_name /usr/local/gcc-8.2/lib/libgcc_s.1.dylib -single_module -o ./libgcc_s.dylib -Wl,-exported_symbols_list,libgcc.map -compatibility_version 1 -current_version 1.0 -g -O2 -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 _mulhc3_s.o _mulsc3_s.o _muldc3_s.o _mulxc3_s.o _multc3_s.o _divhc3_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 _fixunssfdi_s.o _fixunsdfdi_s.o _fixunsxfdi_s.o _floatdisf_s.o _floatdidf_s.o _floatdixf_s.o _floatundisf_s.o _floatundidf_s.o _floatundixf_s.o _fixsfti_s.o _fixdfti_s.o _fixxfti_s.o _fixtfti_s.o _fixunssfti_s.o _fixunsdfti_s.o _fixunsxfti_s.o _fixunstfti_s.o _floattisf_s.o _floattidf_s.o _floattixf_s.o _floattitf_s.o _floatuntisf_s.o _floatuntidf_s.o _floatuntixf_s.o _floatuntitf_s.o _divdi3_s.o _moddi3_s.o _divmoddi4_s.o _udivdi3_s.o _umoddi3_s.o _udivmoddi4_s.o _udiv_w_sdiv_s.o darwin-64_s.o cpuinfo_s.o sfp-exceptions_s.o addtf3_s.o divtf3_s.o eqtf2_s.o getf2_s.o letf2_s.o multf3_s.o negtf2_s.o subtf3_s.o unordtf2_s.o fixtfsi_s.o fixunstfsi_s.o floatsitf_s.o floatunsitf_s.o fixtfdi_s.o fixunstfdi_s.o floatditf_s.o floatunditf_s.o fixtfti_s.o fixunstfti_s.o floattitf_s.o floatuntitf_s.o extendsftf2_s.o extenddftf2_s.o extendxftf2_s.o trunctfsf2_s.o trunctfdf2_s.o trunctfxf2_s.o enable-execute-stack_s.o unwind-dw2_s.o unwind-dw2-fde-darwin_s.o unwind-sjlj_s.o unwind-c_s.o emutls_s.o libgcc.a -lc /Volumes/Platte/yves/Desktop/gcc-8.2.0/build/./gcc/xgcc -B/Volumes/Platte/yves/Desktop/gcc-8.2.0/build/./gcc/ -B/usr/local/gcc-8.2/x86_64-apple-darwin13.4.0/bin/ -B/usr/local/gcc-8.2/x86_64-apple-darwin13.4.0/lib/ -isystem /usr/local/gcc-8.2/x86_64-apple-darwin13.4.0/include -isystem /usr/local/gcc-8.2/x86_64-apple-darwin13.4.0/sys-include-g -O2 -m32 -O2 -g -O2 -DIN_GCC-W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -mmacosx-version-min=10.5 -pipe -fno-common -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -mmacosx-version-min=10.5 -pipe -fno-common -I. -I. -I../../.././gcc -I../../../../libgcc -I../../../../libgcc/. -I../../../../libgcc/../gcc -I../../../../libgcc/../include -DHAVE_CC_TLS -DUSE_EMUTLS -o darwin-64.o -MT darwin-64.o -MD -MP -MF darwin-64.dep -c ../../../../libgcc/config/darwin-64.c -fvisibility=hidden -DHIDE_EXPORTS /Volumes/Platte/yves/Desktop/gcc-8.2.0/build/./gcc/xgcc -B/Volumes/Platte/yves/Desktop/gcc-8.2.0/build/./gcc/ -B/usr/local/gcc-8.2/x86_64-apple-darwin13.4.0/bin/
[Bug other/86639] New: building gcc from source fails with Mac OS 10.9
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86639 Bug ID: 86639 Summary: building gcc from source fails with Mac OS 10.9 Product: gcc Version: 8.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: zfefm at gmx dot de Target Milestone: --- Created attachment 44420 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44420=edit configure output I try to build gcc 8.1.0 from source on a Mac with OS 10.9.5. Build fails with following error (see end of attached gcc-make-output.txt): A linker snapshot was created at: /tmp/libgcc_s.dylib-2018-06-23-105655.ld-snapshot ld: Assertion failed: (cfiStartsArray[i] != cfiStartsArray[i-1]), function parse, file /SourceCache/ld64/ld64-241.9/src/ld/parsers/macho_relocatable_file.cpp, line 1745. collect2: error: ld returned 1 exit status make[3]: *** [libgcc_s.dylib] Error 1 make[2]: *** [all-stage1-target-libgcc] Error 2 make[1]: *** [stage1-bubble] Error 2 make: *** [all] Error 2 I tried on two different Mac with OS 10.9.5, I even did a clean install of OS 10.9.5 and the developer tools, I run always in the same error. I can build gcc 7.3.0 with OS 10.9.5, or gcc 8.1.0 with OS 10.13 without any error. I attached the output of: $ ../configure --prefix=/usr/local/gcc-8.1 \ > --with-gmp=/usr/local/gcc-8.1 \ > --with-mpfr=/usr/local/gcc-8.1 \ > --with-mpc=/usr/local/gcc-8.1 \ > --enable-languages=c,c++,fortran \ > --with-isl=/usr/local/gcc-8.1 \ > --program-suffix=-8.1 &> gcc-conf-output.txt If needed I can also send the complete output of make (large!) and the mentioned /tmp/libgcc_s.dylib-2018-06-23-105655.ld-snapshot.
[Bug other/63513] Error to build gcc loaded from svn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63513 zf zfefm at gmx dot de changed: What|Removed |Added CC||zfefm at gmx dot de --- Comment #2 from zf zfefm at gmx dot de --- I have the same problem when I try to build gcc (4.92 or 5.1) on my Macbook OS 10.9.5. On my MacPro, also runing 10.9.5, this builds without problems. I have not yet found the reason for this difference.