Created attachment 335570 [details] build log of =dev-libs/elfutils-0.155 Propably due to some GNU extensions clang fails to build elfutils (see attached build log). Tested it for 0.155 and 0.149, both produce the same error.
Added similar report in chromium-os
should be all set now in the tree; thanks for the report! Commit message: Fix building with clang due to small nested function http://sources.gentoo.org/dev-libs/elfutils/elfutils-0.156.ebuild?r1=1.1&r2=1.2 http://sources.gentoo.org/dev-libs/elfutils/files/elfutils-0.156-nested-funcs.patch?rev=1.1
unfortunately, that one fix isn't sufficient. the elfutils code is riddled with nested functions.
I haven't tested it myself, but it looks like https://github.com/m0use/elfutils-clang-patches/blob/master/elfutils-0.152-clang.patch is all the places that are affected (more than just the one tested here, at least). Might be worth checking for an easy fix.
(In reply to Stephen Shkardoon from comment #4) pretty sure i hit more than just that
In clang-3.3: utils-0.158/work/elfutils-0.158/lib -I.. -std=gnu99 -Wall -Wshadow -Wunused -Wextra -Wformat=2 -O2 -march=corei7 -g -pipe -c -o elf_begin.os -fpic -DPIC -DSHARED /var/tmp/portage/dev-libs/elfutils-0.158/work/elfutils-0.158/libelf/elf_begin.c /var/tmp/portage/dev-libs/elfutils-0.158/work/elfutils-0.158/libelf/elf_begin.c:1041:3: error: function definition is not allowed here { ^
Created attachment 406466 [details] build log Full (updated) build log of dev-libs/elfutils-0.158 with clang-3.6.1-r100
FTR, the latest has this problem: checking for gcc with GNU99 support... no configure: error: gcc with GNU99 support required !!! Please attach the following file when seeking support: !!! /var/tmp/portage/dev-libs/elfutils-0.163/work/elfutils-0.163-abi_x86_64.amd64/config.log * ERROR: dev-libs/elfutils-0.163::gentoo failed (configure phase):
i've looked at this a bit and it's a mess. if someone wants to tackle, feel free to do so upstream. they're aware of the issues as well.