sysroot and json.h

Colin Ian King colin.king at canonical.com
Tue Apr 7 19:45:55 UTC 2015


On 07/04/15 17:53, Jeffrey Bastian wrote:
> On Wed, Apr 01, 2015 at 12:58:07PM -0500, Jeffrey Bastian wrote:
>> On Wed, Apr 01, 2015 at 02:48:07PM +0100, Colin Ian King wrote:
>>> I suggest trying:
>>>
>>> 	CFLAGS=--sysroot= ./configure
>>>
>>> I don't have access to a Fedora 21 installation at hand, so I can't test
>>> this out to see if it works.
>>
>> That worked! Thanks!
> 
> 
> Ok, that worked on the latest gcc in Fedora 21 (gcc-4.9.2) and in RHEL 7
> (gcc-4.8.3), however I see that it fails on older gcc versions like we
> have in RHEL 6 (gcc-4.4.7):
> 
>     ~]$ gcc --sysroot= -I=/usr/include/json test.c
>     cc1: error: test.c/usr/local/include: Not a directory
>     cc1: error: test.c/usr/include: Not a directory
>     cc1: error: test.c/usr/include/json: Not a directory
> 
> And trying to set a sysroot of / also fails on RHEL 6:
> 
>     ~]$ gcc --sysroot=/ -I=/usr/include/json test.c
>     /usr/bin/ld: this linker was not configured to use sysroots
>     collect2: ld returned 1 exit status
> 
> For now, I'm just going to revert commit 690de7ffb96c locally when
> building fwts.

OK, thanks for letting us know. Building fwts on older releases of
Ubuntu is problematic too.

> 
> Thanks,
> Jeff
> 




More information about the fwts-devel mailing list