Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to emerge glibc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
LilyIsTrans
n00b
n00b


Joined: 25 Sep 2024
Posts: 3

PostPosted: Fri Nov 08, 2024 10:17 pm    Post subject: Unable to emerge glibc Reply with quote

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?
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9822
Location: almost Mile High in the USA

PostPosted: Sat Nov 09, 2024 1:46 am    Post subject: Reply with quote

- Your links are broken
- full emerge --info and package you're trying to build is needed.
- if you can remove -Werror that would be good.
- i686 base does not support SSE and disables it. Using a -march that supports SSE would be nice...
- full emerge --info and package you're trying to build is needed.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum