[Bug libelf/26708] lcc compiler can't build elfutils because of nested functions

mark at klomp dot org sourceware-bugzilla@sourceware.org
Tue Oct 6 12:34:26 GMT 2020


--- Comment #2 from Mark Wielaard <mark at klomp dot org> ---
Note that there should be a configure test to check that your compiler has all
capabilities to build elfutils:

# We use -std=gnu99 but have explicit checks for some language constructs
# and GNU extensions since some compilers claim GNU99 support, but don't
# really support all language extensions. In particular we need
# Mixed Declarations and Code
# https://gcc.gnu.org/onlinedocs/gcc/Mixed-Declarations.html
# Nested Functions
# https://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html
# Arrays of Variable Length
# https://gcc.gnu.org/onlinedocs/gcc/Variable-Length.html

Normally if your compiler doesn't support those language constructs the
"Checking for for gcc with GNU99 support..." test should fail. If it doesn't in
your case we might have to tighten up the configure check.

You are receiving this mail because:
You are on the CC list for the bug.

More information about the Elfutils-devel mailing list