[lustre-discuss] Lustre Client on Fedora 23
Patrick Farrell
paf at cray.com
Wed Sep 28 11:13:02 PDT 2016
Michael,
I suspect a change in GCC/ld behavior as the cause for your original
error. I don't think setting PIC mode is the answer, since that doesn't
work for kernel mode code. I think you're probably compiling Lustre
with an extremely new GCC/ld version, and some behavior change there is
causing a failure.
Since it's just in the configure check to see if we're doing cross
compiling, perhaps you can short-circuit that check? Find it and
replace it with false (assuming you are not cross compiling...).
Anyway, I think that error is where you should focus. You could try
rebuilding Lustre directly from source, but I bet you'll hit the same
error in configure.
- Patrick
On 09/28/2016 11:20 AM, Michael Watters wrote:
> Has anybody been able to build the lustre client on Fedora 23 or 24?
> I'm getting a compile error when I attempt to build the SRPM for 2.8.0
> which is shown here.
>
> http://paste.fedoraproject.org/437345/77178147/
>
> Adding "-fPIC" to the optflags in the spec file also did not help, the
> build then fails with a different error as follows.
>
> EXTRA_KCFLAGS: -include /root/rpmbuild/BUILD/lustre-2.8.0/undef.h
> -include /root/rpmbuild/BUILD/lustre-2.8.0/config.h -g
> -I/root/rpmbuild/BUILD/lustre-2.8.0/libcfs/include
> -I/root/rpmbuild/BUILD/lustre-2.8.0/lnet/include
> -I/root/rpmbuild/BUILD/lustre-2.8.0/lustre/include
>
> Type 'make' to build Lustre.
>
> + make -j12 -s
>
> Making all in .
>
> /root/rpmbuild/BUILD/lustre-2.8.0/lnet/lnet/api-ni.c:1:0: error: code
> model kernel does not support PIC mode
>
> /*
>
> ^
>
> /root/rpmbuild/BUILD/lustre-2.8.0/lustre/fid/fid_request.c:1:0: error:
> code model kernel does not support PIC mode
>
> /*
>
> ^
>
> /root/rpmbuild/BUILD/lustre-2.8.0/lustre/fld/fld_request.c:1:0: error:
> code model kernel does not support PIC mode
>
> /*
>
> ^
>
> scripts/Makefile.build:289: recipe for target
> '/root/rpmbuild/BUILD/lustre-2.8.0/lnet/lnet/api-ni.o' failed
>
> make[6]: *** [/root/rpmbuild/BUILD/lustre-2.8.0/lnet/lnet/api-ni.o]
> Error 1
>
> /root/rpmbuild/BUILD/lustre-2.8.0/lustre/llite/dcache.c:1:0: error:
> code model kernel does not support PIC mode
>
> /*
>
>
> Do I need to build the client from source or use a different lustre
> version? My servers are all running 2.8.0 on CentOS 7 however we run
> Fedora on our workstations which doesn't have a native client package.
>
> _______________________________________________
> lustre-discuss mailing list
> lustre-discuss at lists.lustre.org
> http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org
More information about the lustre-discuss
mailing list