Problems with x86_32 Build #5670
-
Hi, I have problems building a 32 bit version of Halide libs on Linux. I tired both, building it on a 32 bit Linux (Xubuntu 18.04) and building it on a 64 bit Linux (Ubuntu 18.04) with the provided 32 bit toolchain. Building 64 bit Halide on 64 bit Linux works. Can maybe someone help me out? 32 bit HostOn 32 bit Linux I initialize the build via the following command:
The Output is:
So Halide detected the 32 bit target, as it says
When I build it via
I get the following build error after some time:
I already tried to add the suggested Halide target as follows (after removing ./build):
However this leads to the same error message. 64 bit HostOn my 64 bit Ubuntu I initialize the build with
This gives the following error:
I suppose that I need 32 bit version Python for that? Interestingly with the i386 toolchain Halide also detects the target i686-32-linux which it did not understand in the build on the 32 bit machine (Error: Did not understand Halide target i686-32-linux-no_runtime). Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Ah, ok, I get it. Yeah, this is our fault, the CMake scripts should handle this automatically. Are you building the 32-bit version on a true 32-bit machine (vs crosscompiing on a 64-bit OS)? That may be the issue, as our buildbots are all doing the latter. Tagging @alexreinking for CMake thoughts. |
Beta Was this translation helpful? Give feedback.
-
@calein - can you please try the change in #5675 and see if it works from a clean build directory? |
Beta Was this translation helpful? Give feedback.
-
You do need 32-bit Python installed to build the Python bindings against 32-bit Halide. Also, as a temporary workaround you should be able to set |
Beta Was this translation helpful? Give feedback.
@calein - can you please try the change in #5675 and see if it works from a clean build directory?
https://github.com/halide/Halide/pull/5675/files