[Bug target/40959] [4.3/4.4/4.5/4.6 regression] FreeBSD/ia64 build fails: No rule to make target `/usr/ports/lang/gcc43/work/build/ia64-portbld-freebsd8.0/libgcc/crtfastmath.o', needed by `T_TARGET'.
--- Comment #21 from mexas at bristol dot ac dot uk 2010-09-15 09:20 --- Just to confirm that 45 now builds on ia64: gcc-4.5.2.20100909 The error for 46 is this: *skip* gmake[4]: Entering directory `/usr/ports/lang/gcc46/work/build/ia64-portbld-freebsd9.0/libgfortran' if [ -z "" ]; then \ true; \ else \ rootpre=`${PWDCMD-pwd}`/; export rootpre; \ srcrootpre=`cd ../.././../gcc-4.6-20100911/libgfortran; ${PWDCMD-pwd}`/; export srcrootpre; \ lib=`echo "${rootpre}" | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`; \ compiler="/usr/ports/lang/gcc46/work/build/./gcc/xgcc -B/usr/ports/lang/gcc46/work/build/./gcc/ -B/usr/local/ia64-portbld-freebsd9.0/bi / -B/usr/local/ia64-portbld-freebsd9.0/lib/ -isystem /usr/local/ia64-portbld-freebsd9.0/include -isystem /usr/local/ia64-portbld-freebsd9.0/sys-i clude "; \ for i in `${compiler} --print-multi-lib 2>/dev/null`; do \ dir=`echo $i | sed -e 's/;.*$//'`; \ if [ "${dir}" = "." ]; then \ true; \ else \ if [ -d ../${dir}/${lib} ]; then \ flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \ if (cd ../${dir}/${lib}; gmake \ CFLAGS="-g -O1 -I/usr/local/include ${flags}" \ CCASFLAGS=" ${flags}" \ FCFLAGS="-g -O2 ${flags}" \ FFLAGS=" ${flags}" \ ADAFLAGS=" ${flags}" \ prefix="/usr/local" \ exec_prefix="/usr/local" \ GCJFLAGS=" ${flags}" \ CXXFLAGS="-g -O1 -I/usr/local/include ${flags}" \ LIBCFLAGS="-g -O1 -I/usr/local/include ${flags}" \ LIBCXXFLAGS="-g -O1 -I/usr/local/include -fno-implicit-templates ${flags}" \ LDFLAGS=" ${flags}" \ MULTIFLAGS="${flags}" \ DESTDIR="" \ INSTALL="/usr/bin/install -c -o root -g wheel" \ INSTALL_DATA="install -o root -g wheel -m 444" \ INSTALL_PROGRAM="install -s -o root -g wheel -m 555" \ INSTALL_SCRIPT="install -o root -g wheel -m 555" \ all); then \ true; \ else \ exit 1; \ fi; \ else true; \ fi; \ fi; \ done; \ fi gmake[4]: Leaving directory `/usr/ports/lang/gcc46/work/build/ia64-portbld-freebsd9.0/libgfortran' gmake[3]: Leaving directory `/usr/ports/lang/gcc46/work/build/ia64-portbld-freebsd9.0/libgfortran' gmake[2]: Leaving directory `/usr/ports/lang/gcc46/work/build/ia64-portbld-freebsd9.0/libgfortran' gmake[1]: Leaving directory `/usr/ports/lang/gcc46/work/build' gmake: *** [bootstrap-lean] Error 2 *** Error code 1 Stop in /usr/ports/lang/gcc46. *** Error code 1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40959
[Bug target/40959] build fails - No rule to make target `/usr/ports/lang/gcc43/work/build/ia64-portbld-freebsd8.0/libgcc/crtfastmath.o', needed by `T_TARGET'. Stop.
--- Comment #16 from mexas at bristol dot ac dot uk 2009-12-17 23:00 --- I just checked that gcc4.2.5 installs fine on ia64 FreeBSD 9.0 current, but all newer versions fail to build. Is it possible/feasible to debug this by comparing gcc42 and gcc43? Unfortunately it's beyond my skills, but I'll be happy to try any patch or something. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40959
[Bug regression/40329] gcc-4.5 build fails on alpha
--- Comment #2 from mexas at bristol dot ac dot uk 2009-11-23 22:35 --- sorry, I no longer have alpha, I moved to ia64 FreeBSD. many thanks for your efforts anyway! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40329
[Bug target/40959] build fails - No rule to make target `/usr/ports/lang/gcc43/work/build/ia64-portbld-freebsd8.0/libgcc/crtfastmath.o', needed by `T_TARGET'. Stop.
--- Comment #15 from mexas at bristol dot ac dot uk 2009-11-23 21:47 --- > Hi Marcel, sorry to bother you with this again. > Are you happy to be on my Cc list for this "bug"? Sure. sje@ doesn't quite know what he's talking about because he doesn't know FreeBSD. See also below. > --- Comment #13 from sje at cup dot hp dot com 2009-11-23 15:43 --- > I think you will need to create a fde-freebsd.c file in gcc/config/ia64 to > define Unwind_FindTableEntry. See fde-glibc.c and fde-vms.c for examples. _Unwind_FindTableEntry is defined in libc. FYI, -- Marcel Moolenaar xcl...@mac.com -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40959
[Bug target/40959] build fails - No rule to make target `/usr/ports/lang/gcc43/work/build/ia64-portbld-freebsd8.0/libgcc/crtfastmath.o', needed by `T_TARGET'. Stop.
--- Comment #14 from mexas at bristol dot ac dot uk 2009-11-23 16:12 --- can I add a FBSD ia64 developer email to the CC list (xcl...@mac.com)? I tried to do this before, but was refused. I'm just reporting the bug. I've neigher skill not time to deal with this. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40959
[Bug target/40959] build fails - No rule to make target `/usr/ports/lang/gcc43/work/build/ia64-portbld-freebsd8.0/libgcc/crtfastmath.o', needed by `T_TARGET'. Stop.
--- Comment #12 from mexas at bristol dot ac dot uk 2009-11-21 11:47 --- I see.. So what is the way forward? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40959
[Bug target/40959] build fails - No rule to make target `/usr/ports/lang/gcc43/work/build/ia64-portbld-freebsd8.0/libgcc/crtfastmath.o', needed by `T_TARGET'. Stop.
--- Comment #9 from mexas at bristol dot ac dot uk 2009-11-18 12:50 --- and the same for gcc45: [skip] unwind-ia64_s.o(.text+0x30b2): In function `uw_frame_state_for': ../.././../gcc-4.5-20091112/libgcc/../gcc/config/ia64/unwind-ia64.c:1788: undefined reference to `_Unwind_FindTableEntry' unwind-ia64_s.o(.text+0x7632): In function `_Unwind_FindEnclosingFunction': ../.././../gcc-4.5-20091112/libgcc/../gcc/config/ia64/unwind-ia64.c:1745: undefined reference to `_Unwind_FindTableEntry' /usr/bin/ld: ./libgcc_s.so.1.tmp: hidden symbol `_Unwind_FindTableEntry' isn't defined collect2: ld returned 1 exit status gmake[3]: *** [libgcc_s.so] Error 1 gmake[3]: Leaving directory `/usr/ports/lang/gcc45/work/build/ia64-portbld-freebsd9.0/libgcc' gmake[2]: *** [all-stage1-target-libgcc] Error 2 gmake[2]: Leaving directory `/usr/ports/lang/gcc45/work/build' gmake[1]: *** [stage1-bubble] Error 2 gmake[1]: Leaving directory `/usr/ports/lang/gcc45/work/build' gmake: *** [bootstrap-lean] Error 2 *** Error code 1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40959
[Bug target/40959] build fails - No rule to make target `/usr/ports/lang/gcc43/work/build/ia64-portbld-freebsd8.0/libgcc/crtfastmath.o', needed by `T_TARGET'. Stop.
--- Comment #8 from mexas at bristol dot ac dot uk 2009-11-18 12:30 --- this seems to help to pass that error, now I'm stopped with this: [skip] # @multilib_dir@ is not really necessary, but sometimes it has # more uses than just a directory name. /bin/sh ../.././../gcc-4.4-20091110/libgcc/../mkinstalldirs . /usr/ports/lang/gcc44/work/build/./gcc/xgcc -B/usr/ports/lang/gcc44/work/build/./gcc/ -B/usr/local/ia64-portbld-freebsd9.0/bin/ -B/usr/local/ia64-portbld-freebsd9.0/lib/ -isystem /usr/local/ia64-portbld-freebsd9.0/include -isystem /usr/local/ia64-portbld-freebsd9.0/sys-include -O2 -g -O2 -pipe -I/usr/local/include -fno-strict-aliasing -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition -isystem ./include -fPIC -pthread -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc.map -o ./libgcc_s.so.1.tmp -g -O2 -pipe -I/usr/local/include -fno-strict-aliasing -B./ __divxf3_s.o __divdf3_s.o __divsf3_s.o __divdi3_s.o __moddi3_s.o __udivdi3_s.o __umoddi3_s.o __divsi3_s.o __modsi3_s.o __udivsi3_s.o __umodsi3_s.o __save_stack_nonlocal_s.o __nonlocal_goto_s.o __restore_stack_nonlocal_s.o __trampoline_s.o _fixtfdi_s.o _fixunstfdi_s.o _floatditf_s.o _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 _enable_execute_stack_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 _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 _floatunditf_s.o _divdi3_s.o _moddi3_s.o _udivdi3_s.o _umoddi3_s.o _udiv_w_sdiv_s.o _udivmoddi4_s.o unwind-ia64_s.o unwind-sjlj_s.o unwind-c_s.o emutls_s.o -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 unwind-ia64_s.o(.text+0x1b62): In function `_Unwind_FindEnclosingFunction': ../.././../gcc-4.4-20091110/libgcc/../gcc/config/ia64/unwind-ia64.c:1736: undefined reference to `_Unwind_FindTableEntry' unwind-ia64_s.o(.text+0x1e32): In function `uw_frame_state_for': ../.././../gcc-4.4-20091110/libgcc/../gcc/config/ia64/unwind-ia64.c:1779: undefined reference to `_Unwind_FindTableEntry' /usr/bin/ld: ./libgcc_s.so.1.tmp: hidden symbol `_Unwind_FindTableEntry' isn't defined collect2: ld returned 1 exit status gmake[3]: *** [libgcc_s.so] Error 1 gmake[3]: Leaving directory `/usr/ports/lang/gcc44/work/build/ia64-portbld-freebsd9.0/libgcc' gmake[2]: *** [all-stage1-target-libgcc] Error 2 gmake[2]: Leaving directory `/usr/ports/lang/gcc44/work/build' gmake[1]: *** [stage1-bubble] Error 2 gmake[1]: Leaving directory `/usr/ports/lang/gcc44/work/build' gmake: *** [bootstrap-lean] Error 2 *** Error code 1 Stop in /usr/ports/lang/gcc44. *** Error code 1 Stop in /usr/ports/lang/gcc44. TZAV# -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40959
[Bug target/40959] build fails - No rule to make target `/usr/ports/lang/gcc43/work/build/ia64-portbld-freebsd8.0/libgcc/crtfastmath.o', needed by `T_TARGET'. Stop.
--- Comment #6 from mexas at bristol dot ac dot uk 2009-11-16 09:50 --- The suggested patch seems to fail. Perhaps it's out of sync now. # patch ./libgcc/config.host patch Hmm... Looks like a unified diff to me... The text leading up to this was: -- |Index: libgcc/config.host |=== |--- libgcc/config.host (revision 152205) |+++ libgcc/config.host (working copy) -- Patching file ./libgcc/config.host using Plan A... Hunk #1 failed at 342. 1 out of 1 hunks failed--saving rejects to ./libgcc/config.host.rej Hmm... Ignoring the trailing garbage. done # -- mexas at bristol dot ac dot uk changed: What|Removed |Added GCC host triplet|FreeBSD 8.0-BETA2 ia64 |FreeBSD 9.0-current ia64 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40959
[Bug target/40959] build fails - No rule to make target `/usr/ports/lang/gcc43/work/build/ia64-portbld-freebsd8.0/libgcc/crtfastmath.o', needed by `T_TARGET'. Stop.
--- Comment #3 from mexas at bristol dot ac dot uk 2009-08-11 11:14 --- Some very basic analysis. gcc43 builds on alpha, but not on ia64, so I was trying to spot the difference. # pwd /usr/ports/lang/gcc43 # grep -C3 crtfastmath ./work/build/gcc/Makefile # List of extra object files that should be compiled for this target machine. # The rules for compiling them should be in the t-* file for the machine. EXTRA_PARTS = crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o so I had a search for t-* files on alpha and ia64, and it seems some t-* files are missing from ia64: # on alpha # # uname -srm FreeBSD 6.4-STABLE alpha # pwd /usr/ports/lang/gcc43 # find . -name "t-crt*"|grep alpha ./work/gcc-4.3-20090726/gcc/config/alpha/t-crtfm ./work/gcc-4.3-20090726/libgcc/config/alpha/t-crtfm # # on ia64 # # uname -srm FreeBSD 8.0-BETA2 ia64 # pwd /usr/ports/lang/gcc43 # find . -name "t-crt*" | grep ia64 # so I copied the above 2 t-crtfm files from alpha to ia64 config directory and substituted "alpha" for "ia64": # cat ./work/gcc-4.3-20090726/gcc/config/ia64/t-crtfm EXTRA_PARTS += crtfastmath.o $(T)crtfastmath.o: $(srcdir)/config/ia64/crtfastmath.c $(GCC_PASSES) $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -frandom-seed=gcc-crtfastmath -c \ -o $(T)crtfastmath.o $(srcdir)/config/ia64/crtfastmath.c # cat ./work/gcc-4.3-20090726/libgcc/config/ia64/t-crtfm # FIXME drow/20061228 - I have preserved this -frandom-seed option # while migrating this rule from the GCC directory, but I do not # know why it is necessary if no other crt file uses it. crtfastmath.o: $(gcc_srcdir)/config/ia64/crtfastmath.c $(gcc_compile) -frandom-seed=gcc-crtfastmath -c \ $(gcc_srcdir)/config/ia64/crtfastmath.c # But the error is still there. gmake[4]: *** No rule to make target `/usr/ports/lang/gcc43/work/build/ia64-portbld-freebsd8.0/libgcc/crtfastmath.o', needed by `T_TARGET'. Stop. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40959
[Bug c/40959] build fails - No rule to make target `/usr/ports/lang/gcc43/work/build/ia64-portbld-freebsd8.0/libgcc/crtfastmath.o', needed by `T_TARGET'. Stop.
--- Comment #2 from mexas at bristol dot ac dot uk 2009-08-04 10:16 --- and the same error happens with gcc4.5.0: gmake[4]: Entering directory `/usr/ports/lang/gcc45/work/build/gcc' gmake[4]: *** No rule to make target `/usr/ports/lang/gcc45/work/build/ia64-portbld-freebsd8.0/libgcc/crtfastmath.o', needed by `T_TARGET'. Stop. gmake[4]: *** Waiting for unfinished jobs gmake[4]: Leaving directory `/usr/ports/lang/gcc45/work/build/gcc' gmake[3]: *** [gcc-extra-parts] Error 2 gmake[3]: *** Waiting for unfinished jobs gmake[3]: Leaving directory `/usr/ports/lang/gcc45/work/build/ia64-portbld-freebsd8.0/libgcc' gmake[2]: *** [all-stage1-target-libgcc] Error 2 gmake[2]: Leaving directory `/usr/ports/lang/gcc45/work/build' gmake[1]: *** [stage1-bubble] Error 2 gmake[1]: Leaving directory `/usr/ports/lang/gcc45/work/build' gmake: *** [bootstrap-lean] Error 2 *** Error code 1 Stop in /usr/ports/lang/gcc45. *** Error code 1 -- mexas at bristol dot ac dot uk changed: What|Removed |Added CC| |mexas at bristol dot ac dot ||uk Version|4.4.2 |4.5.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40959
[Bug c/40959] build fails - No rule to make target `/usr/ports/lang/gcc43/work/build/ia64-portbld-freebsd8.0/libgcc/crtfastmath.o', needed by `T_TARGET'. Stop.
--- Comment #1 from mexas at bristol dot ac dot uk 2009-08-04 10:00 --- the same happens for gcc4.4.2: [skip] gmake[4]: Leaving directory `/usr/ports/lang/gcc44/work/build/ia64-portbld-freebsd8.0/libgcc' gmake[4]: Entering directory `/usr/ports/lang/gcc44/work/build/gcc' gmake[4]: *** No rule to make target `/usr/ports/lang/gcc44/work/build/ia64-portbld-freebsd8.0/libgcc/crtfastmath.o', needed by `T_TARGET'. Stop. gmake[4]: *** Waiting for unfinished jobs gmake[4]: Leaving directory `/usr/ports/lang/gcc44/work/build/gcc' gmake[3]: *** [gcc-extra-parts] Error 2 gmake[3]: Leaving directory `/usr/ports/lang/gcc44/work/build/ia64-portbld-freebsd8.0/libgcc' gmake[2]: *** [all-stage1-target-libgcc] Error 2 gmake[2]: Leaving directory `/usr/ports/lang/gcc44/work/build' gmake[1]: *** [stage1-bubble] Error 2 gmake[1]: Leaving directory `/usr/ports/lang/gcc44/work/build' gmake: *** [bootstrap-lean] Error 2 *** Error code 1 Stop in /usr/ports/lang/gcc44. *** Error code 1 -- mexas at bristol dot ac dot uk changed: What|Removed |Added Version|4.3.4 |4.4.2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40959
[Bug c/40959] New: build fails - No rule to make target `/usr/ports/lang/gcc43/work/build/ia64-portbld-freebsd8.0/libgcc/crtfastmath.o', needed by `T_TARGET'. Stop.
building gcc4.3.4 from ports on FreeBSD 8.0-BETA2 ia64 I get this error: [skip] gmake[4]: Leaving directory `/usr/ports/lang/gcc43/work/build/ia64-portbld-freebsd8.0/libgcc' gmake[4]: Entering directory `/usr/ports/lang/gcc43/work/build/gcc' gmake[4]: *** No rule to make target `/usr/ports/lang/gcc43/work/build/ia64-portbld-freebsd8.0/libgcc/crtfastmath.o', needed by `T_TARGET'. Stop. gmake[4]: *** Waiting for unfinished jobs gmake[4]: Leaving directory `/usr/ports/lang/gcc43/work/build/gcc' gmake[3]: *** [gcc-extra-parts] Error 2 gmake[3]: Leaving directory `/usr/ports/lang/gcc43/work/build/ia64-portbld-freebsd8.0/libgcc' gmake[2]: *** [all-stage1-target-libgcc] Error 2 gmake[2]: Leaving directory `/usr/ports/lang/gcc43/work/build' gmake[1]: *** [stage1-bubble] Error 2 gmake[1]: Leaving directory `/usr/ports/lang/gcc43/work/build' gmake: *** [bootstrap-lean] Error 2 *** Error code 1 Stop in /usr/ports/lang/gcc43. *** Error code 1 -- Summary: build fails - No rule to make target `/usr/ports/lang/gcc43/work/build/ia64-portbld- freebsd8.0/libgcc/crtfastmath.o', needed by `T_TARGET'. Stop. Product: gcc Version: 4.3.4 Status: UNCONFIRMED Severity: major Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mexas at bristol dot ac dot uk GCC build triplet: 4.3.4.20090726 GCC host triplet: FreeBSD 8.0-BETA2 ia64 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40959
[Bug regression/40329] New: gcc-4.5 build fails on alpha
-stage1-target-libgcc] Error 2 gmake[2]: Leaving directory `/usr/ports/lang/gcc45/work/build' gmake[1]: *** [stage1-bubble] Error 2 gmake[1]: Leaving directory `/usr/ports/lang/gcc45/work/build' gmake: *** [bootstrap-lean] Error 2 *** Error code 1 Stop in /usr/ports/lang/gcc45. *** Error code 1 Stop in /usr/ports/lang/gcc45. ===>>> make failed for lang/gcc45 ===>>> Aborting update # -- Summary: gcc-4.5 build fails on alpha Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: regression AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mexas at bristol dot ac dot uk GCC host triplet: alpha-portbld-freebsd6,4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40329