bug building on arm 64bit target

Skip to first unread message


May 8, 2019, 4:39:25 PM5/8/19
to benchmark-discuss

I am trying to build the benchmar on an armv8 64 bit target. However, the build assumes the target is a 32 bit build due to this in the conanfile.py

# See https://github.com/google/benchmark/pull/638 for Windows 32 build$
if self.settings.os != "Windows":
cmake.definitions["BENCHMARK_BUILD_32_BITS"] = "ON" if "64" not in str(self.settings.arch) else "OFF"

The condition there would only set BENCHMARK_BUILD_32_BITS to OFF if the arch contains '64'. This later in cmake results in -m32 options appended to the compile options and the 64 bit gcc does not support this flag.

I think it is a bug?



Dominic Hamon

May 8, 2019, 5:09:24 PM5/8/19
to krom...@gmail.com, benchmark-discuss

I'm not up on the conan side of things but it certainly sounds like a bug. In the cmake version we just set it to off and allow the developer to override it[1].

Dominic Hamon | Google
There are no bad ideas; only good ideas that go horribly wrong.

You received this message because you are subscribed to the Google Groups "benchmark-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to benchmark-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/benchmark-discuss/9624b662-d101-47bb-a7e2-e876b0e6e8a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
0 new messages