[Buildroot] Adding package libgit2

Nicolas Cavallari Nicolas.Cavallari at green-communications.fr
Wed Feb 14 15:30:24 UTC 2018


Seems like git send-email scrubbed my CC to the maintainers

On 14/02/2018 16:06, Thomas Petazzoni wrote:
>> 4) zlib-ng (all other toolchains)
>>
>> -- The following features have been enabled:
>> [...]
>>  * SSE2 , Support the SSE2 instruction set, using "-msse2"
>> [...]
>> /home/cavallar/br-test-pkg/br-arcle-hs38/build/zlib-ng-a17fefa147942edbf80ab22a16bcbc2419def12d/arch/x86/x86.c:17:10: fatal error: cpuid.h: No such file or directory
>>  #include <cpuid.h>
>>           ^~~~~~~~~
>> compilation terminated.
> 
> Can you check what is the value of ${ARCH} in the CMakeLists.txt when
> such problem occurs ? It is printed in the configure output:
> 
> message(STATUS "Architecture: ${ARCH}")

It is correct, e.g. "-- Architecture: or1k" for openrisc.

> ARCH is set to ${CMAKE_SYSTEM_PROCESSOR}, and CMAKE_SYSTEM_PROCESSOR is
> explicitly passed by Buildroot in package/pkg-cmake.mk. So it should be
> correct. zlib-ng CMakeLists.txt uses its ${ARCH} variable to decide
> whether the x86 code should be built or not:
> 
> if("${ARCH}" MATCHES "x86_64" OR "${ARCH}" MATCHES "AMD64")
>     set(ARCHDIR "arch/x86")
>     add_definitions(-DX86_64 -DX86_NOCHECK_SSE2 -DUNALIGNED_OK -DUNROLL_LESS)
>     add_feature_info(SSE2 1 "Use the SSE2 instruction set, using \"${SSE2FLAG}\"")

I have added --trace to cmake.  There is this gem a few lines below:

else()
    set(ARCHDIR "arch/x86")
    add_definitions(-DX86 -DUNALIGNED_OK -DUNROLL_LESS)
    add_feature_info(SSE2 1 "Support the SSE2 instruction set, using
\"${SSE2FLAG}\"")
endif()

So anything not arm/aarch64/x86 is treated like x86 anyway...



More information about the buildroot mailing list