public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/54209] New: [4.8 Regression] Failed to build gcc for Android/x86
@ 2012-08-09 15:55 hjl.tools at gmail dot com
2012-08-09 15:57 ` [Bug bootstrap/54209] " hjl.tools at gmail dot com
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: hjl.tools at gmail dot com @ 2012-08-09 15:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54209
Bug #: 54209
Summary: [4.8 Regression] Failed to build gcc for Android/x86
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: hjl.tools@gmail.com
CC: areg.melikadamyan@gmail.com, chaoyingfu@gcc.gnu.org
Revision 190242 failed to build for i686-pc-linux-android. I got
/export/gnu/import/git/gcc/libgcc/unwind-dw2-fde-dip.c:75:18: fatal error:
link.h: No such file or directory
#include <link.h>
It is caused by revision 186788:
http://gcc.gnu.org/ml/gcc-cvs/2012-04/msg00740.html
due to
#if defined(USE_PT_GNU_EH_FRAME)
#include <link.h>
but Bionic/x86 doesn't have link.h.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/54209] [4.8 Regression] Failed to build gcc for Android/x86
2012-08-09 15:55 [Bug bootstrap/54209] New: [4.8 Regression] Failed to build gcc for Android/x86 hjl.tools at gmail dot com
@ 2012-08-09 15:57 ` hjl.tools at gmail dot com
2012-08-09 16:41 ` hjl.tools at gmail dot com
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: hjl.tools at gmail dot com @ 2012-08-09 15:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54209
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.8.0
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/54209] [4.8 Regression] Failed to build gcc for Android/x86
2012-08-09 15:55 [Bug bootstrap/54209] New: [4.8 Regression] Failed to build gcc for Android/x86 hjl.tools at gmail dot com
2012-08-09 15:57 ` [Bug bootstrap/54209] " hjl.tools at gmail dot com
@ 2012-08-09 16:41 ` hjl.tools at gmail dot com
2012-08-09 17:24 ` chaoyingfu at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: hjl.tools at gmail dot com @ 2012-08-09 16:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54209
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-p
| |atches/2012-08/msg00548.htm
| |l
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2012-08-09 16:41:09 UTC ---
A patch is posted at
http://gcc.gnu.org/ml/gcc-patches/2012-08/msg00548.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/54209] [4.8 Regression] Failed to build gcc for Android/x86
2012-08-09 15:55 [Bug bootstrap/54209] New: [4.8 Regression] Failed to build gcc for Android/x86 hjl.tools at gmail dot com
2012-08-09 15:57 ` [Bug bootstrap/54209] " hjl.tools at gmail dot com
2012-08-09 16:41 ` hjl.tools at gmail dot com
@ 2012-08-09 17:24 ` chaoyingfu at gcc dot gnu.org
2012-08-09 18:41 ` hjl.tools at gmail dot com
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: chaoyingfu at gcc dot gnu.org @ 2012-08-09 17:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54209
--- Comment #2 from chaoyingfu at gcc dot gnu.org <chaoyingfu at gcc dot gnu.org> 2012-08-09 17:23:40 UTC ---
MIPS provides a version of link.h in Android NDK as follows:
Ex:
>From android-ndk-r8b/platforms/android-9/arch-mips/usr/include# cat link.h
/*
For building unwind-dw2-fde-glibc.c for MIPS frame unwinding,
we need to have <link.h> that defines struct dl_phdr_info,
ELFW(type), and dl_iterate_phdr().
*/
#include <sys/types.h>
#include <elf.h>
struct dl_phdr_info
{
Elf32_Addr dlpi_addr;
const char *dlpi_name;
const Elf32_Phdr *dlpi_phdr;
Elf32_Half dlpi_phnum;
};
#if _MIPS_SZPTR == 32
#define ElfW(type) Elf32_##type
#elif _MIPS_SZPTR == 64
#define ElfW(type) Elf64_##type
#endif
int
dl_iterate_phdr(int (*cb)(struct dl_phdr_info *info, size_t size, void *data),
void *data);
For x86, you can create link.h as well. Or we can guard this define with
MIPS targets.
Ex:
#if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \
&& defined(__BIONIC__) && defined(__mips__)
# define USE_PT_GNU_EH_FRAME
#endif
Thanks!
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/54209] [4.8 Regression] Failed to build gcc for Android/x86
2012-08-09 15:55 [Bug bootstrap/54209] New: [4.8 Regression] Failed to build gcc for Android/x86 hjl.tools at gmail dot com
` (2 preceding siblings ...)
2012-08-09 17:24 ` chaoyingfu at gcc dot gnu.org
@ 2012-08-09 18:41 ` hjl.tools at gmail dot com
2012-08-09 18:46 ` chaoyingfu at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: hjl.tools at gmail dot com @ 2012-08-09 18:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54209
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pavel.v.chupin at gmail dot
| |com
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> 2012-08-09 18:40:54 UTC ---
(In reply to comment #2)
> MIPS provides a version of link.h in Android NDK as follows:
> Ex:
> From android-ndk-r8b/platforms/android-9/arch-mips/usr/include# cat link.h
> /*
> For building unwind-dw2-fde-glibc.c for MIPS frame unwinding,
> we need to have <link.h> that defines struct dl_phdr_info,
> ELFW(type), and dl_iterate_phdr().
> */
>
> #include <sys/types.h>
> #include <elf.h>
>
> struct dl_phdr_info
> {
> Elf32_Addr dlpi_addr;
> const char *dlpi_name;
> const Elf32_Phdr *dlpi_phdr;
> Elf32_Half dlpi_phnum;
> };
>
> #if _MIPS_SZPTR == 32
> #define ElfW(type) Elf32_##type
> #elif _MIPS_SZPTR == 64
> #define ElfW(type) Elf64_##type
> #endif
>
> int
> dl_iterate_phdr(int (*cb)(struct dl_phdr_info *info, size_t size, void *data),
> void *data);
>
> For x86, you can create link.h as well. Or we can guard this define with
> MIPS targets.
Why isn't link.h in AOSP Bionic C library?
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/54209] [4.8 Regression] Failed to build gcc for Android/x86
2012-08-09 15:55 [Bug bootstrap/54209] New: [4.8 Regression] Failed to build gcc for Android/x86 hjl.tools at gmail dot com
` (3 preceding siblings ...)
2012-08-09 18:41 ` hjl.tools at gmail dot com
@ 2012-08-09 18:46 ` chaoyingfu at gcc dot gnu.org
2012-08-09 19:09 ` hjl.tools at gmail dot com
2012-08-20 14:03 ` hjl.tools at gmail dot com
6 siblings, 0 replies; 8+ messages in thread
From: chaoyingfu at gcc dot gnu.org @ 2012-08-09 18:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54209
--- Comment #4 from chaoyingfu at gcc dot gnu.org <chaoyingfu at gcc dot gnu.org> 2012-08-09 18:45:41 UTC ---
(In reply to comment #3)
> (In reply to comment #2)
> > MIPS provides a version of link.h in Android NDK as follows:
> > Ex:
> > From android-ndk-r8b/platforms/android-9/arch-mips/usr/include# cat link.h
> > /*
> > For building unwind-dw2-fde-glibc.c for MIPS frame unwinding,
> > we need to have <link.h> that defines struct dl_phdr_info,
> > ELFW(type), and dl_iterate_phdr().
> > */
> >
> > #include <sys/types.h>
> > #include <elf.h>
> >
> > struct dl_phdr_info
> > {
> > Elf32_Addr dlpi_addr;
> > const char *dlpi_name;
> > const Elf32_Phdr *dlpi_phdr;
> > Elf32_Half dlpi_phnum;
> > };
> >
> > #if _MIPS_SZPTR == 32
> > #define ElfW(type) Elf32_##type
> > #elif _MIPS_SZPTR == 64
> > #define ElfW(type) Elf64_##type
> > #endif
> >
> > int
> > dl_iterate_phdr(int (*cb)(struct dl_phdr_info *info, size_t size, void *data),
> > void *data);
> >
> > For x86, you can create link.h as well. Or we can guard this define with
> > MIPS targets.
>
> Why isn't link.h in AOSP Bionic C library?
ARM doesn't use eh_frame, so there is no need to create link.h at the
beginning for the Android project, I guess. For MIPS, we create our own link.h
to work with eh_frame unwinding. Thanks!
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/54209] [4.8 Regression] Failed to build gcc for Android/x86
2012-08-09 15:55 [Bug bootstrap/54209] New: [4.8 Regression] Failed to build gcc for Android/x86 hjl.tools at gmail dot com
` (4 preceding siblings ...)
2012-08-09 18:46 ` chaoyingfu at gcc dot gnu.org
@ 2012-08-09 19:09 ` hjl.tools at gmail dot com
2012-08-20 14:03 ` hjl.tools at gmail dot com
6 siblings, 0 replies; 8+ messages in thread
From: hjl.tools at gmail dot com @ 2012-08-09 19:09 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54209
--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> 2012-08-09 19:08:49 UTC ---
(In reply to comment #4)
> >
> > Why isn't link.h in AOSP Bionic C library?
>
> ARM doesn't use eh_frame, so there is no need to create link.h at the
> beginning for the Android project, I guess. For MIPS, we create our own link.h
> to work with eh_frame unwinding. Thanks!
In that case, it should also be added to x86.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/54209] [4.8 Regression] Failed to build gcc for Android/x86
2012-08-09 15:55 [Bug bootstrap/54209] New: [4.8 Regression] Failed to build gcc for Android/x86 hjl.tools at gmail dot com
` (5 preceding siblings ...)
2012-08-09 19:09 ` hjl.tools at gmail dot com
@ 2012-08-20 14:03 ` hjl.tools at gmail dot com
6 siblings, 0 replies; 8+ messages in thread
From: hjl.tools at gmail dot com @ 2012-08-20 14:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54209
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |WORKSFORME
--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> 2012-08-20 14:02:52 UTC ---
link.h has been added to AOSP.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-08-20 14:03 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-09 15:55 [Bug bootstrap/54209] New: [4.8 Regression] Failed to build gcc for Android/x86 hjl.tools at gmail dot com
2012-08-09 15:57 ` [Bug bootstrap/54209] " hjl.tools at gmail dot com
2012-08-09 16:41 ` hjl.tools at gmail dot com
2012-08-09 17:24 ` chaoyingfu at gcc dot gnu.org
2012-08-09 18:41 ` hjl.tools at gmail dot com
2012-08-09 18:46 ` chaoyingfu at gcc dot gnu.org
2012-08-09 19:09 ` hjl.tools at gmail dot com
2012-08-20 14:03 ` hjl.tools at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).