Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on AMD64
  • Search

scripts/bootstrap.sh failed ... plz help

Have an x86-64 problem? Post here.
Locked
Advanced search
36 posts
  • 1
  • 2
  • Next
Author
Message
SiggiS
n00b
n00b
Posts: 36
Joined: Tue May 18, 2004 7:16 am
Location: Germany

scripts/bootstrap.sh failed ... plz help

  • Quote

Post by SiggiS » Fri May 21, 2004 2:23 pm

Hey need some help again :(. here is what I have done:
I boot with the 2004.1CD. Then dl stage1 (2004.0) form one of the gentoo mirrors. My CFLAGS are CFLAGS="-02 -pipe" my USE-Flags are USE="X kde alsa dvdr dvd cdr avi cups icq samba truetype perl python". scripts/bootstrap.sh gives me following error:

/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ldl
collect2:ld returned 1 exit status
make: ***[libsandbos32.so Error 1

Error sys-apps/portage-2.0.50-r6failed
Function src_install line 124 exitcode 2
failed to compile sandbox.

What did I made wrong? Do I have to set ACCEPT_KEYWORDS in the make.conf ? What ist the difference between ~*md64 and amd64?

Thx for your help Marc
Top
cosmicnut
Tux's lil' helper
Tux's lil' helper
Posts: 94
Joined: Mon Apr 26, 2004 8:46 am

  • Quote

Post by cosmicnut » Fri May 21, 2004 2:50 pm

Have you tried running this with the default flags. I found that most of the errors I had during install were caused by bad flags. Did you change any of the CFlags

The use flags really say what big stuff you are using and what big stuff you arn't using.
I would reduce the list to just the CD, DVD lines and possibly the KDE one.

Personally I would go through with everything left as it was (the AMD tarbulls form AMD64 don't really need changing if you aren't trying to do something specific.). If it works, I would then edit the flags with one or two extra options and go again. It takes time but it's less error prone than putting everything in at once, if you don't know 100% what your doing(I certainly didn't).
Top
GuidoJ
Guru
Guru
User avatar
Posts: 444
Joined: Tue Dec 24, 2002 9:54 pm
Location: Netherlands

  • Quote

Post by GuidoJ » Fri May 21, 2004 2:52 pm

Yesterday I made three attempts at installing Gentoo on my new AMD64 box.

The first try failed due to a problem in gcc-3.4.0-r4.
On the second try it was reverted to gcc-3.3.3, but the install failed during emerge system on the infamous seg faults after emerging e2fsprogs.
The third attempts failed with the same error you're having.

AFAICS this error is caused by the latest multilib patch to portage.

I just wish the stable AMD64 tree wouldn't be so unstable...
Last edited by GuidoJ on Fri May 21, 2004 2:54 pm, edited 1 time in total.
Top
SiggiS
n00b
n00b
Posts: 36
Joined: Tue May 18, 2004 7:16 am
Location: Germany

  • Quote

Post by SiggiS » Fri May 21, 2004 2:54 pm

I just reduced the CFLAGS to "-O2" only and the USE-flags to "X kde dvd" but still the same error :(

Greetings Marc
Top
GuidoJ
Guru
Guru
User avatar
Posts: 444
Joined: Tue Dec 24, 2002 9:54 pm
Location: Netherlands

  • Quote

Post by GuidoJ » Fri May 21, 2004 2:56 pm

The portage ebuild overrides the CFLAGS to "-O2 -pipe" anyway. The CFLAGS in make.conf have no effect.
Top
SiggiS
n00b
n00b
Posts: 36
Joined: Tue May 18, 2004 7:16 am
Location: Germany

  • Quote

Post by SiggiS » Fri May 21, 2004 3:05 pm

GuidoJ wrote:The portage ebuild overrides the CFLAGS to "-O2 -pipe" anyway. The CFLAGS in make.conf have no effect.
Okay seems I'm not the only one who has so many problems installing gentoo from stage1. But I'm not already hopeless :). Maybe someone can help us.

Greetings Marc
Top
SiggiS
n00b
n00b
Posts: 36
Joined: Tue May 18, 2004 7:16 am
Location: Germany

  • Quote

Post by SiggiS » Fri May 21, 2004 3:23 pm

@Guido Did you try to emerge gcc3.4 before makeing a bootstrap? I just emerged glibc 2.3.3-r1 without a problem, but when I emerge gcc 3.4.0-r4 the I get an error in the ncurses-5.4-r1 :(

ERROR: sys-libs/ncurses-5.4-r1 failed
Function econf, line 365, exitcode 1
econf failed

Greetings Marc
Top
lexylexy
n00b
n00b
Posts: 1
Joined: Fri May 21, 2004 3:40 pm

  • Quote

Post by lexylexy » Fri May 21, 2004 3:50 pm

GuidoJ wrote:Yesterday I made three attempts at installing Gentoo on my new AMD64 box.

The first try failed due to a problem in gcc-3.4.0-r4.
On the second try it was reverted to gcc-3.3.3, but the install failed during emerge system on the infamous seg faults after emerging e2fsprogs.
The third attempts failed with the same error you're having.

AFAICS this error is caused by the latest multilib patch to portage.

I just wish the stable AMD64 tree wouldn't be so unstable...
I had the same problem today trying to bootstrap a SUN V20Z
(a dual opteron system)

after reading about the new portage snapshot and the multilib issue
I was able to get a workarround by getting the portage-20040512
snapshot and here is the make.conf that makes gettext happy:

CFLAGS="-m64 -O2 -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -frename-registers"
CHOST="x86_64-pc-linux-gnu"
USE="amd64 -multilib"

hope this helps

--alex
Top
SiggiS
n00b
n00b
Posts: 36
Joined: Tue May 18, 2004 7:16 am
Location: Germany

  • Quote

Post by SiggiS » Fri May 21, 2004 4:14 pm

okay I give this tip a chance!

Thx for help

Marc

EDIT1: No luck at all. Same two error!
Top
GuidoJ
Guru
Guru
User avatar
Posts: 444
Joined: Tue Dec 24, 2002 9:54 pm
Location: Netherlands

  • Quote

Post by GuidoJ » Fri May 21, 2004 4:39 pm

SiggiS wrote:@Guido Did you try to emerge gcc3.4 before makeing a bootstrap?
No, I did not, but I'm going to give the installation another go later tonite. I'll keep you posted.
Top
SiggiS
n00b
n00b
Posts: 36
Joined: Tue May 18, 2004 7:16 am
Location: Germany

  • Quote

Post by SiggiS » Fri May 21, 2004 4:45 pm

okay. I dont know what to do anymore. With every new update comes along a new error...

Greetings Marc
Top
motzky
n00b
n00b
Posts: 28
Joined: Fri May 21, 2004 4:57 pm

  • Quote

Post by motzky » Fri May 21, 2004 5:00 pm

I habe the same error and I know what's wrong !

the linker cannot find -ldl because it searches /usr/lib AND NOT /usr/lib64 !!! :wink:
So it skipps all 32bit versions since they are incompatible.

But I don't know how to tell the script to add the 64 suffix to all lib dirs...
Top
Maedhros
Bodhisattva
Bodhisattva
User avatar
Posts: 5511
Joined: Wed Apr 14, 2004 8:10 pm
Location: Durham, UK

  • Quote

Post by Maedhros » Fri May 21, 2004 5:15 pm

motzky wrote:the linker cannot find -ldl because it searches /usr/lib AND NOT /usr/lib64 !!!
So it skipps all 32bit versions since they are incompatible.
At least on my install, /usr/lib64 is a symlink to /usr/lib, so it wouldn't matter which one it looked for.

I also found that using the 2004.0 liveCD I get no errors except for the annoying openssl <-> perl circular dependency. I bootstrapped with gcc-3.3.3-r3, then emerged gcc-3.4.0-r2 (and this was only a few days ago!) and emerge systemed with that, and it worked for me!
lexylexy wrote:CFLAGS="-m64 -O2 -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -frename-registers"
USE="amd64 -multilib"
Isn't -m64 discouraged in case programs naturally want to compile things in 32-bit mode? Also doesn't portage add amd64 to your USE flags anyway?

For example:

Code: Select all

# emerge info | grep USE
USE="X alsa amd64 apache2 apm avi berkdb cdr cdrw crypt cups divx4linux dvd encode esd fam fbcon foomaticdb gdbm gif gpm gtk gtk2 imagemagick imlib jpeg libg++ libwww linguas_en_GB mikmod mpeg ncurses nls nogcj nptl oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang spell ssl tcltk tcpd truetype usb xml2 xmms xv xvid zlib"
but...

Code: Select all

# cat /etc/make.conf | grep USE
USE="alsa dvd cdrw crypt encode divx4linux xvid fam fbcon gpm gtk2 -gnome -qt -kde -arts -java mpeg -mozilla -mysql oggvorbis png pdflib readline imagemagick zlib -multilib usb cups apache2 nptl -motif"
Edit: I did use scripts/bootstrap-2.6.sh though.... I've used it before despite not using 2.6 headers (though I am now), with no problems....
No-one's more important than the earthworm.
Top
SiggiS
n00b
n00b
Posts: 36
Joined: Tue May 18, 2004 7:16 am
Location: Germany

  • Quote

Post by SiggiS » Fri May 21, 2004 5:32 pm

Which Stage1 do you use? 2004.0 or 2004.1?

Greetings Marc
Top
motzky
n00b
n00b
Posts: 28
Joined: Fri May 21, 2004 4:57 pm

  • Quote

Post by motzky » Fri May 21, 2004 5:46 pm

Maedhros wrote:At least on my install, /usr/lib64 is a symlink to /usr/lib, so it wouldn't matter which one it looked for.
Yes, on mine too...
But after a closer look on the error message, I learned that it is the 32-bit version of sandbox that fails, since the 64-bit version of the library is incompatible...

Do I really need a 32-bit version of sandbox ?
Top
Maedhros
Bodhisattva
Bodhisattva
User avatar
Posts: 5511
Joined: Wed Apr 14, 2004 8:10 pm
Location: Durham, UK

  • Quote

Post by Maedhros » Fri May 21, 2004 5:52 pm

SiggiS wrote:Which Stage1 do you use? 2004.0 or 2004.1?

Greetings Marc
2004.1
motzky wrote:Do I really need a 32-bit version of sandbox ?
I have no idea... I don't really know what sandbox does, but I wouldn't have thought so! Where is your 32-bit version of it? I only have /lib/libsandbox.so...
No-one's more important than the earthworm.
Top
SiggiS
n00b
n00b
Posts: 36
Joined: Tue May 18, 2004 7:16 am
Location: Germany

  • Quote

Post by SiggiS » Fri May 21, 2004 5:59 pm

So I booted from liveCD 2004.0 and used 2004.1 stage1, but no luck again. :(

Greetings Marc
Top
motzky
n00b
n00b
Posts: 28
Joined: Fri May 21, 2004 4:57 pm

  • Quote

Post by motzky » Fri May 21, 2004 6:01 pm

Yes, me too, but the bootstrap(-2.6).sh script wants to compile one via:

Code: Select all

gcc -m32 -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -DSB_HAVE64BIT_ARCH -Wall -c libsandbox -libsandbox32.o
gcc -m32 -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -DSB_HAVE64BIT_ARCH -Wall -c sandbox_futils.c -o sandbox_fultils32.o
gcc libsandbox32.o sandbox_futils32.o -shared -m32 -fPIC -ldl -lc -nostdlib -lgcc -o libsandbox32.so
followed by the linker error messages concerning the incompatible libdl.so...

And besides the 64-bit compile works for sandbox, but for some reason the script wants to compile both
Top
Maedhros
Bodhisattva
Bodhisattva
User avatar
Posts: 5511
Joined: Wed Apr 14, 2004 8:10 pm
Location: Durham, UK

  • Quote

Post by Maedhros » Fri May 21, 2004 6:12 pm

motzky, do you have multilib enabled in your use flags? What happens if you remove it?

SiggiS, hmm... can you post in full the errors you're getting? (Well, not if they're several hundred lines.... just the final errors! :D)

I think you might have to file a bug on this one, as I've had no trouble with anything like this...

What do you get with this btw?

Code: Select all

gcc -v
No-one's more important than the earthworm.
Top
motzky
n00b
n00b
Posts: 28
Joined: Fri May 21, 2004 4:57 pm

  • Quote

Post by motzky » Fri May 21, 2004 6:20 pm

i get the same error, no matter if multilib enabled or not...

i use gcc 3.3.3 2004217 (Gentoo Linux 3.3.3, propolice-3.3-7)
or did you want me to post the whole ./configure command stated by gcc -v ? :lol:
greetz
motzky
Top
Maedhros
Bodhisattva
Bodhisattva
User avatar
Posts: 5511
Joined: Wed Apr 14, 2004 8:10 pm
Location: Durham, UK

  • Quote

Post by Maedhros » Fri May 21, 2004 6:23 pm

Heh, no, that's ok thanks! :D

I'm afraid I really have no idea what's causing the problems you're having... I'm sorry I can't be more help!
No-one's more important than the earthworm.
Top
SiggiS
n00b
n00b
Posts: 36
Joined: Tue May 18, 2004 7:16 am
Location: Germany

  • Quote

Post by SiggiS » Fri May 21, 2004 6:24 pm

I get this sandbox error mentioned in my first post. I use links2 actually to post in this forum, cause no other system is runnin :(. So I dont how copy&paste work. So it takes a long time to post an error.

gcc -v gives me this:

[... many lines ...]
--disable-nls --disable-multilib
Threat model: posix
gcc version 3.3.3 30040217

These are the last lines. If you need more I will wrote it down.

Greetings Marc
Top
motzky
n00b
n00b
Posts: 28
Joined: Fri May 21, 2004 4:57 pm

  • Quote

Post by motzky » Fri May 21, 2004 6:33 pm

Thx for your help, Maedhros

now I tried a make clean && make all in /var/tmp/protage/portage-2.0.50-r6/work/portage-2.0.50-r6/src/sandbox-1.1 and it worked (since it didn't even try to make 32-bit versions)

Since SiggiS and I use the 2004.1 stage1 tarball, I'll try the 2004.0 live cd with the 2004.0 stage1 tarball after it finishes downloading in 16minz, though I doubt that this will help, since I assume the bug is in the portage... :roll:
greetz
motzky
Top
Maedhros
Bodhisattva
Bodhisattva
User avatar
Posts: 5511
Joined: Wed Apr 14, 2004 8:10 pm
Location: Durham, UK

  • Quote

Post by Maedhros » Fri May 21, 2004 6:38 pm

SiggiS wrote:I get this sandbox error mentioned in my first post. I use links2 actually to post in this forum, cause no other system is runnin :(. So I dont how copy&paste work. So it takes a long time to post an error.

gcc -v gives me this:

[... many lines ...]
--disable-nls --disable-multilib
Threat model: posix
gcc version 3.3.3 30040217

These are the last lines. If you need more I will wrote it down.

Greetings Marc
Ach, curse links, it won't let you paste with the middle button... In general though it does help to include as many lines as possible: otherwise all anyone can tell is that something has gone wrong, but it's very hard to work out where. I don't think I can help any more though. Not being a developer, but merely an occasionally adventurous user, I've run out of things to try :(

I think a bug report may be an option that'll get your problem noticed by the devs at any rate. It could be something they very recently changed, because I didn't have this problem, and I only reinstalled fairly recently (about 8 days ago I think)
No-one's more important than the earthworm.
Top
Imek
Guru
Guru
User avatar
Posts: 390
Joined: Tue Jan 20, 2004 10:31 pm
Location: Newcastle, England

  • Quote

Post by Imek » Fri May 21, 2004 6:39 pm

I can say it must be a new bug in portage, because I compiled amd64 gentoo a week or so ago with absolutely no problem. Just tried it today, and I got this exact error... Has anyone submitted it?
- I
(very old) "Current" desktop | Adopt an unanswered post today!
Top
Locked

36 posts
  • 1
  • 2
  • Next

Return to “Gentoo on AMD64”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic