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

About aarch64 binary compiling #43

Open
leesera opened this issue Nov 3, 2017 · 3 comments
Open

About aarch64 binary compiling #43

leesera opened this issue Nov 3, 2017 · 3 comments

Comments

@leesera
Copy link

leesera commented Nov 3, 2017

I have a raspberry pi3 model b and set that device with 64bit os.
the output of command 'uname -a' is like this.
Linux raspberrypi 4.9.58-v8+ #1 SMP PREEMPT Sun Oct 29 16:25:42 JST 2017 aarch64 GNU/Linux
I have a question about compilation at aarch64 kernel.

I want to make 64bit executable file with aarch64-linux-gnu-gcc-6.4.0
so when I try aarch64-linux-gnu-gcc-6.4.0 test.c , the output of that command is
fatal error: sys/cdefs.h: No such file or directory

I google it and I knew that I should install the needed lib like g++-multilib for arm64 version and for this, the arm64 version of apt repo should be set.

so I tried to add the debian arm64 apt repo. but I can not still install the suitable libraries for solving that compilation issues.
please help me for solving that problem!

@bamarni
Copy link
Owner

bamarni commented Nov 5, 2017

Are you trying to compile from your raspberry or cross-compile? Eg. from amd64 to arm64?

@leesera
Copy link
Author

leesera commented Nov 28, 2017

I compiled the 64bit kernel with cross-compile at my amd64 desktop

@bao3
Copy link

bao3 commented Dec 3, 2017

@leesera I suggest you to compile the binary in Docker ( you should docker build yourself via Dockerfile in this repo)

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