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

See crosstool-NG 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]

[patch] Re: cp: cannot stat `misc/syscall-list.h': No such file or directory


Ok, fixes the problem for me. Here is a patch.

I don't know if you prefer the patch in the mail body or as attachment ?
====================================================================
# HG changeset patch
# User Jerome BARDON <bardon.pro@gmail.com>
# Date 1360921600 -3600
# Node ID fb662f18d002da9303aba2ea933c5204b789e752
# Parent  20f2459b97bf5eb89e2f125e0aede9541e7fc049
fix syscall-list.h in system headers

diff -r 20f2459b97bf -r fb662f18d002 scripts/build/libc/glibc-eglibc.sh-common
--- a/scripts/build/libc/glibc-eglibc.sh-common Mon Jan 28 21:53:18 2013 +0100
+++ b/scripts/build/libc/glibc-eglibc.sh-common Fri Feb 15 10:46:40 2013 +0100
@@ -404,7 +404,7 @@
             # but it breaks arm, see
http://sourceware.org/ml/crossgcc/2006-01/msg00091.html
             case "${CT_ARCH}" in
                 arm)    ;;
-                *)  CT_DoExecLog ALL cp -v "misc/syscall-list.h"            \
+                *)  CT_DoExecLog ALL cp -v "misc/bits/syscall.h"            \
                                            "${CT_HEADERS_DIR}/bits/syscall.h"
                     ;;
             esac
====================================================================

Regards,

Jérôme


2013/2/9 Rafael C <groups.r2@gmail.com>
>
> Since I got no replies and found no previous documentation of this
> error. I tinkered with the source code and found that in
> lib/ct-ng.1.18.0/scripts/build/libc/glibc-eglibc.sh-common line 407
> the path should be:
>
> "misc/bits/syscall.h"
>
> instead of:
>
>  misc/syscall-list.h
>
> I'd have written a patch but I'm fairly new to this. I hope this
> manual fix helps others stuck with the same issue. Thanks.
>
>
> On Mon, Feb 4, 2013 at 10:13 PM, Rafael C <groups.r2@gmail.com> wrote:
> > Hi all. I'm trying to build an x86_64 toolchain  with crosstool-ng
> > 1.18.0 and ran across the following error (this didn't happen with
> > 1.17.0 on the same machine):
> >
> > cp: cannot stat `misc/syscall-list.h': No such file or directory
> >
> > Here is the pertinent portion of the log:
> >
> > [ALL  ]    `bits/stdio_lim.h' ->
> > `/opt/xtool/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/sysroot/usr/include/bits/stdio_lim.h'
> > [DEBUG]    ==> Executing: 'cp' '-v' 'misc/syscall-list.h'
> > '/opt/xtool/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/sysroot/usr/include/bits/syscall.h'
> > [ALL  ]    cp: cannot stat `misc/syscall-list.h': No such file or directory
> > [ERROR]
> > [ERROR]  >>
> > [ERROR]  >>  Build failed in step 'Installing C library headers & start files'
> > [ERROR]  >>        called in step '(top-level)'
> > [ERROR]  >>
> > [ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
> > [ERROR]  >>        called from:
> > do_libc_backend_once[scripts/build/libc/glibc-eglibc.sh-common@407]
> > [ERROR]  >>        called from:
> > do_libc_backend[scripts/build/libc/glibc-eglibc.sh-common@143]
> > [ERROR]  >>        called from:
> > do_libc_start_files[scripts/build/libc/glibc-eglibc.sh-common@60]
> > [ERROR]  >>        called from: main[scripts/crosstool-NG.sh@632]
> > [ERROR]  >>
> > [ERROR]  >>  For more info on this error, look at the file: 'build.log'
> > [ERROR]  >>  There is a list of known issues, some with workarounds, in:
> > [ERROR]  >>      '/opt/crosstool/share/doc/crosstool-ng/ct-ng.1.18.0/B
> > - Known issues.txt'
> > [ERROR]
> > [ERROR]  (elapsed: 25:13.19)
> >
> > Any help is greatly appreciated. Thanks.
>
> --
> 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]