This is the mail archive of the
crossgcc@sourceware.org
mailing list for the crossgcc project.
See the CrossGCC FAQ for lots
more information.
Patch to allow gcc test-suite to compile correctly
- From: "Andy Gibbs" <andyg1001 at hotmail dot co dot uk>
- To: <crossgcc at sourceware dot org>
- Date: Fri, 25 Jun 2010 12:33:30 +0200
- Subject: Patch to allow gcc test-suite to compile correctly
Hi all,
Attached is a small patch that allows the new (experimental) test-suite
feature to compile. It was previously failing because it was looking for
the "contrib/gcc-test-suite" folder inside ${CT_LIB_DIR} but the crosstool
"make install" was not copying it across. The patch therefore is to the
Makefile.in file to ensure that the "contrib" folder is copied into the
${CT_LIB_DIR} on "make install".
I toyed with the idea of also changing "scripts/build/test_suite/gcc.sh" to
copy "${CT_LIB_DIR}/contrib/gcc-test-suite/*" rather than the three files
separately. Is there a reason for copying the files individually? If a
file is added or removed in this directory then the "gcc.sh" file must also
be updated.
Cheers
Andy
P.S. For interest, here is the appropriate part of the error log...
[INFO ] Installing GCC test suite
[DEBUG] ==> Executing: 'mkdir -p
/test/crosstool-ng/x-tools/test-suite/gcc'
[DEBUG] ==> Executing: 'cp -a
/test/crosstool-ng/lib/ct-ng-1.7.0/contrib/gcc-test-suite/default.cfg
/test/crosstool-ng/lib/ct-ng-1.7.0/contrib/gcc-test-suite/Makefile
/test/crosstool-ng/lib/ct-ng-1.7.0/contrib/gcc-test-suite/README
/test/crosstool-ng/targets/src/gcc-4.4.4/gcc/testsuite
/test/crosstool-ng/x-tools/test-suite/gcc'
[ALL ] cp: cannot stat
`/test/crosstool-ng/lib/ct-ng-1.7.0/contrib/gcc-test-suite/default.cfg': No
such file or directory
[ALL ] cp: cannot stat
`/test/crosstool-ng/lib/ct-ng-1.7.0/contrib/gcc-test-suite/Makefile': No
such file or directory
[ALL ] cp: cannot stat
`/test/crosstool-ng/lib/ct-ng-1.7.0/contrib/gcc-test-suite/README': No such
file or directory
[ERROR] Build failed in step 'Installing GCC test suite'
[ERROR] Error happened in
'/test/crosstool-ng/lib/ct-ng-1.7.0/scripts/functions' in function
'CT_DoExecLog' (line unknown, sorry)
[ERROR] called from
'/test/crosstool-ng/lib/ct-ng-1.7.0/scripts/build/test_suite/gcc.sh' at line
# 18 in function 'do_test_suite_gcc_build'
[ERROR] called from
'/test/crosstool-ng/lib/ct-ng-1.7.0/scripts/build/test_suite.sh' at line #
38 in function 'do_test_suite'
[ERROR] called from
'/test/crosstool-ng/lib/ct-ng-1.7.0/scripts/crosstool-NG.sh' at line # 583
in function 'main'
[ERROR] Look at '/test/crosstool-ng/x-tools/build.log' for more info on
this error.
[ERROR] (elapsed: 182:02.81)
Attachment:
makefile.in.diff
Description: Binary data
--
For unsubscribe information see http://sourceware.org/lists.html#faq