Building with GCC on Mac OS
Brought to you by:
rwhaley,
tonyc040457
I am trying to install ATLAS 3.10.3, with a custom built GCC 8.3.0 on a Mac OS X.
After unpacking the tarball and making a build directory to build ATLAS, I run configure like below. For now, I am setting --cripple-atlas-performance for an initial build and will later remove it.
../configure -b 64 -D c -DPentiumCPS=$$core \
--with-netlib-lapack-tarfile=lapack.tar.gz \
--cripple-atlas-performance \
--shared \
-C xc /path/to/gcc \
-C gc /path/to/gcc \
-C if /path/to/gfortran \
-C ic /path/to/gcc \
-C dm /path/to/gcc \
-C sm /path/to/gcc \
-C dk /path/to/gcc \
-C sk /path/to/gcc \
--prefix=/my/install/directory
But I get the error in P.S. Apparently the main error line is this:
UNKNOWN COMPILER 'path/installed/bin/gcc' for GCC: you must also supply flags!
So my question is this: which flags should I add to the ATLAS configure command so it can recognize my custom GCC (8.3.0)?
Thank you very much in advance.
P.S. Output of the configure command:
make[1]: Entering directory 'path/ATLAS/build'
gcc -Ipath/ATLAS/build/..//CONFIG/include -g -w -DATL_DYLIBS -c path/ATLAS/build/..//CONFIG/src/atlconf_misc.c
gcc -Ipath/ATLAS/build/..//CONFIG/include -g -w -DATL_DYLIBS -o xconfig path/ATLAS/build/..//CONFIG/src/config.c atlconf_misc.o
make[1]: Leaving directory 'path/ATLAS/build'
./xconfig -d s path/ATLAS/build/../ -d b path/ATLAS/build -b 64 -D c -DPentiumCPS=2500 -Si lapackref 1 -Si cripple-perf 1 -D c -DATL_DYLIBS -C gc path/installed/bin/gcc -C gc path/installed/bin/gcc -C if path/installed/bin/gfortran
OS configured as OSX (12)
Assembly configured as GAS_x8664 (2)
Vector ISA Extension configured as AVXMAC (4,976)
ERROR: enum fam=3, chip=2, model=142, mach=0
make[4]: *** [Makefile;107: atlas_run] Error 44
make[3]: *** [Makefile;450: IRunArchInfo_x86] Error 2
Architecture configured as UNKNOWNx86 (43)
ERROR: enum fam=3, chip=2, model=142, mach=0
make[4]: *** [Makefile;107: atlas_run] Error 44
make[3]: *** [Makefile;450: IRunArchInfo_x86] Error 2
Clock rate configured as 2500Mhz
ERROR: enum fam=3, chip=2, model=142, mach=0
make[4]: *** [Makefile;107: atlas_run] Error 44
make[3]: *** [Makefile;450: IRunArchInfo_x86] Error 2
Maximum number of threads configured as 4
Parallel make command configured as '$(MAKE) -j 4'
ERROR: enum fam=3, chip=2, model=142, mach=0
make[4]: *** [Makefile;107: atlas_run] Error 44
make[3]: *** [Makefile;450: IRunArchInfo_x86] Error 2
Cannot detect CPU throttling.
make[1]: Entering directory 'path/ATLAS/build'
gcc -Ipath/ATLAS/build/..//CONFIG/include -g -w -DATL_DYLIBS -o xisgcc path/ATLAS/build/..//CONFIG/src/IsGcc.c atlconf_misc.o
gcc -Ipath/ATLAS/build/..//CONFIG/include -g -w -DATL_DYLIBS -c path/ATLAS/build/..//CONFIG/src/probe_comp.c
gcc -Ipath/ATLAS/build/..//CONFIG/include -g -w -DATL_DYLIBS -o xprobe_comp probe_comp.o atlconf_misc.o
rm -f config1.out
make atlas_run atldir=path/ATLAS/build exe=xprobe_comp redir=config1.out \
args="-v 0 -o atlconf.txt -O 12 -A 43 -Si nof77 0 -V 976 -C gc 'path/installed/bin/gcc' -C if 'path/installed/bin/gfortran' -b 64 -d b path/ATLAS/build"
make[2]: Entering directory 'path/ATLAS/build'
cd path/ATLAS/build ; ./xprobe_comp -v 0 -o atlconf.txt -O 12 -A 43 -Si nof77 0 -V 976 -C gc 'path/installed/bin/gcc' -C if 'path/installed/bin/gfortran' -b 64 -d b path/ATLAS/build > config1.out
UNKNOWN COMPILER 'path/installed/bin/gcc' for GCC: you must also supply flags!
make[2]: *** [Makefile;107: atlas_run] Error 7
make[2]: Leaving directory 'path/ATLAS/build'
make[1]: *** [Makefile;119: IRun_comp] Error 2
make[1]: Leaving directory 'path/ATLAS/build'
ERROR 512 IN SYSCMND: 'make IRun_comp args="-v 0 -o atlconf.txt -O 12 -A 43 -Si nof77 0 -V 976 -C gc 'path/installed/bin/gcc' -C if 'path/installed/bin/gfortran' -b 64"'
make[1]: Entering directory 'path/ATLAS/build'
mkdir src bin tune interfaces
cd src ; mkdir testing auxil blas lapack pthreads threads
cd src/blas ; \
mkdir f77reference reference gemv ger gemm kbmm \
level1 level2 level3 pklevel3
cd src/blas/reference ; mkdir level1 level2 level3
cd src/blas/level2 ; mkdir kernel
cd src/blas/pklevel3 ; mkdir gpmm sprk
cd src/blas/level3 ; mkdir rblas kernel
cd src/pthreads ; mkdir blas misc
cd src/pthreads/blas ; mkdir level1 level2 level3
cd src/threads ; mkdir blas lapack
cd src/threads/blas ; mkdir level3 level2
cd tune ; mkdir blas sysinfo lapack threads
cd tune/blas ; mkdir gemm gemv ger level1 level3
cd interfaces ; mkdir blas lapack
cd interfaces/lapack ; mkdir C F77
cd interfaces/lapack/C ; mkdir src testing
cd interfaces/lapack/F77 ; mkdir src testing
cd interfaces/blas ; mkdir C F77
cd interfaces/blas/C ; mkdir src testing
cd interfaces/blas/F77 ; mkdir src testing
cd interfaces/lapack ; mkdir C2F
cd interfaces/lapack/C2F ; mkdir src
mkdir ARCHS
make[1]: Leaving directory 'path/ATLAS/build'
make[1]: Entering directory 'path/ATLAS/build'
make -f Make.top startup
make[2]: Entering directory 'path/ATLAS/build'
Make.top:1: Make.inc: No such file or directory
make[2]: *** No rule to make target 'Make.inc'. Stop.
make[2]: Leaving directory 'path/ATLAS/build'
make[1]: *** [Makefile;542: startup] Error 2
make[1]: Leaving directory 'path/ATLAS/build'
mv: cannot stat 'lib/Makefile': No such file or directory
../configure: line 482: lib/Makefile: No such file or directory
../configure: line 483: lib/Makefile: No such file or directory
../configure: line 484: lib/Makefile: No such file or directory
../configure: line 485: lib/Makefile: No such file or directory
../configure: line 503: lib/Makefile: No such file or directory
../configure: line 504: lib/Makefile: No such file or directory
../configure: line 505: lib/Makefile: No such file or directory
../configure: line 541: lib/Makefile: No such file or directory
DONE configure
make[1]: Entering directory 'path/ATLAS/build'
make -f Make.top build
make[2]: Entering directory 'path/ATLAS/build'
Make.top:1: Make.inc: No such file or directory
make[2]: *** No rule to make target 'Make.inc'. Stop.
make[2]: Leaving directory 'path/ATLAS/build'
make[1]: *** [Makefile;537: build] Error 2
make[1]: Leaving directory 'path/ATLAS/build'!