Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Yaboot fails to build against e2fsprogs 1.42/1.42.1 [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Incomplet
n00b
n00b


Joined: 12 Apr 2012
Posts: 43

PostPosted: Fri Apr 27, 2012 2:21 pm    Post subject: Yaboot fails to build against e2fsprogs 1.42/1.42.1 [SOLVED] Reply with quote

I can't get yaboot to emerge (1.3.16 and/or 1.3.17) and it fails consistently saying "cannot find -lext2fs". I already tried removing anything potentially unusual from make.conf but the error persists.

Running iBook G4, currently stuck without much besides links and portage. Ideas?


Last edited by Incomplet on Sun May 06, 2012 2:26 am; edited 3 times in total
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 5250

PostPosted: Fri Apr 27, 2012 3:23 pm    Post subject: Reply with quote

That's weird. The only "ext2fs" I can find in Portage is genext2fs, which I doubt is what you want.

Please post more of the output of emerge. Try to find the first error notice and post everything from that point down.
_________________
Gentoo Studio: http://gentoostudio.org
Facebook: http://www.facebook.com/gentoostudio
G+: https://plus.google.com/113947758237122861689/posts
Pappy's Kernel Seeds: http://kernel-seeds.gentoostudio.org
Back to top
View user's profile Send private message
Incomplet
n00b
n00b


Joined: 12 Apr 2012
Posts: 43

PostPosted: Fri Apr 27, 2012 4:00 pm    Post subject: Reply with quote

I'll do what I can but I don't have a clipboard >_<. Also, lext2fs is in /lib where it's supposed to be :|.

There are a bunch of warnings strewn throughout the build log, most of them go something like this:
"pointer targets in initialization differ in signedness" or "format not a string literal and no format arguments". There were minor variations on that theme related to the object files for other filesystems as well, but the ext2 section is rather small compared to reiser and xfs.

The line immediately before it fails goes something like this:
ld -Ttext 0x200000 -Bstatic -melf32ppclinux then a long string of second/*.o files, including further on -lext2fs. The next line is ld: cannot find -lext2fs then it dies Error 1. Besides the warnings and the failure, the beginning of the log doesn't show any signs of anything else breaking. All the warnings seem to be related to the file system related objects.

EDIT: Re-read your post. There's not a whole lot of detail after the first error, just this:
ERROR: sys-boot/yaboot-1.3.16 failed (compile phase): no error message
Call Stack: ebuild.sh line 85: Called src_compile
environment, line 1825: Called die
The specific snippet of code:
emake PREFIX=/usr MANDIR=share/man CC="$(tc-getCC)" || die
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 5250

PostPosted: Fri Apr 27, 2012 4:33 pm    Post subject: Reply with quote

If you don't have a WM or DE set up, pipe the output of emerge to a file and ftp or scp the file to a computer with a WM or DE so you can copy/paste or upload the entire build log to pastebin. On these forums, we rely very much on seeing actual build logs to help each other. :wink:
_________________
Gentoo Studio: http://gentoostudio.org
Facebook: http://www.facebook.com/gentoostudio
G+: https://plus.google.com/113947758237122861689/posts
Pappy's Kernel Seeds: http://kernel-seeds.gentoostudio.org
Back to top
View user's profile Send private message
Incomplet
n00b
n00b


Joined: 12 Apr 2012
Posts: 43

PostPosted: Fri Apr 27, 2012 5:17 pm    Post subject: Reply with quote

*sigh* ok ftp is probably too much trouble. I have a windows box downstairs but no reasonable way to link to it. I also have a usb drive in front of me, but I can't for the life of me figure out how to mount the thing, if that's even possible >_<.

EDIT: Well I managed to find the usb key but it refuses to mount for whatever reason. I started emerging xorg-server figuring something like this would happen. I'll just have to do everything backwards and post the info when I can actually get to it =\
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 5250

PostPosted: Fri Apr 27, 2012 6:03 pm    Post subject: Reply with quote

You should be able to emerge elinks or something similar, and just email the file you piped the output to.

You could also use something like sysresccd to chroot in, and you'll have the Xfce DE to troubleshoot stuff in.
_________________
Gentoo Studio: http://gentoostudio.org
Facebook: http://www.facebook.com/gentoostudio
G+: https://plus.google.com/113947758237122861689/posts
Pappy's Kernel Seeds: http://kernel-seeds.gentoostudio.org
Back to top
View user's profile Send private message
Incomplet
n00b
n00b


Joined: 12 Apr 2012
Posts: 43

PostPosted: Sat Apr 28, 2012 3:30 am    Post subject: Reply with quote

Alright. I've emerged xorg thus far and I'm working on emerging a few other things I need anyway. After reading over some stuff I think the fact that I removed -fno-strict-aliasing might have been what broke it. I had to adjust my cflags earlier to unbork something else and I removed it naively.

If not then I'll put up a full output when I get that far. Unfortunately I don't have a lot of CDs or other resources to waste making up a sysrescue or anything like that at the moment, and my access to the other comp is pretty unreliable even if I could email myself stuff. For now I'll just have to put up with it :)
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sat Apr 28, 2012 5:52 pm    Post subject: Reply with quote

The -lext2fs means it's trying to find the ext2fs library (/lib/libext2fs.so) which is part of e2fsprogs. So make sure you have sys-fs/e2fsprogs installed
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Incomplet
n00b
n00b


Joined: 12 Apr 2012
Posts: 43

PostPosted: Sun Apr 29, 2012 1:23 am    Post subject: Reply with quote

I did figure that out, however that doesn't seem to be what the problem was. I tried doing emerge -uDN world to see if updating/rebuilding everything on my system would solve the problem, but after an hour or two of trying to compile glibc it failed giving me a very similar error.

So I decided to scrap (almost) everything and start from a clean stage3/portage snapshot. This time I didn't install any programs (or anything) prior to doing emerge --sync and emerge -uDN world, and now it's been emerging glibc for the last 12+ hours. Based on the fan noise it's making and the fact that it hasn't thrown an error yet, I'd guess it's probably working.

While I can't absolutely verify it at the moment, I'm going to change this to [solved] for now since it's more or less doing what I expect. If it breaks again I'll dump all the logs on pastebin and complain some more :).
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue May 01, 2012 5:58 am    Post subject: Reply with quote

It seems that the latest e2fsprogs broke yaboot. You can get it to build again by downgrading to e2fsprogs-1.41.14, then upgrading again after building yaboot.

Sorry about that!
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed May 02, 2012 6:11 am    Post subject: Reply with quote

Okay, I've added a bunch of stubbed functions, which lets it compile. Try yaboot-1.3.17-r1 and let me know if it works for you!

Thanks and sorry again about yaboot not compiling.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Incomplet
n00b
n00b


Joined: 12 Apr 2012
Posts: 43

PostPosted: Wed May 02, 2012 1:38 pm    Post subject: Reply with quote

Oh! Thanks man, however I'm having trouble with the ebuild.

If I try to pull 1.3.17-r1 it also tries to pull e2fsprogs 1.42.1 which it won't build against. I can't get it to pull 1.3.17-r1 and e2fsprogs 1.42 at the same time. It will not build against e2fs 1.42.1, though.

After un-hardmasking e2fsprogs 1.41.14 I managed to get yaboot 1.3.16 to build against it successfully. Reclassifying this thread now that I've got it tracked down.

EDIT: package.accept_keywords might work, but if I do ACCEPT_KEYWORDS="~ppc" on the command line it also defaults to installing e2fsprogs 1.42.1.

EDIT2: Yes, package.accept_keywords works correctly. No, it still won't build against e2fsprogs 1.42.

errors include:
"In function 'ext2fs_mmp_new_seq: undefined reference to 'rand'.
In function 'ext2fs_stat': undefined reference to 'stat64'.
In function 'ext2fs_fstat': undefined reference to 'fstat64'.

atm I can't post you all the references, but now that I've gotten things figured out I should have a working desktop shortly :P.
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu May 03, 2012 1:03 pm    Post subject: Reply with quote

Are you sure you're building the 1.3.17-r1 version? Those errors are the ones my patch fixes and it works fine on my PowerBook G4. Can you please post a link to the build log somewhere?
Are you sure your e2fsprogs was built with the use option "static-libs"?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Incomplet
n00b
n00b


Joined: 12 Apr 2012
Posts: 43

PostPosted: Thu May 03, 2012 1:26 pm    Post subject: Reply with quote

I'll post you the details shortly, and yes I'm sure. I emerged both 1.3.17 and 1.3.17-r1, neither would build.

Also, I remember vividly seeing emerge use static-libs when building e2fsprogs.

EDIT: I lied. Lol I checked emerge -pv e2fsprogs and while e2fsprogs is indeed building with static-libs, e2fsprogs-libs was not. Awesome. Trying this again.

EDIT2: No, it still won't build
build log
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu May 03, 2012 2:10 pm    Post subject: Reply with quote

Incomplet wrote:
I'll post you the details shortly, and yes I'm sure. I emerged both 1.3.17 and 1.3.17-r1, neither would build.

Also, I remember vividly seeing emerge use static-libs when building e2fsprogs.

EDIT: I lied. Lol I checked emerge -pv e2fsprogs and while e2fsprogs is indeed building with static-libs, e2fsprogs-libs was not. Awesome. Trying this again.

EDIT2: No, it still won't build
build log


Okay, I can't seem to reproduce that on any of my machines, so I'll try a new install. Give me a day or two. :)
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat May 05, 2012 1:30 pm    Post subject: Reply with quote

I think it's fixed now, yaboot-1.3.17-r1 should build against the stable e2fsprogs. Please let me know if this isn't the case, I'd like to move this fix to stable quickly and I need some testing done before then! :)
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Incomplet
n00b
n00b


Joined: 12 Apr 2012
Posts: 43

PostPosted: Sat May 05, 2012 4:33 pm    Post subject: Reply with quote

Ok it compiles now, although I think the problem I had before was that I already had the source tarball, so I had to delete it manually so that portage would pull the new one (since both were named -r1). I'll test it to make sure it doesn't break my machine, then update here as appropriate.
Back to top
View user's profile Send private message
Incomplet
n00b
n00b


Joined: 12 Apr 2012
Posts: 43

PostPosted: Sun May 06, 2012 2:25 am    Post subject: Reply with quote

Ok, tested, and amazingly, it didn't break anything this time :). Please version bump when you unmask it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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