JuliaPackaging / BinaryBuilderBase.jl

https://juliapackaging.github.io/BinaryBuilderBase.jl/stable
MIT License
11 stars 31 forks source link

`objdump` missing in new GCC toolchain for `aarch64-apple-darwin` #229

Open giordano opened 2 years ago

giordano commented 2 years ago
% julia --compile=min -e 'using BinaryBuilderBase; BinaryBuilderBase.runshell(Platform("aarch64", "macos"))'
sandbox:${WORKSPACE} # ${target}-objdump 
/opt/bin/aarch64-apple-darwin20-libgfortran5-cxx11/aarch64-apple-darwin20-objdump: line 5: /opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-objdump: No such file or directory
sandbox:${WORKSPACE} # ls /opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-*
/opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-ObjectDump         /opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-install_name_tool
/opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-ar                 /opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-ld
/opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-as                 /opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-libtool
/opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-bitcode_strip      /opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-lipo
/opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-c++                /opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-lto-dump
/opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-check_dylib        /opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-machocheck
/opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-checksyms          /opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-makerelocs
/opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-cmpdylib           /opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-mtoc
/opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-codesign_allocate  /opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-mtor
/opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-cpp                /opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-nm
/opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-ctf_insert         /opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-nmedit
/opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-dyldinfo           /opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-otool
/opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-g++                /opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-pagestuff
/opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-gcc                /opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-ranlib
/opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-gcc-12.0.1         /opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-redo_prebinding
/opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-gcc-ar             /opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-seg_addr_table
/opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-gcc-nm             /opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-seg_hack
/opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-gcc-ranlib         /opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-segedit
/opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-gcov               /opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-size
/opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-gcov-dump          /opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-strings
/opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-gcov-tool          /opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-strip
/opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-gfortran           /opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-unwinddump
/opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-indr               /opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-vtool
/opt/aarch64-apple-darwin20/bin/aarch64-apple-darwin20-inout
giordano commented 2 years ago

Uhm, there is llvm-objdump:

sandbox:${WORKSPACE} # llvm-objdump -version
LLVM (http://llvm.org/):
  LLVM version 8.0.0svn
  Optimized build.
  Default target: aarch64-apple-darwin5.15.25-1-lts
  Host CPU: haswell

  Registered Targets:
    aarch64    - AArch64 (little endian)
    aarch64_be - AArch64 (big endian)
    amdgcn     - AMD GCN GPUs
    arm        - ARM
    arm64      - ARM64 (little endian)
    armeb      - ARM (big endian)
    bpf        - BPF (host endian)
    bpfeb      - BPF (big endian)
    bpfel      - BPF (little endian)
    hexagon    - Hexagon
    lanai      - Lanai
    mips       - MIPS (32-bit big endian)
    mips64     - MIPS (64-bit big endian)
    mips64el   - MIPS (64-bit little endian)
    mipsel     - MIPS (32-bit little endian)
    msp430     - MSP430 [experimental]
    nvptx      - NVIDIA PTX 32-bit
    nvptx64    - NVIDIA PTX 64-bit
    ppc32      - PowerPC 32
    ppc64      - PowerPC 64
    ppc64le    - PowerPC 64 LE
    r600       - AMD GPUs HD2XXX-HD6XXX
    sparc      - Sparc
    sparcel    - Sparc LE
    sparcv9    - Sparc V9
    systemz    - SystemZ
    thumb      - Thumb
    thumbeb    - Thumb (big endian)
    wasm32     - WebAssembly 32-bit
    wasm64     - WebAssembly 64-bit
    x86        - 32-bit X86: Pentium-Pro and above
    x86-64     - 64-bit X86: EM64T and AMD64
    xcore      - XCore

And, actually, I'm not even sure this is a problem only with the new build of GCC for aarch64-apple-darwin, I see exactly the same with x86_64-apple-darwin.