OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> cross compiling e2fsprogs
ced
post Jan 30 2004, 03:33 AM
Post #1





Group: Members
Posts: 225
Joined: 9-December 03
Member No.: 1,104



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...
Go to the top of the page
 
+Quote Post
lardman
post Jan 30 2004, 05:55 AM
Post #2





Group: Members
Posts: 4,515
Joined: 25-October 03
From: Bath, UK
Member No.: 464



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
Go to the top of the page
 
+Quote Post
ced
post Jan 30 2004, 07:22 AM
Post #3





Group: Members
Posts: 225
Joined: 9-December 03
Member No.: 1,104



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.
Go to the top of the page
 
+Quote Post
lardman
post Jan 30 2004, 08:19 AM
Post #4





Group: Members
Posts: 4,515
Joined: 25-October 03
From: Bath, UK
Member No.: 464



Try running:

$ make distclean

before you try my commands.


Si
Go to the top of the page
 
+Quote Post
ced
post Jan 30 2004, 08:23 AM
Post #5





Group: Members
Posts: 225
Joined: 9-December 03
Member No.: 1,104



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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd December 2014 - 10:27 AM