| View previous topic :: View next topic |
| Author |
Message |
scott45 n00b

Joined: 11 Sep 2010 Posts: 17
|
Posted: Sun Apr 29, 2012 9:24 pm Post subject: Genkernel compile error creating ramdisk [SOLVED] |
|
|
Last part of log:
| Code: | echo "coreutils/lib.a(id.o): In function `get_groups':
id.c:(.text.get_groups+0xa): warning: Using 'getgrouplist' in statically linked applications requires at runtime the shared librar$
libbb/lib.a(bb_pwd.o): In function `xgetgrgid':
bb_pwd.c:(.text.xgetgrgid+0x4): warning: Using 'getgrgid' in statically linked applications requires at runtime the shared librari$
archival/libarchive/lib.a(data_extract_all.o): In function `data_extract_all':
data_extract_all.c:(.text.data_extract_all+0x307): warning: Using 'getgrnam' in statically linked applications requires at runtime$
shell/lib.a(ash.o): In function `argstr':
ash.c:(.text.argstr+0xf0): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries fr$
libbb/lib.a(bb_pwd.o): In function `xgetpwuid':
bb_pwd.c:(.text.xgetpwuid+0x4): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared librari$
libbb/lib.a(xconnect.o): In function `str2sockaddr':
xconnect.c:(.text.str2sockaddr+0x100): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shar$
libbb/lib.a(inet_common.o): In function `INET_rresolve':
inet_common.c:(.text.INET_rresolve+0xbd): warning: Using 'gethostbyaddr' in statically linked applications requires at runtime the$
util-linux/lib.a(mount.o): In function `nfsmount':
mount.c:(.text.nfsmount+0xd8): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared lib$
libbb/lib.a(xconnect.o): In function `bb_lookup_port':
xconnect.c:(.text.bb_lookup_port+0x41): warning: Using 'getservbyname' in statically linked applications requires at runtime the s$
util-linux/lib.a(mount.o): In function `xdr_fhstatus':
mount.c:(.text.xdr_fhstatus+0xd): undefined reference to `xdr_u_int'
mount.c:(.text.xdr_fhstatus+0x2e): undefined reference to `xdr_opaque'
util-linux/lib.a(mount.o): In function `xdr_dirpath':
mount.c:(.text.xdr_dirpath+0x6): undefined reference to `xdr_string'
util-linux/lib.a(mount.o): In function `xdr_mountres3':
mount.c:(.text.xdr_mountres3+0xd): undefined reference to `xdr_enum'
mount.c:(.text.xdr_mountres3+0x2c): undefined reference to `xdr_bytes'
mount.c:(.text.xdr_mountres3+0x46): undefined reference to `xdr_int'
mount.c:(.text.xdr_mountres3+0x55): undefined reference to `xdr_array'
util-linux/lib.a(mount.o): In function `nfsmount':
mount.c:(.text.nfsmount+0x852): undefined reference to `pmap_getmaps'
mount.c:(.text.nfsmount+0x987): undefined reference to `clntudp_create'
mount.c:(.text.nfsmount+0x9c9): undefined reference to `clnttcp_create'
mount.c:(.text.nfsmount+0x9f0): undefined reference to `clnt_spcreateerror'
mount.c:(.text.nfsmount+0xa02): undefined reference to `authunix_create_default'
mount.c:(.text.nfsmount+0xa9a): undefined reference to `clnt_sperror'
mount.c:(.text.nfsmount+0xac1): undefined reference to `clnt_sperror'
mount.c:(.text.nfsmount+0xc79): undefined reference to `bindresvport'
mount.c:(.text.nfsmount+0xcc5): undefined reference to `pmap_getport'
collect2: ld returned 1 exit status
make: *** [busybox_unstripped] Error 1
* Gentoo Linux Genkernel; Version 3.4.20^[[0m
* Running with options: --no-ramdisk-modules --lvm --mdadm ramdisk
* ERROR: Failed to compile the "all" target...
* -- Grepping log... --
* -- End log... --
* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!"; |
Any ideas?
Last edited by scott45 on Mon Apr 30, 2012 5:36 pm; edited 1 time in total |
|
| Back to top |
|
 |
scott45 n00b

Joined: 11 Sep 2010 Posts: 17
|
Posted: Sun Apr 29, 2012 9:29 pm Post subject: |
|
|
| I should say this is a new install with latest amd64 current-iso. All I've done is untar the stage3, update everything with emerge --sync and update world and all of that, then just tried to build a ramdisk. |
|
| Back to top |
|
 |
aralic n00b

Joined: 19 Oct 2007 Posts: 5
|
Posted: Mon Apr 30, 2012 12:30 am Post subject: |
|
|
| I just tried this under a new hardened stage3 and came across the same error. A quick search pulled up this poste which suggests that there is a bug in the current unmasked version of genkernel+busybox. I unmasked a more recent version (3.4.23.1) of genkernel and everything compiled fine. |
|
| Back to top |
|
 |
scott45 n00b

Joined: 11 Sep 2010 Posts: 17
|
Posted: Mon Apr 30, 2012 12:51 am Post subject: |
|
|
| I'll give that a try as well. Thanks, aralic! |
|
| Back to top |
|
 |
scott45 n00b

Joined: 11 Sep 2010 Posts: 17
|
Posted: Mon Apr 30, 2012 5:36 pm Post subject: |
|
|
| installing genkernel version 3.4.23.1 did indeed fix the problem. |
|
| Back to top |
|
 |
jlpoole Apprentice


Joined: 01 Nov 2005 Posts: 211 Location: Napa, CA
|
Posted: Mon May 14, 2012 11:39 am Post subject: 3.4.23.1 worked for me |
|
|
I had sys-kernel/genkernel 3.4.20 installed and could not compile the initramfs getting this error:
| Quote: | xconnect.c .text.bb_lookup_port+0x41): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
--
mount.c .text.nfsmount+0xa9a): undefined reference to `clnt_sperror'
mount.c .text.nfsmount+0xac1): undefined reference to `clnt_sperror'
mount.c .text.nfsmount+0xc79): undefined reference to `bindresvport'
mount.c .text.nfsmount+0xcc5): undefined reference to `pmap_getport'
collect2: ld returned 1 exit status
make: *** [busybox_unstripped] Error 1
* Gentoo Linux Genkernel; Version 3.4.20
* Running with options: initramfs
* ERROR: Failed to compile the "all" target... |
I modified my /etc/portage/package.keywords adding:
| Quote: | =sys-kernel/genkernel-3.4.23.1
|
I had tried ">=" but emerge reported a conflict with a higher version of genkernel and openssl (I think), so I specified the release mentioned in this thread.
After installing sys-kernel/genkernel-3.4.23.1 I was able to successfully run "genkernel initramfs". |
|
| Back to top |
|
 |
chiefbag Guru


Joined: 01 Oct 2010 Posts: 425 Location: The Kingdom of Kerry
|
Posted: Fri May 18, 2012 9:02 am Post subject: |
|
|
Excellent, That was breaking my balls for a while.
Upgrading genkernel did the trick.
Why is 3.4.20 not masked? _________________ A place for useful technical information |
|
| Back to top |
|
 |
mind33 n00b

Joined: 07 May 2012 Posts: 15 Location: Norway
|
Posted: Fri May 18, 2012 11:47 am Post subject: |
|
|
| How do i upgrade genkernel? |
|
| Back to top |
|
 |
adversity n00b

Joined: 15 Aug 2011 Posts: 45 Location: Louisville, KY
|
Posted: Fri May 18, 2012 1:05 pm Post subject: |
|
|
By using the ~arch keyword for Genkernel. Or more specifically adding sys-kernel/genkernel to the /etc/portage/package.accept_keywords file.
| Code: | | echo "=sys-kernel/genkernel-3.4.23.1" >> /etc/portage/package.accept_keywords |
then emerge genkernel
I believe the latest version in testing is 3.4.33.1 though. But the above version fixes the problems mentioned in this thread. |
|
| Back to top |
|
 |
rtfm1777 n00b

Joined: 13 May 2012 Posts: 3
|
Posted: Fri May 18, 2012 4:47 pm Post subject: |
|
|
| adversity wrote: | By using the ~arch keyword for Genkernel. Or more specifically adding sys-kernel/genkernel to the /etc/portage/package.accept_keywords file.
| Code: | | echo "=sys-kernel/genkernel-3.4.23.1" >> /etc/portage/package.accept_keywords |
then emerge genkernel
I believe the latest version in testing is 3.4.33.1 though. But the above version fixes the problems mentioned in this thread. |
I'm a noob here. In totally over my head, but my-oh-my am I learning a lot
I added the 3.4.23.1 as above and re-emerged genkernel. It apparently upgraded ok.
But when I genkernel --install initramfs now I get this error:
Could not find source tarball /var/cache/genkernel/src/busybox-1.18.1.tar.bz2
I see the apparently upgraded busybox-1.19.3.tar.bz2 sitting in that directory.
Something else needs to be upgraded?
-----------------------------------------------------------------------------------------------------
Oh wait. I need to update the genkernel.conf file maybe?
-----------------------------------------------------------------------------------------------------
 |
|
| Back to top |
|
 |
frankwz n00b

Joined: 21 May 2012 Posts: 1
|
Posted: Mon May 21, 2012 5:08 am Post subject: Re: Genkernel compile error creating ramdisk [SOLVED] |
|
|
I have the same problem.
first, echo "=sys-kernel/genkernel-3.4.23.1" >> /etc/portage/package.accept_keywords
then run : emerge genkernel to update the genkernel version from 3.4.20 to 3.4.23
afer that i rerun genkernel all , a new question happen :Could not find source tarball /var/cache/genkernel/src/busybox-1.18.1.tar.bz2
you can reference to the link: https://bugs.gentoo.org/show_bug.cgi?id=225073
we should update the /etc/genkernel.conf
so : rm /etc/genkernel.conf
then emerge genkernel
run etc-update
to update the /etc/genkernel
after tha everything is ok rerun
genkernel all . |
|
| Back to top |
|
 |
adversity n00b

Joined: 15 Aug 2011 Posts: 45 Location: Louisville, KY
|
Posted: Mon May 21, 2012 12:28 pm Post subject: |
|
|
| Etc-update works, but dispatch-conf is preferred I do believe. They both do the same thing. |
|
| Back to top |
|
 |
|