Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on the armv7 architecture #541

Open
yurivict opened this issue Jul 24, 2022 · 4 comments
Open

Build fails on the armv7 architecture #541

yurivict opened this issue Jul 24, 2022 · 4 comments

Comments

@yurivict
Copy link

===>  Configuring for gismo-21.12.0
===>  Performing out-of-source build
/bin/mkdir -p /wrkdirs/usr/ports/math/gismo/work/.build
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/local/bin/gcc11 - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/local/bin/g++11 - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- target changed from "" to "auto"
-- Detected Host CPU: generic
CMake Error at cmake/OptimizeForArchitecture.cmake:1781 (message):
  Unknown target architecture: "generic".  Please set TARGET_ARCHITECTURE to
  a supported value.
Call Stack (most recent call first):
  cmake/OptimizeForArchitecture.cmake:1989 (OFA_HandleArmOptions)
  cmake/gsConfig.cmake:254 (OptimizeForArchitecture)
  CMakeLists.txt:101 (include)

Version: 21.12.0
FreeBSD 13.0-RELEASE

@hverhelst
Copy link
Member

@jiyess is this the same problem as you had? The one from here

@jiyess
Copy link
Member

jiyess commented Oct 14, 2022

@jiyess is this the same problem as you had? The one from here

I had a similar issue with ARM64 architecture, but I do not have ARMv7 architecture. Could you try to replace Line 1329 in OptimizeForArchitecture.cmake with list(APPEND _mtune_flag_list "generic-arch")? @yurivict Then please let me know what happened. ; )

@mmoelle1
Copy link
Contributor

mmoelle1 commented Oct 14, 2022 via email

@jiyess
Copy link
Member

jiyess commented Oct 14, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants