Interesting error in the 0.28-rc5

Dan Kegel dank@kegel.com
Sat Jun 19 22:57:00 GMT 2004


Dan Strohschein wrote:
> There don't seem to be any errors (IE it finishes with no error codes)
> however it moves VERY fast on a new dell 2.4ghz machine, so I might have
> missed some. But like I said, there was nothing reported at the end. Is
> there a log file for it?

That's not built in because Unix provides a very easy way for you to
create your own log files.  You can usually just add
    > log 2>&1
to the end of any command to create a log file named 'log'.
In fact, you really need to do this and look at the log file
for problems if you're running a complex build.

Try running the attached script with
   $ su
   # mkdir /opt/crosstool
   # chmod 1777 /opt/crosstool
   # exit
   $ sh test.sh > log 2>&1
It should produce a working mips linux uclibc C compiler.  The
The log file should end with

+ /opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.3.3-uClibc-0.9.23/bin/mipsel-unknown-linux-gnu-gcc -static hello.c -o mipsel-unknown-linux-gnu-hello-static
+ /opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.3.3-uClibc-0.9.23/bin/mipsel-unknown-linux-gnu-gcc hello.c -o mipsel-unknown-linux-gnu-hello
+ echo c
+ egrep '(^|,)c++(,|$)'
c
+ cat
+ /opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.3.3-uClibc-0.9.23/bin/mipsel-unknown-linux-gnu-g++ -static hello2.cc -o mipsel-unknown-linux-gnu-hello2-static
testhello.sh: line 34: /opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.3.3-uClibc-0.9.23/bin/mipsel-unknown-linux-gnu-g++: No such file or directory

which means it was able to link two small C programs.
(The error at the last line just means it couldn't compile
C++ programs, which is ok because the script doesn't try to
build a C++ compiler.)
- Dan

-- 
My technical stuff: http://kegel.com
My politics: see http://www.misleader.org for examples of why I'm for regime change
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.sh
Type: application/x-sh
Size: 546 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20040619/a377e5f0/attachment.sh>
-------------- next part --------------
------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


More information about the crossgcc mailing list