Ticket #1066 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

Install orange into a debug Python environment fails with "/usr/bin/ld: cannot find -lorange"

Reported by: yang Owned by:
Milestone: Future Component: other
Severity: major Keywords:
Cc: Blocking:
Blocked By:

Description

$ pip install orange
Downloading/unpacking orange
  Running setup.py egg_info for package orange
    WARNING: '' not a valid package name; please use only.-separated package names in setup.py
    WARNING: '' not a valid package name; please use only.-separated package names in setup.py

    package init file 'orange/OrangeCanvas/__init__.py' not found (or not a regular file)
    package init file 'orange/OrangeWidgets/Associate/__init__.py' not found (or not a regular file)
    package init file 'orange/OrangeWidgets/Classify/__init__.py' not found (or not a regular file)
    package init file 'orange/OrangeWidgets/Data/__init__.py' not found (or not a regular file)
    package init file 'orange/OrangeWidgets/Evaluate/__init__.py' not found (or not a regular file)
    package init file 'orange/OrangeWidgets/Prototypes/__init__.py' not found (or not a regular file)
    package init file 'orange/OrangeWidgets/Regression/__init__.py' not found (or not a regular file)
    package init file 'orange/OrangeWidgets/Unsupervised/__init__.py' not found (or not a regular file)
    package init file 'orange/OrangeWidgets/Visualize/__init__.py' not found (or not a regular file)
    package init file 'orange/OrangeWidgets/Visualize Qt/__init__.py' not found (or not a regular file)
    package init file 'orange/doc/__init__.py' not found (or not a regular file)
    [88442 refs]
Installing collected packages: orange
  Running setup.py install for orange
    WARNING: '' not a valid package name; please use only.-separated package names in setup.py
    WARNING: '' not a valid package name; please use only.-separated package names in setup.py
    package init file 'orange/OrangeCanvas/__init__.py' not found (or not a regular file)
    package init file 'orange/OrangeWidgets/Associate/__init__.py' not found (or not a regular file)
    package init file 'orange/OrangeWidgets/Classify/__init__.py' not found (or not a regular file)
    package init file 'orange/OrangeWidgets/Data/__init__.py' not found (or not a regular file)
    package init file 'orange/OrangeWidgets/Evaluate/__init__.py' not found (or not a regular file)
    package init file 'orange/OrangeWidgets/Prototypes/__init__.py' not found (or not a regular file)

...

gcc -pthread -fno-strict-aliasing -g -O0 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7_d -I/usr/lib/pymodules/python2.7/numpy/core/include -Isource/include -Isource/orangeom -Isource/orange/ -Isource/orangeom/ppp -Isource/orangeom/px -I/usr/include/python2.7_d -c source/orangeom/qhull/poly.c -o build/temp.linux-x86_64-2.7-pydebug/source/orangeom/qhull/poly.o -fPIC -fpermissive -w -DLINUX -DORANGEOM_EXPORTS

gcc -pthread -fno-strict-aliasing -g -O0 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7_d -I/usr/lib/pymodules/python2.7/numpy/core/include -Isource/include -Isource/orangeom -Isource/orange/ -Isource/orangeom/ppp -Isource/orangeom/px -I/usr/include/python2.7_d -c source/orangeom/qhull/user.c -o build/temp.linux-x86_64-2.7-pydebug/source/orangeom/qhull/user.o -fPIC -fpermissive -w -DLINUX -DORANGEOM_EXPORTS

g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.7-pydebug/source/orangeom/graph_layout.o build/temp.linux-x86_64-2.7-pydebug/source/orangeom/pathfinder.o build/temp.linux-x86_64-2.7-pydebug/source/orangeom/orangeom.o build/temp.linux-x86_64-2.7-pydebug/source/orangeom/optimizeAnchors.o build/temp.linux-x86_64-2.7-pydebug/source/orangeom/networkoptimization.o build/temp.linux-x86_64-2.7-pydebug/source/orangeom/gml_parser.o build/temp.linux-x86_64-2.7-pydebug/source/orangeom/mds.o build/temp.linux-x86_64-2.7-pydebug/source/orangeom/triangulate.o build/temp.linux-x86_64-2.7-pydebug/source/orangeom/network.o build/temp.linux-x86_64-2.7-pydebug/source/orangeom/gml_scanner.o build/temp.linux-x86_64-2.7-pydebug/source/orangeom/graphDrawing.o build/temp.linux-x86_64-2.7-pydebug/source/orangeom/qhull/stat.o build/temp.linux-x86_64-2.7-pydebug/source/orangeom/qhull/global.o build/temp.linux-x86_64-2.7-pydebug/source/orangeom/qhull/poly2.o build/temp.linux-x86_64-2.7-pydebug/source/orangeom/qhull/merge.o build/temp.linux-x86_64-2.7-pydebug/source/orangeom/qhull/geom.o build/temp.linux-x86_64-2.7-pydebug/source/orangeom/qhull/mem.o build/temp.linux-x86_64-2.7-pydebug/source/orangeom/qhull/io.o build/temp.linux-x86_64-2.7-pydebug/source/orangeom/qhull/geom2.o build/temp.linux-x86_64-2.7-pydebug/source/orangeom/qhull/qhull.o build/temp.linux-x86_64-2.7-pydebug/source/orangeom/qhull/qset.o build/temp.linux-x86_64-2.7-pydebug/source/orangeom/qhull/poly.o build/temp.linux-x86_64-2.7-pydebug/source/orangeom/qhull/user.o -Lbuild/lib.linux-x86_64-2.7-pydebug -lstdc++ -lorange_include -lorange -o build/lib.linux-x86_64-2.7-pydebug/orangeom_d.so -Wl,-R$ORIGIN

/usr/bin/ld: cannot find -lorange

collect2: ld returned 1 exit status

error: command 'g++' failed with exit status 1

[88279 refs]

----------------------------------------
Command /home/yang/.virtualenvs/pod-dbg/bin/python2.7-dbg -c "import setuptools;__file__='/home/yang/.virtualenvs/pod-dbg/build/orange/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-ajwU36-record/install-record.txt --install-headers /home/yang/.virtualenvs/pod-dbg/include/site/python2.7 failed with error code 1
Storing complete log in /home/yang/.pip/pip.log
[75180 refs]

Change History

comment:1 Changed 3 years ago by yang

Installing into a regular non-debug environment works. Seems the build process can't handle "orange_d.so".

comment:2 Changed 3 years ago by ales

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in r9610.

Note: See TracTickets for help on using tickets.