Bug 1528020

Summary: elfutils breaks kernel build
Product: [Fedora] Fedora Reporter: James <james>
Component: elfutilsAssignee: Mark Wielaard <mjw>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 27CC: aoliva, danny.kuo, fche, jakub, me, mjw
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-20 19:15:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description James 2017-12-20 19:13:12 UTC
Description of problem:
With elfutils-libelf-devel installed a kernel build from vanilla kernel.org sources with a stock Fedora 27 x86-64 .config breaks with unknown types.

For example:

In file included from /usr/include/gelf.h:32:0,
                 from arch/x86/../../elf.h:22,
                 from arch/x86/decode.c:26:
/usr/include/libelf.h:46:4: error: unknown type name ‘Elf32_Word’
    Elf32_Word   ch_type;        /* Compression format.  */
    ^~~~~~~~~~


Version-Release number of selected component (if applicable):
elfutils-libelf-devel-0.170-1.fc27.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Obtain kernel source
2. Set the .config
3. make

Actual results:
Build fails

Expected results:
Build works

Comment 1 James 2017-12-20 19:15:29 UTC
OK my bad, seems it doesn't like a custom CPATH...

Comment 2 Ching-Wen Kuo 2018-09-15 06:34:58 UTC
(In reply to James Ettle from comment #1)
> OK my bad, seems it doesn't like a custom CPATH...

Hi James:
I meet same issue when compile kernel 4.18.7, could you let me know what is the solution for this issue? Thank you so much.

Danny