小弟最近初學嵌入式系統
正從建立 cross compile toolchain 開始
在make binutils 時發生錯誤
也試過將
錯誤訊息(/bin/bash: x86_64-linux-gnu-ar: command not found)
貼到google中查詢
但是結果實在太少(用x86_64-linux-gnu-ar找就少嚕)且也沒有解答
因此將相關資訊貼出
希望有高手可以幫忙看看
如果希望我補足其他資訊也請告訴我
感謝您 謝謝
OS: Ubuntu 8.04 Beta (installed by AMD64 desktop CD)
Kernel: 2.6.24-12-generic
gcc: 4.2.3
make: 3.8.1
libncurses5: 5.6+200711
########################
#前置作業
sudo apt-get install build-essential gcc make
sudo apt-get source binutils gdb gcc glibc
########################
編譯cross binutils時的參數
sudo ./configure --target=arm-elf --prefix=/usr/local/arm --host=x86_64-linux-gnu
sudo make all install
在 sudo make all install 時
出現
x86_64-linux-gnu-ar rc ./libiberty.a \
./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./alloca.o ./argv.o ./choose-temp.o ./concat.o ./cp-demint.o ./dyn-string.o ./fdmatch.o ./fibheap.o ./filename_cmp.o ./floatformat.o ./fnmatch.o ./fopen_unlocked.o ./getopt.o ./getopt1.o ./getpwd.o ./getruntime.o ./hashtab.o ./hex.o ./lbasename.o ./lrealpath.o ./make-relative-prefix.o ./make-temp-file.o ./objalloc.o ./obstack.o ./partition.o ./pexecute.o ./physmem.o ./pex-common.o ./pex-one.o ./pex-unix.o ./safe-ctype.o ./sort.o ./spaces.o ./splay-tree.o ./strerror.o ./strsignal.o ./unlink-if-ordinary.o ./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o ./xstrdup.o ./xstrerror.o ./xstrndup.o ./mkstemps.o ./strncmp.o
/bin/bash: x86_64-linux-gnu-ar: command not found
make[2]: *** [libiberty.a] Error 127
make[2]: Leaving directory `/home/chl/arm-cross-software/binutils-2.18.1~cvs20080103/libiberty'
make[1]: *** [all-libiberty] Error 2
make[1]: Leaving directory `/home/chl/arm-cross-software/binutils-2.18.1~cvs20080103'
make: *** [all] Error 2
P.S. CPU 是 Intel Core 2 Duo
cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU 6320 @ 1.86GHz
stepping : 6
cpu MHz : 600.000
cache size : 4096 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 3727.01
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management: