FAQ SearchLogin
Tuxera Home
View unanswered posts | View active topics It is currently Sun Jun 20, 2021 09:19



Post new topic Reply to topic  [ 2 posts ] 
Cross Compile NTFS-3G 
Author Message

Joined: Mon Jun 20, 2016 16:15
Posts: 1
Post Cross Compile NTFS-3G
Hi,

I'm looking for some tips when trying to compile the NTFS-3G driver to work on an embedded ARMv7 platform.

Having downloaded the source to my development Linux machine, when I try to cross compile (using a known, working toolchain) using the following:

Code:
./configure CC=arm-angstrom-linux-gnueabi --host=arm-angstrom-linux-gnueabi


I get the following error:

Code:
checking whether the C compiler works... no
configure: error: in '/dev/ntfs-3g_ntfsprogs-2016.2.22':
configure: error: C compiler cannot create executables


If I do "which arm-angstrom-linux-gnueabi-gcc" then it correctly reports the path to the GCC compiler.

The build system type is correctly identified as "x86_64-unknown-linux-gnu" with the host+target being identified as "arm-angstrom-linux-gnueabi"

Could anyone please offer any suggestions as to what I'm missing?

Thanks,
Kevin


Mon Jun 20, 2016 16:21
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: Cross Compile NTFS-3G
Hi,

Code:
./configure CC=arm-angstrom-linux-gnueabi --host=arm-angstrom-linux-gnueabi

You are defining the host as an arm CPU, this does not look like cross-compiling.
Quoting from https://landley.net/writing/docs/cross-compiling.html :
Quote:
The computer the compiler runs on is called the host, and the computer the new programs run on is called the target. When the host and target are the same type of machine, the compiler is a native compiler. When the host and target are different, the compiler is a cross compiler.

Quote:
The build system type is correctly identified as "x86_64-unknown-linux-gnu"

If your compiler is running on an x86_64 Linux computer, you should probably define the host as x86_64-unknown-linux

Regards

Jean-Pierre


Mon Jun 20, 2016 21:39
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Original forum style by Vjacheslav Trushkin.