Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Error (cross) building tools from macOS



Hi!

I tried to build NetBSD-current from source on a Macbook Air M2. However, the tools build fails because gcc cannot find zstd while linking. My command line was:

% ./build.sh -j 6 -N 1 -U -O ../obj -m evbarm -a aarch64 release

Any ideas? 

The relevant extract from the build log is:


clang: warning: argument unused during compilation: '-no-pie' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-no-pie' [-Wunused-command-line-argument]
Undefined symbols for architecture arm64:
  "_ZSTD_compress", referenced from:
Undefined symbols for architecture arm64:
  "_ZSTD_compress", referenced from:
      lto_end_compression(lto_compression_stream*) in libbackend.a(lto-compress.o)
      lto_end_compression(lto_compression_stream*) in libbackend.a(lto-compress.o)
  "_ZSTD_compressBound", referenced from:
  "_ZSTD_compressBound", referenced from:
      lto_end_compression(lto_compression_stream*) in libbackend.a(lto-compress.o)
      lto_end_compression(lto_compression_stream*) in libbackend.a(lto-compress.o)
  "_ZSTD_decompress", referenced from:
      lto_end_uncompression(lto_compression_stream*, lto_compression) in libbackend.a(lto-compress.o)
  "_ZSTD_decompress", referenced from:
      lto_end_uncompression(lto_compression_stream*, lto_compression) in libbackend.a(lto-compress.o)
  "_ZSTD_getErrorName", referenced from:
      lto_end_compression(lto_compression_stream*) in libbackend.a(lto-compress.o)
      lto_end_uncompression(lto_compression_stream*, lto_compression) in libbackend.a(lto-compress.o)
  "_ZSTD_getErrorName", referenced from:
      lto_end_compression(lto_compression_stream*) in libbackend.a(lto-compress.o)
      lto_end_uncompression(lto_compression_stream*, lto_compression) in libbackend.a(lto-compress.o)
  "_ZSTD_getFrameContentSize", referenced from:
  "_ZSTD_getFrameContentSize", referenced from:
      lto_end_uncompression(lto_compression_stream*, lto_compression) in libbackend.a(lto-compress.o)
      lto_end_uncompression(lto_compression_stream*, lto_compression) in libbackend.a(lto-compress.o)
  "_ZSTD_isError", referenced from:
  "_ZSTD_isError", referenced from:
      lto_end_compression(lto_compression_stream*) in libbackend.a(lto-compress.o)
      lto_end_uncompression(lto_compression_stream*, lto_compression) in libbackend.a(lto-compress.o)
      lto_end_compression(lto_compression_stream*) in libbackend.a(lto-compress.o)
      lto_end_uncompression(lto_compression_stream*, lto_compression) in libbackend.a(lto-compress.o)
  "_ZSTD_maxCLevel", referenced from:
  "_ZSTD_maxCLevel", referenced from:
      lto_end_compression(lto_compression_stream*) in libbackend.a(lto-compress.o)
      lto_end_compression(lto_compression_stream*) in libbackend.a(lto-compress.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
nbgmake[1]: *** [lto-dump] Error 1
nbgmake[1]: *** Waiting for unfinished jobs....
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
nbgmake[1]: *** [lto1] Error 1
nbgmake: *** [all-gcc] Error 2


— 
Benny


Home | Main Index | Thread Index | Old Index