octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building PyTave on windows - cygwin


From: Mike Miller
Subject: Re: Building PyTave on windows - cygwin
Date: Tue, 28 Jun 2016 11:16:54 -0700
User-agent: Mutt/1.6.0 (2016-04-01)

On Tue, Jun 28, 2016 at 21:45:55 +0530, Abhinav Tripathi wrote:
> I installed 32 bit Python, numpy and used the 32 bit octave. Now, my pytave
> ./configure gives error in python libs.
> There is a weird 'None' being passed to gcc. The config log is:
> ------------------------------------------------------------------------------------------
> configure:5357: checking for python
> configure:5375: found /c/Python27/python
> configure:5387: result: /c/Python27/python
> configure:5403: checking for a version of Python >= '2.1.0'
> configure:5429: result: yes
> configure:5460: checking for the distutils Python package
> configure:5464: result: yes
> configure:5478: checking for Python include path
> configure:5494: result: -Ic:\Python27\include
> configure:5501: checking for Python library path
> configure:5578: result: -Lc:\Python27\Lib\config -lpython27
> configure:5585: checking for Python site-packages path
> configure:5591: result: c:\Python27\Lib\site-packages
> configure:5598: checking python extra libraries
> configure:5605: result:
> configure:5612: checking python extra linking flags
> configure:5619: result: None
> configure:5626: checking consistency of all components of python
> development environment
> configure:5654: gcc -std=gnu11 -o conftest.exe -g -O2 -I/e/boost_1_61_0
> -I/e/octave_dev/include/octave-4.1.0+
> -I/e/octave_dev/include/octave-4.1.0+/octave -Ic:\Python27\include
> -L/e/boost_1_61_0/stage/lib -L/e/octave_dev/lib
> -L/e/octave_dev/lib/octave/4.1.0+ -L/c/Python27/libs  conftest.c
>  -Lc:\Python27\Lib\config -lpython27 None None >&5
> gcc.exe: error: None: No such file or directory
> gcc.exe: error: None: No such file or directory
> configure:5654: $? = 1
> configure: failed program was:
> | /* confdefs.h */
> | #define PACKAGE_NAME "pytave"
> | #define PACKAGE_TARNAME "pytave"
> | #define PACKAGE_VERSION "dev"
> | #define PACKAGE_STRING "pytave dev"
> | #define PACKAGE_BUGREPORT "https://bitbucket.org/mtmiller/pytave/issues";
> | #define PACKAGE_URL ""
> | #define HAVE_OCTAVE 1
> | #define OCTAVE_INCLUDEDIR "E:\octave_dev\include\octave-4.1.0+"
> | #define OCTAVE_LIBRARYDIR "E:\octave_dev\lib\octave\4.1.0+"
> | #define HAVE_PYTHON "27"
> | /* end confdefs.h.  */
> |
> | #include <Python.h>
> | int
> | main ()
> | {
> | Py_Initialize();
> |   ;
> |   return 0;
> | }
> |
> configure:5672: result: no
> configure:5676: error: in `/e/My_Repos/pytave':
> configure:5678: error:
>   Could not link test program to Python. Maybe the main Python library has
> been
>   installed in some non-standard library path. If so, pass it to configure,
>   via the LIBS environment variable.
>   Example: ./configure LIBS="-L/usr/non-standard-path/python/lib"
> 
> ============================================================================
>    ERROR!
>    You probably have to install the development version of the Python
> package
>    for your distribution.  The exact name of this package varies among them.
> 
> ============================================================================
> 
> ------------------------------------------------------------------------------------------
> 
> Any suggestion(s) on what might be going wrong?

If you dig into the configure script, you can see where the "None" is
coming from. The shell variable is $PYTHON_EXTRA_LIBS, and the value
comes from this command:

  $PYTHON -c 'import distutils.sysconfig; 
print(distutils.sysconfig.get_config_var("LINKFORSHARED"))'

On Debian I get a value of

  -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions

but in your environment, the value must be None. Can you confirm that?

If that's the case, then we can add a case to omit that in the configure
script.

You should be able to work around this in the meantime by setting this
variable to some valid flag, such as

  export PYTHON_EXTRA_LIBS=-g

-- 
mike



reply via email to

[Prev in Thread] Current Thread [Next in Thread]