Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Skipping incompatible error when using arm-linux-gnueabihf on beaglebone black
Skipping incompatible error when using arm-linux-gnueabihf on beaglebone black [message #1752805] Fri, 27 January 2017 14:07 Go to next message
Gabriel Lee is currently offline Gabriel LeeFriend
Messages: 3
Registered: January 2017
Junior Member
I am trying to compile pocketsphinx on my beaglebone black. However, i encountered a "Skipping incompatible error" during the building process through the use of Eclipse Luna.

Compiling on my computer using gcc and g++ is fine. When i change the settings to as shown below to allow it to be built for a arm-based device, the "skipping incompatibility" error appears

C/C++ Build -> Settings->Cross Gcc Compiler -> Command (Changed to "arm-linux-gnueabihf-gcc-4.8 -std=c++11" from gcc )

C/C++ Build -> Settings->Cross G++ Compiler -> Command (Changed to "arm-linux-gnueabihf-g++-4.8 -std=c++11" from g++ )

C/C++ Build -> Settings->Cross G++ Linker-> Command (Changed to "arm-linux-gnueabihf-g++-4.8 -std=c++11" from g++ )

C/C++ Build -> Settings->Cross Gcc assembler -> Command (Changed to "arm-linux-gnueabihf-as" )

I tried linking -Lusr/lib/arm-linux-gnueabihf and also -lpthread -lm -lrt -ldl but it does not solve the error.

This is what i get after compiling,

Description Resource Path Location Type skipping incompatible /usr/local/lib/libsphinxbase.a when searching for -lsphinxbase
skipping incompatible /usr/local/lib/libsphinxad.so when searching for -lsphinxad
skipping incompatible /usr/local/lib/libsphinxad.a when searching for -lsphinxad
skipping incompatible /usr/local/lib/libpocketsphinx.so when searching for -lpocketsphinx
skipping incompatible /usr/local/lib/libpocketsphinx.a when searching for -lpocketsphinx
skipping incompatible //usr/local/lib/libsphinxbase.so when searching for -lsphinxbase
skipping incompatible //usr/local/lib/libsphinxbase.a when searching for -lsphinxbase
skipping incompatible //usr/local/lib/libsphinxad.so when searching for -lsphinxad
skipping incompatible //usr/local/lib/libsphinxad.a when searching for -lsphinxad
skipping incompatible //usr/local/lib/libpocketsphinx.so when searching for -lpocketsphinx
skipping incompatible //usr/local/lib/libpocketsphinx.a when searching for -lpocketsphinx
make: *** [pocketsphinx2] Error 1
cannot find -lsphinxbase
cannot find -lsphinxad
cannot find -lpocketsphinx
Re: Skipping incompatible error when using arm-linux-gnueabihf on beaglebone black [message #1752821 is a reply to message #1752805] Fri, 27 January 2017 17:54 Go to previous message
David VavraFriend
Messages: 1412
Registered: October 2012
Senior Member
The message usually means the files are the wrong architecture for the target (M64 vs. M32, e.g.).
http://stackoverflow.com/questions/3119714/skipping-incompatible-libraries-at-compile
You could try specifying the architecture: http://stackoverflow.com/a/29546339/3312726

You can have libraries for both architectures on the same system but need to ensure that the wrong one isn't in the linker search path.
To find out what is being searched is not particularly easy but this might help: http://stackoverflow.com/a/21610523/3312726
You could be using the wrong loader: http://unix.stackexchange.com/a/194113


I see you have posted this question both here and at stackoverflow:
http://stackoverflow.com/questions/41787080/skipping-incompatible-error-when-using-arm-linux-gnueabihf-on-beaglebone-black
The answer you got was up-voted twice.

if you really used - Lusr/lib/arm-linux-gnueabihf there probably isn't any local directory usr/lib/arm-linux-gnueabihf
or it doesn't contain sphinx libraries. Perhaps you meant: - L/usr/lib/arm-linux-gnueabihf instead.

This is not a CDT issue per se and is likely off topic here.


Previous Topic:How to make and use my own arduino libraries?
Next Topic:Selecting the correct Arduino tool chain
Goto Forum:
  


Current Time: Wed Jan 19 11:38:46 GMT 2022

Powered by FUDForum. Page generated in 0.01927 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top