Χαίρετε,
έχω το εξής πρόβλημα. Θέλω να ακολουθήσω τον εξής -> Οδηγό <- για να φτιάξω ένα image ενός μικρού λειτουργικού συστήματος εν ονοματι XINU.
Ύστερα το image θέλω να το τρέξω με QEMU.
Επειδή η πλατφόρμα που θέλω να τρέξει είναι MIPS, χρειάζομαι έναν Cross-Compiler. Αυτό μπορεί να γίνει από ότι λέει ο Οδηγός με τα εξής βήματα:
1. Κατεβάζω τις >binutils 2.21<
2. Μέσα στο φάκελό του binutils που έχω κατεβάσει και αποσυμπιέσει τρέχω:
- Κώδικας: Επιλογή όλων
./configure --prefix=/usr/local/project/mipsel-dev --target=mipsel
make
make install
3. Κάνω link τον φάκελο
- Κώδικας: Επιλογή όλων
mkdir -p /usr/local/project/mipsel-dev/mipsel/usr
ln -s /usr/include /usr/local/project/mipsel-dev/mipsel/usr/include
4. Κατεβάζω τον >GCC< και τον κάνω Build και αυτόν τρέχοντας
- Κώδικας: Επιλογή όλων
./configure --prefix=/usr/local/project/mipsel-dev --target=mipsel --with-sysroot=/usr/local/project/mipsel-dev/mipsel/ --enable-languages=c
make
make install
Στο 2ο κιόλας Βήμα δε γίνεται τίποτα.
- Κώδικας: Επιλογή όλων
root@snf-451414:~/Downloads/binutils-2.23.90# ./configure --prefix=/usr/local/project/mipsel-dev/ --target=mipsel
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... mipsel-unknown-elf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... no
checking for mawk... mawk
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/root/Downloads/binutils-2.23.90':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
root@snf-451414:~/Downloads/binutils-2.23.90#
Ύστερα πάω να κάνω make αλλά δεν υπάρχει κάτι μέσα στο φάκελο. Έχετε ιδέα τι μπορεί να φταίει και δεν κάνει το Build όπως αναμενόταν?
Δοκίμασα και με άλλες binutils αλλά είχα τα ίδια αποτελέσματα.