err: /usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: cannot find -lc
/usr/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
这里报错我说下我的解决方式,我的解决方式是给定config的配置的编译平台就可以了
这边给定一下我的交叉编译net-snmp的时候的config
./configure --prefix=/media/build/cyf/400mcode/net-snmp/setup --build=x86_64 --host=aarch64-linux-gnu --with-cc=aarch64-linux-gnu-gcc --with-ar=aarch64-linux-gnu-ar --with-default-snmp-version="2" --with-logfile="/var/log/snmpd.log" --without-perl-modules --disable-embedded-perl
上述配置关键是--build=x86_64 --host=aarch64-linux-gnu这两个配置。会影响这个报错;