This is the mail archive of the crossgcc@sources.redhat.com 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: crosstool sanitized headers patch


Steve Papacharalambous wrote:
I just found a problem with the sanitized headers patch for crosstool-0.30, crosstool-sanitized-headers.diff

The problem occurs when trying to build using linux kernel headers, and the error is:

[snip]
++ awk '/^VERSION =/ { print $3 }' linux-2.6.8/Makefile
awk: cmd. line:2: fatal: cannot open file `linux-2.6.8/Makefile' for reading (No such file or directory)
+ KERNEL_VERSION=
+ exit 1
[/snip]



The problem is that the environment variable LINUX_DIR is no longer converted to an absolute path.


I've attached a patch with a fix,

I've applied this, but I had to leave out this part, as it broke my builds:

diff -uNr crosstool-0.30.orig/all.sh crosstool-0.30/all.sh
--- crosstool-0.30.orig/all.sh 2005-03-08 00:34:32.000000000 +0000
+++ crosstool-0.30/all.sh 2005-04-26 15:40:12.000000000 +0100
@@ -65,10 +69,10 @@
PREFIX=${PREFIX-$RESULT_TOP/$TARGET/$TOOLCOMBO}
export TOOLCOMBO
-export PREFIX
+export PREFIX=`cd ${PREFIX};pwd`
export BUILD_DIR
-export SRC_DIR
-export TARBALLS_DIR
+export SRC_DIR=`cd ${SRC_DIR};pwd`
+export TARBALLS_DIR=`cd ${TARBALLS_DIR};pwd`
export TOP_DIR

-- Trying to get a job as a c++ developer? See http://kegel.com/academy/getting-hired.html

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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