Help - Search - Members - Calendar
Full Version: cross compiling e2fsprogs
OESF Forums > Distros, Development, and Model Specific Forums > Everything Development > Linux Applications
ced
I've tried to cross compiling e2fsprogs and it doesn't do it...

$ export PATH=/opt/cross/bin:$PATH

$ ./configure --target=arm-linux --with-cc=arm-linux-gcc --with-linker=arm-linux-ld --prefix=/opt/cross/arm-linux

QUOTE
loading cache ./config.cache
checking for non-GNU ld... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
Generating configuration file for e2fsprogs version 1.34
Release date is July, 2003
checking host system type... arm-unknown-linux-gnu
CC=arm-linux-gcc
checking for gcc... (cached) cc
checking whether the C compiler (cc  ) works... yes
checking whether the C compiler (cc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether cc accepts -g... (cached) yes
LD=arm-linux-ld
checking how to run the C preprocessor... (cached) cc -E


It compile the library and tools as x86 binaries...

what's wrong? :-(

I need the e2fsprogs library to cross-compile qtopia 1.7. I'll try to make a rom with it...
lardman
Try:

$ export PATH=/opt/cross/bin:/opt/cross/arm-linux/bin:$PATH
$ export CC=arm-linux-gcc
$ export LINKER=arm-linux-g++
$ export COMPILER=arm-linux-gcc
$ ./configure --host=arm-linux --build=i686-linux
ced
I get this...

CODE
loading cache ./config.cache

checking for non-GNU ld... (cached) /usr/bin/ld

checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes

Generating configuration file for e2fsprogs version 1.34

Release date is July, 2003

checking host system type... arm-unknown-linux-gnu

CC defaults to arm-linux-gcc

checking for gcc... (cached) cc

checking whether the C compiler (cc  ) works... no

configure: error: installation or configuration problem: C compiler cannot create executables.
lardman
Try running:

$ make distclean

before you try my commands.


Si
ced
success! :-)

$tar xzvf e2fsprogs-1.34.tar.gz

$mkdir e2fsprogs-build

$cd e2fsprogs

$ export PATH=/opt/cross/bin:$PATH

$ CC=arm-linux-gcc LD=arm-linux-ld RANLIB=arm-linux-ranlib CROSS_COMPILE=arm-linux- ../e2fsprogs-1.34/configure --host=arm-linux --build=i686-pc-linux-gnu --prefix=/opt/cross/arm-linux --enable-elf-shlibs
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.