Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 266561 - sci-libs/mathgl-1.8.1 - mgl_python.cpp:3140:83: error: /usr/lib/python2.6/site-packages/numpy/core/include/numpy/arrayobject.h: No such file or directory
Summary: sci-libs/mathgl-1.8.1 - mgl_python.cpp:3140:83: error: /usr/lib/python2.6/sit...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Andrey Grozin
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-17 16:34 UTC by Tom Zegard
Modified: 2009-07-03 08:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Complete build.log (build.log,111.77 KB, text/plain)
2009-04-17 16:35 UTC, Tom Zegard
Details
Environment file (environment,121.72 KB, text/plain)
2009-04-17 16:36 UTC, Tom Zegard
Details
Build still fails... (build.log,140.47 KB, text/plain)
2009-04-25 00:19 UTC, Tom Zegard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Zegard 2009-04-17 16:34:08 UTC
Apparently a required header file is missing:

mgl_python.cpp:3140:83: error: /usr/lib/python2.6/site-packages/numpy/core/include/numpy/arrayobject.h: No such file or directory
mgl_python.cpp: In function 'void init_mathgl()':
mgl_python.cpp:110053: error: 'import_array' was not declared in this scope
make[2]: *** [_mathgl_la-mgl_python.lo] Error 1

Reproducible: Always

Steps to Reproduce:
1. ACCEPT_KEYWORDS="~x86"
2. emerge mathgl
3. Get frustrated...

Actual Results:  
Ebuild did not complete.

Expected Results:  
mathgl to be installed, duh...

make  all-am
make[2]: Entering directory `/var/tmp/portage/sci-libs/mathgl-1.8.1/work/mathgl-1.8.1/lang'
/bin/sh ../libtool --tag=CXX   --mode=compile i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"mathgl\" -DVERSION=\"MGL_RELEASE\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -I../include -I..    -I/usr/include/python2.6 -I/usr/include/python2.6 -fno-strict-aliasing -DNDEBUG -Wall -DNO_GSL -O2 -march=pentium4 -fomit-frame-pointer -pipe -MT _mathgl_la-mgl_python.lo -MD -MP -MF .deps/_mathgl_la-mgl_python.Tpo -c -o _mathgl_la-mgl_python.lo `test -f 'mgl_python.cpp' || echo './'`mgl_python.cpp
libtool: compile:  i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"mathgl\" -DVERSION=\"MGL_RELEASE\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -I../include -I.. -I/usr/include/python2.6 -I/usr/include/python2.6 -fno-strict-aliasing -DNDEBUG -Wall -DNO_GSL -O2 -march=pentium4 -fomit-frame-pointer -pipe -MT _mathgl_la-mgl_python.lo -MD -MP -MF .deps/_mathgl_la-mgl_python.Tpo -c mgl_python.cpp  -fPIC -DPIC -o .libs/_mathgl_la-mgl_python.o
mgl_python.cpp:3140:83: error: /usr/lib/python2.6/site-packages/numpy/core/include/numpy/arrayobject.h: No such file or directory
mgl_python.cpp: In function 'void init_mathgl()':
mgl_python.cpp:110053: error: 'import_array' was not declared in this scope
make[2]: *** [_mathgl_la-mgl_python.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/sci-libs/mathgl-1.8.1/work/mathgl-1.8.1/lang'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/sci-libs/mathgl-1.8.1/work/mathgl-1.8.1/lang'
make: *** [all-recursive] Error 1
 [31;01m*[0m 
 [31;01m*[0m ERROR: sci-libs/mathgl-1.8.1 failed.
 [31;01m*[0m Call stack:
 [31;01m*[0m               ebuild.sh, line   48:  Called src_compile
 [31;01m*[0m             environment, line 3247:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m       emake ${JOBS} || die "emake failed"
 [31;01m*[0m  The die message:
 [31;01m*[0m   emake failed
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the topmost build error, and the call stack if relevant.
 [31;01m*[0m A complete build log is located at '/var/tmp/portage/sci-libs/mathgl-1.8.1/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/sci-libs/mathgl-1.8.1/temp/environment'.
 [31;01m*[0m
Comment 1 Tom Zegard 2009-04-17 16:35:45 UTC
Created attachment 188695 [details]
Complete build.log
Comment 2 Tom Zegard 2009-04-17 16:36:24 UTC
Created attachment 188696 [details]
Environment file
Comment 3 Patrick Lauer gentoo-dev 2009-04-17 16:40:45 UTC
You didn't kinda accidentally upgrade python without running python-updater or something? :)

If that's not the case, is numpy installed properly?
Comment 4 Patrick Lauer gentoo-dev 2009-04-18 18:09:06 UTC
Can't reproduce locally, run python-updater :)
Comment 5 Tom Zegard 2009-04-20 20:22:21 UTC
I re-runned python-updater just to be safe, and it is still failing.
Comment 6 Sebastian Luther (few) 2009-04-23 12:27:17 UTC
Try emerge -1 dev-python/numpy.
Comment 7 Andrey Grozin gentoo-dev 2009-04-24 19:21:26 UTC
If numpy is emerged for python-2.6, this file must exist, and be owned by the numpy package. If it does not exist, something is wrong with your numpy installation.
Comment 8 Tom Zegard 2009-04-25 00:18:35 UTC
I ran python-updater, rebuilt numpy, etc...
The build still fails, but the errror seems different now, I am uploading the new build.log

mgl2gif.cpp: In constructor 'Str::Str(Str*, const char*)':
mgl2gif.cpp:55: error: 'mbstowcs' was not declared in this scope
mgl2gif.cpp: In function 'int main(int, char**)':
mgl2gif.cpp:102: warning: ignoring return value of 'wchar_t* fgetws(wchar_t*, int, __FILE*)', declared with attribute warn_unused_result
make[1]: *** [mgl2gif-mgl2gif.o] Error 1
make[1]: *** Waiting for unfinished jobs....
libtool: link: i686-pc-linux-gnu-g++ -Wall -DNO_GSL -O2 -march=pentium4 -fomit-frame-pointer -pipe -Wl,-O1 -o .libs/mgl2png mgl2png.o  ../mgl/.libs/libmgl.so -L/usr/lib /usr/lib/libpng12.so -lm -lz /usr/lib/libGL.so /usr/lib/libXmu.so /usr/lib/libXt.so /usr/lib/libXi.so /usr/lib/libXext.so -lpthread /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/libgomp.so -lrt /usr/lib/libgif.so /usr/lib/libSM.so /usr/lib/libICE.so -luuid /usr/lib/libX11.so /usr/lib/libXau.so /usr/lib/libXdmcp.so /usr/lib/libjpeg.so /usr/lib/libltdl.so -ldl
make[1]: Leaving directory `/var/tmp/portage/sci-libs/mathgl-1.8.1/work/mathgl-1.8.1/utils'
make: *** [all-recursive] Error 1
 [31;01m*[0m 
 [31;01m*[0m ERROR: sci-libs/mathgl-1.8.1 failed.
 [31;01m*[0m Call stack:
 [31;01m*[0m               ebuild.sh, line   48:  Called src_compile
 [31;01m*[0m             environment, line 3248:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m       emake ${JOBS} || die "emake failed"
 [31;01m*[0m  The die message:
 [31;01m*[0m   emake failed
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the topmost build error, and the call stack if relevant.
 [31;01m*[0m A complete build log is located at '/var/tmp/portage/sci-libs/mathgl-1.8.1/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/sci-libs/mathgl-1.8.1/temp/environment'.
 [31;01m*[0m 
Comment 9 Tom Zegard 2009-04-25 00:19:13 UTC
Created attachment 189364 [details]
Build still fails...
Comment 10 Andrey Grozin gentoo-dev 2009-04-25 08:10:32 UTC
Francois Bissey wrote (in a comment to bug #267061, surely, by mistake :-)
I actually encountered this error myself (I think) with gcc-4.3.3.
I should have posted a bug earlier but I took the easy route and compiled 
with "-gif". Here is the error:

/bin/sh ../libtool --tag=CXX   --mode=link i686-pc-linux-gnu-g++ -Wall -DNO_GSL
-O2 -march=native -fomit-frame-pointer -pipe -fno-strict-aliasing 
-Wl,--as-needed -o mgl2png mgl2png.o ../mgl/libmgl.la 
mgl2gif.cpp: In constructor 'Str::Str(Str*, const char*)':
mgl2gif.cpp:55: error: 'mbstowcs' was not declared in this scope
mgl2gif.cpp: In function 'int main(int, char**)':
mgl2gif.cpp:102: warning: ignoring return value of 'wchar_t* fgetws(wchar_t*,
int, __FILE*)', declared with attribute warn_unused_result
make[1]: *** [mgl2gif-mgl2gif.o] Error 1


I cannot reproduce this. I use gcc-4.3.2-r3, and have giflib-4.1.6-r1. Compiling mathgl-1.8.1 with USE=gif succeeds.
Comment 11 Tom Zegard 2009-04-26 00:22:47 UTC
Finally...
The patch worked great... thanks!!!
Comment 12 Andrey Grozin gentoo-dev 2009-07-03 08:06:53 UTC
Good. Closing.