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

LOMP does not Build on 32-bit Arm #33

Closed
mjklemm opened this issue Aug 8, 2021 · 5 comments
Closed

LOMP does not Build on 32-bit Arm #33

mjklemm opened this issue Aug 8, 2021 · 5 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@mjklemm
Copy link
Member

mjklemm commented Aug 8, 2021

Describe the bug
There is a compilation issue in the 32-bit Arm code:

In file included from /net/home/micha/projects/lomp/sources/src/stats-timing.cc:20:
/net/home/micha/projects/lomp/sources/./src/target.h:140:2: warning: "The FlushAddress() function is a no-op on this architecture" [-W#warnings]
#warning "The FlushAddress() function is a no-op on this architecture"
^
/net/home/micha/projects/lomp/sources/src/stats-timing.cc:145:21: error: use of undeclared identifier 'getArmID'
uint32_t el1Reg = getArmID();
^
1 warning and 1 error generated.
ninja: build stopped: subcommand failed.

To Reproduce
Please provide steps to reproduce the behavior:

  1. Checkout main branch
  2. Compile on Arm 32-bit

Expected behavior
No compiler error.

Screenshots
See error message above.

Desktop (please complete the following information):

  • OS: Linux
  • Target architecture: armv7l
  • LOMP Version: f9a1897
@mjklemm mjklemm added the bug Something isn't working label Aug 8, 2021
@mjklemm mjklemm added this to the Release 0.2 milestone Aug 8, 2021
@mjklemm
Copy link
Member Author

mjklemm commented Aug 14, 2021

The same happens on my RISC-V:

[1/36] Building CXX object src/CMakeFiles/omp.dir/stats-timing.cc.o
FAILED: src/CMakeFiles/omp.dir/stats-timing.cc.o
/usr/bin/clang++ -DDEBUG=10 -DLOMP_BUILD_RTL=1 -DLOMP_HAVE_LIBATOMIC=1 -DLOMP_HAVE_LIBNUMA=1 -DLOMP_WARN_API_STUBS=1 -DLOMP_WARN_ARCH_FEATURES=1 -Domp_EXPORTS -I/net/home/micha/projects/lomp/sources/./include -I/net/home/micha/projects/lomp/sources/./src -Isrc -fPIC -std=c++17 -MD -MT src/CMakeFiles/omp.dir/stats-timing.cc.o -MF src/CMakeFiles/omp.dir/stats-timing.cc.o.d -o src/CMakeFiles/omp.dir/stats-timing.cc.o -c /net/home/micha/projects/lomp/sources/src/stats-timing.cc
In file included from /net/home/micha/projects/lomp/sources/src/stats-timing.cc:20:
/net/home/micha/projects/lomp/sources/./src/target.h:140:2: warning: "The FlushAddress() function is a no-op on this architecture" [-W#warnings]
#warning "The FlushAddress() function is a no-op on this architecture"
 ^
/net/home/micha/projects/lomp/sources/src/stats-timing.cc:145:21: error: use of undeclared identifier 'getArmID'
  uint32_t el1Reg = getArmID();
                    ^
1 warning and 1 error generated.
ninja: build stopped: subcommand failed.

@JimCownie
Copy link
Contributor

JimCownie commented Aug 14, 2021 via email

@mjklemm
Copy link
Member Author

mjklemm commented Aug 14, 2021

I have cherrypicked commit b8d2bc2 and it seems to fix the compilation issue.

@JimCownie
Copy link
Contributor

JimCownie commented Aug 14, 2021 via email

@mjklemm
Copy link
Member Author

mjklemm commented Aug 25, 2021

This one has been fixed.

@mjklemm mjklemm closed this as completed Aug 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants