Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#56631 closed defect (worksforme)

Error: Failed to build libgcc: command execution failed on High Sierra

Reported by: DackJempsey Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.5.2
Keywords: Cc:
Port:

Description

I have been trying to install gcc5/6 on my mac for a while now. I keep trying clean and uninstall and I keep getting this:

Error: Failed to build libgcc: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc6/libgcc/main.log for details.

I will include the log so that we can look it over, but I have been through it a couple of times, and couldn't find the problem. I am sure that it has something to do with these warnings it kicks:

Warning: no archive_cxx_stdlib configured for site 'macports_archives' Warning: no archive_delete_la_files configured for site 'macports_archives' Warning: no archive_cxx_stdlib configured for site 'macports_archives' Warning: no archive_delete_la_files configured for site 'macports_archives' Warning: no archive_cxx_stdlib configured for site 'macports_archives' Warning: no archive_delete_la_files configured for site 'macports_archives

I do not have enough knowledge to troubleshoot, and I tried the internet but I found zero results.

Attachments (1)

main.log.gz (603.8 KB) - added by DackJempsey 6 years ago.
log file for the ticket

Download all attachments as: .zip

Change History (5)

Changed 6 years ago by DackJempsey

Attachment: main.log.gz added

log file for the ticket

comment:1 Changed 6 years ago by kencu (Ken)

It doesn't seem as though your ports are up to date. For some reason you're trying to download and install

gcc-6.3.0.tar.bz2

but the current version of libgcc is 7.3.0_1 and the current version of gcc6 is 6.4.0_1, so that file you're trying to install makes not much sense.

go here:

cd /opt/local/var/macports/build

and if you see anything at all in that folder, look at the last part of the name for a clue as to what it is, and

sudo port clean

it.

If there are still things in there after that

sudo rm -rf 

each and every folder you see (carefully!) until that folder is completely and totally empty.

Then

sudo port -v selfupdate

and watch carefully to make sure it says

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated

then run

sudo port -v upgrade outdated

until everything you already have installed is up to date.

Then install gcc7

sudo port -v install gcc7

that will install libgcc for you as well.

If that all goes correctly, then

sudo port -v install gcc6

and then

sudo port -v install gcc5

report back success/failure please.

comment:2 Changed 6 years ago by DackJempsey

Yes! that worked great. I will note that after cleaning the build folder and removing the directories, it still showed things that I cleaned, but I pushed ahead and it worked great, and I was able to compile.

Thanks!

comment:3 Changed 6 years ago by kencu (Ken)

Resolution: worksforme
Status: newclosed

comment:4 Changed 6 years ago by mf2k (Frank Schima)

Keywords: libgcc High Sierra removed
Note: See TracTickets for help on using tickets.