Giter Club home page Giter Club logo

Comments (3)

bmoscon avatar bmoscon commented on May 31, 2024

Yes, I've tried removing all the cython generated code and the shared object and recompiling it all (since I have been going back and forth between 2.7 and 3.4).

from arctic.

bmoscon avatar bmoscon commented on May 31, 2024

the objdump of the shared lib does show the symbol in the procedure linkage table so I'm not sure what the issue is. Perhaps its problem linking in the correct libraries?

The commands that build and link the SO are:

gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/bryant/anaconda2/envs/arctic/include/python3.4m -c src/_compress.c -o build/temp.linux-x86_64-3.4/src/_compress.o -fopenmp

and

gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/bryant/anaconda2/envs/arctic/include/python3.4m -c src/lz4.c -o build/temp.linux-x86_64-3.4/src/lz4.o -fopenmp

and

gcc -pthread -shared -L/home/bryant/anaconda2/envs/arctic/lib -Wl,-rpath=/home/bryant/anaconda2/envs/arctic/lib,--no-as-needed build/temp.linux-x86_64-3.4/src/_compress.o build/temp.linux-x86_64-3.4/src/lz4.o build/temp.linux-x86_64-3.4/src/lz4hc.o -L/home/bryant/anaconda2/envs/arctic/lib -lpython3.4m -o /home/bryant/arctic/arctic/_compress.cpython-34m.so -fopenmp

Its also worth nothing that the compilation of the compress C file did generate this:
src/_compress.c: In function ‘__pyx_f_6arctic_9_compress_to_cstring_array’:
src/_compress.c:1838:17: warning: implicit declaration of function ‘PyString_AsString’ [-Wimplicit-function-declaration]
__pyx_t_4 = PyString_AsString(__pyx_t_3); if (unlikely(__pyx_t_4 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = LINE

from arctic.

bmoscon avatar bmoscon commented on May 31, 2024

I actually figured it out. Another case of the string type in Python3 being replaced with the unicode string in Python3. This resulted in a lot of changes in the C-API. I'll leave this open until I have the pull request for Python3 support ready just in case someone else hits this.

from arctic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.