LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   gcc-3.3.1 make -k check - make [check] Error 2 (http://www.linuxquestions.org/questions/linux-from-scratch-13/gcc-3-3-1-make-k-check-make-%5Bcheck%5D-error-2-a-142557/)

BarryM45 02-05-2004 06:04 AM

gcc-3.3.1 make -k check - make [check] Error 2
 
All,

i am currently working on chapter 6 of the LFS 5 manual. I am checking my build pre install and have come across an error i cannot seem to resolve.
any pointers in this regard would be very much appreciated.

I supply the screen output below:

> === g++ tests ===
>
> Schedule of variations:
> unix
>
> Running target unix
> Using /tools/share/dejagnu/baseboards/unix.exp as board description file for target.
> Using /tools/share/dejagnu/config/unix.exp as generic interface file for target.Using /build/gcc-3.3.1/gcc/testsuite/config/default.exp as tool-and-target-specific interface file.
> Running /build/gcc-3.3.1/gcc/testsuite/g++.dg/bprob/bprob.exp ...
> /testsuite_flags: /testsuite_flags: No such file or directory
> while executing
> "exec sh ${odir_v3}/testsuite_flags --build-includes"
> (procedure "g++_include_flags" line 21)
> invoked from within
> "g++_include_flags [get_multilibs] "
> invoked from within
> "if [info exists TOOL_OPTIONS] {
> lappend ALWAYS_CXXFLAGS "additional_flags=[g++_include_flags [get_multilibs ${TOOL_OPTIONS}] ]";
> lappend ALW..."
> invoked from within
> "if ![is_remote host] {
bash: ![is_remote: event not found
> if [info exists TOOL_OPTIONS] {
> lappend ALWAYS_CXXFLAGS "additional_flags=[g++_include_flags [get_
multilibs ${TOOL_OPTION..."
> (procedure "g++_init" line 58)
> invoked from within
> "${tool}_init $test_file_name"
> invoked from within
> "if [info exists tool] {
> if { [info procs "${tool}_init"] != "" } {
> ${tool}_init $test_file_name;
> }
bash: syntax error near unexpected token `}'
root:/build/gcc-build# }"
> invoked from within
> "if [file exists $test_file_name] {
bash: }
invoked from within
if: command not found
root:/build/gcc-build# set timestart [timestamp];
root:/build/gcc-build#
root:/build/gcc-build# if [info exists tool] {
> if { [info procs "${tool}_init"] != "" } {
> ${tool}_ini..."
> (procedure "runtest" line 14)
> invoked from within
> "runtest $test_name"
> ("foreach" body line 42)
> invoked from within
> "foreach test_name [lsort [find ${dir} *.exp]] {
> if { ${test_name} == "" } {
> continue
> }
> # Ignore this one if asked to.
> if { ${ignore..."
> ("foreach" body line 54)
> invoked from within
> "foreach dir "${test_top_dirs}" {
> if { ${dir} != ${srcdir} } {
> # Ignore this directory if is a directory to be
> # ignored.
> if {[info..."
> ("foreach" body line 121)
> invoked from within
> "foreach pass $multipass {
>
> # multipass_name is set for `record_test' to use (see framework.exp).
> if { [lindex $pass 0] != "" } {
> set multipass_..."
> ("foreach" body line 51)
> invoked from within
> "foreach current_target $target_list {
> verbose "target is $current_target";
> set current_target_name $current_target;
> set tlist [split $curr..."
> (file "/tools/share/dejagnu/runtest.exp" line 1625)
> make[2]: [check-g++] Error 1 (ignored)
> make[2]: Leaving directory `/build/gcc-build/gcc'
> make[1]: Target `do-check' not remade because of errors.
> make[1]: Leaving directory `/build/gcc-build'
> make: *** [check] Error 2

best
Barry

BarryM45 02-05-2004 09:44 AM

I looked at the error again, the test that gave the error seemed to go much quicker than the 2nd pass in chapter 5 so i decided to run through the "installing GCC-3.3.1" documentation and retrack my steps. i then unpacked the files into the /sources/gcc-3.3.1 rather than copy it to a build directory i had created of the root. I then very carefully issued the /configure command again and then the make command and then the make -k check. This time the tests have gone ok other then the listed errors suggested in the book. So what did i do wrong the first time? I am leaning towards not issuing the make command between /configure and make -k check. it imay also be possible that moving the files from the source directory may have caused problems. or i may have issued a bad switch command in /configure options. whichever it is it's a user error and hence my apologies yet again. This is a confidence issue with a new OS i shall get better.


All times are GMT -5. The time now is 06:18 PM.