Bug 1354034

Summary: glibc addition of metag without relocations breaks rawhide kernel compliation
Product: [Fedora] Fedora Reporter: Laura Abbott <labbott>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: berrange, fweimer, gansalmon, itamar, jonathan, kernel-maint, madhu.chinakonda, mchehab
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: 2016-07-19 15:29:53 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 Laura Abbott 2016-07-08 18:39:08 UTC
https://sourceware.org/git/?p=glibc.git;a=commit;h=94e73c95d9b5ac7d3b3f178e2ca03ef6b60e82aa made it's way to Fedora via http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/commit/?id=9a78be1808600ca5e66eab741542447a29cfbeb3

Compiling the rawhide kernel with this new glibc produces build errors:

gcc  -o /builddir/build/BUILD/kernel-4.6.fc25/linux-4.7.0-0.rc6.git2.1.fc25.x86_64/tools/objtool/fixdep /builddir/build/BUILD/kernel-4.6.fc25/linux-4.7.0-0.rc6.git2.1.fc25.x86_64/tools/objtool/fixdep-in.o
scripts/recordmcount.c: In function 'do_file':
scripts/recordmcount.c:466:28: error: 'R_METAG_ADDR32' undeclared (first use in this function)
  case EM_METAG:  reltype = R_METAG_ADDR32;
                            ^~~~~~~~~~~~~~
scripts/recordmcount.c:466:28: note: each undeclared identifier is reported only once for each function it appears in
scripts/recordmcount.c:468:20: error: 'R_METAG_NONE' undeclared (first use in this function)
     rel_type_nop = R_METAG_NONE;


recordmcount.c has this:

#ifndef EM_METAG
/* Remove this when these make it to the standard system elf.h. */
#define EM_METAG      174
#define R_METAG_ADDR32                   2
#define R_METAG_NONE                     3
#endif

The afformentioned glibc commit added the #define EM_METAG but failed to add the relocation information.

Comment 1 Laura Abbott 2016-07-08 18:42:27 UTC
currently have a work around for rawhide. This bug is designed to track the 'real fix'

Comment 2 Laura Abbott 2016-07-19 15:29:53 UTC
ftrace maintainer took the proposed patch into his tree. Closing this as 'rawhide'.