public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* GCC 4.8.0 (trunk) fails to bootstrap on Fedora 18 ARM (hardfloats)
@ 2013-02-20 13:46 David Abdurachmanov
  0 siblings, 0 replies; only message in thread
From: David Abdurachmanov @ 2013-02-20 13:46 UTC (permalink / raw)
  To: gcc-help; +Cc: Jakub Jelinek

Hi,

Before actually filling a bug report, I would like to share some detail on mailing-list.

OS: Fedora 18 ARM (ODROID-U2, hardfloats system)
System compiler gcc (GCC) 4.7.2 20121109 (Red Hat 4.7.2-8)
Host/Build triplet: armv7hl-redhat-linux-gnueabi

$ rpm --eval '%{_host} %{_build}'
armv7hl-redhat-linux-gnueabi armv7hl-redhat-linux-gnueabi

Tried compiling CC 4.8.0 r196126 yet bootstrap failed [BOOT_FAIL].

$ cat /usr/include/gnu/stubs.h
/* This file is automatically generated.
   This file selects the right generated file of `__stub_FUNCTION' macros
   based on the architecture being compiled for.  */


#if !defined __ARM_PCS_VFP
# include <gnu/stubs-soft.h>
#endif
#if defined __ARM_PCS_VFP
# include <gnu/stubs-hard.h>
#endif

Well on hardfloat system shouldn't compiler define __ARM_PCS_VFP? There is no gnu/stubs-soft.h on hardfloat system.

The system C pre-processor defines it:

$ cpp -dM -E - < /dev/null | grep -i ARM
#define __ARMEL__ 1
#define __ARM_FEATURE_UNALIGNED 1
#define __ARM_PCS_VFP 1
#define __arm__ 1
#define __ARM_ARCH_7A__ 1
#define __ARM_EABI__ 1
#define __ARM_FEATURE_DSP 1

Quick googling suggest similar issues was in LLVM/Clang:

- https://github.com/archlinuxarm/PKGBUILDs/issues/255
- http://llvm.org/bugs/show_bug.cgi?id=13796

Any suggestions?

david
- - -

<<BOOT_FAIL

In file included from /usr/include/features.h:399:0,
                 from /usr/include/stdio.h:27,
                 from ../../../libgcc/../gcc/tsystem.h:87,
                 from ../../../libgcc/libgcc2.c:27:
/usr/include/gnu/stubs.h:7:29: fatal error: gnu/stubs-soft.h: No such file or directory
 # include <gnu/stubs-soft.h>
                             ^
compilation terminated.
make[3]: *** [_muldi3.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /usr/include/features.h:399:0,
                 from /usr/include/stdio.h:27,
                 from ../../../libgcc/../gcc/tsystem.h:87,
                 from ../../../libgcc/libgcc2.c:27:
/usr/include/gnu/stubs.h:7:29: fatal error: gnu/stubs-soft.h: No such file or directory
 # include <gnu/stubs-soft.h>
                             ^
compilation terminated.
make[3]: *** [_cmpdi2.o] Error 1
In file included from /usr/include/features.h:399:0,
                 from /usr/include/stdio.h:27,
                 from ../../../libgcc/../gcc/tsystem.h:87,
                 from ../../../libgcc/libgcc2.c:27:
/usr/include/gnu/stubs.h:7:29: fatal error: gnu/stubs-soft.h: No such file or directory
 # include <gnu/stubs-soft.h>
                             ^
compilation terminated.
make[3]: *** [_negdi2.o] Error 1
In file included from /usr/include/features.h:399:0,
                 from /usr/include/stdio.h:27,
                 from ../../../libgcc/../gcc/tsystem.h:87,
                 from ../../../libgcc/libgcc2.c:27:
/usr/include/gnu/stubs.h:7:29: fatal error: gnu/stubs-soft.h: No such file or directory
 # include <gnu/stubs-soft.h>
                             ^
compilation terminated.
make[3]: *** [_ucmpdi2.o] Error 1
make[3]: Leaving directory `/build/davidlt/fc18_armv7hl_gcc480/b/BUILD/fc18_armv7hl_gcc480/external/gcc/4.8.0/gcc-trunk-196126/obj/armv7hl-redhat-linux-gnueabi/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/build/davidlt/fc18_armv7hl_gcc480/b/BUILD/fc18_armv7hl_gcc480/external/gcc/4.8.0/gcc-trunk-196126/obj'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/build/davidlt/fc18_armv7hl_gcc480/b/BUILD/fc18_armv7hl_gcc480/external/gcc/4.8.0/gcc-trunk-196126/obj'
make: *** [bootstrap] Error 2

BOOT_FAIL


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-02-20 13:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-20 13:46 GCC 4.8.0 (trunk) fails to bootstrap on Fedora 18 ARM (hardfloats) David Abdurachmanov

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