#26378 closed defect (fixed)
gcc45 fails to build on 10.4
Reported by: | dduca@… | Owned by: | mww@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.1 |
Keywords: | tiger | Cc: | jameskyle@…, ryandesign (Ryan Carsten Schmidt), vinc17@…, jpmasseria@…, wrigleyster@… |
Port: | gcc45 |
Description
Trying to update to gimp2 @70837, the related gcc45 installation crashed with the enclosed building error message. The same problem holds if the installation of gcc45 is performed, in an isolated manner, after cleaning it.
:info:build libtool: link: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc45/work/build/./gcc/xgcc - B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc45/work/build/./gcc/ -B/opt/local/i386-apple-darwin8/bin/ -B/opt/local/i386-apple-darwin8/lib/ -isystem /opt/local/i386-apple-darwin8/include -isystem /opt/local/i386-apple-darwin8/sys-include -dynamiclib -o .libs/libgomp.1.dylib .libs/alloc.o .libs/barrier.o .libs/critical.o .libs/env.o .libs/error.o .libs/iter.o .libs/iter_ull.o .libs/loop.o .libs/loop_ull.o .libs/ordered.o .libs/parallel.o .libs/sections.o .libs/single.o .libs/task.o .libs/team.o .libs/work.o .libs/lock.o .libs/mutex.o .libs/proc.o .libs/sem.o .libs/bar.o .libs/ptrlock.o .libs/time.o .libs/fortran.o .libs/affinity.o -pthread -install_name /opt/local/lib/gcc45/libgomp.1.dylib -compatibility_version 2 -current_version 2.0 -Wl,-single_module :info:build libtool: link: dsymutil .libs/libgomp.1.dylib || : :info:build warning: no debug map in executable (-arch i386) :info:build libtool: link: (cd ".libs" && rm -f "libgomp.dylib" && ln -s "libgomp.1.dylib" "libgomp.dylib") :info:build libtool: link: /usr/bin/ar rc .libs/libgomp.a alloc.o barrier.o critical.o env.o error.o iter.o iter_ull.o loop.o loop_ull.o ordered.o parallel.o sections.o single.o task.o team.o work.o lock.o mutex.o proc.o sem.o bar.o ptrlock.o time.o fortran.o affinity.o :info:build libtool: link: /usr/bin/ranlib -c .libs/libgomp.a :info:build libtool: link: ( cd ".libs" && rm -f "libgomp.la" && ln -s "../libgomp.la" "libgomp.la" ) :info:build /usr/bin/make "DESTDIR=" "RPATH_ENVVAR=DYLD_LIBRARY_PATH" "TARGET_SUBDIR=i386-apple-darwin8" "bindir=/opt/local/bin" "datadir=/opt/local/share/gcc-4.5" "exec_prefix=/opt/local" "includedir=/opt/local/include/gcc45" "datarootdir=/opt/local/share/gcc-4.5" "docdir=/opt/local/share/gcc-4.5/doc/" "infodir=/opt/local/share/info" "pdfdir=/opt/local/share/gcc-4.5/doc/" "htmldir=/opt/local/share/gcc-4.5/doc/" "libdir=/opt/local/lib/gcc45" "libexecdir=/opt/local/libexec" "lispdir=" "localstatedir=/opt/local/var" "mandir=/opt/local/share/man" "oldincludedir=/usr/include" "prefix=/opt/local" "sbindir=/opt/local/sbin" "sharedstatedir=/opt/local/com" "sysconfdir=/opt/local/etc" "tooldir=/opt/local/i386-apple-darwin8" "build_tooldir=/opt/local/i386-apple-darwin8" "target_alias=i386-apple-darwin8" "AWK=awk" "BISON=bison" "CC_FOR_BUILD=/usr/bin/gcc-4.0" "CFLAGS_FOR_BUILD=-pipe -O2" "CXX_FOR_BUILD=/usr/bin/g++-4.0" "EXPECT=expect" "FLEX=flex" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS_FOR_BUILD=-L/opt/local/lib" "LEX=flex" "M4=gm4" "MAKE=/usr/bin/make" "RUNTEST=runtest" "RUNTESTFLAGS=" "SED=/opt/local/bin/gsed" "SHELL=/bin/sh" "YACC=bison -y" "`echo 'ADAFLAGS=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "ADA_CFLAGS=" "AR_FLAGS=rc" "`echo 'BOOT_ADAFLAGS=-gnatpg -gnata' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "BOOT_CFLAGS=-g -O2 -fomit-frame-pointer" "BOOT_LDFLAGS=" "CFLAGS=-pipe -O2" "CXXFLAGS=-pipe -O2" "LDFLAGS=-L/opt/local/lib" "LIBCFLAGS=-pipe -O2" "LIBCXXFLAGS=-pipe -O2 -fno-implicit-templates" "STAGE1_CHECKING=--enable-checking=yes" "STAGE1_LANGUAGES=c" "GNATBIND=no" "GNATMAKE=no" "AR_FOR_TARGET=/usr/bin/ar" "AS_FOR_TARGET=/usr/bin/as" "CC_FOR_TARGET=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc45/work/build/./gcc/xgcc -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc45/work/build/./gcc/" "CFLAGS_FOR_TARGET=-g -pipe -O2" "CPPFLAGS_FOR_TARGET=" "CXX_FOR_TARGET=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc45/work/build/./gcc/g++ -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc45/work/build/./gcc/ -nostdinc++ -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc45/work/build/i386-apple-darwin8/libstdc++-v3/src -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc45/work/build/i386-apple-darwin8/libstdc++-v3/src/.libs" "CXXFLAGS_FOR_TARGET=-g -pipe -O2" "DLLTOOL_FOR_TARGET=dlltool" "FLAGS_FOR_TARGET=-B/opt/local/i386-apple-darwin8/bin/ -B/opt/local/i386-apple-darwin8/lib/ -isystem /opt/local/i386-apple-darwin8/include -isystem /opt/local/i386-apple-darwin8/sys-include" "GCJ_FOR_TARGET=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc45/work/build/./gcc/gcj -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc45/work/build/./gcc/" "GFORTRAN_FOR_TARGET=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc45/work/build/./gcc/gfortran -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc45/work/build/./gcc/" "LD_FOR_TARGET=/usr/bin/ld" "LIPO_FOR_TARGET=lipo" "LDFLAGS_FOR_TARGET=" "LIBCFLAGS_FOR_TARGET=-g -pipe -O2" "LIBCXXFLAGS_FOR_TARGET=-g -pipe -O2 -fno-implicit-templates" "NM_FOR_TARGET=/usr/bin/nm" "OBJDUMP_FOR_TARGET=/usr/bin/objdump" "RANLIB_FOR_TARGET=/usr/bin/ranlib -c" "STRIP_FOR_TARGET=/usr/bin/strip" "WINDRES_FOR_TARGET=windres" "WINDMC_FOR_TARGET=windmc" "BUILD_CONFIG=bootstrap-debug" "`echo 'LANGUAGES=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "LEAN=false" "STAGE1_CFLAGS=-g -fkeep-inline-functions" "STAGE1_CXXFLAGS=-pipe -O2" "STAGE1_TFLAGS=" "STAGE2_CFLAGS=-g -O2 -fomit-frame-pointer -gtoggle" "STAGE2_CXXFLAGS=-pipe -O2" "STAGE2_TFLAGS=" "STAGE3_CFLAGS=-g -O2 -fomit-frame-pointer" "STAGE3_CXXFLAGS=-pipe -O2" "STAGE3_TFLAGS=" "STAGE4_CFLAGS=-g -O2 -fomit-frame-pointer" "STAGE4_CXXFLAGS=-pipe -O2" "STAGE4_TFLAGS=" "STAGEprofile_CFLAGS=-g -O2 -fomit-frame-pointer -gtoggle -fprofile-generate" "STAGEprofile_CXXFLAGS=-pipe -O2" "STAGEprofile_TFLAGS=" "STAGEfeedback_CFLAGS=-g -O2 -fomit-frame-pointer -fprofile-use" "STAGEfeedback_CXXFLAGS=-pipe -O2" "STAGEfeedback_TFLAGS=" "TFLAGS=" "CONFIG_SHELL=/bin/sh" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000" compare :info:build rm -f stage_current :info:build Comparing stages 2 and 3 :info:build warning: gcc/cc1-checksum.o differs :info:build warning: gcc/cc1obj-checksum.o differs :info:build warning: gcc/cc1objplus-checksum.o differs :info:build warning: gcc/cc1plus-checksum.o differs :info:build Bootstrap comparison failure! :info:build gcc/real.o differs :info:build gcc/tree-ssa-live.o differs :info:build gcc/tree-vectorizer.o differs :info:build gcc/varasm.o differs :info:build make[2]: *** [compare] Error 1 :info:build make[1]: *** [stage3-bubble] Error 2 :info:build make: *** [bootstrap] Error 2 :info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc45/work/build" && /usr/bin/make -j2 bootstrap " returned error 2 :error:build Target org.macports.build returned: shell command failed :debug:build Backtrace: shell command failed while executing "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" :info:build Warning: the following items did not execute (for gcc45): org.macports.activate org.macports.build org.macports.destroot org.macports.install :notice:build Log for gcc45 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc45/main.log
Attachments (1)
Change History (16)
comment:1 Changed 14 years ago by jmroot (Joshua Root)
Cc: | jameskyle@… devans@… added; mww@… macports-tickets@… removed |
---|---|
Keywords: | tiger added; gcc45 10.4.11 removed |
Owner: | changed from macports-tickets@… to mww@… |
Summary: | gimp update does not work on 10.4.11/MacBook-Pro, due to gcc45 installing crash → gcc45 fails to build on 10.4 |
comment:2 Changed 14 years ago by jmroot (Joshua Root)
comment:3 Changed 14 years ago by dbevans (David B. Evans)
to bypass this problem and proceed with the build of gimp2, you can use
sudo port install atlas +gcc44 sudo port install gimp2
this works for me on 10.4.11 ppc.
comment:4 Changed 14 years ago by dduca@…
It worked also for me on 10.4.11/MacBook-Pro. Many thanks, DD.
comment:7 Changed 14 years ago by vinc17@…
Upstream bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45248
Apparently http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45248#c9 gives a workaround for the build failure. Not tried.
comment:8 Changed 14 years ago by dbevans (David B. Evans)
Cc: | devans@… removed |
---|
comment:10 Changed 14 years ago by jpmasseria@…
Sorry for my ignorance on this, but how do we either apply this patch or use port to "pass --with-dwarf2" when building gcc45?
Currently on darwin8 users have to explicitly invoke --with-dwarf2 since it's Xcode defaults to stabs. The attached patch passes --with-dwarf2 on darwin8 in order to assure it builds the standard dwarf2 support. Okay for gcc trunk and gcc 4.5.2? Jack 2010-08-12 Jack Howarth <howarth@bromo.med.uc.edu> * configure.ac: Pass --with-dwarf2 on darwin8. * configure: Regenerate. Index: configure.ac =================================================================== --- configure.ac (revision 163079) +++ configure.ac (working copy) @@ -2506,6 +2506,16 @@ esac fi +# Default to using --with-dwarf2 on certain targets +if test x${with_dwarf2} = x ; then + case "${target}" in + *-*-darwin8*) + with_dwarf2=yes; + extra_host_args="${extra_host_args} --with-dwarf2" + ;; + esac +fi + # hpux11 in 64bit mode has libraries in a weird place. Arrange to find # them automatically. case "${host}" in
Changed 14 years ago by wrigleyster@…
Attachment: | Portfile-dwarf2.diff added |
---|
Portfile patch to pass --with-dwarf2 on darwin8/Tiger
comment:11 Changed 14 years ago by wrigleyster@…
building:
cd curl -k 'https://svn.macports.org/raw-attachment/ticket/26378/Portfile-dwarf2.diff' > 'Portfile-dwarf2.diff' sudo bash -ls port fetch gcc45 cd $(port dir gcc45) patch -p0 <~/Portfile-dwarf2.diff port install gcc45
...makes my Tiger roar with happiness :)
Cheers!
P.S. I hope it was not presumptuous of me to increment the revision number in the patch. I had a look about, but was unable to find info on the general practise. So I modelled it after a the patch in 24662.
comment:14 Changed 14 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | new → closed |
r75018 - a rev bump is not needed because nobody who already successfully installed the port needs to upgrade.
comment:15 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
FYI, I can confirm this allows me to install gcc45 @4.5.2 on Tiger on both PPC and Intel.
Atlas shouldn't be requiring gcc45 in the first place, but that's #25081.