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

failure to build on arm #253

Open
brettowe opened this issue Jan 12, 2023 · 1 comment
Open

failure to build on arm #253

brettowe opened this issue Jan 12, 2023 · 1 comment

Comments

@brettowe
Copy link

while attempting to build this I get the below linking error:

[ 98%] Linking CXX executable SMHasher
/usr/bin/ld: /tmp/SMHasher.NXV2q9.ltrans0.ltrans.o: in function t1ha0_ia32aes_noavx_test(void const*, int, unsigned int, void*)': <artificial>:(.text+0x8518): undefined reference to t1ha0_ia32aes_noavx'
/usr/bin/ld: SMHasher: hidden symbol `t1ha0_ia32aes_noavx' isn't defined
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/SMHasher.dir/build.make:104: SMHasher] Error 1
make[2]: Leaving directory '/root/smhasher/build'
make[1]: *** [CMakeFiles/Makefile2:125: CMakeFiles/SMHasher.dir/all] Error 2
make[1]: Leaving directory '/root/smhasher/build'
make: *** [Makefile:160: all] Error 2
make: Leaving directory '/root/smhasher/build'

device is a odroid hc4
cat /proc/cpuinfo
processor : 0
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x1
CPU part : 0xd05
CPU revision : 0

@jonesmz
Copy link

jonesmz commented Oct 15, 2023

I can reproduce this problem with this command

git clone https://github.com/rurban/smhasher.git --recursive ; cmake -S smhasher/ -B build-smhasher/ ; cmake --build build-smhasher

which was commit 0f6bf14 at the time

this gives:

lto-wrapper: warning: using serial compilation of 19 LTRANS jobs
/usr/bin/ld: /tmp/cckw8fLj.ltrans0.ltrans.o: in function `t1ha0_ia32aes_noavx_test(void const*, int, unsigned int, void*)':
<artificial>:(.text+0x8648): undefined reference to `t1ha0_ia32aes_noavx'
/usr/bin/ld: SMHasher: hidden symbol `t1ha0_ia32aes_noavx' isn't defined
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
gmake[2]: *** [CMakeFiles/SMHasher.dir/build.make:98: SMHasher] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:112: CMakeFiles/SMHasher.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2

lsb_release

No LSB modules are available.
Distributor ID:Ubuntu
Description:	Ubuntu 22.04.3 LTS
Release:	22.04
Codename:	jammy

gcc --version

gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0

lscpu

Architecture:           aarch64
  CPU op-mode(s):       32-bit, 64-bit
  Byte Order:           Little Endian
CPU(s):                 8
  On-line CPU(s) list:  0-7
Vendor ID:              APM
  Model:                2
  Thread(s) per core:   1
  Core(s) per cluster:  8
  Socket(s):            8
  Cluster(s):           1
  Stepping:             0x3
  BogoMIPS:             80.00
  Flags:                fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
NUMA:
  NUMA node(s):         1
  NUMA node0 CPU(s):    0-7
Vulnerabilities:
  Gather data sampling: Not affected
  Itlb multihit:        Not affected
  L1tf:                 Not affected
  Mds:                  Not affected
  Meltdown:             Mitigation; PTI
  Mmio stale data:      Not affected
  Retbleed:             Not affected
  Spec rstack overflow: Not affected
  Spec store bypass:    Vulnerable
  Spectre v1:           Mitigation; __user pointer sanitization
  Spectre v2:           Vulnerable
  Srbds:                Not affected
  Tsx async abort:      Not affected

uname -r

5.15.0-86-generic

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

2 participants