Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#49786 closed defect (fixed)

Issue installing libgcc on elcaptain

Reported by: Baaaaam (Mouginot Baptiste) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: p.rousset@…, beany_kelly@…, 984065175@…, jeremyhu (Jeremy Huddleston Sequoia)
Port: libgcc

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I try to install libgcc on el captain... and I got :

Error: org.macports.build for port libgcc returned: command execution failed
Please see the log file for port libgcc for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc5/libgcc/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port libgcc failed

Attachments (6)

main.log (10.0 MB) - added by Baaaaam (Mouginot Baptiste) 8 years ago.
config.log (31.6 KB) - added by Baaaaam (Mouginot Baptiste) 8 years ago.
main.2.log (10.0 MB) - added by p.rousset@… 8 years ago.
config.2.log (15.8 KB) - added by 984065175@… 8 years ago.
config.3.log (15.6 KB) - added by Baaaaam (Mouginot Baptiste) 8 years ago.
correct config.log
libgcc_failure_BK.log (9.7 MB) - added by beany_kelly@… 8 years ago.
My failing installation log.

Change History (22)

Changed 8 years ago by Baaaaam (Mouginot Baptiste)

Attachment: main.log added

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

Description: modified (diff)
Port: libgcc added

The main.log says:

: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_gcc5/libgcc/work/build/x86_64-apple-darwin15/libgcc':
:info:build configure: error: cannot compute suffix of object files: cannot compile
:info:build See `config.log' for more details.
:info:build make[2]: *** [configure-stage1-target-libgcc] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc5/libgcc/work/build'

Please attach the config.log, which might be in one of the two directories mentioned.

Changed 8 years ago by Baaaaam (Mouginot Baptiste)

Attachment: config.log added

Changed 8 years ago by p.rousset@…

Attachment: main.2.log added

comment:2 Changed 8 years ago by p.rousset@…

Same issue here with el captain...

comment:3 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: p.rousset@… added

@mouginot.baptiste, the config.log you attached does not appear to be the correct one. The gcc build creates multiple config.log files. Look for the one that contains the string "cannot compute suffix of object files".

@p.rousset: please attach your config.log file as well.

Changed 8 years ago by 984065175@…

Attachment: config.2.log added

comment:4 in reply to:  2 Changed 8 years ago by 984065175@…

Replying to p.rousset@…:

Same issue here with el captain...

Me too

Changed 8 years ago by Baaaaam (Mouginot Baptiste)

Attachment: config.3.log added

correct config.log

comment:5 Changed 8 years ago by Baaaaam (Mouginot Baptiste)

@ryandesign : I upload the correct one... sorry about the first one...

comment:6 Changed 8 years ago by xun911@…

I ran into the same problem then found out it's caused by my firewall app. So make sure you disable any outbound firewall such as Little Snitch running in the background.

comment:7 Changed 8 years ago by beany_kelly@…

I'm having problems installing libgcc on El Capitan as well. My error log looks different, though. It's complaining about an illegal instruction in libgcc2.c:

:info:build     if (isnan (c)) c = COPYSIGN (0, c);

Possibly there's a header it can't locate that defines the COPYSIGN macro?

ETA: it can't be the macro, because it's defined in the same source file, and used without complaint in the two lines just before the failing one. Also, "isnan" is used in a conditional that governs the code block this sits in, so that can't be the issue, either.

Last edited 8 years ago by beany_kelly@… (previous) (diff)

Changed 8 years ago by beany_kelly@…

Attachment: libgcc_failure_BK.log added

My failing installation log.

comment:8 Changed 8 years ago by beany_kelly@…

Cc: beany_kelly@… added

Cc Me!

comment:9 Changed 8 years ago by beany_kelly@…

Follow-up: apparently my problem was fixed by a from-source reinstall of the "gmp" package (following advice from a different ticket: #41364)

Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:10 in reply to:  5 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: 984065175@… jeremyhu@… added

Replying to 984065175@…:

Me too

Replying to mouginot.baptiste@…:

@ryandesign : I upload the correct one... sorry about the first one...

Both of these config.logs say the problem is:

/opt/local/bin/as: assembler (/opt/local/bin/clang) not installed

Jeremy, any idea what's going on here? Why is /opt/local/bin/as expecting /opt/local/bin/clang to exist?

comment:11 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Cc Me!

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

cctools' as driver can be configured to use clang as the assembler.

I disabled that in r142831 as it's not quite ready for our use. If you have the older revision, it will work if you port select clang to something other than none.

Last edited 8 years ago by jeremyhu (Jeremy Huddleston Sequoia) (previous) (diff)

comment:13 Changed 8 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed

comment:14 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… removed

Cc Me!

comment:15 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Cc Me!

comment:16 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… removed

Cc Me!

Note: See TracTickets for help on using tickets.