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

lotus aarch64 make all error #1779

Closed
skyhuihui opened this issue May 18, 2020 · 3 comments
Closed

lotus aarch64 make all error #1779

skyhuihui opened this issue May 18, 2020 · 3 comments

Comments

@skyhuihui
Copy link

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
@travisperson
Copy link
Contributor

travisperson commented May 18, 2020

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

@sorker
Copy link

sorker commented Jun 1, 2020

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

@sorker
Copy link

sorker commented Jun 1, 2020

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants