Conan: AutoToolsBuildEnvironment do not define --host when cross-building x86_64 to x86

Created on 2 Jul 2017  路  7Comments  路  Source: conan-io/conan

From poking around in conan's source code, I know that it does not consider compiling from x86_64 to x86 as 'real' cross-building. Though I noticed that most ./configure scripts I came across require the --host parameter to be specified in this case too to work correctly.
As a workaround I manually specified the host parameter to AutoToolsBuildEnvironment.configure(), which required to replicate some of the logic from AutoToolsBuildEnvironment that constructs those platform triplets.
I feel this not uncommon case should be handled automatically instead.

Most helpful comment

Sounds legit, but I think @lasote should have a look first. Thanks!

All 7 comments

Sounds legit, but I think @lasote should have a look first. Thanks!

@MarcoKoch thanks for reporting. I don't remember exactly which libraries I tried but if I excluded it probably is for some reason :S I'm afraid now to break something.

@MarcoKoch do you have any open source library example?

One example would be libunwind. I have a package recipe for that at https://github.com/MarcoKoch/conan-libunwind. I also had similar issues with ncurses.

Thanks! we will also review the FreeBSD integration currently not supported but managed by your recipe.

I have not tested that yet either. 馃槅
So I will be happy to hear about the results.

Finally released in 0.28, feedback welcome!

Was this page helpful?
0 / 5 - 0 ratings