Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build with NPY_SEPARATE_COMPILATION=1 fails #315

Closed
pv opened this issue Jun 21, 2012 · 4 comments · Fixed by #317
Closed

Build with NPY_SEPARATE_COMPILATION=1 fails #315

pv opened this issue Jun 21, 2012 · 4 comments · Fixed by #317
Assignees

Comments

@pv
Copy link
Member

pv commented Jun 21, 2012

Building with

export NPY_SEPARATE_COMPILATION=1
python setup.py build

fails after recent changes (works still in 651ef74):

gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -g build/temp.linux-x86_64-2.7/numpy/core/src/umath/umathmodule.o build/temp.linux-x86_64-2.7/numpy/core/src/umath/reduction.o build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/numpy/core/src/umath/loops.o build/temp.linux-x86_64-2.7/numpy/core/src/umath/ufunc_object.o build/temp.linux-x86_64-2.7/numpy/core/src/umath/ufunc_type_resolution.o -Lbuild/temp.linux-x86_64-2.7 -lnpymath -lm -o build/lib.linux-x86_64-2.7/numpy/core/umath.so
build/temp.linux-x86_64-2.7/numpy/core/src/umath/reduction.o: In function `allocate_reduce_result':
/home/pauli/prj/scipy/numpy/numpy/core/src/umath/reduction.c:48: undefined reference to `PyArray_CreateSortedStridePerm'
/home/pauli/prj/scipy/numpy/numpy/core/src/umath/reduction.c:67: undefined reference to `PyArray_Type'
/usr/bin/ld.bfd.real: build/temp.linux-x86_64-2.7/numpy/core/src/umath/reduction.o: relocation R_X86_64_PC32 against undefined hidden symbol `PyArray_Type' can not be used when making a shared object
/usr/bin/ld.bfd.real: final link failed: Bad value
collect2: ld returned 1 exit status
build/temp.linux-x86_64-2.7/numpy/core/src/umath/reduction.o: In function `allocate_reduce_result':
/home/pauli/prj/scipy/numpy/numpy/core/src/umath/reduction.c:48: undefined reference to `PyArray_CreateSortedStridePerm'
/home/pauli/prj/scipy/numpy/numpy/core/src/umath/reduction.c:67: undefined reference to `PyArray_Type'
/usr/bin/ld.bfd.real: build/temp.linux-x86_64-2.7/numpy/core/src/umath/reduction.o: relocation R_X86_64_PC32 against undefined hidden symbol `PyArray_Type' can not be used when making a shared object
/usr/bin/ld.bfd.real: final link failed: Bad value
collect2: ld returned 1 exit status

Time to scrap the one-file build?

@thouis
Copy link
Contributor

thouis commented Jun 22, 2012

I'm +1 on making separate compilation the default, if I get a vote.

@cournape
Copy link
Member

I would be ok making +1 the default iif we have a buildbot on unix for the one file build. Some platforms may not have the necessary features for the one file build, and it would be a shame to drop support just for this.

OTOH, I think supporting the one file mode should be quite easy if separate mode is the default than the opposite.

@cournape
Copy link
Member

I am working on a branch to test the separate compilation mode on travis (and fix the issues of course).: http://travis-ci.org/#!/cournape/numpy

@seberg
Copy link
Member

seberg commented Dec 5, 2013

Travis is testing both now, and it is the default. So closing this.

@seberg seberg closed this as completed Dec 5, 2013
luyahan pushed a commit to plctlab/numpy that referenced this issue Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants