Issue to compile python module

Skip to first unread message

Thomas B

Oct 4, 2018, 2:44:29 AM10/4/18
to scikit-build

I have difficulties to deploy scikit-build on a project. I am able to compile the several share libraries. But at runtime I get missing symbol error.

git clone https// -b  devel2

python build -- -DANTLR_JAR_LOCATION=../../../antlr4/antlr-4.7.1-complete.jar -DCMAKE_BUILD_TYPE=Debug -- VERBOSE=1

The build script failed at install stage ... while I only ask to build:
error: package directory '_skbuild/linux-x86_64-2.7/cmake-install/hdlConvertor' does not exist

But what worry me is that my module is not ok.

inside dist directory:
python -c "import hdlConvertor"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: /home/tom/prog/git/hdlConvertor/dist/ undefined symbol: _ZTI6Symbol

Also the cmake option -DCMAKE_BUILD_TYPE=Debug does not have the expected result : the build system still compile in -O3 while I would expect to use -O0 -g

I do not understand at all what 's wrong with my and CMakelist.txt files.
Any help or guidance would be appreciate

I am working on Ubuntu 18.04
Python 2.7.15rc1
Cython 0.26.1
scikit-build 0.8.1

In an other branch I was able to port the project on cmake : git clone https// -b  devel
But the usual python build system with commodity to publish the module is not supported.


Jean-Christophe Fillion-Robin

Oct 4, 2018, 11:25:04 AM10/4/18
to, scikit-build
Hi Thomas,

Thanks for reaching out.

Attempting to reproduce the problem, it seems the branch "devel2" doesn't make sure of scikit-build and still reference. Would be able to share the branch using scikit-build ?

That said, if you want help to simplify your build system and leverage scikit-build, I should be able to help later this week.


You received this message because you are subscribed to the Google Groups "scikit-build" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
To view this discussion on the web visit
For more options, visit

Thomas Burg

Oct 4, 2018, 4:28:14 PM10/4/18
Hi Jean-Christophe,

I forget to push on the server. :(
It should be ok now. The setup file look to be compatible with scikit-build now.

Thanks for your help.

Thomas Burg

Oct 6, 2018, 8:23:50 AM10/6/18

I dig a little bit my issue and finally point to a link issue.

With those lines in the CMakeLists.txt:
add_cython_target(hdlConvertor CXX)
add_library(hdlConvertor MODULE ${hdlConvertor} ${libhdlconvertor_SRC} ${generateParsers_GENERATED_SRC} )
add_dependencies(hdlConvertor generateParsers)

The link command to create is generated with '--version-script' switch. That is restricting the externally viewed symbol.
I create to reduce re-compilation time. Each libparse.*.so and have both side dependencies.

If I try with
add_cython_target(hdlConvertor CXX)
add_library(hdlConvertor SHARE ${hdlConvertor} ${libhdlconvertor_SRC} ${generateParsers_GENERATED_SRC} )
add_dependencies(hdlConvertor generateParsers)

I do not anymore the '--version-script' switch on linker command line but it end up to create share library '' that is not anymore loadable with python import.

It look like my use case with my bundle of share libraries is not compatible with scikit-build.
Any suggestion is welcome.


Reply all
Reply to author
0 new messages