Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#45954 closed defect (fixed)

libgcc @4.9.2_0: stage 1 configure fails with "cc1: internal compiler error: in init_reg_sets, at reginfo.c:178"

Reported by: Schamschula (Marius Schamschula) Owned by: larryv (Lawrence Velázquez)
Priority: Normal Milestone:
Component: ports Version: 2.3.2
Keywords: ppc leopard Cc: mww@…, dershow
Port: libgcc

Description

The update to libgcc 4.9.2, has broken the build under OS X 10.5.9. log is attached.

Attachments (4)

main.log (12.2 KB) - added by Schamschula (Marius Schamschula) 10 years ago.
config.log (15.8 KB) - added by Schamschula (Marius Schamschula) 10 years ago.
Portfile-libgcc.diff (610 bytes) - added by Schamschula (Marius Schamschula) 10 years ago.
patch-gcc-config-rs6000-darwin.h.diff (784 bytes) - added by Schamschula (Marius Schamschula) 10 years ago.

Download all attachments as: .zip

Change History (17)

Changed 10 years ago by Schamschula (Marius Schamschula)

Attachment: main.log added

comment:1 Changed 10 years ago by mf2k (Frank Schima)

Cc: mww@… removed
Owner: changed from macports-tickets@… to mww@…

comment:2 Changed 10 years ago by larryv (Lawrence Velázquez)

Cc: mww@… added
Owner: changed from mww@… to larryv@…
Status: newassigned
:info:build checking for suffix of object files... configure: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc49/libgcc/work/build/ppc-apple-darwin9/libgcc':
:info:build configure: error: cannot compute suffix of object files: cannot compile
:info:build See `config.log' for more details.

Well that’s weird. Can you upload config.log?

comment:3 Changed 10 years ago by larryv (Lawrence Velázquez)

In the future, please comment after uploading files; our Trac doesn’t send email notifications for uploads.

That log does not exhibit any errors. Clean libgcc and try upgrading again, and attach the new main.log and config.log if it fails. (Make sure you upload the correct config.log; you probably want $(port work libgcc)/build/ppc-apple-darwin9/libgcc/config.log or something like that.)

Changed 10 years ago by Schamschula (Marius Schamschula)

Attachment: config.log added

comment:4 in reply to:  3 ; Changed 10 years ago by Schamschula (Marius Schamschula)

Replying to larryv@…:

In the future, please comment after uploading files; our Trac doesn’t send email notifications for uploads.

That log does not exhibit any errors. Clean libgcc and try upgrading again, and attach the new main.log and config.log if it fails. (Make sure you upload the correct config.log; you probably want $(port work libgcc)/build/ppc-apple-darwin9/libgcc/config.log or something like that.)

Sorry, Larry, made a mental note about not adding a comment when attaching files.

To make sure I rebuilt after a port clean libgcc. Unfortunately with the same result.

I had forgotten that libgcc/gcc generate multiple config.log files, so I accidentally attached the top level file, which did not contain any useful info. I've replaced it with the file you suggested.

comment:5 Changed 10 years ago by josephsacco

Same problem seen when building on a G4 PPC running 10.5.8.

-Joseph

comment:6 in reply to:  4 ; Changed 10 years ago by larryv (Lawrence Velázquez)

configure:3580: checking for suffix of object files
configure:3602: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc49/libgcc/work/build/./gcc/xgcc -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc49/libgcc/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    -c -g -O2 -pipe -Os  conftest.c >&5
cc1: internal compiler error: in init_reg_sets, at reginfo.c:178
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://trac.macports.org/newticket> for instructions.
configure:3606: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }

Looks like a problem for upstream. To make sure, could someone try the build after disabling macosx-version-min.patch?

comment:7 in reply to:  6 ; Changed 10 years ago by Schamschula (Marius Schamschula)

Replying to larryv@…:

Looks like a problem for upstream. To make sure, could someone try the build after disabling macosx-version-min.patch?

I just tried disabling the macosx-version-min.patch: I get the same error as before.

comment:8 in reply to:  7 Changed 10 years ago by larryv (Lawrence Velázquez)

Keywords: ppc leopard added
Summary: libgcc build failure under 10.5.9libgcc @4.9.2_0: stage 1 configure fails with "cc1: internal compiler error: in init_reg_sets, at reginfo.c:178"

Changed 10 years ago by Schamschula (Marius Schamschula)

Attachment: Portfile-libgcc.diff added

Changed 10 years ago by Schamschula (Marius Schamschula)

comment:9 Changed 10 years ago by Schamschula (Marius Schamschula)

A patch has been made upstream. On my G5 iMac it successfully built both libgcc and gcc49 @4.9.2.

comment:10 in reply to:  9 ; Changed 10 years ago by larryv (Lawrence Velázquez)

Do you see the issue with gcc48?

comment:11 in reply to:  10 Changed 10 years ago by Schamschula (Marius Schamschula)

Replying to larryv@…:

Do you see the issue with gcc48?

Larry,

Overnight my G5 rebuilt gcc48 to @4.8.3_2 without any problems.

comment:12 Changed 10 years ago by larryv (Lawrence Velázquez)

Resolution: fixed
Status: assignedclosed

comment:13 Changed 10 years ago by dershow

Cc: dersh@… added

Cc Me!

Note: See TracTickets for help on using tickets.