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]

crosstool-NG 1.9.0 fails to download eglibc-2.12. Patch


Crosstool-NG 1.9.0 fails to download eglibc-2.12 for me.

[INFO ]  Retrieving needed toolchain components' tarballs
[ERROR]    Build failed in step 'Retrieving needed toolchain components' tarballs'
[ERROR]    Error happened in '/home/rjd/crosstool-NG/crosstool-ng-1.9.0/scripts/functions' in function 'CT_DoExecLog' (line unknown, sorry)
[ERROR]          called from '/home/rjd/crosstool-NG/crosstool-ng-1.9.0/scripts/build/libc/eglibc.sh' at line # 20 in function 'do_eglibc_get'
[ERROR]          called from '/home/rjd/crosstool-NG/crosstool-ng-1.9.0/scripts/build/libc/eglibc.sh' at line # 72 in function 'do_libc_get'
[ERROR]          called from '/home/rjd/crosstool-NG/crosstool-ng-1.9.0/scripts/crosstool-NG.sh' at line # 537 in function 'main'
[ERROR]    Look at '/home/rjd/crosstool-NG-out/build.log' for more info on this error.
[ERROR]  (elapsed: 7:33.26)
[07:33] / make: *** [build] Error 1

Examining the log file we have.

...
[ALL  ]    A    eglibc-2_12/localedef/vasprintf.c
[ALL  ]    A    eglibc-2_12/localedef/install-sh
[ALL  ]    Exported revision 11956.
[DEBUG]    ==> Executing: 'mv libc eglibc-2_12'
[ALL  ]    mv: cannot stat `libc': No such file or directory
[ERROR]    Build failed in step 'Retrieving needed toolchain components' tarballs'
...

It looks like the files are being extracted in a subdirectory of where
they should be by the svn export ?  The following patch spots this condition
and shuffles them up a layer.

Following the patch eglibc is downloaded, tarballs generated and the
build completes normally.


--- crosstool-ng-1.9.0/scripts/build/libc/eglibc.sh-orig	2010-11-04 13:20:23.000000000 +0000
+++ crosstool-ng-1.9.0/scripts/build/libc/eglibc.sh	2010-11-04 13:24:10.000000000 +0000
@@ -16,6 +16,13 @@
 
     CT_DoExecLog ALL svn ${svn_action} -r "${CT_EGLIBC_REVISION:-HEAD}" "${svn_url}" . 2>&1
 
+    # If things got extracted in a subdir, move them up one.
+    if [ -d "eglibc-${CT_LIBC_VERSION}/libc" -a ! -d libc ]
+    then
+	CT_DoExecLog ALL mv "eglibc-${CT_LIBC_VERSION}"/* .
+	CT_DoExecLog ALL rmdir "eglibc-${CT_LIBC_VERSION}"
+    fi
+
     # Compress eglibc
     CT_DoExecLog ALL mv libc "eglibc-${CT_LIBC_VERSION}"
     CT_DoExecLog ALL tar cjf "eglibc-${CT_LIBC_VERSION}.tar.bz2" "eglibc-${CT_LIBC_VERSION}"


-- 
        Bob Dunlop

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