Re: elfutils-0.194 tests in LFS can still work with glibc-2.43

"Bruce Dubbs" ([email protected] via lfs-support Mailing List) <[email protected]> Tue, 31 Mar 2026 12:27:48 -0500
Newsgroups gmane.linux.lfs.support
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1774978081-1253-19923
Content-Language: en-US
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

On 3/30/26 12:45 PM, Bruce Dubbs wrote:
> On 3/30/26 11:45 AM, Bruce Dubbs wrote:
>> On 3/30/26 11:07 AM, "Richard" ([email protected] via lfs-support Mailing 
>> List) wrote:
>>> Set FLAGS so compiler does not treat warnings as errors (I just add '-Wno-
>>> error' to what was already in Makefiles):
>>>
>>> export CFLAGS="-D_FORTIFY_SOURCE=3 -g -O2 -Wno-error"
>>> export CXXFLAGS="-D_FORTIFY_SOURCE=3 -g -O2 -Wno-error"
>>>
>>> ./configure --prefix=/usr --sysconfdir=/etc --disable-static --disable-
>>> debuginfod --enable-libdebuginfod=dummy
>>>
>>> make
>>> make check
>>>
>>> ============================================================================
>>> Testsuite summary for elfutils 0.194
>>> ============================================================================
>>> # TOTAL: 259
>>> # PASS:  251
>>> # SKIP:  8
>>> # XFAIL: 0
>>> # FAIL:  0
>>> # XPASS: 0
>>> # ERROR: 0
>>> ============================================================================
>>>
>>> If you need the other parts of elfutils (I found a couple of non-LFS packages
>>> that did), you can install them.
>>
>> We really do not want to build the whole elfutils package in LFS just to run the 
>> tests.  The only files we want are libelf.so*.
>>
>> I will change the explanation about the tests in the book though.
> 
> On second thought, there is no good reason to not install the full package.  I'll 
> check that out and if no issues arise, do that.

On third thought, after some tests, I've decided to leave elfutils as it is.  Using 
the CFLAGS above does allow the entire package to build and all tests to pass.  The 
CXXFLAGS variable is not used.

However the --disable-static and --disable-debuginfod options seem to be ignored.
Using the entire package installs a lot of packages that are not used in LFS and BLFS 
but could be used for some external packages.  Users that need those packages should 
be able to build the entire package without it being in LFS.

   -- Bruce



------------=_1774978081-1253-19923
Content-Type: text/plain; charset="UTF-8"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-support
Unsubscribe: See the above information page
------------=_1774978081-1253-19923--