Opened 4 years ago
Last modified 6 months ago
#61883 new defect
libgcc7 @7.5.0: build failure on macOS 11
Reported by: | YuncongMa (Yuncong Ma) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.4 |
Keywords: | bigsur | Cc: | wealthychef1, ShadSterling (Shad Sterling) |
Port: | libgcc7 |
Description (last modified by kencu (Ken))
Hi! I successfully installed MacPorts 2.6.4 in my Mac Pro 2019 with macOS Big Sur 11.1. I got errors when I tried "sudo port install gcc6". The error messages are as follows:
---> Fetching archive for libgcc7 Warning: Your DNS servers incorrectly claim to know the address of nonexistent hosts. This may cause checksum mismatches for some ports. See this page for more information: <https://trac.macports.org/wiki/MisbehavingServers> ---> Attempting to fetch libgcc7-7.5.0_0.darwin_20.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/libgcc7 ---> Attempting to fetch libgcc7-7.5.0_0.darwin_20.x86_64.tbz2 from https://mse.uk.packages.macports.org/libgcc7 ---> Attempting to fetch libgcc7-7.5.0_0.darwin_20.x86_64.tbz2 from https://lil.fr.packages.macports.org/libgcc7 ---> Building libgcc7 Error: Failed to build libgcc7: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/main.log for details. Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port gcc6 failed
Attachments (2)
Change History (18)
comment:1 Changed 4 years ago by kencu (Ken)
comment:2 Changed 4 years ago by kencu (Ken)
Keywords: | gcc6 macOS big sur 11.1 removed |
---|---|
Port: | libgcc7 added |
comment:3 Changed 4 years ago by kencu (Ken)
Description: | modified (diff) |
---|
comment:4 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | bigsur added |
---|---|
Summary: | Unable to install gcc6 in macOS Big Sur 11.1 → libgcc7: build failure |
Please attach the main.log file so that we can see what went wrong.
comment:5 Changed 4 years ago by jboydon (John Boydon)
I have got same error:
:info:build libtool: link: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_p orts_lang_gcc7/libgcc7/work/build/./gcc/xgcc -shared-libgcc -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macpor ts.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/work/build/./gcc -nostdinc++ -L/opt/local/var/macports/build/_opt_local_var_mac ports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/work/build/x86_64-apple-darwin20/libstdc++-v3/src -L/ opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/work/b uild/x86_64-apple-darwin20/libstdc++-v3/src/.libs -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/work/build/x86_64-apple-darwin20/libstdc++-v3/libsupc++/.libs -B/opt/local/x86_64-apple-darwin20/bin/ -B/opt/local/x86_64-apple-darwin20/lib/ -isystem /opt/local/x86_64-apple-darwin20/include -isystem /opt/local/x86_64-apple-darwin20/sys-include -dynamiclib -o .libs/libstdc++.6.dylib .libs/libstdc++.6.dylib-master.o -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/work/build/x86_64-apple-darwin20/libstdc++-v3/libsupc++/.libs -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/work/build/x86_64-apple-darwin20/libstdc++-v3/src -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/work/build/x86_64-apple-darwin20/libstdc++-v3/src/.libs -lm -Wl,-exported_symbols_list -Wl,libstdc++-symbols.explist -install_name /opt/local/lib/libgcc/libstdc++.6.dylib -compatibility_version 7 -current_version 7.24 :info:build xgcc: warning: couldn't understand version 11.1 :info:build ld: library not found for -lgcc_s.10.4 :info:build collect2: error: ld returned 1 exit status :info:build make[6]: *** [libstdc++.la] Error 1
Full log attached.
Changed 4 years ago by clegra
Attachment: | main.log.zip added |
---|
build error libgcc7 on MacOS Big Sur (~60 MB, 1.7 MB zipped)
comment:6 Changed 4 years ago by clegra
I seem to experience the same build error of libgcc7. I followed the suggestion by Ken above to use gcc10 instead, of which installation went fine. However, although I first uninstalled all versions of libgcc7 beforehand, the libgcc7 build error resurfaced again during a routine "port upgrade outdated".
Above I have added a zipped version of the logfile for this build error.
Many thanks for all help and comments. I appreciate that very much.
---> Computing dependencies for libgcc7 ---> Fetching archive for libgcc7 ---> Attempting to fetch libgcc7-7.5.0_0.darwin_20.x86_64.tbz2 from http://fco.it.packages.macports.org/libgcc7 ---> Attempting to fetch libgcc7-7.5.0_0.darwin_20.x86_64.tbz2 from https://lil.fr.packages.macports.org/libgcc7 ---> Attempting to fetch libgcc7-7.5.0_0.darwin_20.x86_64.tbz2 from https://mse.uk.packages.macports.org/libgcc7 ---> Fetching distfiles for libgcc7 ---> Verifying checksums for libgcc7 ---> Extracting libgcc7 ---> Applying patches to libgcc7 ---> Configuring libgcc7 ---> Building libgcc7 Error: Failed to build libgcc7: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc7/libgcc7/main.log for details. Error: Problem while installing libgcc7
comment:7 Changed 4 years ago by jmroot (Joshua Root)
Summary: | libgcc7: build failure → libgcc7 @7.5.0: build failure on macOS 11 |
---|
comment:8 Changed 4 years ago by wealthychef1
I also am unable to build pdftk due to this bug. See bug #62564.
comment:9 Changed 4 years ago by wealthychef1
Cc: | wealthychef1 added |
---|
comment:10 Changed 4 years ago by wealthychef1
Cc: | wealthychef1 removed |
---|
comment:11 Changed 4 years ago by wealthychef1
Cc: | wealthychef1 added |
---|
comment:12 Changed 4 years ago by ShadSterling (Shad Sterling)
Cc: | ShadSterling added |
---|
comment:13 follow-up: 14 Changed 4 years ago by kencu (Ken)
you should be using pdftk-java, not pdftk, on all newer systems.
We'll have to adjust the blockers and warnings so that happens.
gccj is not likely going to be made to work on BigSur; upstream gcc dropped it years ago.
comment:14 Changed 4 years ago by wealthychef1
Thanks for the information! Yes, I agree that if the port is broken it should not be advertised as available. But when I posted this as a bug in pdftk it was called a duplicate. Haha oh well. I do appreciate the pointer.
Replying to kencu:
you should be using pdftk-java, not pdftk, on all newer systems.
We'll have to adjust the blockers and warnings so that happens.
gccj is not likely going to be made to work on BigSur; upstream gcc dropped it years ago.
comment:15 Changed 4 years ago by ken-cunningham-webuse
comment:16 Changed 4 years ago by wealthychef1
Thanks for both marking that obsolete (I don't know how to suggest that) and also for suggesting pdftk-java, which works fine on Big Sur.
Welcome!
Regarding your connection issue, try opening this URL in a browser and see what happens <https://ywg.ca.packages.macports.org/mirror/macports/packages/libgcc7/>
If that works fine, try downloading a file from that url with curl and see what what happens
The full details on how to debug this are here wiki:MisbehavingServers.
FYI -- gcc7/libgcc7 is quite old, and may not work / be able to be made to work on BigSur.
The current gcc flavour for you would be gcc10 -- will that work for you?