View previous topic :: View next topic |
Author |
Message |
sancho n00b
Joined: 14 Apr 2003 Posts: 19
|
Posted: Thu Mar 04, 2004 2:04 pm Post subject: can't emerge gcc with multilib |
|
|
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 |
|
|
J.M.I.T. Guru
Joined: 15 Jan 2003 Posts: 481 Location: München, Germany
|
Posted: Thu Mar 04, 2004 3:02 pm Post subject: |
|
|
try to upgrade to 3.3.3 first (without multilib) and recompile gcc 3.3.3 again with multilib enabled _________________ Get a life...
Use at own risk... |
|
Back to top |
|
|
sancho n00b
Joined: 14 Apr 2003 Posts: 19
|
Posted: Thu Mar 04, 2004 3:28 pm Post subject: |
|
|
thanks JMIT,
i'll try that now. |
|
Back to top |
|
|
sancho n00b
Joined: 14 Apr 2003 Posts: 19
|
Posted: Thu Mar 04, 2004 4:29 pm Post subject: |
|
|
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 |
|
|
wolf@zh n00b
Joined: 14 Feb 2003 Posts: 72
|
Posted: Thu Mar 04, 2004 5:28 pm Post subject: |
|
|
cflags? |
|
Back to top |
|
|
frank0 n00b
Joined: 26 Feb 2004 Posts: 10 Location: Kaiserslautern, Germany
|
Posted: Thu Mar 04, 2004 5:29 pm Post subject: |
|
|
Check if you have java in your USE-flags and if you do remove it. That solved the problem for me. |
|
Back to top |
|
|
sancho n00b
Joined: 14 Apr 2003 Posts: 19
|
Posted: Thu Mar 04, 2004 9:25 pm Post subject: |
|
|
thanks frank0,
adding -java to USE appears to have made gcc compile properly. |
|
Back to top |
|
|
|