Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

genkernel initramfs fails with --unionfs option

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
insane.awmn
n00b
n00b
Posts: 24
Joined: Wed Mar 22, 2006 2:01 am
Location: Athens
Contact:
Contact insane.awmn
Website

genkernel initramfs fails with --unionfs option

  • Quote

Post by insane.awmn » Mon Jun 11, 2012 11:43 pm

Hello community of gentoo !!!!!
, i am trying to generate initramfs with genkernel and unionfs support ,but i have compiling failures during the compilation of fuse...
fuse: >> Configuring...
configure: WARNING: unrecognized options: --disable-kernel-module
--
config.status: creating example/Makefile
config.status: creating include/Makefile
config.status: creating include/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure: WARNING: unrecognized options: --disable-kernel-module
--
Making all in util
make[1]: Entering directory `/var/tmp/genkernel/17311.5006.32153.1284/fuse-2.8.6/util'
gcc -DHAVE_CONFIG_H -I. -I../include -I../lib -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fusermount-fusermount.o -MD -MP -MF .deps/fusermount-fusermount.Tpo -c -o fusermount-fusermount.o `test -f 'fusermount.c' || echo './'`fusermount.c
gcc -DHAVE_CONFIG_H -I. -I../include -D_FILE_OFFSET_BITS=64 -D_REENTRANT -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT ulockmgr_server-ulockmgr_server.o -MD -MP -MF .deps/ulockmgr_server-ulockmgr_server.Tpo -c -o ulockmgr_server-ulockmgr_server.o `test -f 'ulockmgr_server.c' || echo './'`ulockmgr_server.c
fusermount.c: In function 'clone_newns':
fusermount.c:295:2: warning: implicit declaration of function 'clone'
fusermount.c:295:44: error: 'CLONE_NEWNS' undeclared (first use in this function)
fusermount.c:295:44: note: each undeclared identifier is reported only once for each function it appears in
fusermount.c: In function 'unmount_fuse_locked':
fusermount.c:422:9: warning: ignoring return value of 'fchdir', declared with attribute warn_unused_result
fusermount.c: In function 'clone_newns':
fusermount.c:297:1: warning: control reaches end of non-void function
fusermount.c: In function 'unlock_umount':
fusermount.c:117:7: warning: ignoring return value of 'lockf', declared with attribute warn_unused_result
fusermount.c: In function 'mount_fuse':
fusermount.c:1077:9: warning: ignoring return value of 'fchdir', declared with attribute warn_unused_result
make[1]: *** [fusermount-fusermount.o] Error 1
make[1]: *** Waiting for unfinished jobs....
mv -f .deps/ulockmgr_server-ulockmgr_server.Tpo .deps/ulockmgr_server-ulockmgr_server.Po
make[1]: Leaving directory `/var/tmp/genkernel/17311.5006.32153.1284/fuse-2.8.6/util'
make: *** [all-recursive] Error 1
* Gentoo Linux Genkernel; Version 3.4.24_p1
* Running with options: initramfs --no-clean --no-mrproper --splash=natural_gentoo --splash-res=800x600 --all-ramdisk-modules --unionfs

* ERROR: Failed to compile the "" target...
how i solve this problem ? ...i use the sys-kernel/genkernel-3.4.24_p1 .
i tried to fix the compiling problems adding in the fuse section of /usr/share/genkernel/gen_compile.sh the "sed -i '1i#define _GNU_SOURCE' util/fusermount.c" before ./configure with no success !!!!

can anyone help me ???
Elpizw o Theos na sas xarizei eutixia...................
Top
xoz
n00b
n00b
Posts: 2
Joined: Tue Jun 26, 2012 1:55 pm

  • Quote

Post by xoz » Tue Jun 26, 2012 2:15 pm

Exactly the same probleme here (same versions etc.).
I'm stuck.... :?

@insane.awmn
Did you fix this problem?

@Community
Could anyone else give me hint what to do in this situation?

King regards

André
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56094
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Tue Jun 26, 2012 3:17 pm

Team,

Can your run

Code: Select all

emerge =fuse-2.8.6 -1
amd does that work or do you get the same undeclared identifier errors?
It builds for me on ~amd64 /no-multilib. Different arches and profiles may get different answers.

Genkernel does not use the system packages. It has a lisy of packages/versions that it builds for itself.
The error suggests that a dependency is missing, or a libray reference. That would be a genkernel bug, so its worth looking on bugs.gentoo.org to see if its been reported, if so their may even be a patch.

Genkernel; Version 3.4.24_p1 is the current stable version. You could try the latest testing version if you wish.
To do that add the line

Code: Select all

sys-kernel/genkernel
to your /etc/portage/package/keywords file.
If this is your first testing package, they file will not exist. Now

Code: Select all

emerge genkernel
to get a later version
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
xoz
n00b
n00b
Posts: 2
Joined: Tue Jun 26, 2012 1:55 pm

  • Quote

Post by xoz » Tue Jun 26, 2012 4:28 pm

Thank you for your reply.
NeddySeagoon wrote: Can your run

Code: Select all

emerge =fuse-2.8.6 -1
amd does that work or do you get the same undeclared identifier errors?
Worked without problems.
NeddySeagoon wrote: Genkernel; Version 3.4.24_p1 is the current stable version. You could try the latest testing version if you wish.
To do that add the line

Code: Select all

sys-kernel/genkernel
to your /etc/portage/package/keywords file.
If this is your first testing package, they file will not exist. Now

Code: Select all

emerge genkernel
to get a later version
I tried using different genkernel-versions, everytime with the same error.

Nevertheless, I Could fix this problem by adding
sed -i '9i#define _GNU_SOURCE' util/fusermount.c
to

Code: Select all

/usr/share/genkernel/gen_compile.sh
before configure in function compile_fuse(). This applies the following patch: http://fuse.git.sourceforge.net/git/git ... 193c7b3670

I just read over this hint in the first posting by insane.awmn. :? Sorry for that.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56094
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Tue Jun 26, 2012 4:33 pm

xoz,

Please tell everyone else - post a bug at bugs.gentoo.org if there is not one already.
If a bug exists, post your fix, preferrably as a patch.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Installing Gentoo”

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