Topic: i486 cross-tool chain is broken.

There appear to be several needed files missing after make i486, my notes follow:

trying to setup cross-tools from ttylinux-src-9.0 distro
using linux mint 8, based on ubuntu 9.10
had to install g++ to continue
got error in make setup that legendre encountered.
fixed all scripts in _scripts with sed -iold s:bin/sh -eu:bin/bash: *
was able then to make setup, make dload, make i486.
make i486 did not print "done." at the end of the last step:
Building glibc-2.9 Stage 2 ........
was followed by a prompt.
testing as root did not work:

_scripts # ./test-i486.sh
./test-i486.sh: line 96: /home/eric/Downloads/ttylinux-src-9.0/cross-tools-2.1/i486-generic-linux-gnu/_versions: No such file or directory
./test-i486.sh: line 97: /home/eric/Downloads/ttylinux-src-9.0/cross-tools-2.1/i486-generic-linux-gnu/_xbt_env_set: No such file or directory
Checking simple  target C cross compile.
  >Compiling test program.
  >Running test program.
cp: cannot stat `./hello': No such file or directory
chroot: cannot run command `/lib/ld-linux.so.2': No such file or directory
  >Analyzing test program and its output.
readelf: Error: 'hello': No such file
0a1
> Hello.
  *ERROR* Test program FAIL.
0a1
>       [Requesting program interpreter: /lib/ld-linux.so.2]
  *ERROR* Test Program analysis 1 FAIL.
0a1,3
> attempt to open /home/eric/Downloads/ttylinux-src-9.0/cross-tools-2.1/i486-generic-linux-gnu/target/lib/crt1.o succeeded
> attempt to open /home/eric/Downloads/ttylinux-src-9.0/cross-tools-2.1/i486-generic-linux-gnu/target/lib/crti.o succeeded
> attempt to open /home/eric/Downloads/ttylinux-src-9.0/cross-tools-2.1/i486-generic-linux-gnu/target/lib/crtn.o succeeded
  *ERROR* Test Program analysis 2 FAIL.
0a1
> attempt to open /home/eric/Downloads/ttylinux-src-9.0/cross-tools-2.1/i486-generic-linux-gnu/target/lib/libc.so.6 succeeded
  *ERROR* Test Program analysis 4 FAIL.
0a1
> found ld-linux.so.2 at /home/eric/Downloads/ttylinux-src-9.0/cross-tools-2.1/i486-generic-linux-gnu/target/lib/ld-linux.so.2
  *ERROR* Test Program analysis 5 FAIL.
Simple  target C cross compiler Blech.
Checking simple  target C++ cross compile... ./test-i486.sh: line 288: /home/eric/Downloads/ttylinux-src-9.0/cross-tools-2.1/i486-generic-linux-gnu/host/usr/bin/-c++: No such file or directory
cp: cannot stat `./hello': No such file or directory
Blech.
chroot: cannot run command `/lib/ld-linux.so.2': No such file or directory

sure enough, the test results predict failure:

mint-athlon ttylinux-src-9.0 # make dist
Remove ttylinux build.
=> Removing development build directories.
=> Removing boot CD configuration.
=> Removing file system image, boot CD image.
=> Removing binary packages.
=> Removing build logs.
Initializing the ttylinux build.
=> Creating preliminary development build directories ... DONE
=> Creating build-root base file system directories ... DONE
Building the ttylinux packages.
E> i486 cross-tool chain is broken.
E>      no /home/eric/Downloads/ttylinux-src-9.0/cross-tools-2.1/i486-generic-linux-gnu/_versions file
Build FAILED.
make: *** [pkgs] Error 1
mint-athlon ttylinux-src-9.0 #

Re: i486 cross-tool chain is broken.

hi pantene,

You have many files missing; there are 9 steps in the tool chain build process and yours had an error n the 6th step.

Look in your /home/eric/Downloads/ttylinux-src-9.0/cross-tools-2.1/i486-generic-linux-gnu/ directory and you will see these files:

_log.1.binutils
_log.2.gcc_stage1
_log.3.kernel_headers
_log.4.glibc_stage1
_log.5.gcc_stage2
_log.6.glibc_stage2

Indications of the error(s) will be near the end of the last file. Take a look at that file. Post the text of the first error in that file in this forum chain, and feel free to zip that text file and email it to me at douglas@ttylinux.org so I can try to see what went wrong.

Re: i486 cross-tool chain is broken.

OK, that was the clue I needed. The contents of that file, in its entirety, read:

Finding, uncompressing, untarring glibc-2.9
Using /home/eric/Downloads/ttylinux-src-9.0/cross-tools-2.1/_pkg-src/glibc-2.9.tar.bz2
../_scripts/generic-linux-gnu.sh: line 829: patch: command not found

I installed patch and started over. I will consult those logs first in the event of any errors. Thanks.