Skip to contentSkip to conversation

mkfs.xfs without xfs library - not possible to create xfsfs

Buildroot Ossy 1 participant 3 messages Jul 11, 2010 – Jul 15, 2010

lore
Share & tools
lore

Ossy

author
#0 lore raw

Hi mailinglist,

I tried to create an xfs filesystem. Unfortunatly there is a library missing. I looked around in the configuration menu, but all I found were the xfsprogs. Under libraries/filesystem there is no xfslib either.

$ ./sbin/mkfs.xfs
./sbin/mkfs.xfs: can't load library 'libxfs.so.0'

Did I forget to include something?

Regards,
Marcus

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: buildroot-config
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100711/d599de17/attachment.ksh>

author
#1 lore raw

Am 11.07.2010 21:45, schrieb Ossy:

Quoted 9 lines

Hi mailinglist,

I tried to create an xfs filesystem. Unfortunatly there is a library missing. I looked around in the configuration menu, but all I found were the xfsprogs. Under libraries/filesystem there is no xfslib either.

$ ./sbin/mkfs.xfs
./sbin/mkfs.xfs: can't load library 'libxfs.so.0'

The config.log of xfsprogs-3.0.3 includes a link to some e2fs library path:
...
configure:2544: checking for C compiler default output file name configure:2566:
/home/ossy/buildroot/buildroot-dev/output/staging/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc --sysroot=/home/ossy/buildroot
/buildroot-dev/output/staging -Os -pipe -Os -mtune=arm926ej-s
-march=armv5te -mabi=aapcs-linux -msoft-float -D_LARGEFILE_SOURCE
-D_LARGEFIL
E64_SOURCE -D_FILE_OFFSET_BITS=64 -I/home/ossy/buildroot/buildroot-dev/output/staging/usr/include -I/home/ossy/buildroot/buildroot-dev/outpu
t/staging/include -I/home/ossy/buildroot/buildroot-dev/output/build/e2fsprogs-1.41.12/lib -L/home/ossy/buildroot/buildroot-dev/output/build/
e2fsprogs-1.41.12/lib conftest.c >&5
...

I do not expect an e2fs-library path in xfsprogs.config. Maybe a dependency to e2fs? Or is it just a bug?

I bumbed xfsprogs to 3.1.2 temporarily but this version failed to build.

Newer kernel versions and newer xfsprogs version fixes some issues for using xfs on arm devices.

Regards,
Marcus

author
#2 lore raw

Am 13.07.2010 22:43, schrieb Ossy:

Quoted 7 lines

Am 11.07.2010 21:45, schrieb Ossy:

Quoted 6 lines

Hi mailinglist,

I tried to create an xfs filesystem. Unfortunatly there is a library missing. I looked around in the configuration menu, but all I found were the xfsprogs. Under libraries/filesystem there is no xfslib either.

Quoted 8 lines
Quoted 3 lines
$ ./sbin/mkfs.xfs
./sbin/mkfs.xfs: can't load library 'libxfs.so.0'

I do not expect an e2fs-library path in xfsprogs.config. Maybe a dependency to e2fs? Or is it just a bug?

I bumbed xfsprogs to 3.1.2 temporarily but this version failed to build.

The main problem remains. xfsprogs-3.0.3 does not build the libxfs.so.0. I found a patch for xfsprogs-3.1 on gentoo. May be it would help to work around the problem and may be it is possible to bump to the newer version.

http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-fs/xfsprogs/
ebuild:
97 src_install() {
98 # TODO: there is a seldomly triggered parallel install problem where
99 # libxfs.so doesn't get installed before rdeps causing the relink to
fail
...

and:
xfsprogs-3.1.1-sharedlibs.patch
(Buildroot compiles the packages with a shared c-lib, too.)