Closed zaoqi-unsafe closed 5 years ago
$ CC=arm-linux-gnu-gcc ./configure --host=arm-linux-gnueabi --target=arm-linux-gnueabi --enable-kindle --sysconfdir=/mnt/us/extensions/kterm
......
configure: error: in `/home/zaoqi/Kindle/pkgs-src/kterm':
configure: error: C compiler cannot create executables
See `config.log' for more details
config.log
/usr/bin/arm-linux-gnu-ld: cannot find crt1.o: No such file or directory
/usr/bin/arm-linux-gnu-ld: cannot find crti.o: No such file or directory
$ ./configure --build=x86_64-redhat-linux --host=arm-none-eabi --target=arm-none-eabi --enable-kindle --sysconfdir=/mnt/us/extensions/kterm
...
configure: error: in `/home/zaoqi/Kindle/pkgs-src/kterm':
configure: error: C compiler cannot create executables
See `config.log' for more details
config.log
/usr/lib/gcc/arm-none-eabi/7.4.0/../../../../arm-none-eabi/bin/ld: cannot find crt0.o: No such file or directory
/usr/lib/gcc/arm-none-eabi/7.4.0/../../../../arm-none-eabi/bin/ld: cannot find -lc
$ CFLAGS='-target armv7l-linux-gnueabi' CC=clang ./configure --host=arm-linux-gnueabi --target=arm-linux-gnueabi --enable-kindle --sysconfdir=/mnt/us/extensions/kterm
config.log
/usr/bin/ld: unrecognised emulation mode: armelf_linux_eabi
Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 elf_iamcu elf_l1om elf_k1om i386pep i386pe
clang-8: error: linker command failed with exit code 1 (use -v to see invocation)
Cross-compilation for Kindle is a broad topic. I suggest you look for help on Kindle Developer's Corner.
I've installed
dbus-devel
gtk2-devel
arm-linux-gnu-gcc
vte-devel