Closed j-xella closed 2 years ago
Thanks for reporting.
Until those are fixed, you might want to drop -Werror
from the Makefile
on your system.
Hi, dropping -Werror
helps, but it still does not build.
I suspect that I have too old version of gcc on my system that does not cope with some of the C features in the code.
gcc (GCC) 5.3.1 20160406 (Red Hat 5.3.1-6)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
OK, I figured this out. On my system, several compilers were installed, and cc
that make
uses by default is actually not gcc, but Sun Studio compiler. This compiler does not support gnu extensions, hence the errors. make CC=gcc
fixed the problem for me, so that there is no need to change the Makefile
at all.
On the positive side, though, I made some modifications to remove those Gnu extensions from the source code, so that the library compies and passes the tests using Sun Studio compiler as well now. See pull request #397
Thanks for the PR, just merged. :-)
This is the machine I am trying to build LFT on:
Operating System: Red Hat Enterprise Linux Server 7.9 (Maipo) CPE OS Name: cpe:/o:redhat:enterprise_linux:7.9:GA:server Kernel: Linux 3.10.0-1160.36.2.el7.x86_64 Architecture: x86-64
I check out the project from github,
Then cd to the folder and make. I get this: