[lustre-discuss] Lustre 2.14.54 make failure on SLES15 SP3
Tauferner, Andrew T
andrew.t.tauferner at intel.com
Thu Aug 26 18:13:02 PDT 2021
I'm getting an error due to redeclaration of copy_file_range(). That function wasn't defined in SLES15 SP2's glibc-devel-2.26 but it is defined in SLES15 SP3's glibc-devel-2.31. Apparently configure misses that fact. Furthermore, what is it doing in the utils directory when I specified -disable-utils? Oddly, if I don't specify -disable-utils then make doesn't fail. Thanks.
ogre-smw:~/glarch/lustre-2.14.54> ./configure --disable-server --disable-doc --disable-manpages --disable-utils --disable-tests --disable-iokit --disable-gss --config-cache
.
.
.
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
CC: gcc
LD: /usr/x86_64-suse-linux/bin/ld -m elf_x86_64
CPPFLAGS: -include /home/attaufer/glarch/lustre-2.14.54/undef.h -include /home/attaufer/glarch/lustre-2.14.54/config.h -I/home/attaufer/glarch/lustre-2.14.54/lnet/include/uapi -I/home/attaufer/glarch/lustre-2.14.54/lustre/include/uapi -I/home/attaufer/glarch/lustre-2.14.54/libcfs/include -I/home/attaufer/glarch/lustre-2.14.54/lnet/utils/ -I/home/attaufer/glarch/lustre-2.14.54/lustre/include
CFLAGS: -g -O2 -Wall -Werror
EXTRA_KCFLAGS: -include /home/attaufer/glarch/lustre-2.14.54/undef.h -include /home/attaufer/glarch/lustre-2.14.54/config.h -g -I/home/attaufer/glarch/lustre-2.14.54/libcfs/include -I/home/attaufer/glarch/lustre-2.14.54/libcfs/include/libcfs -I/home/attaufer/glarch/lustre-2.14.54/lnet/include/uapi -I/home/attaufer/glarch/lustre-2.14.54/lnet/include -I/home/attaufer/glarch/lustre-2.14.54/lustre/include/uapi -I/home/attaufer/glarch/lustre-2.14.54/lustre/include -Wno-format-truncation -Wno-stringop-truncation -Wno-stringop-overflow
Type 'make' to build Lustre.
ogre-smw:~/glarch/lustre-2.14.54> make
grep -v config.h.in config.h.in > undef.h
make all-recursive
make[1]: Entering directory '/home/attaufer/glarch/lustre-2.14.54'
Making all in .
make[2]: Entering directory '/home/attaufer/glarch/lustre-2.14.54'
make LDFLAGS= CC="gcc" -C /lib/modules/5.3.18-57-default/build \
-f /home/attaufer/glarch/lustre-2.14.54/build/Makefile LUSTRE_LINUX_CONFIG=/lib/modules/5.3.18-57-default/build/.config \
LINUXINCLUDE='-I$(srctree)/arch/$(SRCARCH)/include -Iarch/$(SRCARCH)/include/generated -Iinclude $(if $(KBUILD_SRC)$(building_out_of_srctree),-Iinclude2 -I$(srctree)/include) -I$(srctree)/arch/$(SRCARCH)/include/uapi -Iarch/$(SRCARCH)/include/generated/uapi -I$(srctree)/include/uapi -Iinclude/generated/uapi -include /lib/modules/5.3.18-57-default/source/include/linux/kconfig.h' \
M=/home/attaufer/glarch/lustre-2.14.54 -o tmp_include_depends -o scripts -o \
include/config/MARKER modules
make[3]: Entering directory '/usr/src/linux-5.3.18-57-obj/x86_64/default'
CC [M] /home/attaufer/glarch/lustre-2.14.54/libcfs/libcfs/linux/linux-prim.o
CC [M] /home/attaufer/glarch/lustre-2.14.54/libcfs/libcfs/linux/linux-hash.o
CC [M] /home/attaufer/glarch/lustre-2.14.54/libcfs/libcfs/linux/linux-wait.o
CC [M] /home/attaufer/glarch/lustre-2.14.54/libcfs/libcfs/linux/xarray.o
CC [M] /home/attaufer/glarch/lustre-2.14.54/libcfs/libcfs/debug.o
CC [M] /home/attaufer/glarch/lustre-2.14.54/libcfs/libcfs/fail.o
CC [M] /home/attaufer/glarch/lustre-2.14.54/libcfs/libcfs/module.o
.
.
.
Making all in utils
make[3]: Entering directory '/home/attaufer/glarch/lustre-2.14.54/lustre/utils'
Makefile:1040: warning: overriding recipe for target 'libmount_utils_ldiskfs.la'
Makefile:1034: warning: ignoring old recipe for target 'libmount_utils_ldiskfs.la'
Makefile:1049: warning: overriding recipe for target 'libmount_utils_zfs.la'
Makefile:1046: warning: ignoring old recipe for target 'libmount_utils_zfs.la'
make[4]: Entering directory '/home/attaufer/glarch/lustre-2.14.54/lustre/utils'
Makefile:1040: warning: overriding recipe for target 'libmount_utils_ldiskfs.la'
Makefile:1034: warning: ignoring old recipe for target 'libmount_utils_ldiskfs.la'
Makefile:1049: warning: overriding recipe for target 'libmount_utils_zfs.la'
Makefile:1046: warning: ignoring old recipe for target 'libmount_utils_zfs.la'
depbase=`echo liblustreapi.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -include /home/attaufer/glarch/lustre-2.14.54/undef.h -include /home/attaufer/glarch/lustre-2.14.54/config.h -I/home/attaufer/glarch/lustre-2.14.54/lnet/include/uapi -I/home/attaufer/glarch/lustre-2.14.54/lustre/include/uapi -I/home/attaufer/glarch/lustre-2.14.54/libcfs/include -I/home/attaufer/glarch/lustre-2.14.54/lnet/utils/ -I/home/attaufer/glarch/lustre-2.14.54/lustre/include -fPIC -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS=1 -g -O2 -Wall -Werror -MT liblustreapi.lo -MD -MP -MF $depbase.Tpo -c -o liblustreapi.lo liblustreapi.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -include /home/attaufer/glarch/lustre-2.14.54/undef.h -include /home/attaufer/glarch/lustre-2.14.54/config.h -I/home/attaufer/glarch/lustre-2.14.54/lnet/include/uapi -I/home/attaufer/glarch/lustre-2.14.54/lustre/include/uapi -I/home/attaufer/glarch/lustre-2.14.54/libcfs/include -I/home/attaufer/glarch/lustre-2.14.54/lnet/utils/ -I/home/attaufer/glarch/lustre-2.14.54/lustre/include -fPIC -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS=1 -g -O2 -Wall -Werror -MT liblustreapi.lo -MD -MP -MF .deps/liblustreapi.Tpo -c liblustreapi.c -fPIC -DPIC -o .libs/liblustreapi.o
In file included from liblustreapi.c:83:0:
lstddef.h:306:22: error: static declaration of 'copy_file_range' follows non-static declaration
static inline loff_t copy_file_range(int fd_in, loff_t *off_in, int fd_out,
^~~~~~~~~~~~~~~
In file included from liblustreapi.c:50:0:
/usr/include/unistd.h:1107:9: note: previous declaration of 'copy_file_range' was here
ssize_t copy_file_range (int __infd, __off64_t *__pinoff,
^~~~~~~~~~~~~~~
make[4]: *** [Makefile:1482: liblustreapi.lo] Error 1
make[4]: Leaving directory '/home/attaufer/glarch/lustre-2.14.54/lustre/utils'
make[3]: *** [Makefile:1873: all-recursive] Error 1
make[3]: Leaving directory '/home/attaufer/glarch/lustre-2.14.54/lustre/utils'
make[2]: *** [autoMakefile:502: all-recursive] Error 1
make[2]: Leaving directory '/home/attaufer/glarch/lustre-2.14.54/lustre'
make[1]: *** [autoMakefile:609: all-recursive] Error 1
make[1]: Leaving directory '/home/attaufer/glarch/lustre-2.14.54'
make: *** [autoMakefile:499: all] Error 2
ogre-smw:~/glarch/lustre-2.14.54> cat /etc/os-release
NAME="SLES"
VERSION="15-SP3"
VERSION_ID="15.3"
PRETTY_NAME="SUSE Linux Enterprise Server 15 SP3"
ID="sles"
ID_LIKE="suse"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:15:sp3"
DOCUMENTATION_URL=https://documentation.suse.com/
ogre-smw:~/glarch/lustre-2.14.54> uname -r
5.3.18-57-default
Thanks
Andrew Tauferner
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20210827/afcca418/attachment-0001.html>
More information about the lustre-discuss
mailing list