From: Sebastian H. <ha...@ms...> - 2006-07-09 05:16:59
|
Hi, I just tried my first build from a svn checkout on windows using cygwin. I want to use the non cygwin python - i.e. the non-cygwin (mingw) compiler more. I get a presumably very basic error: Even though I follow the simple instructions on http://www.scipy.org/Installing_SciPy/Windows calling python.exe setup.py config --compiler=mingw32 build --compiler=mingw32 bdist_wininst I noticed that gcc gets called without the "-mno-cygwin". From this follows that _WIN32 is not defined and than I get: <copy-paste from cygwin> Could not locate executable gfortran Could not locate executable f95 customize GnuFCompiler customize GnuFCompiler customize GnuFCompiler using config C compiler: gcc -O2 -Wall -Wstrict-prototypes compile options: '-Ic:\python24\include -Inumpy\core\src -Inumpy\core\include -I c:\python24\include -Ic:\python24\PC -c' gcc -O2 -Wall -Wstrict-prototypes -Ic:\python24\include -Inumpy\core\src -Inumpy\core\include -Ic:\python24\include -Ic:\python24\PC -c _configtest.c -o _config test.o In file included from c:/python24/include/Python.h:82, from _configtest.c:2: c:/python24/include/intobject.h:41: error: parse error before "PyInt_AsUnsignedLongLongMask" </copy-paste from cygwin> The error in the last line I traced back to this line: #define PY_LONG_LONG __int64 in pyconfig.h which is used because #if defined(__GNUC__) && defined(_WIN32) is not true if gcc is called without "-mno-cygwin" I don't have cygwin's python installed. I neither have cygwin's non-mingw gcc installed.... According to http://www.python.org/doc/current/inst/tweak-flags.html the --compiler=mingw32 should tell distutils to use the "Cygwin in no-cygwin mode" !?!? What's wrong here ? Thanks Sebastian Haase PS: I don't even care about ATLAS... at this point PPS: Is there maybe a precompiled version later than 0.9.8 avaible !? |
From: Stephan T. <st...@si...> - 2006-07-09 06:56:51
|
Hi Sebastian, > I just tried my first build from a svn checkout on windows using > cygwin. I want to use the non cygwin python - i.e. the non-cygwin > (mingw) compiler more. > I get a presumably very basic error: > Even though I follow the simple instructions on > http://www.scipy.org/Installing_SciPy/Windows did you apply the patch from ticket #114, as mentioned on top of that page? The Cygwin build is known not to work otherwise (due to incorrect compiler flags, as you noticed)... Stephan |
From: Sebastian H. <ha...@ms...> - 2006-07-09 19:54:56
|
Hi Stephan, thanks a lot ! Of course I did NOT read the small print at the top ;-) Now I just have to learn how to apply a patch ;-) (Funny, that after more than ten years of Linux I still don't know this ... ) Thanks again - I'm sure it will work now. (I hope) - Sebastian Stephan Tolksdorf wrote: > Hi Sebastian, > > > I just tried my first build from a svn checkout on windows using > > cygwin. I want to use the non cygwin python - i.e. the non-cygwin > > (mingw) compiler more. > > I get a presumably very basic error: > > Even though I follow the simple instructions on > > http://www.scipy.org/Installing_SciPy/Windows > > did you apply the patch from ticket #114, as mentioned on top of that > page? The Cygwin build is known not to work otherwise (due to incorrect > compiler flags, as you noticed)... > > Stephan |
From: Sebastian H. <ha...@ms...> - 2006-07-09 20:09:34
|
Hi all, I was to quick with my last reply. The patch in ticket 114 (http://projects.scipy.org/scipy/numpy/ticket/114) refers (among others) to a file distutils/system_info.py but my windows python (version 2.4.3) does not contain any file like that in C:\Python24\Lib\distutils What am I missing this time !? Thanks, Sebastian Haase Sebastian Haase wrote: > Hi Stephan, > thanks a lot ! Of course I did NOT read the small print at the top ;-) > > Now I just have to learn how to apply a patch ;-) > (Funny, that after more than ten years of Linux I still don't know this > ... ) > > Thanks again - I'm sure it will work now. > (I hope) > - Sebastian > > > Stephan Tolksdorf wrote: >> Hi Sebastian, >> >> > I just tried my first build from a svn checkout on windows using >> > cygwin. I want to use the non cygwin python - i.e. the non-cygwin >> > (mingw) compiler more. >> > I get a presumably very basic error: >> > Even though I follow the simple instructions on >> > http://www.scipy.org/Installing_SciPy/Windows >> >> did you apply the patch from ticket #114, as mentioned on top of that >> page? The Cygwin build is known not to work otherwise (due to incorrect >> compiler flags, as you noticed)... >> >> Stephan > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Numpy-discussion mailing list > Num...@li... > https://lists.sourceforge.net/lists/listinfo/numpy-discussion |
From: Steve L. <lis...@ar...> - 2006-07-09 21:07:06
|
On Jul 9, 2006, at 4:09 PM, Sebastian Haase wrote: > Hi all, > I was to quick with my last reply. > The patch in ticket 114 (http://projects.scipy.org/scipy/numpy/ > ticket/114) > refers (among others) to a file > distutils/system_info.py > but my windows python (version 2.4.3) does not contain any file > like that in > C:\Python24\Lib\distutils > > What am I missing this time !? Perhaps it's referring to the distutils folder in the numpy package .. should be in: /path/to/numpy/checkout/numpy/distutils/system_info.py -steve |
From: Sebastian H. <ha...@ms...> - 2006-07-09 21:54:20
|
Steve Lianoglou wrote: > On Jul 9, 2006, at 4:09 PM, Sebastian Haase wrote: > >> Hi all, >> I was to quick with my last reply. >> The patch in ticket 114 >> (http://projects.scipy.org/scipy/numpy/ticket/114) >> refers (among others) to a file >> distutils/system_info.py >> but my windows python (version 2.4.3) does not contain any file like >> that in >> C:\Python24\Lib\distutils >> >> What am I missing this time !? > > Perhaps it's referring to the distutils folder in the numpy package .. > should be in: > /path/to/numpy/checkout/numpy/distutils/system_info.py > Hi Steve, Thanks for the hint. Before I was looking for numpy/distutils (which did not exist) and now I found it as numpy/numpy/distutils. Done. Worked - thanks. Now, I was trying to build SciPy - without getting through the ATALS/Lapack precedure ! So I get the expected Warnings (... NOT AVAILABLE) but then (right after those) I get an error: File "C:\Python24\Lib\site-packages\numpy\distutils\system_info.py", line 403, in get_info raise self.notfounderror,self.notfounderror.__doc__ numpy.distutils.system_info.NotFoundError: Some third-party program or library is not found. Does SciPy not come anymore with a fall back non-Lapack version included !? Thanks, Sebastian Haase |