2012-07-16 88 views
6

我在编译Windows 7 64位ATLAS时遇到了一些困难,我将不胜感激!我试图将它链接到lapack-3.4.1。获取在Windows 7上编译的ATLAS 3.10.0 64

我使用Cygwin中的命令是:

../ATLAS/configure -D c -DWALL --with-netlib-lapack-tarfile=../lapack-3.4.1.tgz -b 64 -Si archdef 0 -Ss ADdir ../ATLAS/WINAD 

我得到的输出是:

make: `xconfig' is up to date. 
./xconfig -d s /f/Coursework/Code/python/compile/built/../ATLAS/ -d b /f/Coursework/Code/python/compile/built -D c -DWALL -Si lapackref 1 -b 64 -Si archdef 0 -Ss ADdir ../ATLAS/WINAD 
gcc.exe: error: /f/Coursework/Code/python/compile/built/../ATLAS//CONFIG/src/probe_asm.c: No such file or directory 
gcc.exe: fatal error: no input files 
compilation terminated. 
make: *** [probe_asm.o] Error 1 
gcc.exe: error: /f/Coursework/Code/python/compile/built/../ATLAS//CONFIG/src/probe_vec.c: No such file or directory 
gcc.exe: fatal error: no input files 
compilation terminated. 
make: *** [probe_vec.o] Error 1 
gcc.exe: error: /f/Coursework/Code/python/compile/built/../ATLAS//CONFIG/src/probe_arch.c: No such file or directory 
gcc.exe: fatal error: no input files 
compilation terminated. 
make: *** [probe_arch.o] Error 1 
gcc.exe: error: /f/Coursework/Code/python/compile/built/../ATLAS//CONFIG/src/probe_arch.c: No such file or directory 
gcc.exe: fatal error: no input files 
compilation terminated. 
make: *** [probe_arch.o] Error 1 
gcc.exe: error: /f/Coursework/Code/python/compile/built/../ATLAS//CONFIG/src/probe_arch.c: No such file or directory 
gcc.exe: fatal error: no input files 
compilation terminated. 
make: *** [probe_arch.o] Error 1 
gcc.exe: error: /f/Coursework/Code/python/compile/built/../ATLAS//CONFIG/src/probe_arch.c: No such file or directory 
gcc.exe: fatal error: no input files 
compilation terminated. 
make: *** [probe_arch.o] Error 1 
gcc -I/f/Coursework/Code/python/compile/built/../ATLAS//CONFIG/include -g -w -o xisgcc /f/Coursework/Code/python/compile/built/../ATLAS//CONFIG/src/IsGcc.c atlconf_misc.o 
gcc.exe: error: /f/Coursework/Code/python/compile/built/../ATLAS//CONFIG/src/IsGcc.c: No such file or directory 
Makefile:39: recipe for target `xisgcc' failed 
make: *** [xisgcc] Error 1 

OS configured as Win64 (9) 

Bad ASM value=0, res='NULL' 

Assembly configured as (0) 

Bad VECFLAG value=0, res='NULL' 

Vector ISA Extension configured as (0,0) 

Bad MACHTYPE value=0, res='NULL' 

Architecture configured as UNKNOWN (0) 

Bad CPU MHZ value=0, res='NULL' 

Clock rate configured as 0Mhz 

Bad NCPU value=0, res='NULL' 

Maximum number of threads configured as 0 
Cannot detect CPU throttling. 
ERROR 2 IN SYSCMND: 'make IRun_comp args="-v 0 -o atlconf.txt -O 9 -A 0 -Si nof77 0 -V 0 -b 64"' 
xconfig exited with 2 

试图同在MSYS壳给我:

make: `xconfig' is up to date. 
./xconfig -d s /f/Coursework/Code/python/compile/built/../ATLAS/ -d b /f/Coursew 
ork/Code/python/compile/built -D c -DWALL -Si lapackref 1 -b 64 -Si archdef 0 - 
Ss ADdir ../ATLAS/WINAD 

Bad OS value=0, res='NULL' 

OS configured as UNKNOWN (0) 
Assertion failed: iret, file f:/Coursework/Code/python/compile/built/../ATLAS//C 
ONFIG/src/config.c, line 602 

This application has requested the Runtime to terminate it in an unusual way. 
Please contact the application's support team for more information. 
xconfig exited with 3 

msysinfo的输出是:

msysinfo-1.3: Send this to the MSYS support list: 

MSYS 1.0.17(0.48/3/2) 2011-04-24 23:39 i686 unknown; targ=MINGW3 
GNU bash, version 3.1.17(1)-release (i686-pc-msys); ENV=.profile 
GNU Make 3.81This program built for i686-pc-msys; MAKE_MODE=unix 
gcc.exe (GCC) 4.7.0; targ=MINGW32 
GNU ld (GNU Binutils) 2.22 
224 2011-04-25 00:42:29.000000000 +0100 /bin/msys-1.0.dll 
659 2010-04-14 15:15:29.000000000 +0100 /bin/msys-archive-2.dll 
048 2011-09-10 07:40:32.000000000 +0100 /bin/msys-bz2-1.dll 
240 2010-01-29 01:32:57.000000000 +0000 /bin/msys-crypt-0.dll 
448 2010-04-14 23:32:54.000000000 +0100 /bin/msys-crypto-1.0.0.d 
840 2010-01-29 02:06:29.000000000 +0000 /bin/msys-expat-1.dll 
992 2010-01-29 01:49:36.000000000 +0000 /bin/msys-gdbm-3.dll 
264 2010-01-29 01:49:36.000000000 +0000 /bin/msys-gdbm_compat-3. 
548 2010-05-04 03:04:46.000000000 +0100 /bin/msys-gmp-10.dll 
424 2010-05-08 20:26:27.000000000 +0100 /bin/msys-guile-17.dll 
112 2010-05-08 20:26:27.000000000 +0100 /bin/msys-guile-srfi-srf 
680 2010-05-08 20:26:27.000000000 +0100 /bin/msys-guile-srfi-srf 
l 
680 2010-05-08 20:26:27.000000000 +0100 /bin/msys-guile-srfi-srf 
752 2010-05-08 20:26:27.000000000 +0100 /bin/msys-guile-srfi-srf 
680 2010-05-08 20:26:27.000000000 +0100 /bin/msys-guilereadline- 
904 2011-10-29 19:18:01.000000000 +0100 /bin/msys-iconv-2.dll 
128 2011-10-29 12:22:30.000000000 +0100 /bin/msys-intl-8.dll 
246 2010-09-26 06:04:09.000000000 +0100 /bin/msys-ltdl-7.dll 
288 2011-09-10 08:01:59.000000000 +0100 /bin/msys-lzma-5.dll 
248 2010-04-16 05:50:34.000000000 +0100 /bin/msys-magic-1.dll 
064 2010-02-01 22:22:06.000000000 +0000 /bin/msys-minires.dll 
544 2010-05-09 01:41:04.000000000 +0100 /bin/msys-opts-25.dll 
608 2011-04-27 05:23:31.000000000 +0100 /bin/msys-perl5_8.dll 
327 2010-04-28 00:40:27.000000000 +0100 /bin/msys-popt-0.dll 
192 2010-02-01 22:29:13.000000000 +0000 /bin/msys-regex-1.dll 
544 2010-04-14 23:32:54.000000000 +0100 /bin/msys-ssl-1.0.0.dll 
864 2010-02-01 01:44:06.000000000 +0000 /bin/msys-termcap-0.dll 
888 2010-02-01 21:40:02.000000000 +0000 /bin/msys-xml2-2.dll 
920 2012-05-14 05:29:50.000000000 +0100 /bin/msys-z.dll 
88 2010-04-29 19:18:53.000000000 +0100 /bin/make.exe 
798 2012-03-31 18:24:11.000000000 +0100 /mingw/bin/gcc.exe 
502 2011-11-30 15:20:43.000000000 +0000 /mingw/bin/ld.exe 
HOME=/c/Users/Folcon 
Sysname=MINGW32_NT-6.1 OSTYPE=msys TERM=cygwin 
PATH=.:/usr/local/bin:/mingw/bin:/bin:/c/Program Files (x86)/MiK 
TeX 2.9/miktex/bin:/c/Windows/system32:/c/Windows:/c/Windows/Sys 
tem32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/c/Progra 
m Files (x86)/ATI Technologies/ATI.ACE/Core-Static:/c/Program Fi 
les (x86)/Git/cmd:/c/Program Files (x86)/Aspell/bin:/c/Program F 
iles (x86)/gs/gs9.00/bin:/c/msys/gnuwin32/bin:/mingw/bin:/c/Prog 
ram Files (x86)/Java/jdk1.6.0_21/bin:/c/Program Files (x86)/Emac 
s/emacs/bin:/c/Python25/:/c/Program Files (x86)/TortoiseHg/:/c/P 
rogram Files (x86)/Calibre2/:/c/lein:/c/mvn/bin:/c/Program Files 
/TortoiseGit/bin:/c/Users/Folcon/.lein/bin:/c/Windows/System32:/ 
c/Program Files (x86)/Haskell/bin:/c/ghc/ghc-6.12.3/bin:/c/Progr 
am Files (x86)/Google/google_appengine/:/c/Python26:/c/Python26/ 
DLLs:/c/Python26/Scripts:/c/Python26/Lib/site-packages/PyQt4:/c/ 
Python26/gnuplot/bin:/c/Python26/Lib/site-packages/vtk:/f/Progra 
m Files (x86)/pythonxy/console:/f/Program Files (x86)/pythonxy/S 
ciTE-2.21:/f/Program Files (x86)/pythonxy/mingw/bin:/c/Users/Fol 
con/.lein/bin:/f/C/Program Files (x86)/Git/bin:/cygdrive/c/Progr 
am Files (x86)/Java/jdk1.6.0_21/bin:/cygdrive/c/lein:/c/mvn/bin: 
/cygdrive/c/Users/Folcon/.lein/bin:/cygdrive/c/Program Files (x8 
6)/Haskell/bin:/cygdrive/c/ghc/ghc-6.12.3/bin:/cygdrive/c/Python 
26:/cygdrive/c/Python26/DLLs:/cygdrive/c/Python26/Scripts:/cygdr 
ive/c/Python26/Lib/site-packages/PyQt4:/cygdrive/c/Python26/gnup 
lot/bin:/cygdrive/c/Python26/Lib/site-packages/vtk:/cygdrive/c/U 
sers/Folcon/.lein/bin:/cygdrive/f/C/Program Files (x86)/Git/bin 
$ ls -tx /f/Coursework/Code/python/compile/built 
config1.out atlcomp.txt  Makefile xprobe_OS.exe* 
xconfig.exe* atlconf_misc.o probe_OS.o 
+0

你解决了这个问题吗?我一直试图在windows7上使用mingw64工具链构建一个64位的ATLAS库,但无法通过这个第一步xconfig。看起来-D c标志对我造成了问题。 – mcheema 2012-11-21 19:05:57

+1

@mcheema我取得了一些成功,但没有与Windows 7版本,所以我没有最终更新它在这里,因为它是非常特定于AWS,我最终建立它。不得不卸下所有我想完成的工作。祝好运,抱歉,我无法提供更多帮助。 – toofarsideways 2012-11-24 12:38:18

回答

0
  • “坏OS值”是由ATLAS使用tmpnam函数生成临时文件名(并试图读取温度事后命令的结果),这在一些MinGW的实现,返回根目录下的文件的路径(造成如果您将-v 2添加到.../configure参数中,您可以看到“访问被拒绝”和“猫:\ XXXX:没有这样的文件或目录”)。

您可以尝试通过改变ATL_tmpnam功能来缓解问题使用tempnam返回当前目录中的临时文件(你应该有写权限),而不是:

(以下,当然,一个肮脏的黑客,可以用非常有效(Cygwin的变得更好)

--- - 2016-08-17 18:06:53.413941900 +0300 
+++ ATLAS/CONFIG/include/atlas_sys.h 2016-08-17 16:54:37.583946600 +0300 
@@ -218,10 +218,14 @@ static char *ATL_tmpnam(void) 
{ 
    static char tnam[L_tmpnam]; 
    static char FirstTime=1; 
+ char* temptnam; 
    if (FirstTime) 
    { 
     FirstTime = 0; 
-  assert(tmpnam(tnam)); 
+  temptnam = tempnam(".",tnam); 
+  assert(temptnam); 
+  strcpy(tnam,temptnam); 
+  free(temptnam); 
    } 
    return(tnam); 
} 
  • gcc: /f/Coursework/Code/python/compile/built/../ATLAS//CONFIG/src/probe_asm.c: No such file or directory gcc.exe: fatal error: no input files)文件路径是通过运行错误的GCC引起的:如果你运行which gcc,你”会发现它不是来自Cygwin的/usr/bin/,而是来自系统中的其他位置(可能由MinGW添加到%PATH%)。没有意识到Cygwin,它认为这些路径是不存在的。解决方法:将--cc=/usr/bin/gcc或类似的参数添加到.../configure