This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Build error on 1.7.0


Arnaud Lacombe wrote:
Hi,

On Tue, Jun 29, 2010 at 10:09 PM, Rod Nussbaumer <bomr@triumf.ca> wrote:
Attached is the build log from CT-NG 1.7.0

The summary for Google and anyone interested looks like this:

[ALL  ]
/home/bomr/Projects/CrossDevel/crosstool/crosstool-ng-1.7.0/targets/arm-ctng170-linux-gnu/build/build-cc/./gcc/xgcc
-B/home/bomr/Projects/CrossDevel/crosstool/crosstool-ng-1.7.0/targets/arm-ctng170-linux-gnu/build/build-cc/./gcc/
-B/home/bomr/x-tools/arm-ctng170-linux-gnu/arm-ctng170-linux-gnu/bin/
-B/home/bomr/x-tools/arm-ctng170-linux-gnu/arm-ctng170-linux-gnu/lib/
-isystem
/home/bomr/x-tools/arm-ctng170-linux-gnu/arm-ctng170-linux-gnu/include
-isystem
/home/bomr/x-tools/arm-ctng170-linux-gnu/arm-ctng170-linux-gnu/sys-include
-O2  -g -Os -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem
./include  -Dinhibit_libc -fno-inline -g0 -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED  -I. -I.
-I/home/bomr/Projects/CrossDevel/crosstool/crosstool-ng-1.7.0/targets/src/gcc-4.1.2/gcc
-I/home/bomr/Projects/CrossDevel/crosstool/crosstool-ng-1.7.0/targets/src/gcc-4.1.2/gcc/.
-I/home/bomr/Projects/CrossDevel/crosstool/crosstool-ng-1.7.0/targets/src/gcc-4.1.2/gcc/../include
-I/home/bomr/Projects/CrossDevel/crosstool/crosstool-ng-1.7.0/targets/src/gcc-4.1.2/gcc/../libcpp/include
 -fexceptions -fvisibility=hidden -DHIDE_EXPORTS -c
/home/bomr/Projects/CrossDevel/crosstool/crosstool-ng-1.7.0/targets/src/gcc-4.1.2/gcc/unwind-dw2.c
-o libgcc/./unwind-dw2.o
[ALL  ]
/home/bomr/Projects/CrossDevel/crosstool/crosstool-ng-1.7.0/targets/src/gcc-4.1.2/gcc/unwind-dw2.c:
In function 'init_dwarf_reg_size_table':
[ERROR]
/home/bomr/Projects/CrossDevel/crosstool/crosstool-ng-1.7.0/targets/src/gcc-4.1.2/gcc/unwind-dw2.c:1239:
internal compiler error: in arm_dbx_register_number, at
config/arm/arm.c:15191
[ALL  ]    Please submit a full bug report,
[ALL  ]    with preprocessed source if appropriate.
[ALL  ]    See <URL:http://gcc.gnu.org/bugs.html> for instructions.
[ERROR]    make[4]: *** [libgcc/./unwind-dw2.o] Error 1

this is gcc's bugs 29693[0], 35703, 37670.

I managed to get this far by 'fixing' a prior error in ioperm.c, commenting
out the call for a missing header file (this seems to be the effect of a
patch I saw somewhere). This looks like more than I can chew for now...

More info on request.

well maybe could you have attached the patch and/or reference URLs :/
Moreover, I don't see anything special in the build.log about
`ioperm.c'...

Okay, sorry. It seemed like an issue that was already known, and simply not applied because of the very old glibc that I'm building, or for reason I don't understand.
Anyway, this URL
<http://cygwin.ru/ml/crossgcc/2009-02/msg00007.html>
seems to describe the change. See the last patch, which I will include here, for reference:


diff -durN glibc-2.5.orig/glibc-ports-2.5/sysdeps/unix/sysv/linux/arm/ioperm.c glibc-2.5/glibc-ports-2.5/sysdeps/unix/sysv/linux/arm/ioperm.c
--- glibc-2.5.orig/glibc-ports-2.5/sysdeps/unix/sysv/linux/arm/ioperm.c 2009-01-19 15:27:32.312284000 -0800
+++ glibc-2.5/glibc-ports-2.5/sysdeps/unix/sysv/linux/arm/ioperm.c 2009-01-23 12:14:49.948038000 -0800
@@ -45,7 +45,6 @@
#include <sys/mman.h>


 #include <linux/version.h>
-#include <asm/page.h>
 #include <sys/sysctl.h>

 #define PATH_ARM_SYSTYPE	"/etc/arm_systype"
--

This patch is for a different (newer) version of glibc than I was using, but the same change still seems to apply.
I mentioned a failure of 1.7.0 to work for me as part of a prior post, and Yann suggested that I document it here on the list. As it is now of more or less academic interest to me, I am posting this for the benefit of others. More info upon request.


--- rod.


-- For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]