Why is libtool throwing “unsupported hard code” errors and what do they mean?

I cross-compile gettext-0.18.2 for Windows, but running into some problems. The following error message appears during the steps of linking one of the shared libtool libraries:

 /bin/bash ../libtool --tag=CXX ... libtool: link: unsupported hardcode properties libtool: link: See the libtool documentation for more information. libtool: link: Fatal configuration error. 

You can see the full build log, including the libtool command here (the error is at the very bottom of the page).

What can cause this error and what does it mean? I can not find any information about this error in the documentation, despite the expression in the error message.

It should also be noted: the thing that really makes it strange is that the assembly was done without errors in Ubuntu 12.10 (Quantal) ... but it does not work on Ubuntu 12.04, the current version of LTS.


Optional: I made the difference between libtool line between the line that was successful and the build failed. The diff looks something like this:

enter image description here

Thus, it is obvious that the C ++ compiler is omitted from the command. Could this cause the error above?

+4
source share
1 answer

Yeah!

The problem turned out to be extremely subtle. Mingw-w64 package Install mingw-w64 on Ubuntu 12.10 (Quantal) g ++ lists - mingw-w64 Install g ++ - mingw-w64 as a dependency, but this does not apply to Ubuntu 12.04 (Precise). Therefore, I needed to specify g++-mingw-w64 as a build dependency.

The reason for the actual error message was that the configure script could not find the C ++ compiler for the cross-compiler toolchain:

quantum:

 checking for g++... i686-w64-mingw32-g++ checking whether the C++ compiler (...) works... yes 

Accuracy:

 checking for g++... i686-w64-mingw32-g++ checking whether the C++ compiler (...) works... no 
+3
source

All Articles