Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 920034 - bootstrap-prefix.sh fails in stage3: gcc, ld: library 'mpc' not found
Summary: bootstrap-prefix.sh fails in stage3: gcc, ld: library 'mpc' not found
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: ARM64 OS X
: Normal normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-15 16:08 UTC by Ryan Tsien
Modified: 2023-12-16 14:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
stage3.log (stage3.log.gz,524.26 KB, application/x-gzip)
2023-12-15 16:09 UTC, Ryan Tsien
Details
gcc-13.2-build-logs.tar.xz (gcc-build-logs.tar.xz,176.48 KB, application/x-xz)
2023-12-15 16:13 UTC, Ryan Tsien
Details
gcc-13.2-environment (environment,129.13 KB, text/plain)
2023-12-15 16:13 UTC, Ryan Tsien
Details
gcc-12.2-build-logs.tar.xz (gcc-build-logs.tar.xz,209.10 KB, application/x-xz)
2023-12-15 16:14 UTC, Ryan Tsien
Details
gcc-12.2-environment (environment,129.07 KB, text/plain)
2023-12-15 16:14 UTC, Ryan Tsien
Details
ldwrapper.c.diff (ldwrapper.c.diff,518 bytes, patch)
2023-12-15 22:32 UTC, Ryan Tsien
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Tsien 2023-12-15 16:08:11 UTC
GCC compilation failed with the following error:

ld: warning: ignoring duplicate libraries: '-lgcc', '../libcpp/libcpp.a', '../libdecnumber/libdecnumber.a', 'libcommon.a'
ld: library 'mpc' not found
collect2: error: ld returned 1 exit status

tested with gcc-12.2 and gcc-13.2

macOS Sonoma 14.2 with Xcode 15.0.1

Reproducible: Always
Comment 1 Ryan Tsien 2023-12-15 16:09:59 UTC
Created attachment 879483 [details]
stage3.log
Comment 2 Ryan Tsien 2023-12-15 16:13:12 UTC
Created attachment 879484 [details]
gcc-13.2-build-logs.tar.xz
Comment 3 Ryan Tsien 2023-12-15 16:13:58 UTC
Created attachment 879485 [details]
gcc-13.2-environment
Comment 4 Ryan Tsien 2023-12-15 16:14:25 UTC
Created attachment 879486 [details]
gcc-12.2-build-logs.tar.xz
Comment 5 Ryan Tsien 2023-12-15 16:14:49 UTC
Created attachment 879487 [details]
gcc-12.2-environment
Comment 6 Ryan Tsien 2023-12-15 22:32:07 UTC
Created attachment 879526 [details, diff]
ldwrapper.c.diff

This is the patch to fix this bug!
Comment 7 Fabian Groffen gentoo-dev 2023-12-16 08:15:14 UTC
oh, that's pretty stupid, thanks for the patch!
Comment 8 Fabian Groffen gentoo-dev 2023-12-16 08:20:34 UTC
Thanks, pushed your patch in https://gitweb.gentoo.org/repo/proj/prefix.git/patch/?id=55996b02c62a3f77b97ad2d3e0a0bb5a4604263f
Comment 9 Ryan Tsien 2023-12-16 14:17:40 UTC
Thanks! Could you please also take a look at this bug: https://bugs.gentoo.org/916291#c12

The patch posted below that comment is dirty I think, the proper way should be in the ldwrapper.c either.