Skip to content

lotus aarch64 make all error #1779

Closed
Closed

Description

@ashk012

It was found that lotus did not support the aarch64 system

root@ecs-kc1-large-2-linux-20200517093012:~/lotus# ll /usr/bin/ld
lrwxrwxrwx 1 root root 20 May  8  2019 /usr/bin/ld -> aarch64-linux-gnu-ld

root@ecs-kc1-large-2-linux-20200517093012:~/lotus# uname -a
Linux ecs-kc1-large-2-linux-20200517093012 4.15.0-70-generic #79-Ubuntu SMP Tue Nov 12 

Perform make install results

go build  -ldflags="-X=github.com/filecoin-project/lotus/build.CurrentCommit='+git9a0d0511'" -o lotus ./cmd/lotus

# github.com/filecoin-project/filecoin-ffi/generated

/usr/bin/ld: skipping incompatible extern/filecoin-ffi/generated/../libfilcrypto.a when searching for -lfilcrypto
/usr/bin/ld: skipping incompatible extern/filecoin-ffi/generated/../libfilcrypto.a when searching for -lfilcrypto
/usr/bin/ld: skipping incompatible extern/filecoin-ffi/generated/../libfilcrypto.a when searching for -lfilcrypto
/usr/bin/ld: skipping incompatible extern/filecoin-ffi/generated/../libfilcrypto.a when searching for -lfilcrypto
/usr/bin/ld: skipping incompatible extern/filecoin-ffi/generated/../libfilcrypto.a when searching for -lfilcrypto
/usr/bin/ld: cannot find -lfilcrypto
/usr/bin/ld: skipping incompatible extern/filecoin-ffi/generated/../libfilcrypto.a when searching for -lfilcrypto
/usr/bin/ld: skipping incompatible extern/filecoin-ffi/generated/../libfilcrypto.a when searching for -lfilcrypto
/usr/bin/ld: skipping incompatible extern/filecoin-ffi/generated/../libfilcrypto.a when searching for -lfilcrypto
/usr/bin/ld: skipping incompatible extern/filecoin-ffi/generated/../libfilcrypto.a when searching for -lfilcrypto
/usr/bin/ld: skipping incompatible extern/filecoin-ffi/generated/../libfilcrypto.a when searching for -lfilcrypto
/usr/bin/ld: cannot find -lfilcrypto
/usr/bin/ld: skipping incompatible extern/filecoin-ffi/generated/../libfilcrypto.a when searching for -lfilcrypto
/usr/bin/ld: skipping incompatible extern/filecoin-ffi/generated/../libfilcrypto.a when searching for -lfilcrypto
/usr/bin/ld: skipping incompatible extern/filecoin-ffi/generated/../libfilcrypto.a when searching for -lfilcrypto
/usr/bin/ld: skipping incompatible extern/filecoin-ffi/generated/../libfilcrypto.a when searching for -lfilcrypto
/usr/bin/ld: skipping incompatible extern/filecoin-ffi/generated/../libfilcrypto.a when searching for -lfilcrypto
/usr/bin/ld: cannot find -lfilcrypto
/usr/bin/ld: skipping incompatible extern/filecoin-ffi/generated/../libfilcrypto.a when searching for -lfilcrypto
/usr/bin/ld: skipping incompatible extern/filecoin-ffi/generated/../libfilcrypto.a when searching for -lfilcrypto
/usr/bin/ld: skipping incompatible extern/filecoin-ffi/generated/../libfilcrypto.a when searching for -lfilcrypto
/usr/bin/ld: skipping incompatible extern/filecoin-ffi/generated/../libfilcrypto.a when searching for -lfilcrypto
/usr/bin/ld: skipping incompatible extern/filecoin-ffi/generated/../libfilcrypto.a when searching for -lfilcrypto
/usr/bin/ld: cannot find -lfilcrypto
/usr/bin/ld: skipping incompatible extern/filecoin-ffi/generated/../libfilcrypto.a when searching for -lfilcrypto
/usr/bin/ld: skipping incompatible extern/filecoin-ffi/generated/../libfilcrypto.a when searching for -lfilcrypto
/usr/bin/ld: skipping incompatible extern/filecoin-ffi/generated/../libfilcrypto.a when searching for -lfilcrypto
/usr/bin/ld: skipping incompatible extern/filecoin-ffi/generated/../libfilcrypto.a when searching for -lfilcrypto
/usr/bin/ld: skipping incompatible extern/filecoin-ffi/generated/../libfilcrypto.a when searching for -lfilcrypto
/usr/bin/ld: cannot find -lfilcrypto
collect2: error: ld returned 1 exit status
Makefile:67: recipe for target 'lotus' failed
make: *** [lotus] Error 2

Activity

  1. travisperson commented on May 18, 2020

    @travisperson
    Contributor

    We provide amd64 binaries for download. You will need to compile the FFI yourself for other platforms.

    You can do so with the following:

    RUSTFLAGS="-C target-cpu=native -g" FFI_BUILD_FROM_SOURCE=1 make clean deps bench
    
  2. sorker commented on Jun 1, 2020

    @sorker

    export RUSTFLAGS="-C target-cpu=native -g"
    export FFI_BUILD_FROM_SOURCE=1
    make clean deps bench

    i want use docker, is it do?
    ENV RUSTFLAGS "-C target-cpu=native -g"
    ENV FFI_BUILD_FROM_SOURCE 1
    RUN cd $SRC_DIR && mkdir $SRC_DIR/build && . $HOME/.cargo/env && make clean && make deps && make bench

  3. sorker commented on Jun 1, 2020

    @sorker

    export RUSTFLAGS="-C target-cpu=native -g"
    export FFI_BUILD_FROM_SOURCE=1
    make clean deps bench

    i want use docker, is it do?
    ENV RUSTFLAGS "-C target-cpu=native -g"
    ENV FFI_BUILD_FROM_SOURCE 1
    RUN cd $SRC_DIR && mkdir $SRC_DIR/build && . $HOME/.cargo/env && make clean && make deps && make bench

    use in raspi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ 换网址