Bug 1354034 - glibc addition of metag without relocations breaks rawhide kernel compliation
Summary: glibc addition of metag without relocations breaks rawhide kernel compliation
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-07-08 18:39 UTC by Laura Abbott
Modified: 2016-07-19 15:29 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-07-19 15:29:53 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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'.


Note You need to log in before you can comment on or make changes to this bug.