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

Arm build for docker #5

Open
mattdean-digicatapult opened this issue Jan 17, 2022 · 2 comments
Open

Arm build for docker #5

mattdean-digicatapult opened this issue Jan 17, 2022 · 2 comments

Comments

@mattdean-digicatapult
Copy link
Contributor

#3 removed the arm build for docker as it was failing with the following error:

#30 103.4 go build "-asmflags=all='-trimpath=/go'" "-gcflags=all='-trimpath=/go'" -ldflags="-X "github.com/ipfs/go-ipfs".CurrentCommit=67220edaa" -o "cmd/ipfs/ipfs" "github.com/ipfs/go-ipfs/cmd/ipfs"
#30 811.0 # github.com/ipfs/go-ipfs/cmd/ipfs
#30 811.0 /usr/local/go/pkg/tool/linux_arm64/link: running gcc failed: exit status 1
#30 811.0 collect2: fatal error: cannot find 'ld'
#30 811.0 compilation terminated.
#30 811.0 
#30 811.2 make: *** [cmd/ipfs/Rules.mk:22: cmd/ipfs/ipfs] Error 2

arm builds should be re-enabled so that arm users can run a natively built image

@jonmattgray
Copy link
Contributor

Fixed by #41?

@dblane-digicatapult
Copy link
Contributor

Bug with the ipfs binary on aarch64, we get a segfault on execution.

ELF Headers all seem to be correct

/dscp-ipfs # readelf -h /usr/local/bin/ipfs 
ELF Header:
  Magic:   7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 
  Class:                             ELF64
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              EXEC (Executable file)
  Machine:                           AArch64
  Version:                           0x1
  Entry point address:               0xde05d0
  Start of program headers:          64 (bytes into file)
  Start of section headers:          71879400 (bytes into file)
  Flags:                             0x0
  Size of this header:               64 (bytes)
  Size of program headers:           56 (bytes)
  Number of program headers:         10
  Size of section headers:           64 (bytes)
  Number of section headers:         45
  Section header string table index: 44

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

3 participants