JuliaPackaging / BinaryBuilder.jl

Binary Dependency Builder for Julia
https://binarybuilder.org
Other
391 stars 100 forks source link

Cannot force an architecture via -march #1238

Open liushang0322 opened 1 year ago

liushang0322 commented 1 year ago

I am trying to use BinaryBuilder library to recompile blis library

According to the existing tarball script, I reported an error during the make compilation process,

Cannot force an architecture via -march

Ubuntu 22.0.1

Julia 1.8.2

BinaryBuilder 0.5.5

giordano commented 1 year ago

That's intentional, yes, so it's not really a bug. What do you want to achieve?

liushang0322 commented 1 year ago

I'm trying to learn how to use the BinaryBuilder library, then again I'm a learner working on BLAS and Julia, and now want to use BLIS as a template to build my binaries, tried building in my Ubuntu, and found in make this problem

Fenyutanchan commented 1 year ago

Hi, @giordano. I have the same problem with -march=i686. Is this C flag required for cross-compilation via BinaryBuilder.jl? Could /opt/bin/i686-linux-musl-libgfortran3-cxx03/cc build the 32-bit program without this C flag? I have tested that the compilation works without this C flag. What is the actual meaning of BinaryBuilder: Cannot force an architecture via -march?