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
Created attachment 188695 [details] Complete build.log
Created attachment 188696 [details] Environment file
You didn't kinda accidentally upgrade python without running python-updater or something? :) If that's not the case, is numpy installed properly?
Can't reproduce locally, run python-updater :)
I re-runned python-updater just to be safe, and it is still failing.
Try emerge -1 dev-python/numpy.
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.
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
Created attachment 189364 [details] Build still fails...
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.
Finally... The patch worked great... thanks!!!
Good. Closing.