-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Build From Source for aarch64/arm64v8 Static *Help it doesn't work* #1857
Comments
probably a glibc thing. The iperf3 libs will be built statically but it won't link to glibc statically. You can just use these if you only need the binary for another system: https://github.com/userdocs/iperf3-static |
@userdocs |
I build on Alpine Linux against musl where static linking just works. glibc based system it's not so easy. Possible but not simple. Now, from what I can understand here is that you are 1: cross compiling on a Debian based system to an unknown arm64 systems. You say you want a static binary but then say you don't. It makes no sense. If you are crossbuilding debian based to another glibc based OS people typically build on an older system to deal with the glibc linking limitations. They don't ever get a fully static binary and it only works on glibc systems. So, unless you provide specific details of what you are trying to do, what platforms and arches are involved you are not going to get a better answer that to to use an existing static solution that is distro agnostic and works on any Linux based system, like openwrt. |
Hi, I have a problem. When I run this and build from source, the program doesn't run on an aarch64.
What did I do wrong? I need a static version!
Can anyone help me? Thank you very much.
sudo apt update
sudo apt install build-essential autoconf libtool
sudo apt install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
git clone https://github.com/esnet/iperf.git
cd iperf
./bootstrap.sh
./configure --host=aarch64-linux-gnu --enable-static --disable-shared
make
file iperf3
iperf3: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=91f9359b27181196239db5c80142ef67d4ac96e1, for GNU/Linux 3.7.0, with debug_info, not stripped
Configure Log
The text was updated successfully, but these errors were encountered: