Re: [PATCH] xfsprogs: don't include all xfs headers just for crc32

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

 




On 10/11/18 2:59 PM, Brian Norris wrote:
> On Wed, Oct 10, 2018 at 03:55:32PM -0500, Eric Sandeen wrote:
>> Brian Norris reported that "The $BUILD_CC toolchain might have an
>> older set of Linux headers than the $CC toolchain. It's generally
>> unsafe to try to build both with the same definitions, but in
>> particular, this one can cause compilation failures in the local
>> crc32selftest build: [failure to find fsmap.h]"
>>
>> It seems like the most straightforward thing to do here is include
>> a specific set of system headers, instead of pulling in the whole
>> xfs.h header chain which has multiple tests and definitions in
>> place for headers that may or may not be there during the build.
>>
>> Reported-by: Brian Norris <briannorris@xxxxxxxxxxxx>
>> Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx>
>> ---
>>
>> Brian, here's try #3, does this also work for you?
> 
> Tested-by: Brian Norris <briannorris@xxxxxxxxxxxx>
> 
> This still leaves $BUILD_CFLAGS with bad entries, but as long as they
> don't get used anywhere that matters, it'll be OK.

Thanks.  At this point I think you have a better grasp of what all the
$FOO_FLAGS do than I do ;)  It may be  to keep things sorted
and separate, but it also seemed useful to get a giant tangle of
xfs header out of a non-xfs library file.

I'm also on the fence about whether cross-compiling the self-check
really even gains us much, given that it may be built or optimized
completely differently from the code on the target arch ...

-Eric



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux