cannot guess build type - MacOS Monterey m1 Pro chip 16gb RAM
eL-Squaz opened this issue · 1 comments
eL-Squaz commented
0 6.545 checking whether gcc accepts -g... yes
#0 6.565 checking for gcc option to accept ISO C89... none needed
#0 6.598 checking for style of include used by make... GNU
#0 6.602 checking dependency style of gcc... gcc3
#0 6.638 checking build system type... ./config.guess: unable to guess system type
#0 6.699
#0 6.699 This script, last modified 2006-07-02, has failed to recognize
#0 6.699 the operating system you are using. It is advised that you
#0 6.699 download the most up to date version of the config scripts from
#0 6.699
#0 6.699 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
#0 6.699 and
#0 6.699 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
#0 6.699
#0 6.699 If the version you run (./config.guess) is already up to date, please
#0 6.699 send the following data and any information you think might be
#0 6.699 pertinent to config-patches@gnu.org in order to provide the needed
#0 6.699 information to handle your system.
#0 6.699
#0 6.699 config.guess timestamp = 2006-07-02
#0 6.699
#0 6.699 uname -m = aarch64
#0 6.699 uname -r = 5.10.104-linuxkit
#0 6.699 uname -s = Linux
#0 6.699 uname -v = #1 SMP PREEMPT Thu Mar 17 17:05:54 UTC 2022
#0 6.699
#0 6.699 /usr/bin/uname -p =
#0 6.699 /bin/uname -X =
#0 6.699
#0 6.699 hostinfo =
#0 6.699 /bin/universe =
#0 6.699 /usr/bin/arch -k =
#0 6.699 /bin/arch =
#0 6.699 /usr/bin/oslevel =
#0 6.699 /usr/convex/getsysinfo =
#0 6.699
#0 6.699 UNAME_MACHINE = aarch64
#0 6.699 UNAME_RELEASE = 5.10.104-linuxkit
#0 6.699 UNAME_SYSTEM = Linux
#0 6.699 UNAME_VERSION = #1 SMP PREEMPT Thu Mar 17 17:05:54 UTC 2022
#0 6.702 configure: error: cannot guess build type; you must specify one
failed to solve: executor failed running [/bin/sh -c wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz && tar -xvzf ta-lib-0.4.0-src.tar.gz && cd ta-lib/ && ./configure --prefix=/usr && make && make install]: exit code: 1
dkschrei commented
Adjust your Dockerfile , modify ./configure with ./configure --build=ararch64-unknonw-liniux-gnu
Should look as follows, note I had to adjust TA lib URL since it moved to new location and needs https
RUN wget https://sourceforge.net/projects/ta-lib/files/ta-lib/0.4.0/ta-lib-0.4.0-src.tar.gz && \
tar -xvzf ta-lib-0.4.0-src.tar.gz &&
cd ta-lib/ &&
./configure --build=aarch64-unknown-linux-gnu --prefix=/usr &&
make &&
make install