#21 syntax error on configure

developer
open-fixed
5
2014-08-22
2012-01-29
hete
No

Using atlas 3.9.61 (on cygwin / Win 7 / core i3)

$ ../configure -t 2 --prefix=/usr/local/

gives the following result:

gcc -I/cygdrive/c/cygwin//home/Henning/download/ATLAS/cygwin/..//CONFIG/include -g -w -c /cygdrive/c/cygwin//home/Henning/download/ATLAS/cygwin/..//CONFIG/src/atlconf_misc.c
gcc -I/cygdrive/c/cygwin//home/Henning/download/ATLAS/cygwin/..//CONFIG/include -g -w -o xconfig /cygdrive/c/cygwin//home/Henning/download/ATLAS/cygwin/..//CONFIG/src/config.c atlconf_misc.o
./xconfig -d s /cygdrive/c/cygwin//home/Henning/download/ATLAS/cygwin/../ -d b /cygdrive/c/cygwin//home/Henning/download/ATLAS/cygwin -t 2

OS configured as WinNT (8)

Assembly configured as GAS_x8632 (1)

Vector ISA Extension configured as SSE3 (5,224)

Architecture configured as Corei2 (22)

Clock rate configured as 3292Mhz
Parallel make command configured as '$(MAKE)'

Pointer width configured as 64
Cannot detect CPU throttling.
gcc -I/cygdrive/c/cygwin//home/Henning/download/ATLAS/cygwin/..//CONFIG/include -g -w -o xisgcc /cygdrive/c/cygwin//home/Henning/download/ATLAS/cygwin/..//CONFIG/src/IsGcc.c atlconf_misc.o
gcc -I/cygdrive/c/cygwin//home/Henning/download/ATLAS/cygwin/..//CONFIG/include -g -w -c /cygdrive/c/cygwin//home/Henning/download/ATLAS/cygwin/..//CONFIG/src/probe_comp.c
gcc -I/cygdrive/c/cygwin//home/Henning/download/ATLAS/cygwin/..//CONFIG/include -g -w -o xprobe_comp probe_comp.o atlconf_misc.o
rm -f config1.out
make atlas_run atldir=/cygdrive/c/cygwin//home/Henning/download/ATLAS/cygwin exe=xprobe_comp args="-v 0 -o atlconf.txt -O 8 -A 22 -Si nof77 0 -b 64" \ redir=config1.out
make[1]: Entering directory `/home/Henning/download/ATLAS/cygwin'
cd /cygdrive/c/cygwin//home/Henning/download/ATLAS/cygwin ; ./xprobe_comp -v 0 -o atlconf.txt -O 8 -A 22 -Si nof77 0 -b 64 > config1.out
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `find $HOME/local /usr/local/bin /usr/bin /cygdrive/c/Program\ Files\ (x86)/MiKTeX\ 2.9/miktex/bin /cygdrive/c/Windows/system32 /cygdrive/c/Windows /cygdrive/c/Windows/System32/Wbem /cygdrive/c/Windows/System32/WindowsPowerShell/v1.0 /usr/lib/lapack -name '*gcc*' -exec ./xisgcc '{}' \; > /tmp/t57c.0 2>&1'
assertion "fpin" failed: file "/cygdrive/c/cygwin//home/Henning/download/ATLAS/cygwin/..//CONFIG/src/atlconf_misc.c", line 873, function: GetLinesFromFile
/bin/sh: line 1: 1404 Aborted (core dumped) ./xprobe_comp -v 0 -o atlconf.txt -O 8 -A 22 -Si nof77 0 -b 64 > config1.out
Makefile:106: recipe for target `atlas_run' failed
make[1]: *** [atlas_run] Error 134
make[1]: Leaving directory `/home/Henning/download/ATLAS/cygwin'
Makefile:117: recipe for target `IRun_comp' failed
make: *** [IRun_comp] Error 2
ERROR 512 IN SYSCMND: 'make IRun_comp args="-v 0 -o atlconf.txt -O 8 -A 22 -Si nof77 0 -b 64"'
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 -f Make.top startup
make[1]: Entering directory `/home/Henning/download/ATLAS/cygwin'
Make.top:1: Make.inc: No such file or directory
make[1]: *** No rule to make target `Make.inc'. Stop.
make[1]: Leaving directory `/home/Henning/download/ATLAS/cygwin'
Makefile:487: recipe for target `startup' failed
make: *** [startup] Error 2
mv: cannot stat `lib/Makefile': No such file or directory
../configure: line 410: lib/Makefile: No such file or directory
../configure: line 411: lib/Makefile: No such file or directory
../configure: line 412: lib/Makefile: No such file or directory
../configure: line 413: lib/Makefile: No such file or directory
../configure: line 469: lib/Makefile: No such file or directory
DONE configure

I got no error reports.
Did I made any mistake or is there a bug?
best regards

Discussion


  • Anonymous
    2012-02-04

    You still should be able to run 'make'.

     
    Last edit: Anonymous 2014-07-04
  • hete
    hete
    2012-02-06

    the result of make is:
    $ make
    make -f Make.top build
    make[1]: Entering directory `/home/Henning/download/ATLAS/cygwin'
    Make.top:1: Make.inc: No such file or directory
    make[1]: *** No rule to make target `Make.inc'. Stop.
    make[1]: Leaving directory `/home/Henning/download/ATLAS/cygwin'
    Makefile:482: recipe for target `build' failed
    make: *** [build] Error 2

    so this don't work

     
  • Yes, my windows support is currently broke. I have just gotten cygwin installed on a windows machine, and will hopefully fix this soon.

     
    • assigned_to: nobody --> rwhaley
     
    • milestone: --> developer
    • labels: --> Problems during configure
     
  • Li Peng
    Li Peng
    2012-03-25

    I'm encountered with the same issue and figured out that it is caused by the missed handling of parentheses in the system's path variable. In 64bit Windows systems (at least 64 bit Windows 7), there's a 'Program Files (x86)' directory which the tool doesn't escape the parentheses, that causes "find" error. Applying the following patch to CONFIG/src/atlconf_misc.c will solve this problem.

    679a680,691
    > else if (path[i] == '(')
    > {
    > *p = '\\';
    > p[1] = '(';
    > p += 2;
    > }
    > else if (path[i] == ')')
    > {
    > *p = '\\';
    > p[1] = ')';
    > p += 2;
    > }

     
  • Hi,

    I am very sorry for the looong delay, but I think I have gotten Windows fully supported in ATLAS 3.9.79. Using it, you can build 32-bit libs using either the cygwin compilers or the MinGW compilers, though you still need cygwin installed. The ATLAS installation guide that comes with the tarfile has Windows-specific installation instructions.

    Can you try 3.9.79 and let me know if it works for you?

    Many thanks,
    Clint

     
    • status: open --> open-fixed
     
  • RRCC
    RRCC
    2013-01-13

    Hi Clint,

    I have the same problem mentioned in this thread with latest ATLAS version (3.10.1).
    cygwin running on Windows 7 (core i5).

    I created a $PATH that does not have any white spaces (which were creating some issues):

    $ echo $PATH
    /usr/local/bin:/usr/bin:/cygdrive/c/windows/System32/Wbem:/cygdrive/c/windows/System32/WindowsPowerShell/v1.0:/usr/bin:/cygdrive/c/gnuarm/bin:/usr/lib/lapack

    I tried with and without MinGW in $PATH (I have MinGW installed, however, I usually use gcc).

    I get messages similar to the ones reported at the beginning of this thread. Here's what I get (without MinGW in $PATH):

    $ ../configure -b 64 -D c -DPentiumCPS=2400 --with-netlib-lapack-tarfile=../../
    lapack-3.4.2.tgz

    gcc -I/cygdrive/c/proj1/ATLAS3.10.1/Linux_C2D64SSE3/..//CONFIG/include -g -w -c /cygdrive/c/proj1/ATLAS3.10.1/Linux_C2D64SSE3/..//CONFIG/src/atlconf_misc.c
    gcc -I/cygdrive/c/proj1/ATLAS3.10.1/Linux_C2D64SSE3/..//CONFIG/include -g -w -o xconfig /cygdrive/c/proj1/ATLAS3.10.1/Linux_C2D64SSE3/..//CONFIG/src/config.c atlconf_misc.o
    ./xconfig -d s /cygdrive/c/proj1/ATLAS3.10.1/Linux_C2D64SSE3/../ -d b /cygdrive/c/proj1/ATLAS3.10.1/Linux_C2D64SSE3 -b 64 -D c -DPentiumCPS=2400 -Si lapackref1

    OS configured as Win64 (9)

    Assembly configured as GAS_x8632 (1)

    Vector ISA Extension configured as SSE3 (6,448)

    Architecture configured as Corei1 (25)

    Clock rate configured as 2394Mhz

    Maximum number of threads configured as 4
    Parallel make command configured as '$(MAKE)'
    Cannot detect CPU throttling.
    gcc -I/cygdrive/c/proj1/ATLAS3.10.1/Linux_C2D64SSE3/..//CONFIG/include -g -w -o xisgcc /cygdrive/c/proj1/ATLAS3.10.1/Linux_C2D64SSE3/..//CONFIG/src/IsGcc.c atlconf_misc.o
    gcc -I/cygdrive/c/proj1/ATLAS3.10.1/Linux_C2D64SSE3/..//CONFIG/include -g -w -c /cygdrive/c/proj1/ATLAS3.10.1/Linux_C2D64SSE3/..//CONFIG/src/probe_comp.c
    gcc -I/cygdrive/c/proj1/ATLAS3.10.1/Linux_C2D64SSE3/..//CONFIG/include -g -w -o xprobe_comp probe_comp.o atlconf_misc.o
    rm -f config1.out
    make atlas_run atldir=/cygdrive/c/proj1/ATLAS3.10.1/Linux_C2D64SSE3 exe=xprobe_comp redir=config1.out \ args="-v 0 -o atlconf.txt -O 9 -A 25 -Si nof77 0 -V 448 -b 64
    -d b /cygdrive/c/proj1/ATLAS3.10.1/Linux_C2D64SSE3"
    make[1]: Entering directory /cygdrive/c/proj1/ATLAS3.10.1/Linux_C2D64SSE3' cd /cygdrive/c/proj1/ATLAS3.10.1/Linux_C2D64SSE3 ; ./xprobe_comp -v 0 -o atlconf.txt -O 9 -A 25 -Si nof77 0 -V 448 -b 64 -d b /cygdrive/c/proj1/ATLAS3.10.1/Linux_C2D64SSE3 > config1.out sh: -c: line 0: unexpected EOF while looking for matching ``' sh: -c: line 1: syntax error: unexpected end of file sh: -c: line 0: unexpected EOF while looking for matching ``' sh: -c: line 1: syntax error: unexpected end of file sh: -c: line 0: unexpected EOF while looking for matching ``' sh: -c: line 1: syntax error: unexpected end of file sh: -c: line 0: unexpected EOF while looking for matching ``' sh: -c: line 1: syntax error: unexpected end of file Cannot find MinGW gcc in /usr/bin, with names beginning with /usr/bin/x86_64-w64-mingw32-* ; Make sure MinGW is installed, then try again. If your MinGW compiler not named like this, specify them using file Makefile:106: recipe for targetatlas_run' failed
    make[1]: [atlas_run] Error 255
    make[1]: Leaving directory /cygdrive/c/proj1/ATLAS3.10.1/Linux_C2D64SSE3' Makefile:117: recipe for targetIRun_comp' failed
    make:
    [IRun_comp] Error 2
    ERROR 512 IN SYSCMND: 'make IRun_comp args="-v 0 -o atlconf.txt -O 9 -A 25 -Si nof77 0 -V 448 -b 64"'
    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 -f Make.top startup
    make[1]: Entering directory /cygdrive/c/proj1/ATLAS3.10.1/Linux_C2D64SSE3' Make.top:1: Make.inc: No such file or directory make[1]: *** No rule to make targetMake.inc'. Stop.
    make[1]: Leaving directory /cygdrive/c/proj1/ATLAS3.10.1/Linux_C2D64SSE3' Makefile:493: recipe for targetstartup' failed
    make: *** [startup] Error 2
    mv: cannot stat `lib/Makefile': No such file or directory
    ../configure: line 450: lib/Makefile: No such file or directory
    ../configure: line 451: lib/Makefile: No such file or directory
    ../configure: line 452: lib/Makefile: No such file or directory
    ../configure: line 453: lib/Makefile: No such file or directory
    ../configure: line 509: lib/Makefile: No such file or directory
    DONE configure

    Many thanks.

     
  • RRCC
    RRCC
    2013-01-14

    It was my problem. I did not have MinGW 64 installed on cygwin (and gcc does not seem to support 64 bit architecture).

    But now I have problem with make build. I will try to look for other threads on the topic.

     
  • theo
    theo
    2013-10-29

    Exactly the same here on Cygwin (32b), Window 7 64b on Pentium i7 (Sandy Bridge)@2.8GHz. Configure ending with:

    $ ../configure -b 32 -D c -DPentiumCPS=2793 --prefix=../atlas-win32-static --with-netlib-lapack-tarfile=/cygdrive/c/work/lapack-3.4.2.tgz
    ...LOTS OF OUTPUT...
    mkdir ARCHS
    make -f Make.top startup
    make[1]: Entering directory '/cygdrive/c/work/atlas3.11.11/ATLAS/win32'
    Make.top:1: Make.inc: No such file or directory
    make[1]: *** No rule to make target 'Make.inc'.  Stop.
    make[1]: Leaving directory '/cygdrive/c/work/atlas3.11.11/ATLAS/win32'
    Makefile:513: recipe for target 'startup' failed
    make: *** [startup] Error 2
    mv: cannot stat `lib/Makefile': No such file or directory
    ../configure: line 450: lib/Makefile: No such file or directory
    ../configure: line 451: lib/Makefile: No such file or directory
    ../configure: line 452: lib/Makefile: No such file or directory
    ../configure: line 453: lib/Makefile: No such file or directory
    ../configure: line 509: lib/Makefile: No such file or directory
    DONE configure
    

    End then

    $ make
    

    Fails as above.