[LU-6547] build errors building against recent 4.1-rc1 kernel on Ubuntu 15.04 building linux-tracefile Created: 30/Apr/15  Updated: 05/Aug/15  Resolved: 05/Aug/15

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Colin Ian King Assignee: WC Triage
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Related
is related to LU-5628 Dealing with kernels that have lustre... Resolved
is related to LU-6215 Sync Lustre external tree with lustre... Resolved
Severity: 1
Rank (Obsolete): 9223372036854775807

 Description   

Building against a recent kernel the -Werror option in the Rules file is catching a re-definition of CONFIG_LNET_MAX_PAYLOAD and causing the build to fail.

make[3]: Entering directory '/usr/src/linux-headers-4.1.0-rc1+'
LD /home/king/lustre/lustre-release/built-in.o
LD /home/king/lustre/lustre-release/libcfs/built-in.o
LD /home/king/lustre/lustre-release/libcfs/libcfs/built-in.o
CC [M] /home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-tracefile.o
In file included from <command-line>:0:0:
/home/king/lustre/lustre-release/config.h:26:0: error: "CONFIG_LNET_MAX_PAYLOAD" redefined [-Werror]
#define CONFIG_LNET_MAX_PAYLOAD LNET_MTU
^
In file included from /usr/src/linux-headers-4.1.0-rc1+/include/linux/kconfig.h:4:0,
from <command-line>:0:
include/generated/autoconf.h:4174:0: note: this is the location of the previous definition
#define CONFIG_LNET_MAX_PAYLOAD 1048576
^
cc1: all warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/home/king/lustre/lustre-release/libcfs/libcfs/linux/linux-tracefile.o' failed



 Comments   
Comment by Oleg Drokin [ 30/Apr/15 ]

The problem at hand is you probably have lustre configured i nthe kernel as a module or something, and this is not supported due to all sort of symbol clases, I suspect this is just a tip of the iceberg you are seeing here.

If you want to build out of tree lustre, the in-tree lustre client should be disabled.

Comment by James A Simmons [ 01/May/15 ]

Yep, its the tip of the iceberg. If you want to build the intel branch against 4.1-rc1 you will a bunch more patches just to make it work. See LU-6215 for details about that work.

Comment by James A Simmons [ 15/May/15 ]

I have submitted a bunch of patches for Ubuntu15 support. Only thing left is handle filldir_t api changes and generic_file_aio_XX changes.

Comment by James A Simmons [ 28/May/15 ]

I have submitted all the patches needed to support Ubuntu15 now. With those patches also kernels up to 4.0 are supported.

Colin do you have a gerrit account so I can add you to review the patches needed.

Comment by James A Simmons [ 01/Jun/15 ]

The need the following patches applied to master to run on Ubuntu15:

http://review.whamcloud.com/#/c/14598
http://review.whamcloud.com/#/c/14669
http://review.whamcloud.com/#/c/14683
http://review.whamcloud.com/#/c/14681
http://review.whamcloud.com/#/c/15028
http://review.whamcloud.com/#/c/14624

Comment by James A Simmons [ 19/Jun/15 ]

Only one patch needed to support Ubuntu15 - http://review.whamcloud.com/#/c/15028

Comment by James A Simmons [ 05/Aug/15 ]

All patches for Ubuntu15 support have landed. This ticket reported the same problems as LU-5628 so it can be now closed as a duplicate.

Comment by Peter Jones [ 05/Aug/15 ]

ok - thanks James

Generated at Sat Feb 10 02:01:09 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.