Phoenix : installation from sources failes on OpenSuse 43.2

Hi there,

I can’t install Phoenix from sources, on Linux OpenSuse 42.3, with " python setup.py build "
Here are the fail details :

Finished command: build_wx (10m12.574s)
Running command: build_py
Checking for /home/regis/Downloads/wxPython-4.0.2a1.dev3699+c55bce4/bin/waf-1.7.15-p1…
“/usr/bin/python” /home/regis/Downloads/wxPython-4.0.2a1.dev3699+c55bce4/bin/waf-1.7.15-p1 --wx_config=/home/regis/Downloads/wxPython-4.0.2a1.dev3699+c55bce4/build/wxbld/gtk3/wx-config --gtk3 --python="/usr/bin/python" --out=build/waf/2.7/gtk3 configure build
Setting top to : /home/regis/Downloads/wxPython-4.0.2a1.dev3699+c55bce4
Setting out to : /home/regis/Downloads/wxPython-4.0.2a1.dev3699+c55bce4/build/waf/2.7/gtk3
Checking for ‘gcc’ (c compiler) : /usr/bin/gcc
Checking for ‘g++’ (c++ compiler) : /usr/bin/g++
Checking for program python : /usr/bin/python
Checking for python version : (2, 7, 13, ‘final’, 0)
Checking for library python2.7 in LIBDIR : yes
Checking for program /usr/bin/python-config,python2.7-config,python-config-2.7,python2.7m-config : /usr/bin/python-config
Checking for header Python.h : yes
Checking for ‘/home/regis/Downloads/wxPython-4.0.2a1.dev3699+c55bce4/build/wxbld/gtk3/wx-config’ : yes
Checking for ‘/home/regis/Downloads/wxPython-4.0.2a1.dev3699+c55bce4/build/wxbld/gtk3/wx-config’ : yes
Checking for ‘/home/regis/Downloads/wxPython-4.0.2a1.dev3699+c55bce4/build/wxbld/gtk3/wx-config’ : yes
Checking for ‘/home/regis/Downloads/wxPython-4.0.2a1.dev3699+c55bce4/build/wxbld/gtk3/wx-config’ : yes
Checking for ‘/home/regis/Downloads/wxPython-4.0.2a1.dev3699+c55bce4/build/wxbld/gtk3/wx-config’ : yes
Checking for ‘/home/regis/Downloads/wxPython-4.0.2a1.dev3699+c55bce4/build/wxbld/gtk3/wx-config’ : yes
Checking for ‘/home/regis/Downloads/wxPython-4.0.2a1.dev3699+c55bce4/build/wxbld/gtk3/wx-config’ : yes
Checking for ‘/home/regis/Downloads/wxPython-4.0.2a1.dev3699+c55bce4/build/wxbld/gtk3/wx-config’ : yes
Checking for ‘/home/regis/Downloads/wxPython-4.0.2a1.dev3699+c55bce4/build/wxbld/gtk3/wx-config’ : yes
Checking for ‘/home/regis/Downloads/wxPython-4.0.2a1.dev3699+c55bce4/build/wxbld/gtk3/wx-config’ : yes
Checking for ‘/home/regis/Downloads/wxPython-4.0.2a1.dev3699+c55bce4/build/wxbld/gtk3/wx-config’ : yes
Checking for ‘/home/regis/Downloads/wxPython-4.0.2a1.dev3699+c55bce4/build/wxbld/gtk3/wx-config’ : yes
Checking for ‘/home/regis/Downloads/wxPython-4.0.2a1.dev3699+c55bce4/build/wxbld/gtk3/wx-config’ : yes
‘configure’ finished successfully (1.984s)
Waf: Entering directory `/home/regis/Downloads/wxPython-4.0.2a1.dev3699+c55bce4/build/waf/2.7/gtk3’
[ 1/863] c: sip/siplib/apiversions.c -> build/waf/2.7/gtk3/sip/siplib/apiversions.c.1.o
In file included from /usr/include/limits.h:25:0,
from /usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed/limits.h:168,
from /usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed/syslimits.h:7,
from /usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed/limits.h:34,
from /usr/include/python2.7/Python.h:19,
from …/…/…/…/sip/siplib/apiversions.c:20:
/usr/include/features.h:328:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]

warning _FORTIFY_SOURCE requires compiling with optimization (-O)

^

[ 2/863] c: sip/siplib/array.c -> build/waf/2.7/gtk3/sip/siplib/array.c.1.o
In file included from /usr/include/limits.h:25:0,
from /usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed/limits.h:168,
from /usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed/syslimits.h:7,
from /usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed/limits.h:34,
from /usr/include/python2.7/Python.h:19,
from …/…/…/…/sip/siplib/array.c:20:
/usr/include/features.h:328:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]

warning _FORTIFY_SOURCE requires compiling with optimization (-O)

^

[ 3/863] cxx: sip/siplib/bool.cpp -> build/waf/2.7/gtk3/sip/siplib/bool.cpp.1.o
[ 4/863] c: sip/siplib/descriptors.c -> build/waf/2.7/gtk3/sip/siplib/descriptors.c.1.o
In file included from /usr/include/limits.h:25:0,
from /usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed/limits.h:168,
from /usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed/syslimits.h:7,
from /usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed/limits.h:34,
from /usr/include/python2.7/Python.h:19,
from …/…/…/…/sip/siplib/descriptors.c:20:
/usr/include/features.h:328:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]

warning _FORTIFY_SOURCE requires compiling with optimization (-O)

^

[ 5/863] c: sip/siplib/int_convertors.c -> build/waf/2.7/gtk3/sip/siplib/int_convertors.c.1.o
In file included from /usr/include/limits.h:25:0,
from /usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed/limits.h:168,
from /usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed/syslimits.h:7,
from /usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed/limits.h:34,
from /usr/include/python2.7/Python.h:19,
from …/…/…/…/sip/siplib/int_convertors.c:38:
/usr/include/features.h:328:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]

warning _FORTIFY_SOURCE requires compiling with optimization (-O)

^

[ 6/863] c: sip/siplib/objmap.c -> build/waf/2.7/gtk3/sip/siplib/objmap.c.1.o
In file included from /usr/include/string.h:25:0,
from …/…/…/…/sip/siplib/objmap.c:21:
/usr/include/features.h:328:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]

warning _FORTIFY_SOURCE requires compiling with optimization (-O)

^

In file included from /usr/include/python2.7/Python.h:8:0,
from …/…/…/…/sip/siplib/sipint.h:24,
from …/…/…/…/sip/siplib/objmap.c:23:
/usr/include/python2.7/pyconfig.h:1193:0: warning: “_POSIX_C_SOURCE” redefined [enabled by default]
#define _POSIX_C_SOURCE 200112L
^
In file included from /usr/include/string.h:25:0,
from …/…/…/…/sip/siplib/objmap.c:21:
/usr/include/features.h:225:0: note: this is the location of the previous definition

define _POSIX_C_SOURCE 200809L

^
[ 7/863] c: sip/siplib/qtlib.c -> build/waf/2.7/gtk3/sip/siplib/qtlib.c.1.o
In file included from /usr/include/limits.h:25:0,
from /usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed/limits.h:168,
from /usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed/syslimits.h:7,
from /usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed/limits.h:34,
from /usr/include/python2.7/Python.h:19,
from …/…/…/…/sip/siplib/qtlib.c:21:
/usr/include/features.h:328:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]

warning _FORTIFY_SOURCE requires compiling with optimization (-O)

^

[ 8/863] c: sip/siplib/siplib.c -> build/waf/2.7/gtk3/sip/siplib/siplib.c.1.o
In file included from /usr/include/limits.h:25:0,
from /usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed/limits.h:168,
from /usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed/syslimits.h:7,
from /usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed/limits.h:34,
from /usr/include/python2.7/Python.h:19,
from …/…/…/…/sip/siplib/siplib.c:20:
/usr/include/features.h:328:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]

warning _FORTIFY_SOURCE requires compiling with optimization (-O)

^

[ 9/863] c: sip/siplib/threads.c -> build/waf/2.7/gtk3/sip/siplib/threads.c.1.o
In file included from /usr/include/limits.h:25:0,
from /usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed/limits.h:168,
from /usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed/syslimits.h:7,
from /usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed/limits.h:34,
from /usr/include/python2.7/Python.h:19,
from …/…/…/…/sip/siplib/sipint.h:24,
from …/…/…/…/sip/siplib/threads.c:22:
/usr/include/features.h:328:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]

warning _FORTIFY_SOURCE requires compiling with optimization (-O)

^

[ 10/863] c: sip/siplib/voidptr.c -> build/waf/2.7/gtk3/sip/siplib/voidptr.c.1.o
In file included from /usr/include/limits.h:25:0,
from /usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed/limits.h:168,
from /usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed/syslimits.h:7,
from /usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed/limits.h:34,
from /usr/include/python2.7/Python.h:19,
from …/…/…/…/sip/siplib/voidptr.c:20:
/usr/include/features.h:328:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]

warning _FORTIFY_SOURCE requires compiling with optimization (-O)

^

[ 11/863] cxxshlib: build/waf/2.7/gtk3/sip/siplib/apiversions.c.1.o build/waf/2.7/gtk3/sip/siplib/array.c.1.o build/waf/2.7/gtk3/sip/siplib/bool.cpp.1.o build/waf/2.7/gtk3/sip/siplib/descriptors.c.1.o build/waf/2.7/gtk3/sip/siplib/int_convertors.c.1.o build/waf/2.7/gtk3/sip/siplib/objmap.c.1.o build/waf/2.7/gtk3/sip/siplib/qtlib.c.1.o build/waf/2.7/gtk3/sip/siplib/siplib.c.1.o build/waf/2.7/gtk3/sip/siplib/threads.c.1.o build/waf/2.7/gtk3/sip/siplib/voidptr.c.1.o -> build/waf/2.7/gtk3/siplib.so
/usr/lib64/gcc/x86_64-suse-linux/4.8/…/…/…/…/x86_64-suse-linux/bin/ld: cannot find -lwx_gtk3u_core-3.0
/usr/lib64/gcc/x86_64-suse-linux/4.8/…/…/…/…/x86_64-suse-linux/bin/ld: cannot find -lwx_baseu_net-3.0
/usr/lib64/gcc/x86_64-suse-linux/4.8/…/…/…/…/x86_64-suse-linux/bin/ld: cannot find -lwx_baseu-3.0
collect2: error: ld returned 1 exit status
Waf: Leaving directory `/home/regis/Downloads/wxPython-4.0.2a1.dev3699+c55bce4/build/waf/2.7/gtk3’
Build failed
-> task in ‘siplib’ failed (exit status 1):
{task 139649628378320: cxxshlib apiversions.c.1.o,array.c.1.o,bool.cpp.1.o,descriptors.c.1.o,int_convertors.c.1.o,objmap.c.1.o,qtlib.c.1.o,siplib.c.1.o,threads.c.1.o,voidptr.c.1.o -> siplib.so}
[’/usr/bin/g++’, ‘-shared’, ‘-shared’, ‘-pthread’, ‘-pthread’, ‘-pthread’, ‘sip/siplib/apiversions.c.1.o’, ‘sip/siplib/array.c.1.o’, ‘sip/siplib/bool.cpp.1.o’, ‘sip/siplib/descriptors.c.1.o’, ‘sip/siplib/int_convertors.c.1.o’, ‘sip/siplib/objmap.c.1.o’, ‘sip/siplib/qtlib.c.1.o’, ‘sip/siplib/siplib.c.1.o’, ‘sip/siplib/threads.c.1.o’, ‘sip/siplib/voidptr.c.1.o’, ‘-o’, ‘/home/regis/Downloads/wxPython-4.0.2a1.dev3699+c55bce4/build/waf/2.7/gtk3/siplib.so’, ‘-Wl,-Bstatic’, ‘-Wl,-Bdynamic’, ‘-L/home/regis/Downloads/wxPython-4.0.2a1.dev3699+c55bce4/build/wxbld/gtk3/lib64’, ‘-L/usr/lib64’, ‘-lwx_gtk3u_core-3.0’, ‘-lwx_baseu_net-3.0’, ‘-lwx_baseu-3.0’, ‘-lpython2.7’]
Command '"/usr/bin/python" /home/regis/Downloads/wxPython-4.0.2a1.dev3699+c55bce4/bin/waf-1.7.15-p1 --wx_config=/home/regis/Downloads/wxPython-4.0.2a1.dev3699+c55bce4/build/wxbld/gtk3/wx-config --gtk3 --python="/usr/bin/python" --out=build/waf/2.7/gtk3 configure build ’ failed with exit code 1.
Finished command: build_py (5.94s)
Finished command: build (10m17.669s)
Command ‘"/usr/bin/python" -u build.py build’ failed with exit code 1.
regis@linux-h51l:~/Downloads/wxPython-4.0.2a1.dev3699+c55bce4>

Any idea about what’s going wrong ?

Thanks a lot.

Hi there,

I can’t install Phoenix from sources, on Linux OpenSuse 42.3, with " python setup.py build "

From a source tarball or from git? If from git then you’ll need to use build.py so the wrapper source files can be generated.

Here are the fail details :

Finished command: build_wx (10m12.574s)

[ 11/863] cxxshlib: build/waf/2.7/gtk3/sip/siplib/apiversions.c.1.o build/waf/2.7/gtk3/sip/siplib/array.c.1.o build/waf/2.7/gtk3/sip/siplib/bool.cpp.1.o build/waf/2.7/gtk3/sip/siplib/descriptors.c.1.o build/waf/2.7/gtk3/sip/siplib/int_convertors.c.1.o build/waf/2.7/gtk3/sip/siplib/objmap.c.1.o build/waf/2.7/gtk3/sip/siplib/qtlib.c.1.o build/waf/2.7/gtk3/sip/siplib/siplib.c.1.o build/waf/2.7/gtk3/sip/siplib/threads.c.1.o build/waf/2.7/gtk3/sip/siplib/voidptr.c.1.o → build/waf/2.7/gtk3/siplib.so
/usr/lib64/gcc/x86_64-suse-linux/4.8/…/…/…/…/x86_64-suse-linux/bin/ld: cannot find -lwx_gtk3u_core-3.0
/usr/lib64/gcc/x86_64-suse-linux/4.8/…/…/…/…/x86_64-suse-linux/bin/ld: cannot find -lwx_baseu_net-3.0
/usr/lib64/gcc/x86_64-suse-linux/4.8/…/…/…/…/x86_64-suse-linux/bin/ld: cannot find -lwx_baseu-3.0
collect2: error: ld returned 1 exit status

Hmm… it should be able to find those files in the wx build folder, were there any errors in the wxWidgets part of the build?

···

On Saturday, March 3, 2018 at 5:59:01 AM UTC-8, zylyco@gmail.com wrote:

Robin Dunn
Software Craftsman
http://wxPython.org

From a source tarball or from git? If from git then you’ll need to use build.py so the wrapper source files can be generated.

Hmm… it should be able to find those files in the wx build folder, were there any errors in the wxWidgets part of the build?

I downloaded the source tarball (version wxPython-4.0.2a1.dev3699+c55bce4) from :
https://wxpython.org/Phoenix/snapshot-builds/

And I launched the command :
python setup.py build

And I haven’t noticed any previous error until this one.

Note:
1 - the same issue occurs with the wheel install :
pip install --upgrade --pre -f Index of /Phoenix/snapshot-builds wxPython

2 - I tried to install from sources tarball on other linux distributions (Fedora 27, Debian 9, OpenMandriva 3, and Ubuntu 17.10) with success.

Thanks Robin.

Okay, I would try the following next.

  1. First, verify that the libs do exist in build/wxbld/gtk3/lib64 It’s possible that they may be in …/lib instead, as there is not complete consistency between distros if they use force the use of lib64 folders or not. If that’s the case then making a symlink so wxPython’s build can find the libs in …/lib64 would probably take care of the problem for you. If they don’t exist in either location then something went wrong with the wxWidgets part of the build and you’ll want to take a closer look at the output of that, especially the configuration step.

  2. Try building wxPython with python build.py build_py --verbose so you can see what flags are being passed to the compiler and linker. It’s possible that some flags are being picked up from Suse or Suse’s Python build that are preventing the libs from being found in the build folder.

···

On Sunday, March 4, 2018 at 10:48:32 AM UTC-8, zylyco@gmail.com wrote:

From a source tarball or from git? If from git then you’ll need to use build.py so the wrapper source files can be generated.

Hmm… it should be able to find those files in the wx build folder, were there any errors in the wxWidgets part of the build?

I downloaded the source tarball (version wxPython-4.0.2a1.dev3699+c55bce4) from :
https://wxpython.org/Phoenix/snapshot-builds/

And I launched the command :
python setup.py build

And I haven’t noticed any previous error until this one.

Note:
1 - the same issue occurs with the wheel install :
pip install --upgrade --pre -f https://wxpython.org/Phoenix/snapshot-builds/ wxPython

2 - I tried to install from sources tarball on other linux distributions (Fedora 27, Debian 9, OpenMandriva 3, and Ubuntu 17.10) with success.

Robin

Okay, I would try the following next.

1. First, verify that the libs do exist in build/wxbld/gtk3/lib64 It's possible that they may be in .../lib instead, as there is not complete consistency between distros if they use force the use of lib64 folders or not. If that's the case then making a symlink so wxPython's build can find the libs in .../lib64 would probably take care of the problem for you. If they don't exist in either location then something went wrong with the wxWidgets part of the build and you'll want to take a closer look at the output of that, especially the configuration step.

2. Try building wxPython with `python build.py build_py --verbose` so you can see what flags are being passed to the compiler and linker. It's possible that some flags are being picked up from Suse or Suse's Python build that are preventing the libs from being found in the build folder.

--
Robin

You were right Robin :
There was only "build/wxbld/gtk3/lib" folder, so I created a symbolic link "lib64" pointing at "lib", and launched again the build command, and all worked fine...

Thanks a lot.