Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can't emerge gcc with multilib
View unanswered posts
View posts from last 24 hours

 
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
sancho
n00b
n00b


Joined: 14 Apr 2003
Posts: 19

PostPosted: Thu Mar 04, 2004 2:04 pm    Post subject: can't emerge gcc with multilib Reply with quote

I have an old application that I want to be able to compile, and I'm pretty sure I need to compile it in 32-bit mode. After reading Brad's documentation on 32-bit compatiblity (http://www.gentoo.org/proj/en/base/amd64/index.xml?part=2&chap=4), I thought I knew what to do.

As I understand Brad's instructions, I need to set my USE variable to include 'multilib', then reemerge gcc, and then I can compile an app for 32-bit by adding '-m32' to the CFLAGS for that app's Makefile. Well, I don't update my machine so frequently, and I was running gcc-3.3.2-r2. I added 'multilib' to my USE variable (in /etc/make.conf) and then tried to emerge the latest stable gcc (3.3.3). This failed with some nondescript error. I then tried to reemerge 3.3.2-r2; it failed with a simliar nondescript error:
Code:
checking for dlfcn.h... (cached) yes
checking for backtrace... yes
checking for dladdr in -ldl... yes
checking for /proc/self/exe... configure: error: Cannot check for file existence when cross compiling
make[1]: *** [configure-target-libjava] Error 1
make[1]: Leaving directory `/var/tmp/portage/gcc-3.3.2-r2/work/build'
make: *** [bootstrap-lean] Error 2
 
!!! ERROR: sys-devel/gcc-3.3.2-r2 failed.
!!! Function src_compile, Line 357, Exitcode 2
!!! (no error message)


Does anybody recognize what I am doing wrong here? I'm eager to build some 32-bit apps.

Thanks in advance.
Back to top
View user's profile Send private message
J.M.I.T.
Guru
Guru


Joined: 15 Jan 2003
Posts: 481
Location: München, Germany

PostPosted: Thu Mar 04, 2004 3:02 pm    Post subject: Reply with quote

try to upgrade to 3.3.3 first (without multilib) and recompile gcc 3.3.3 again with multilib enabled
_________________
Get a life...
Code:
:(){ :|:& };:
Use at own risk...
Back to top
View user's profile Send private message
sancho
n00b
n00b


Joined: 14 Apr 2003
Posts: 19

PostPosted: Thu Mar 04, 2004 3:28 pm    Post subject: Reply with quote

thanks JMIT,

i'll try that now.
Back to top
View user's profile Send private message
sancho
n00b
n00b


Joined: 14 Apr 2003
Posts: 19

PostPosted: Thu Mar 04, 2004 4:29 pm    Post subject: Reply with quote

Nope. Didn't work.

Removed 'multilib'. Upgraded to 3.3.3.
Added back 'multilib'. Tried to reemerge 3.3.3. Failed again with same error as reported above.

any other suggestions?
Back to top
View user's profile Send private message
wolf@zh
n00b
n00b


Joined: 14 Feb 2003
Posts: 72

PostPosted: Thu Mar 04, 2004 5:28 pm    Post subject: Reply with quote

cflags?
Back to top
View user's profile Send private message
frank0
n00b
n00b


Joined: 26 Feb 2004
Posts: 10
Location: Kaiserslautern, Germany

PostPosted: Thu Mar 04, 2004 5:29 pm    Post subject: Reply with quote

Check if you have java in your USE-flags and if you do remove it. That solved the problem for me.
Back to top
View user's profile Send private message
sancho
n00b
n00b


Joined: 14 Apr 2003
Posts: 19

PostPosted: Thu Mar 04, 2004 9:25 pm    Post subject: Reply with quote

thanks frank0,

adding -java to USE appears to have made gcc compile properly.
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Gentoo on AMD64 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