LilyIsTrans n00b
Joined: 25 Sep 2024 Posts: 3
|
Posted: Fri Nov 08, 2024 10:17 pm Post subject: Unable to emerge glibc |
|
|
Hi y'all,
Preamble
For a couple days I've been trying to figure out why I can't emerge glibc. I've got the build.log and config.log and such, but I'll also start with a snippet of the config.log that I think is particularly interesting; it shows where the actual error is taking place, and what it is, I just don't know how to fix it:
Prime suspect
config.log snippet:
Code: |
configure:6807: checking for broken __attribute__((alias()))
configure:6823: x86_64-pc-linux-gnu-gcc -m32 -mfpmath=sse -march=i686 -mstackrealign -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-melf_x86_64 -Werror -S conftest.c -o conftest.s 1>&5
cc1: error: SSE instruction set disabled, using 387 arithmetics [-Werror]
cc1: all warnings being treated as errors
configure:6826: $? = 1
configure:6837: result: yes
configure:6840: error: working alias attribute support required
|
This shows it testing for __attribute__((alias())) support by attempting to compile a program (presumably which uses __attribute__((alias())) ) and declaring support not present if gcc throws a warning, which it looks for by using -Werror (presumably so it can just check the status code rather than actually parse gcc's output).
However, the error being thrown has nothing to do with __attribute__(alias())) as far as I can tell; it's about it trying to set the floating point mode to sse while sse is disabled (I suspect by either -m32 or -march=i686). I can't exactly tell why it's deciding to do that though.
make.conf compiler flags:
Code: |
COMMON_FLAGS="-O2 -pipe -march=native"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
LDFLAGS="${LDFLAGS} -fuse-ld=mold"
# Use flags and mirrors
|
and the relevant env file (which I have set up for stuff that won't play nice with mold):
Code: |
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-melf_x86_64"
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="-march=native -O2 -pipe"
|
(Full logs omitted because the forum couldn't handle the post size; if necessary I can make gists of them and post links to those)
Could anyone perhaps point me in the right direction of how I can fix this? |
|