[MacPorts] #67135: libgcc7 fails to build in OSX Tiger
MacPorts
noreply at macports.org
Thu Mar 23 06:35:30 UTC 2023
#67135: libgcc7 fails to build in OSX Tiger
-------------------------+-----------------------
Reporter: SamBushman | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: tiger ppc
Port: libgcc7 |
-------------------------+-----------------------
Comment (by ryandesign):
Replying to [ticket:67135 SamBushman]:
> `:info:build
/opt/local/var/macports/buils/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/work/gcc-7.5.0/gcc
/fold-const.c:6714: error: 'LT_eXPR' was not declared in this scope`
Line 6714 of fold-const.c in gcc 7.5.0 actually mentions `LT_EXPR`, not
`LT_eXPR`:
https://github.com/gcc-mirror/gcc/blob/releases/gcc-7.5.0/gcc/fold-
const.c#L6714
It sounds like a single-bit error has occurred on your computer during the
extraction of the gcc 7.5.0 source code (probably a
[https://en.wikipedia.org/wiki/Soft_error soft error]):
`E` is `0x65` is `0b1100101` \\
`e` is `0x45` is `0b1000101`
Hopefully only one single-bit error has occurred, and you can edit the
fold-const.c file and replace the erroneous `LT_eXPR` on line 6714 with
the correct `LT_EXPR` and then reattempt your port install or upgrade.
Alternatively, you could `sudo port clean libgcc7` and try again and the
same single-bit error probably won't occur again, but this is a large port
that will take hours or days to build on a PowerPC Mac so you may want to
save yourself the time that you've already invested in building the port
to this point and instead fix the offending file and continue the build.
Using [https://en.wikipedia.org/wiki/ECC_memory ECC memory], if your
computer supports it, can correct single-bit errors before they cause such
problems.
--
Ticket URL: <https://trac.macports.org/ticket/67135#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list