[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#883186: e2fsprogs FTBFS on mips64el: undefined reference to `posix_fadvise64'



Control: reassign -1 libc6-dev 2.25-1
Control: retitle -1 libc6-dev: posix_fadvise64 missing from static mips64el build
Control: tags -1 fixed-upstream
Control: forwarded -1 https://sourceware.org/bugzilla/show_bug.cgi?id=21232
Control: affects -1 src:e2fsprogs

Hi,

On 30/11/17 12:22, Helmut Grohne wrote:
> Source: e2fsprogs
> Version: 1.43.7-1
> Severity: serious
> Justification: FTBFS
> User: helmutg@debian.org
> Usertags: rebootstrap
> 
> I was investigating a bootstrap failure for mips64el
> (https://jenkins.debian.net/job/rebootstrap_mips64el_gcc7_nobiarch/51)
> and wondered whether this was a native issue. Indeed a native build of
> e2fsprogs fails on mips64el and the build log ends as follows:
> 
> | /usr/bin/make -C /home/helmutg/e2fsprogs-1.43.7/debian/BUILD-STD/e2fsck V=1 e2fsck.static
> | make[1]: Entering directory '/home/helmutg/e2fsprogs-1.43.7/debian/BUILD-STD/e2fsck'
> | gcc -Wl,-z,relro -Wl,-z,now -static -o e2fsck.static unix.o e2fsck.o super.o pass1.o pass1b.o pass2.o pass3.o pass4.o pass5.o journal.o badblocks.o util.o dirinfo.o dx_dirinfo.o ehandler.o problem.o message.o quota.o recovery.o region.o revoke.o ea_refcount.o rehash.o logfile.o sigcatcher.o  readahead.o extents.o   ../lib/libsupport.a ../lib/libext2fs.a ../lib/libcom_err.a -lpthread -lblkid -luuid -luuid  -luuid   ../lib/libe2p.a -ldl -lblkid  
> | logfile.o: In function `expand_percent_expression':
> | ./debian/BUILD-STD/e2fsck/../../../e2fsck/logfile.c:141: warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
> | ../lib/libext2fs.a(unix_io.o): In function `unix_cache_readahead':
> | ./debian/BUILD-STD/lib/ext2fs/../../../../lib/ext2fs/unix_io.c:969: undefined reference to `posix_fadvise64'
> | ./debian/BUILD-STD/lib/ext2fs/../../../../lib/ext2fs/unix_io.c:969: undefined reference to `posix_fadvise64'

It appears that libc.a from glibc 2.25 does not contain a
posix_fadvise64 symbol on mips64el

# nm /usr/lib/mips64el-linux-gnuabi64/libc.a 2>/dev/null | grep posix_fadvise
posix_fadvise.o:
posix_fadvise64.o:
0000000000000000 T __posix_fadvise64_l64
0000000000000000 T posix_fadvise

I found an upstream bug about it and it has already been fixed in glibc
2.26:
https://sourceware.org/bugzilla/show_bug.cgi?id=21232

Thanks,
James

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: