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

Build fails at iperf-2.0.11 on Windows 10 #7

Closed
kyrlon opened this issue Apr 5, 2022 · 2 comments
Closed

Build fails at iperf-2.0.11 on Windows 10 #7

kyrlon opened this issue Apr 5, 2022 · 2 comments
Labels
wontfix This will not be worked on

Comments

@kyrlon
Copy link

kyrlon commented Apr 5, 2022

Currently recieving this error in the build process:

$ docker build -t android-ndk:latest .
[+] Building 17.9s (21/78)
 => [internal] load build definition from Dockerfile                                                                                                 0.0s 
 => => transferring dockerfile: 8.68kB                                                                                                               0.0s 
 => [internal] load .dockerignore                                                                                                                    0.0s 
 => => transferring context: 34B                                                                                                                     0.0s 
 => [internal] load metadata for docker.io/library/ubuntu:16.04                                                                                      5.7s 
 => [internal] load build context                                                                                                                    0.0s 
 => => transferring context: 2.27kB                                                                                                                  0.0s 
 => [ 1/74] FROM docker.io/library/ubuntu:16.04@sha256:0f71fa8d4d2d4292c3c617fda2b36f6dabe5c8b6e34c3dc5b0d17d4e704bd39c                              0.0s 
 => CACHED [ 2/74] RUN apt-get -y update -qq &&     apt-get -y upgrade -qq &&     apt-get -y install -qq make bash git unzip wget curl openjdk-8-jd  0.0s 
 => CACHED [ 3/74] RUN wget --no-check-certificate -q https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip &&     mkdir -p /opt/and  0.0s 
 => CACHED [ 4/74] RUN yes | sdkmanager --licenses > /dev/null &&     yes | sdkmanager "platforms;android-26" > /dev/null                            0.0s 
 => CACHED [ 5/74] RUN wget --no-check-certificate -q https://dl.google.com/android/repository/android-ndk-r19-linux-x86_64.zip &&     mkdir -p /op  0.0s 
 => CACHED [ 6/74] RUN mkdir -p /tmp/jni                                                                                                             0.0s 
 => CACHED [ 7/74] COPY /jni/Android.mk /tmp/jni                                                                                                     0.0s 
 => CACHED [ 8/74] COPY /jni/Application.mk /tmp/jni                                                                                                 0.0s 
 => CACHED [ 9/74] RUN cd /tmp &&     wget --no-check-certificate -q -O iperf-2.0.5.tar.gz https://iperf.fr/download/source/iperf-2.0.5-source.tar.  0.0s 
 => CACHED [10/74] COPY /iperf-2.0.5/Android.mk /tmp/iperf-2.0.5                                                                                     0.0s 
 => CACHED [11/74] RUN cd /tmp/iperf-2.0.5 &&     autoconf &&     ./configure                                                                        0.0s 
 => CACHED [12/74] RUN cd /tmp &&     wget --no-check-certificate -q https://astuteinternet.dl.sourceforge.net/project/iperf2/iperf-2.0.10.tar.gz &  0.0s 
 => CACHED [13/74] COPY /iperf-2.0.10/Android.mk /tmp/iperf-2.0.10                                                                                   0.0s 
 => CACHED [14/74] RUN cd /tmp/iperf-2.0.10 &&     autoconf &&     ./configure                                                                       0.0s 
 => [15/74] RUN cd /tmp &&     wget --no-check-certificate -q https://astuteinternet.dl.sourceforge.net/project/iperf2/iperf-2.0.11.tar.gz &&     t  5.8s 
 => [16/74] COPY /iperf-2.0.11/* /tmp/iperf-2.0.11/                                                                                                  0.0s 
 => ERROR [17/74] RUN cd /tmp/iperf-2.0.11 &&     autoconf &&     ./configure                                                                        6.2s 
------
 > [17/74] RUN cd /tmp/iperf-2.0.11 &&     autoconf &&     ./configure:
#21 0.975 checking for a BSD-compatible install... /usr/bin/install -c
#21 0.983 checking whether build environment is sane... yes
#21 0.997 checking for a thread-safe mkdir -p... /bin/mkdir -p
#21 1.000 checking for gawk... no
#21 1.001 checking for mawk... mawk
#21 1.002 checking whether make sets $(MAKE)... yes
#21 1.016 checking whether make supports nested variables... yes
#21 1.028 checking whether to enable maintainer-specific portions of Makefiles... no
#21 1.029 checking for g++... g++
#21 1.056 checking whether the C++ compiler works... yes
#21 1.093 checking for C++ compiler default output file name... a.out
#21 1.095 checking for suffix of executables...
#21 1.140 checking whether we are cross compiling... no
#21 1.183 checking for suffix of object files... o
#21 1.201 checking whether we are using the GNU C++ compiler... yes
#21 1.215 checking whether g++ accepts -g... yes
#21 1.239 checking for style of include used by make... GNU
#21 1.247 checking dependency style of g++... gcc3
#21 1.287 checking for gcc... gcc
#21 1.313 checking whether we are using the GNU C compiler... yes
#21 1.335 checking whether gcc accepts -g... yes
#21 1.359 checking for gcc option to accept ISO C89... none needed
#21 1.396 checking whether gcc understands -c and -o together... yes
#21 1.434 checking dependency style of gcc... gcc3
#21 1.483 checking for library containing strerror... none required
#21 1.533 checking whether make sets $(MAKE)... (cached) yes
#21 1.536 checking for ranlib... ranlib
#21 1.552 checking build system type... x86_64-unknown-linux-gnu
#21 1.607 checking host system type... x86_64-unknown-linux-gnu
#21 1.607 checking for clock_gettime in -lrt... yes
#21 1.649 checking for the pthreads library -lpthreads... no
#21 1.694 checking whether pthreads work without any flags... no
#21 1.742 checking whether pthreads work with -Kthread... no
#21 1.752 checking whether pthreads work with -kthread... no
#21 1.764 checking for the pthreads library -llthread... no
#21 1.812 checking whether pthreads work with -pthread... yes
#21 1.859 checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
#21 1.900 checking if more special flags are required for pthreads... no
#21 1.900 checking for cc_r... gcc
#21 1.900 checking for library containing gethostbyname... none required
#21 1.939 checking for library containing socket... none required
#21 1.974 checking how to run the C preprocessor... gcc -E
#21 2.040 checking for grep that handles long lines and -e... /bin/grep
#21 2.043 checking for egrep... /bin/grep -E
#21 2.045 checking for ANSI C header files... yes
#21 2.134 checking for sys/types.h... yes
#21 2.164 checking for sys/stat.h... yes
#21 2.199 checking for stdlib.h... yes
#21 2.226 checking for string.h... yes
#21 2.258 checking for memory.h... yes
#21 2.290 checking for strings.h... yes
#21 2.325 checking for inttypes.h... yes
#21 2.357 checking for stdint.h... yes
#21 2.395 checking for unistd.h... yes
#21 2.435 checking arpa/inet.h usability... yes
#21 2.463 checking arpa/inet.h presence... yes
#21 2.474 checking for arpa/inet.h... yes
#21 2.485 checking libintl.h usability... yes
#21 2.514 checking libintl.h presence... yes
#21 2.525 checking for libintl.h... yes
#21 2.536 checking net/ethernet.h usability... yes
#21 2.565 checking net/ethernet.h presence... yes
#21 2.580 checking for net/ethernet.h... yes
#21 2.590 checking linux/ip.h usability... yes
#21 2.623 checking linux/ip.h presence... yes
#21 2.631 checking for linux/ip.h... yes
#21 2.638 checking linux/udp.h usability... yes
#21 2.664 checking linux/udp.h presence... yes
#21 2.672 checking for linux/udp.h... yes
#21 2.680 checking linux/if_packet.h usability... yes
#21 2.712 checking linux/if_packet.h presence... yes
#21 2.724 checking for linux/if_packet.h... yes
#21 2.733 checking linux/filter.h usability... yes
#21 2.760 checking linux/filter.h presence... yes
#21 2.767 checking for linux/filter.h... yes
#21 2.775 checking netdb.h usability... yes
#21 2.809 checking netdb.h presence... yes
#21 2.822 checking for netdb.h... yes
#21 2.832 checking netinet/in.h usability... yes
#21 2.864 checking netinet/in.h presence... yes
#21 2.877 checking for netinet/in.h... yes
#21 2.886 checking for stdlib.h... (cached) yes
#21 2.894 checking for string.h... (cached) yes
#21 2.901 checking for strings.h... (cached) yes
#21 2.910 checking sys/socket.h usability... yes
#21 2.942 checking sys/socket.h presence... yes
#21 2.955 checking for sys/socket.h... yes
#21 2.962 checking sys/time.h usability... yes
#21 2.985 checking sys/time.h presence... yes
#21 2.995 checking for sys/time.h... yes
#21 3.006 checking syslog.h usability... yes
#21 3.039 checking syslog.h presence... yes
#21 3.050 checking for syslog.h... yes
#21 3.059 checking for unistd.h... (cached) yes
#21 3.068 checking signal.h usability... yes
#21 3.096 checking signal.h presence... yes
#21 3.106 checking for signal.h... yes
#21 3.119 checking ifaddrs.h usability... yes
#21 3.153 checking ifaddrs.h presence... yes
#21 3.163 checking for ifaddrs.h... yes
#21 3.169 checking for an ANSI C-conforming const... yes
#21 3.192 checking for size_t... yes
#21 3.247 checking for ssize_t... yes
#21 3.315 checking whether time.h and sys/time.h may both be included... yes
#21 3.339 checking whether struct tm is in sys/time.h or time.h... time.h
#21 3.360 checking for stdint types... stdint.h (shortcircuit)
#21 3.386 make use of stdint.h in include/iperf-int.h (assuming C99 compatible system)
#21 3.386 checking 3rd argument of accept... socklen_t
#21 3.428 checking for pid_t... yes
#21 3.481 checking vfork.h usability... no
#21 3.518 checking vfork.h presence... no
#21 3.532 checking for vfork.h... no
#21 3.536 checking for fork... yes
#21 3.584 checking for vfork... yes
#21 3.627 checking for working fork... yes
#21 3.681 checking for working vfork... (cached) yes
#21 3.682 checking for working memcmp... yes
#21 3.748 checking sys/select.h usability... yes
#21 3.784 checking sys/select.h presence... yes
#21 3.799 checking for sys/select.h... yes
#21 3.810 checking for sys/socket.h... (cached) yes
#21 3.816 checking types of arguments for select... int,fd_set *,struct timeval *
#21 3.858 checking return type of signal handlers... void
#21 3.881 checking for strftime... yes
#21 3.924 checking for vprintf... yes
#21 3.966 checking for _doprnt... no
#21 4.018 checking for atexit... yes
#21 4.070 checking for memset... yes
#21 4.136 checking for pthread_cancel... no
#21 4.181 checking for select... yes
#21 4.232 checking for strchr... yes
#21 4.278 checking for strerror... yes
#21 4.315 checking for strtol... yes
#21 4.361 checking for strtoll... yes
#21 4.409 checking for usleep... yes
#21 4.452 checking for clock_gettime... yes
#21 4.496 checking for sched_setscheduler... yes
#21 4.536 checking for mlockall... yes
#21 4.591 checking for setitimer... yes
#21 4.647 checking for nanosleep... yes
#21 4.700 checking for snprintf... yes
#21 4.757 checking for inet_pton... yes
#21 4.796 checking for inet_ntop... yes
#21 4.838 checking for gettimeofday... yes
#21 4.878 checking whether ENOBUFS is declared... yes
#21 4.915 checking whether EWOULDBLOCK is declared... yes
#21 4.948 checking whether SO_TIMESTAMP is declared... yes
#21 4.982 checking whether SO_SNDTIMEO is declared... yes
#21 5.019 checking whether CPU_SET is declared... yes
#21 5.051 checking whether SIGALRM is declared... yes
#21 5.076 checking for struct tcp_info.tcpi_total_retrans... yes
#21 5.101 checking for struct sockaddr_in.sin_len... no
#21 5.146 checking *printf() support for %lld... yes
#21 5.185 checking size of bool... 0
#21 5.216 checking if true is defined... yes
#21 5.238 checking whether byte ordering is bigendian... no
#21 5.292 checking for struct ip_mreq... yes
#21 5.381 checking whether IP_ADD_MEMBERSHIP is declared... yes
#21 5.420 checking for multicast support... yes
#21 5.421 checking for struct group_source_req... yes
#21 5.514 checking whether MCAST_JOIN_SOURCE_GROUP is declared... yes
#21 5.558 checking for multicast ssm support... yes
#21 5.560 checking for struct sockaddr_storage... yes
#21 5.649 checking for struct sockaddr_in6... yes
#21 5.734 checking whether AF_INET6 is declared... yes
#21 5.792 checking for IPv6 headers and structures... yes
#21 5.792 checking for struct ipv6_mreq... yes
#21 5.879 checking whether IPV6_ADD_MEMBERSHIP is declared... yes
#21 5.936 checking whether IPV6_MULTICAST_HOPS is declared... yes
#21 5.978 checking for IPv6 multicast support... yes
#21 5.980 checking whether make is GNU make... yes
#21 6.004 checking that generated files are newer than configure... done
#21 6.005 configure: creating ./config.status
.in'6.121 config.status: error: cannot find input file: `Makefile
------
executor failed running [/bin/sh -c cd /tmp/iperf-2.0.11 &&     autoconf &&     ./configure]: exit code: 1
@KnightWhoSayNi
Copy link
Owner

Cannot reproduce the issue

(...)
 => [15/74] RUN cd /tmp &&     wget --no-check-certificate -q https://astuteinternet.dl.sourceforge.net/pro  3.9s
 => [16/74] COPY /iperf-2.0.11/* /tmp/iperf-2.0.11/                                                          0.1s
 => [17/74] RUN cd /tmp/iperf-2.0.11 &&     autoconf &&     ./configure                                     12.2s
 => [18/74] RUN cd /tmp &&     wget --no-check-certificate -q https://astuteinternet.dl.sourceforge.net/pro  2.6s
 => [19/74] COPY /iperf-2.0.12/* /tmp/iperf-2.0.12/                                                          0.1s
 => [20/74] RUN cd /tmp/iperf-2.0.12 &&     autoconf &&     ./configure                                     14.0s
 => [21/74] RUN cd /tmp &&     wget --no-check-certificate -q https://astuteinternet.dl.sourceforge.net/pro  2.6s
(...)

@KnightWhoSayNi KnightWhoSayNi added the wontfix This will not be worked on label Jul 16, 2022
@kyrlon
Copy link
Author

kyrlon commented Feb 24, 2023

I figured out my issue. I cloned the repo onto my windows 10 machine and had to run dos2unix in the directory using git bash terminal, or more specifically find . -type f -print0 | xargs -0 dos2unix from this SO post. I figured I'll add my findings in case someone else run into this issue as well on a windows machine.

@kyrlon kyrlon changed the title Build fails at iperf-2.0.11 Build fails at iperf-2.0.11 on Windows 10 Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants