Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc with USE=-multilib
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
Christian99
Veteran
Veteran


Joined: 28 May 2009
Posts: 1160

PostPosted: Tue Dec 12, 2017 11:54 am    Post subject: gcc with USE=-multilib Reply with quote

since recently, multilib seems to be use masked for gcc.
This makes it impossible to emerge sandbox when ABI_X86=32:
Code:
...
Configure:3634: checking whether the C compiler works
configure:3656: x86_64-pc-linux-gnu-gcc -m32 -O2 -pipe -march=native  -Wl,-O1 -Wl,--as-needed conftest.c  >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/libgcc.a when searching for -lgcc
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgcc
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/libgcc_s.so.1 when searching for libgcc_s.so.1
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find libgcc_s.so.1
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/libgcc.a when searching for -lgcc
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgcc
collect2: error: ld returned 1 exit status
...

(from config.log)
also other packages are affected with ABI_X86=32

I couldn't find something in forum or gentoo bugs.
is this usemask going to be removed again?
or am i required to unmask it manually? Does this have any other consequences (i.e. was it masked for a special reason)?

affects both gcc-6.4, gcc-7.2 / sanbox amd64 and ~amd64

general system is ~amd64
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 18318
Location: here

PostPosted: Tue Dec 12, 2017 3:01 pm    Post subject: Re: gcc with USE=-multilib Reply with quote

Christian99 wrote:
since recently, multilib seems to be use masked for gcc.

Sorry but I don't understand, multilib use flag is forced in a multilib profile not masked
Code:
$ emerge -pvq gcc
[ebuild   R   ] sys-devel/gcc-6.4.0  USE="cxx fortran (multilib) nls nptl openmp pch (pie) sanitize ssp vtv (-altivec) (-awt) -cilk -debug -doc (-fixed-point) (-gcj) -go -graphite (-hardened) (-jit) (-libssp) -mpx -objc -objc++ -objc-gc -pgo -regression-test -vanilla"

/usr/portage/profiles/features/multilib/package.use.force:
# Copyright 2004-2014 Gentoo Foundation.
# Distributed under the terms of the GNU General Public License, v2

# These packages must have multilib turned on in order to work sanely.
sys-apps/sandbox multilib
sys-devel/gcc multilib
sys-libs/glibc multilib

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Christian99
Veteran
Veteran


Joined: 28 May 2009
Posts: 1160

PostPosted: Tue Dec 12, 2017 3:37 pm    Post subject: Reply with quote

Ok, thanks for the pointer. For me it is:
Code:
emerge -pvq gcc
[ebuild   R   ] sys-devel/gcc-7.2.0  USE="cxx fortran graphite mpx nls nptl openmp pch sanitize ssp vtv (-altivec) (-awt) -cilk -debug -doc (-fixed-point) (-gcj) -go (-hardened) (-jit) (-libssp) (-multilib) -objc -objc++ -objc-gc -pgo (-pie) -regression-test -vanilla"


I'm using customized profile from own overlay. I guess this is messing things up. Now I know where to look!
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