[LU-8028] build fails after configure --disable-modules Created: 15/Apr/16  Updated: 06/Feb/18  Resolved: 06/Feb/18

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

Type: Bug Priority: Minor
Reporter: Robert Read (Inactive) Assignee: Dmitry Eremin (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

This is on current master, CentOS 7.

$ sh autogen.sh && ./configure --disable-modules
...
$ make
...
gcc -DHAVE_CONFIG_H -I. -I../..  -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS=1 -include /work/lustre-release/undef.h -include /work/lustre-release/config.h -I/work/lustre-release/libcfs/include -I/work/lustre-release/lnet/include -I/work/lustre-release/lustre/include  -fPIC -g -O2 -Wall -Werror -MT libcfsutil_a-parser.o -MD -MP -MF .deps/libcfsutil_a-parser.Tpo -c -o libcfsutil_a-parser.o `test -f 'util/parser.c' || echo './'`util/parser.c
In file included from <command-line>:0:0:
/usr/include/stdc-predef.h:40:1: fatal error: /work/lustre-release/undef.h: No such file or directory
 #endif
 ^
compilation terminated.make[4]: *** [libcfsutil_a-parser.o] Error 1
make[4]: Leaving directory `/work/lustre-release/libcfs/libcfs'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/work/lustre-release/libcfs/libcfs'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/work/lustre-release/libcfs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/work/lustre-release'
make: *** [all] Error 2

The workaround is to do make undef.h.



 Comments   
Comment by Dmitry Eremin (Inactive) [ 15/Apr/16 ]

The dependency from undef.h is specified for modules and dist-hook only. So, just need to add it to all-am. Will push patch soon.

Comment by Gerrit Updater [ 22/Jan/18 ]

Dmitry Eremin (dmitry.eremin@intel.com) uploaded a new patch: https://review.whamcloud.com/30965
Subject: LU-8028 build: fix make dependencies for --disable-modules
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 17d50a8be07a1ef280fd07267e8ded951157c4be

Comment by James A Simmons [ 24/Jan/18 ]

Its really that easy to fix? This is a good step to getting the lustre utils with the upstream tree.

Comment by Dmitry Eremin (Inactive) [ 24/Jan/18 ]

yes, this is easy fix for this issue.  You can check that it helps.

Comment by Gerrit Updater [ 06/Feb/18 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/30965/
Subject: LU-8028 build: fix make dependencies for --disable-modules
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: be77f4b1a5d064a4eb5c96008598c1912fe81bef

Comment by Peter Jones [ 06/Feb/18 ]

Landed for 2.11

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