This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/64237] New: [5 Regression] glibc build failure
- From: "trippels at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 09 Dec 2014 12:25:09 +0000
- Subject: [Bug c/64237] New: [5 Regression] glibc build failure
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64237
Bug ID: 64237
Summary: [5 Regression] glibc build failure
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: trippels at gcc dot gnu.org
trippels@gcc20 nscd % cat nscd.i
extern int program_invocation_name;
extern void fn2(int, int);
void
fn1() { fn2(0, program_invocation_name); }
trippels@gcc20 nscd % gcc -shared nscd.i -fpie
/home/trippels/bin/ld: /home/trippels/tmp/ccoI5Lbg.o: relocation R_X86_64_PC32
against undefined symbol `program_invocation_name@@GLIBC_2.2.5' can not be used
when making a shared object; recompile with -fPIC
/home/trippels/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status