Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926944 - sys-devel/gcc-13.2.1_p20240210 Fails to Compile on llvm/musl Profile
Summary: sys-devel/gcc-13.2.1_p20240210 Fails to Compile on llvm/musl Profile
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-13 18:19 UTC by Jake Winters
Modified: 2024-03-17 16:59 UTC (History)
1 user (show)

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


Attachments
build.log (build.log.xz,88.74 KB, application/xz)
2024-03-13 18:19 UTC, Jake Winters
Details
config.log (config.log.xz,3.42 KB, application/x-xz)
2024-03-13 23:32 UTC, Jake Winters
Details
emerge --info (emerge-info.txt.xz,5.97 KB, application/x-xz)
2024-03-13 23:38 UTC, Jake Winters
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jake Winters 2024-03-13 18:19:32 UTC
Created attachment 887520 [details]
build.log

I have 2 systems which are running Gentoo llvm/musl profile and both fail to compile GCC with the error found in the attached build.log.

net-libs/nodejs seems to have a hard-dependency on GCC, even on the LLVM profiles, which is the reason for installing this, but cannot do so.
Comment 1 Mike Gilbert gentoo-dev 2024-03-13 21:02:06 UTC
Please provide emerge --info.
Comment 2 Mike Gilbert gentoo-dev 2024-03-13 21:04:26 UTC
checking for suffix of object files... configure: error: in `/var/tmp/portage/sys-devel/gcc-13.2.1_p20240210/work/build/x86_64-gentoo-linux-musl/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details

Please attach /var/tmp/portage/sys-devel/gcc-13.2.1_p20240210/work/build/x86_64-gentoo-linux-musl/libgcc/config.log.
Comment 3 Jake Winters 2024-03-13 23:32:51 UTC
Created attachment 887561 [details]
config.log
Comment 4 Jake Winters 2024-03-13 23:38:28 UTC
Created attachment 887563 [details]
emerge --info
Comment 5 Mike Gilbert gentoo-dev 2024-03-15 14:24:17 UTC
From config.log:

configure:3814: /var/tmp/portage/sys-devel/gcc-13.2.1_p20240210/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-13.2.1_p20240210/work/build/./gcc/ -B/usr/x86_64-gentoo-linux-musl/bin/ -B/usr/x86_64-gentoo-linux-musl/lib/ -isystem /usr/x86_64-gentoo-linux-musl/include -isystem /usr/x86_64-gentoo-linux-musl/sys-include   -fno-checking -c -g -ggdb -march=znver3 -mtune=znver3 -pipe -O2  conftest.c >&5
clang: error: unsupported option '--64'
clang: error: no input files
configure:3818: $? = 2
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3832: error: in `/var/tmp/portage/sys-devel/gcc-13.2.1_p20240210/work/build/x86_64-gentoo-linux-musl/libgcc':
configure:3834: error: cannot compute suffix of object files: cannot compile
Comment 6 Mike Gilbert gentoo-dev 2024-03-15 14:25:05 UTC
It looks like xgcc is calling clang --64? That seems weird.
Comment 7 Jake Winters 2024-03-17 16:59:48 UTC
(In reply to Mike Gilbert from comment #6)
> It looks like xgcc is calling clang --64? That seems weird.

Is there a way I can prevent this? It's not in my custom flags.