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: Error with patched crosstool-0.43 - demo-arm-softfloat-eabi


This is a simple patch when you still want to be using mawk.
Check the line numbers, did it for 2.6 and not 2.5

original patch glibc-2.6-mawk_fix-1.patch by Jim Gifford
<jim@linuxfromscratch.org>

Mark


diff -Naur glibc-2.6.orig/scripts/gen-sorted.awk
glibc-2.6/scripts/gen-sorted.awk
--- glibc-2.6.orig/scripts/gen-sorted.awk       2006-02-28
07:05:57.000000000 +0000
+++ glibc-2.6/scripts/gen-sorted.awk    2007-07-20 21:03:50.000000000 +0000
@@ -16,7 +16,7 @@
 {
   subdir = type = FILENAME;
   sub(/^.*\//, "", type);
-  sub(/\/[^/]+$/, "", subdir);
+  sub(/\/[^\/]+$/, "", subdir);
   sub(/^.*\//, "", subdir);
   thisdir = "";
 }
@@ -56,13 +56,13 @@
     # The Subdirs file comes from an add-on that should have the
subdirectory.
     dir = FILENAME;
     do
-      sub(/\/[^/]+$/, "", dir);
+      sub(/\/[^\/]+$/, "", dir);
     while (dir !~ /\/sysdeps$/);
     sub(/\/sysdeps$/, "", dir);
     if (system("test -d " dir "/" thisdir) == 0)
       dir = dir "/" thisdir;
     else {
-      sub(/\/[^/]+$/, "", dir);
+      sub(/\/[^\/]+$/, "", dir);
       if (system("test -d " dir "/" thisdir) == 0)
         dir = dir "/" thisdir;
       else {




ARABINDA VERMA wrote:
> Hello All,
> 
> I patched crosstool-0.43 with patch given in "glibc 2.5+nptl build for arm softfloat eabi". I tried to build for arm-softfloat-linux-gnueabi target.
> 
> However, I getting an error. Please refer the build log for detais attached here with. 
> 
> Last few lines of buildlog is as follows:
> mawk: scripts/gen-sorted.awk: line 19: syntax error at or near ]
> mawk: scripts/gen-sorted.awk: line 19: runaway regular expression /, "", subd ...
> /usr/bin/install -c -m 644 include/limits.h /opt/crosstool/arm-softfloat-linux-gnueabi/arm-softfloat-linux-gnueabi/include/limits.h
> /usr/bin/install -c -m 644 include/values.h /opt/crosstool/arm-softfloat-linux-gnueabi/arm-softfloat-linux-gnueabi/include/values.h
> /usr/bin/install -c -m 644 include/features.h /opt/crosstool/arm-softfloat-linux-gnueabi/arm-softfloat-linux-gnueabi/include/features.h
> /usr/bin/install -c -m 644 include/gnu-versions.h /opt/crosstool/arm-softfloat-linux-gnueabi/arm-softfloat-linux-gnueabi/include/gnu-versions.h
> ./scripts/mkinstalldirs /opt/crosstool/arm-softfloat-linux-gnueabi/arm-softfloat-linux-gnueabi/include/bits
> mkdir /opt/crosstool/arm-softfloat-linux-gnueabi/arm-softfloat-linux-gnueabi/include/bits
> /usr/bin/install -c -m 644 nptl/sysdeps/pthread/bits/libc-lock.h /opt/crosstool/arm-softfloat-linux-gnueabi/arm-softfloat-linux-gnueabi/include/bits/libc-lock.h
> ./scripts/mkinstalldirs /opt/crosstool/arm-softfloat-linux-gnueabi/arm-softfloat-linux-gnueabi/include/bits
> /usr/bin/install -c -m 644 include/bits/xopen_lim.h /opt/crosstool/arm-softfloat-linux-gnueabi/arm-softfloat-linux-gnueabi/include/bits/xopen_lim.h
> ./scripts/mkinstalldirs /opt/crosstool/arm-softfloat-linux-gnueabi/arm-softfloat-linux-gnueabi/include/gnu
> mkdir /opt/crosstool/arm-softfloat-linux-gnueabi/arm-softfloat-linux-gnueabi/include/gnu
> /usr/bin/install -c -m 644 include/gnu/libc-version.h /opt/crosstool/arm-softfloat-linux-gnueabi/arm-softfloat-linux-gnueabi/include/gnu/libc-version.h
> ./scripts/mkinstalldirs /opt/crosstool/arm-softfloat-linux-gnueabi/arm-softfloat-linux-gnueabi/include/gnu
> /usr/bin/install -c -m 644 /home/arabinda/My-Project-2/crosstool-0.43.cosmos/build/arm-softfloat-linux-gnueabi/gcc-4.1.1-glibc-2.5/build-glibc-headers/gnu/lib-names.h /opt/crosstool/arm-softfloat-linux-gnueabi/arm-softfloat-linux-gnueabi/include/gnu/lib-names.h
> /usr/bin/install: cannot stat `/home/arabinda/My-Project-2/crosstool-0.43.cosmos/build/arm-softfloat-linux-gnueabi/gcc-4.1.1-glibc-2.5/build-glibc-headers/gnu/lib-names.h': No such file or directory
> make[1]: *** [/opt/crosstool/arm-softfloat-linux-gnueabi/arm-softfloat-linux-gnueabi/include/gnu/lib-names.h] Error 1
> make[1]: Leaving directory `/home/arabinda/My-Project-2/crosstool-0.43.cosmos/build/arm-softfloat-linux-gnueabi/gcc-4.1.1-glibc-2.5/glibc-2.5'
> make: *** [install-headers] Error 2
> 
> The content of arm-softfloat-linux-gnueabi.crosstoolconfig.txt is as follows:
> AR=
> BINUTILS_DIR=binutils-2.17
> BINUTILS_EXTRA_CONFIG=
> BUILD=i686-pc-linux-gnu
> BUILD_DIR=/home/arabinda/My-Project-2/crosstool-0.43.cosmos/build/arm-softfloat-linux-gnueabi/gcc-4.1.1-glibc-2.5
> CC=
> DEJAGNU=
> EXTRA_TARGET_CFLAGS=
> GCC_BUILD=
> GCC_CORE_DIR=gcc-4.1.1
> GCC_DIR=gcc-4.1.1
> GCC_EXTRA_CONFIG=--with-float=soft
> GCC_HOST=
> GCC_LANGUAGES=c,c++
> GDB_DIR=gdb-6.5
> GLIBC_ADDON_OPTIONS==yes
> GLIBC_DIR=glibc-2.5
> GLIBC_EXTRA_CC_ARGS=
> GLIBC_EXTRA_CONFIG=--with-tls --with-__thread --with-tls --with-__thread --enable-kernel=2.6.0
> GLIBC_EXTRA_ENV=
> JUST_DOWNLOAD=
> KERNELCONFIG=/home/arabinda/My-Project-2/crosstool-0.43.cosmos/arm.config
> LINUX_DIR=linux-2.6.18.5
> LINUX_SANITIZED_HEADER_DIR=
> NO_DOWNLOAD=
> PREFIX=/opt/crosstool/arm-softfloat-linux-gnueabi
> PTXDIST_DIR=
> SHARED_MODE=--enable-shared
> SRC_DIR=/home/arabinda/My-Project-2/crosstool-0.43.cosmos/build/arm-softfloat-linux-gnueabi/gcc-4.1.1-glibc-2.5
> TARBALLS_DIR=/home/arabinda/downloads
> TARGET=arm-softfloat-linux-gnueabi
> TARGET_CFLAGS=-O
> TOP_DIR=/home/arabinda/My-Project-2/crosstool-0.43.cosmos
> USE_SYSROOT=
> 
> Please help.
> 
> Thanks and regards
> Arabinda
> ------- Original Message -------
> Sender : Khem Raj<kraj@mvista.com> 
> Date   : Jul 19, 2007 16:51
> Title  : RE: Error with patched crosstool-0.43 - demo-arm-softfloat-eabi
> 
> ./scripts/mkinstalldirs /opt/crosstool/arm-iwmmxt-linux-gnueabi/arm-iwmmxt-linux-gnueabi/include/gnu
> /usr/bin/install -c -m 644 /home/arabinda/My-Project/crosstool-0.43.cosmos.patched/build/arm-iwmmxt-linux-gnueabi/gcc-4.1.1-glibc-2.5/build-glibc-headers/gnu/lib-names.h /opt/crosstool/arm-iwmmxt-linux-gnueabi/arm-iwmmxt-linux-gnueabi/include/gnu/lib-names.h
> /usr/bin/install: cannot stat `/home/arabinda/My-Project/crosstool-0.43.cosmos.patched/build/arm-iwmmxt-linux-gnueabi/gcc-4.1.1-glibc-2.5/build-glibc-headers/gnu/lib-names.h': No such file or directory
> make[1]: *** [/opt/crosstool/arm-iwmmxt-linux-gnueabi/arm-iwmmxt-linux-gnueabi/include/gnu/lib-names.h] Error 1
> make[1]: Leaving directory `/home/arabinda/My-Project/crosstool-0.43.cosmos.patched/build/arm-iwmmxt-linux-gnueabi/gcc-4.1.1-glibc-2.5/glibc-2.5'
> make: *** [install-headers] Error 2
> 
> This file is generated during the build. So it seems something went wrong with your configure. If you post full build log that might help. Usually it could be that some of your configure scripts are being regenerated and the autconf version on your host might not generate the file in sync with other configure fragments.
> 
> You should touch all configure files so they do not get regenerated during build.
> 
> you can do something like this in the crosstool.sh
> 
> find ${glibc_sources} -name configure -exec touch '{}' ';'
> 
> Hope that helps.
> 
> -Khem
> 
> 
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> --
> For unsubscribe information see http://sourceware.org/lists.html#faq


--
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]