Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

crosstool-ng : Exec format error

OP Kdeon

30th August 2014, 10:16 PM   |  #1  
OP Junior Member
Thanks Meter: 0
2 posts
Join Date:Joined: Aug 2014

I'm using the crosstool as provided from here by osm0sis

However, I'm running into issues.

I cannot compile a c/cpp file, it won't produce the output object .o file. Instead, the compiler errors and display "error: spawn: Exec format error", I'm not quite sure what it means though.
I use i686-unknown-linux-gnu-c++ to compile from Windows 8.1 x64.

But, when I use i686-unknown-linux-gnu-cpp, it will compile, and produce an .o ANSI file (not binary, but with all classes, structs and so on), but is invalid for ELF.

I noticed that in the archive provided by osm0sis, there are 0Kb exe file like, i686-unknown-linux-gnu-g++.exe. Are they left there willingly or is the archive somehow "corrupted" ?

Is there any possible solutions, and did someone already had this kind of this issue ?

Last edited by Kdeon; 31st August 2014 at 12:04 AM.
31st August 2014, 11:05 AM   |  #2  
OP Junior Member
Thanks Meter: 0
2 posts
Join Date:Joined: Aug 2014
The thread just got drown... Is this the appropriate section to ask this anyway?
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes