This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
build failure when host gnu/lib-names.h does not define LIBGCC_S_SO
- From: Matthew Fortune <Matthew dot Fortune at imgtec dot com>
- To: "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>
- Date: Fri, 31 Oct 2014 20:13:04 +0000
- Subject: build failure when host gnu/lib-names.h does not define LIBGCC_S_SO
- Authentication-results: sourceware.org; auth=none
I've been behind master a while and on rebasing can no longer
build glibc. There appears to be a missing dependency on
gnu/lib-names.h for at least gnu/unwind-resume.c.
My test build is a native configuration on Ubuntu 12.04 x86_64.
The error:
../sysdeps/gnu/unwind-resume.c: In function 'init':
../sysdeps/gnu/unwind-resume.c:36:12: error: 'LIBGCC_S_SO' undeclared (first use in this function)
../sysdeps/gnu/unwind-resume.c:36:12: note: each undeclared identifier is reported only once for each function it appears in
../sysdeps/gnu/unwind-resume.c:42:19: error: expected ')' before string constant
The reason:
gnu/lib-names.h has not been built yet and the host
gnu/lib-names.h is picked up instead which lacks the LIBGCC_S_SO
definition in my case but even for others who have working
builds then unwind-resume.c will not 'always' be including the
just-built gnu/lib-names.h.
"make gnu/lib-names.h gnu/lib-names-64.h" allows the build to
progress.
This has been broken since:
commit 93ae1ebaa6df1a0c188614bd0a601ab6e26711c5
Author: Joseph Myers <joseph@codesourcery.com>
Date: Fri Sep 26 17:33:04 2014 +0000
Clean up gnu/lib-names.h generation (bug 14171).
I struggle to find my way around the glibc makefiles so I'm not
sure how to fix this. I have a feeling it is something to do
with before-compile but I may be wildly wrong.
Thanks,
Matthew