Skip to content

Toolchain for armv7 is broken #613

Closed

Description

@jeanluc162

When using the included build.sh script to build for armv7 it fails with the following output:

/usr/bin/clang-10  -I. -Iinclude -fPIC -pthread -O3 -Wa,--noexecstack -Qunused-arguments -O3 -fPIC -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/etc/ssl\"" -DENGINESDIR="\"//lib/engines-1.1\"" -DNDEBUG -DNDEBUG -DNDEBUG -MMD -MF crypto/armcap.d.tmp -MT crypto/armcap.o -c -o crypto/armcap.o crypto/armcap.c
In file included from crypto/armcap.c:18:
crypto/arm_arch.h:55:6: error: "unsupported ARM architecture"
#    error "unsupported ARM architecture"
     ^
1 error generated.
make[1]: *** [Makefile:831: crypto/armcap.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/user/.conan/data/openssl/1.1.1q/_/_/build/17df300ceabea4231cc147d126ace6e7977e852f/src'
make: *** [Makefile:174: all] Error 2
openssl/1.1.1q: 
openssl/1.1.1q: ERROR: Package '17df300ceabea4231cc147d126ace6e7977e852f' build failed
openssl/1.1.1q: WARN: Build folder /home/user/.conan/data/openssl/1.1.1q/_/_/build/17df300ceabea4231cc147d126ace6e7977e852f/build-release
ERROR: openssl/1.1.1q: Error in build() method, line 729
	autotools.make()
	ConanException: Error 2 while executing make -j2
CMake Error at SDK/lib/cmake-conan/conan.cmake:529 (message):
  Conan install failed='1'
Call Stack (most recent call first):
  SDK/lib/cmake-conan/conan.cmake:766 (old_conan_cmake_install)
  SDK/lib/cmake-conan/conan-omp.cmake:70 (conan_cmake_run)
  lib/CMakeLists.txt:120 (conan_omp_add_lib_opt)

Activity

  1. Hual commented on Jan 14, 2023

    @Hual
    Collaborator

    What cmake options are you using?

  2. jeanluc162 commented on Jan 14, 2023

    @jeanluc162
    Author

    I did not specify any, I just executed the build.sh-script in the docker-folder with armv7 as target arch. It works this way for the default arch (x86)

  3. AmyrAhmady commented on Jan 14, 2023

    @AmyrAhmady
    Member

    try using armv7hf instead

  4. jeanluc162 commented on Jan 14, 2023

    @jeanluc162
    Author

    try using armv7hf instead

    This leads to the same result. I've also already tried armv6 and armv8.

  5. jeanluc162 commented on Jan 14, 2023

    @jeanluc162
    Author

    Could this maybe be related to this Issue from the conan repo?

  6. AmyrAhmady commented on Jan 14, 2023

    @AmyrAhmady
    Member

    Depends, as I've told @Disinterpreter it seems like a conan issue when you try to cross build, but on bare metal machine (I don't know if you are using an ARM machine or not) it works, without using docker of course

    basically steps do to on an ARM machine:

          - name: Generate build files
            run: |
              export CC=clang
              export CXX=clang++
              export OMP_BUILD_VERSION=$(git rev-list $(git rev-list --max-parents=0 HEAD) HEAD | wc -l)
              export OMP_BUILD_COMMIT=$(git rev-parse HEAD)
              mkdir build && cd build && cmake -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DTARGET_BUILD_ARCH=armv7 ..
          - name: Build
            run: |
              export CC=clang
              export CXX=clang++
              cd build
              ninja
    

    obviously you need the right packages too, 32bit libraries, cmake, ninja, clang, python and conan

  7. AmyrAhmady commented on Jan 14, 2023

    @AmyrAhmady
    Member

    As it turns out it's not really related to conan (hopefully)
    We are having progress regarding this and cross compiling

  8. jeanluc162 commented on Jan 14, 2023

    @jeanluc162
    Author

    If I'm understanding this correctly this means there is no way atm to add a build action for ARM as Actions can only run on x86_64? I was planning in creating a PR for this...

  9. Disinterpreter commented on Jan 15, 2023

    @Disinterpreter

    If I'm understanding this correctly this means there is no way atm to add a build action for ARM as Actions can only run on x86_64? I was planning in creating a PR for this...

    Did you try to build on debian armel natively?

  10. jeanluc162 commented on Jan 15, 2023

    @jeanluc162
    Author

    Did you try to build on debian armel natively?

    No I have not, as that is not my goal - expanding the GitHub-Actions so ARM-Builds are generated automatically

  11. Disinterpreter commented on Jan 15, 2023

    @Disinterpreter

    Did you try to build on debian armel natively?

    No I have not, as that is not my goal - expanding the GitHub-Actions so ARM-Builds are generated automatically

    oh, ok. No way at the moment.

  12. AmyrAhmady commented on Jun 10, 2023

    @AmyrAhmady
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions