Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#34329 closed defect (fixed)

gcc43: ld: in src/powerpc/.libs/darwin.o, unsupported encoding in FDE

Reported by: trog24 (Frank J. R. Hanstick) Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: tiger leopard Cc: ryandesign (Ryan Carsten Schmidt), jeremyhu (Jeremy Huddleston Sequoia), ballapete (Peter "Pete" Dyballa)
Port: gcc43

Description

The following error results in attempting to upgrade gcc43:

:info:build libtool: link: creating libgfortran.la
:info:build libtool: link: ( cd ".libs" && rm -f "libgfortran.la" && ln -s "../libgfortran.la" "libgfortran.la" )
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc43/gcc43/work/build/ppc-apple-darwin9/libgfortran'
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc43/gcc43/work/build/ppc-apple-darwin9/libgfortran'
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc43/gcc43/work/build'
:info:build make: *** [bootstrap] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc43/gcc43/work/build'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc43/gcc43/work/build" && /usr/bin/make -j2 -w bootstrap BOOT_CFLAGS="-O2 -g -D_FORTIFY_SOURCE=0" STAGE1_CFLAGS="-O2 -fkeep-inline-functions -D_FORTIFY_SOURCE=0 -std=gnu89" " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    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 gcc43): org.macports.install org.macports.build org.macports.destroot
:notice:build Log for gcc43 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc43/gcc43/main.log

The error is preceded by several:

:info:build /opt/local/bin/ranlib: file: .libs/libgfortran.a(_mod_r10.o) has no symbols

which will be detailed in the attached log.

The platform is a dual 1.73 GHz PowerPC G4 running MacOS 10.5.8.

Attachments (1)

main.log (4.4 MB) - added by trog24 (Frank J. R. Hanstick) 12 years ago.
build failure log file

Change History (9)

Changed 12 years ago by trog24 (Frank J. R. Hanstick)

Attachment: main.log added

build failure log file

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… jeremyhu@… added
Owner: changed from macports-tickets@… to mww@…
Port: gcc43 added; gcc43. removed
Summary: gcc43 fails to upgradegcc43: ld: in src/powerpc/.libs/darwin.o, unsupported encoding in FDE

You'll find that when doing a parallel build, the relevant error is usually the one that precedes the message "Waiting for unfinished jobs....", which might be quite far from the end of the log. In this case:

:info:build libtool: link: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc43/gcc43/work/build/./gcc/xgcc -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc43/gcc43/work/build/./gcc/ -B/opt/local/ppc-apple-darwin9/bin/ -B/opt/local/ppc-apple-darwin9/lib/ -isystem /opt/local/ppc-apple-darwin9/include -isystem /opt/local/ppc-apple-darwin9/sys-include -dynamiclib -Wl,-single_module -Wl,-undefined -Wl,dynamic_lookup -o .libs/libffi.4.dylib  src/.libs/debug.o src/.libs/prep_cif.o src/.libs/types.o src/.libs/raw_api.o src/.libs/java_raw_api.o src/.libs/closures.o src/powerpc/.libs/ffi_darwin.o src/powerpc/.libs/darwin.o src/powerpc/.libs/darwin_closure.o    -install_name  /opt/local/lib/gcc43/libffi.4.dylib -compatibility_version 5 -current_version 5.1
:info:build if /bin/sh ./libtool --tag=CC --mode=compile /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc43/gcc43/work/build/./gcc/xgcc -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc43/gcc43/work/build/./gcc/ -B/opt/local/ppc-apple-darwin9/bin/ -B/opt/local/ppc-apple-darwin9/lib/ -isystem /opt/local/ppc-apple-darwin9/include -isystem /opt/local/ppc-apple-darwin9/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc-4.3.6/libgfortran -I.  -iquote../../../gcc-4.3.6/libgfortran/io -I../../../gcc-4.3.6/libgfortran/../gcc -I../../../gcc-4.3.6/libgfortran/../gcc/config -I../.././gcc -D_GNU_SOURCE  -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -O2 -g -O2   -MT minloc1_8_r10.lo -MD -MP -MF ".deps/minloc1_8_r10.Tpo" -c -o minloc1_8_r10.lo `test -f '../../../gcc-4.3.6/libgfortran/generated/minloc1_8_r10.c' || echo '../../../gcc-4.3.6/libgfortran/'`../../../gcc-4.3.6/libgfortran/generated/minloc1_8_r10.c; \
:info:build 	then mv -f ".deps/minloc1_8_r10.Tpo" ".deps/minloc1_8_r10.Plo"; else rm -f ".deps/minloc1_8_r10.Tpo"; exit 1; fi
:info:build ld: in src/powerpc/.libs/darwin.o, unsupported encoding in FDE
:info:build collect2: ld returned 1 exit status
:info:build make[4]: *** [libffi.la] Error 1
:info:build make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc43/gcc43/work/build/ppc-apple-darwin9/libffi'
:info:build make[3]: *** [all-recursive] Error 1
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc43/gcc43/work/build/ppc-apple-darwin9/libffi'
:info:build make[2]: *** [all] Error 2
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc43/gcc43/work/build/ppc-apple-darwin9/libffi'
:info:build make[1]: *** [all-target-libffi] Error 2
:info:build make[1]: *** Waiting for unfinished jobs....

I see the same on Leopard ppc, but not on Tiger ppc or Snow Leopard x86_64.

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: tiger leopard added

Duplicate #34362 says it also happens on Tiger.

comment:3 Changed 12 years ago by ballapete (Peter "Pete" Dyballa)

Cc: Peter_Dyballa@… added

Cc Me!

comment:4 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Do gcc44, gcc45, gcc46, gcc47, or gcc48 work for you? If so, I'm inclined to close this as wontfix/dontcare/upstream/fixed-in-newer/...

comment:5 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

#21401 may be related...

comment:6 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed

Yep, that was it.

r92784

comment:7 in reply to:  6 Changed 12 years ago by ballapete (Peter "Pete" Dyballa)

Replying to jeremyhu@…:

Yep, that was it.

r92784

Build succeeded!

comment:8 Changed 12 years ago by trog24 (Frank J. R. Hanstick)

Build succeeded here as well. Thank you.

Note: See TracTickets for help on using tickets.