Skip to content

Instantly share code, notes, and snippets.

@rgommers
Created February 19, 2012 20:58
Show Gist options
  • Save rgommers/1865743 to your computer and use it in GitHub Desktop.
Save rgommers/1865743 to your computer and use it in GitHub Desktop.
config.log for NumPy crash with Bento build
----------------------------------------
Checking for 'gcc' (c compiler)
find program=['gcc', 'cc'] paths=['/Library/Frameworks/Python.framework/Versions/2.6/bin', '/Users/rgommers/Code/tmp/gpp40temp', '/Library/Frameworks/Python.framework/Versions/2.6/bin', '/Library/Frameworks/Python.framework/Versions/2.7/bin', '/Library/Frameworks/Python.framework/Versions/2.5/bin', '/Users/rgommers/wine/wine-1.1.39/bin', '/usr/local/bin', '/usr/bin', '/bin', '/usr/sbin', '/sbin', '/usr/local/bin', '/usr/local/git/bin', '/usr/texbin', '/usr/X11/bin'] var='CC' -> '/usr/bin/gcc'
find program=['ar'] paths=['/Library/Frameworks/Python.framework/Versions/2.6/bin', '/Users/rgommers/Code/tmp/gpp40temp', '/Library/Frameworks/Python.framework/Versions/2.6/bin', '/Library/Frameworks/Python.framework/Versions/2.7/bin', '/Library/Frameworks/Python.framework/Versions/2.5/bin', '/Users/rgommers/wine/wine-1.1.39/bin', '/usr/local/bin', '/usr/bin', '/bin', '/usr/sbin', '/sbin', '/usr/local/bin', '/usr/local/git/bin', '/usr/texbin', '/usr/X11/bin'] var='AR' -> '/usr/bin/ar'
/usr/bin/gcc
----------------------------------------
Checking for program python
['/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python']
find program=['python'] paths='' var='PYTHON' -> ['/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python']
['/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python', '-c', 'import sys\nfor x in sys.version_info: print(str(x))']
out: 2
6
4
final
0
['/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python', '-c', "from distutils.sysconfig import get_config_var, get_python_lib\n\nprint(repr(get_python_lib(standard_lib=0, prefix='/usr/local') or ''))"]
out: '/usr/local/lib/python2.6/site-packages'
['/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python', '-c', "from distutils.sysconfig import get_config_var, get_python_lib\n\nprint(repr(get_python_lib(plat_specific=1, standard_lib=0, prefix='/usr/local') or ''))"]
out: '/usr/local/lib/python2.6/site-packages'
----------------------------------------
Checking for python version
(2, 6, 4, 'final', 0)
['/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python', '-c', "from distutils.sysconfig import get_config_var, get_python_lib\n\nprint(repr(get_config_var('prefix') or ''))\nprint(repr(get_config_var('SO') or ''))\nprint(repr(get_config_var('LDFLAGS') or ''))\nprint(repr(get_config_var('LIBDIR') or ''))\nprint(repr(get_config_var('LIBPL') or ''))\nprint(repr(get_config_var('INCLUDEPY') or ''))\nprint(repr(get_config_var('Py_ENABLE_SHARED') or ''))\nprint(repr(get_config_var('MACOSX_DEPLOYMENT_TARGET') or ''))\nprint(repr(get_config_var('LDSHARED') or ''))\nprint(repr(get_config_var('CFLAGS') or ''))"]
out: '/Library/Frameworks/Python.framework/Versions/2.6'
'.so'
'-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g'
'/Library/Frameworks/Python.framework/Versions/2.6/lib'
'/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config'
'/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6'
''
'10.3'
'gcc-4.0 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -bundle -undefined dynamic_lookup'
'-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3'
Configuration returned from ['/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python']:
"prefix = '/Library/Frameworks/Python.framework/Versions/2.6'\nSO = '.so'\nLDFLAGS = '-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g'\nLIBDIR = '/Library/Frameworks/Python.framework/Versions/2.6/lib'\nLIBPL = '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config'\nINCLUDEPY = '/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6'\nPy_ENABLE_SHARED = ''\nMACOSX_DEPLOYMENT_TARGET = '10.3'\nLDSHARED = 'gcc-4.0 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -bundle -undefined dynamic_lookup'\nCFLAGS = '-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3'"
# try again with -L$python_LIBDIR: ['/Library/Frameworks/Python.framework/Versions/2.6/lib']
----------------------------------------
Checking for library python2.6 in LIBDIR
==>
int main() {
return 0;
}
<==
[1/2] c: build/.conf_check_be145d2fb86e4c25ca7a1f20372696e6/test.c -> build/.conf_check_be145d2fb86e4c25ca7a1f20372696e6/testbuild/test.c.1.o

['/usr/bin/gcc', '-arch', 'ppc', '-arch', 'i386', '-isysroot', '/Developer/SDKs/MacOSX10.4u.sdk', '-arch', 'ppc', '-arch', 'i386', '-isysroot', '/Developer/SDKs/MacOSX10.4u.sdk', '-fno-strict-aliasing', '-fno-common', '-dynamic', '-DPYTHONDIR="/usr/local/lib/python2.6/site-packages"', '-DPYTHONARCHDIR="/usr/local/lib/python2.6/site-packages"', '-DNDEBUG', '../test.c', '-c', '-o', 'test.c.1.o']
[2/2] cprogram: build/.conf_check_be145d2fb86e4c25ca7a1f20372696e6/testbuild/test.c.1.o -> build/.conf_check_be145d2fb86e4c25ca7a1f20372696e6/testbuild/testprog

['/usr/bin/gcc', '-arch', 'ppc', '-arch', 'i386', '-isysroot', '/Developer/SDKs/MacOSX10.4u.sdk', '-arch', 'ppc', '-arch', 'i386', '-isysroot', '/Developer/SDKs/MacOSX10.4u.sdk', 'test.c.1.o', '-o', '/Users/rgommers/Code/numpy/build/.conf_check_be145d2fb86e4c25ca7a1f20372696e6/testbuild/testprog', '-L/Library/Frameworks/Python.framework/Versions/2.6/lib', '-lpython2.6']
err: ld: library not found for -lpython2.6
collect2: ld returned 1 exit status
ld: library not found for -lpython2.6
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/Uu/UuXfo1NLFae4yyYpsCz-XE+++TI/-Tmp-//ccL3zdTy.out (No such file or directory)
from /Users/rgommers/Code/numpy: Test does not build: Traceback (most recent call last):
File "/Users/rgommers/Downloads/waf-1.6.11/waflib/Tools/c_config.py", line 756, in run_c_code
bld.compile()
File "/Users/rgommers/Downloads/waf-1.6.11/waflib/Build.py", line 351, in compile
raise Errors.BuildError(self.producer.error)
BuildError: Build failed
-> task in 'testprog' failed (exit status 1):
{task 21522288: cprogram test.c.1.o -> testprog}
['/usr/bin/gcc', '-arch', 'ppc', '-arch', 'i386', '-isysroot', '/Developer/SDKs/MacOSX10.4u.sdk', '-arch', 'ppc', '-arch', 'i386', '-isysroot', '/Developer/SDKs/MacOSX10.4u.sdk', 'test.c.1.o', '-o', '/Users/rgommers/Code/numpy/build/.conf_check_be145d2fb86e4c25ca7a1f20372696e6/testbuild/testprog', '-L/Library/Frameworks/Python.framework/Versions/2.6/lib', '-lpython2.6']
not found
from /Users/rgommers/Code/numpy: The configuration failed
# try again with -L$python_LIBPL (some systems don't install the python library in $prefix/lib)
----------------------------------------------
Checking for library python2.6 in python_LIBPL
==>
int main() {
return 0;
}
<==
[1/2] c: build/.conf_check_718f329591ceddacac4dd4c172925207/test.c -> build/.conf_check_718f329591ceddacac4dd4c172925207/testbuild/test.c.1.o

['/usr/bin/gcc', '-arch', 'ppc', '-arch', 'i386', '-isysroot', '/Developer/SDKs/MacOSX10.4u.sdk', '-arch', 'ppc', '-arch', 'i386', '-isysroot', '/Developer/SDKs/MacOSX10.4u.sdk', '-fno-strict-aliasing', '-fno-common', '-dynamic', '-DPYTHONDIR="/usr/local/lib/python2.6/site-packages"', '-DPYTHONARCHDIR="/usr/local/lib/python2.6/site-packages"', '-DNDEBUG', '../test.c', '-c', '-o', 'test.c.1.o']
[2/2] cprogram: build/.conf_check_718f329591ceddacac4dd4c172925207/testbuild/test.c.1.o -> build/.conf_check_718f329591ceddacac4dd4c172925207/testbuild/testprog

['/usr/bin/gcc', '-arch', 'ppc', '-arch', 'i386', '-isysroot', '/Developer/SDKs/MacOSX10.4u.sdk', '-arch', 'ppc', '-arch', 'i386', '-isysroot', '/Developer/SDKs/MacOSX10.4u.sdk', 'test.c.1.o', '-o', '/Users/rgommers/Code/numpy/build/.conf_check_718f329591ceddacac4dd4c172925207/testbuild/testprog', '-L/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config', '-lpython2.6']
err: ld: warning: object file compiled with -mlong-branch which is no longer needed. To remove this warning, recompile without -mlong-branch: /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/crt1.o
yes
-------------------------------------------------------------------------
Checking for program python2.6-config,python-config-2.6,python2.6m-config
/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6-config
find program=['python2.6-config', 'python-config-2.6', 'python2.6m-config'] paths=['/Library/Frameworks/Python.framework/Versions/2.6/bin', '/Users/rgommers/Code/tmp/gpp40temp', '/Library/Frameworks/Python.framework/Versions/2.6/bin', '/Library/Frameworks/Python.framework/Versions/2.7/bin', '/Library/Frameworks/Python.framework/Versions/2.5/bin', '/Users/rgommers/wine/wine-1.1.39/bin', '/usr/local/bin', '/usr/bin', '/bin', '/usr/sbin', '/sbin', '/usr/local/bin', '/usr/local/git/bin', '/usr/texbin', '/usr/X11/bin'] var='PYTHON_CONFIG' -> '/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6-config'
['/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6-config', '--includes']
out: -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
Include path for Python extensions (found via python-config --includes): ['/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6']
-------------------------------------------------------------------------
Checking for header Python.h
==>
#include <Python.h>
#ifdef __cplusplus
extern "C" {
#endif
void Py_Initialize(void);
void Py_Finalize(void);
#ifdef __cplusplus
}
#endif
int main()
{
Py_Initialize();
Py_Finalize();
return 0;
}
<==
[1/2] c: build/.conf_check_c6c8da319381fd66e61a95e5d53bf289/test.c -> build/.conf_check_c6c8da319381fd66e61a95e5d53bf289/testbuild/test.c.1.o

['/usr/bin/gcc', '-arch', 'ppc', '-arch', 'i386', '-isysroot', '/Developer/SDKs/MacOSX10.4u.sdk', '-arch', 'ppc', '-arch', 'i386', '-isysroot', '/Developer/SDKs/MacOSX10.4u.sdk', '-fno-strict-aliasing', '-fno-common', '-dynamic', '-fno-strict-aliasing', '-I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6', '-DPYTHONDIR="/usr/local/lib/python2.6/site-packages"', '-DPYTHONARCHDIR="/usr/local/lib/python2.6/site-packages"', '-DNDEBUG', '../test.c', '-c', '-o', 'test.c.1.o']
err: In file included from /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/unicodeobject.h:4,
from /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h:85,
from ../test.c:2:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
In file included from /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/unicodeobject.h:4,
from /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h:85,
from ../test.c:2:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
lipo: can't figure out the architecture type of: /var/folders/Uu/UuXfo1NLFae4yyYpsCz-XE+++TI/-Tmp-//ccehVuAU.out
from /Users/rgommers/Code/numpy: Test does not build: Traceback (most recent call last):
File "/Users/rgommers/Downloads/waf-1.6.11/waflib/Tools/c_config.py", line 756, in run_c_code
bld.compile()
File "/Users/rgommers/Downloads/waf-1.6.11/waflib/Build.py", line 351, in compile
raise Errors.BuildError(self.producer.error)
BuildError: Build failed
-> task in 'testprog' failed (exit status 1):
{task 21641904: c test.c -> test.c.1.o}
['/usr/bin/gcc', '-arch', 'ppc', '-arch', 'i386', '-isysroot', '/Developer/SDKs/MacOSX10.4u.sdk', '-arch', 'ppc', '-arch', 'i386', '-isysroot', '/Developer/SDKs/MacOSX10.4u.sdk', '-fno-strict-aliasing', '-fno-common', '-dynamic', '-fno-strict-aliasing', '-I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6', '-DPYTHONDIR="/usr/local/lib/python2.6/site-packages"', '-DPYTHONARCHDIR="/usr/local/lib/python2.6/site-packages"', '-DNDEBUG', '../test.c', '-c', '-o', 'test.c.1.o']
Could not find the python development headers
from /Users/rgommers/Code/numpy: The configuration failed
-------------------------------------------------------------------------------------
Checking for '/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6-config'
['/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6-config', '--cflags', '--libs']
out: -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3
yes
-------------------------------------------------------------------------------------
Getting the python flags from python-config
==>
#include <Python.h>
#ifdef __cplusplus
extern "C" {
#endif
void Py_Initialize(void);
void Py_Finalize(void);
#ifdef __cplusplus
}
#endif
int main()
{
Py_Initialize();
Py_Finalize();
return 0;
}
<==
[1/2] c: build/.conf_check_4d4226cda965a20b7ba032c8532b981e/test.c -> build/.conf_check_4d4226cda965a20b7ba032c8532b981e/testbuild/test.c.1.o

['/usr/bin/gcc', '-arch', 'ppc', '-arch', 'i386', '-isysroot', '/Developer/SDKs/MacOSX10.4u.sdk', '-arch', 'ppc', '-arch', 'i386', '-isysroot', '/Developer/SDKs/MacOSX10.4u.sdk', '-fno-strict-aliasing', '-fno-common', '-dynamic', '-fno-strict-aliasing', '-arch', 'ppc', '-arch', 'i386', '-isysroot', '/Developer/SDKs/MacOSX10.4u.sdk', '-fno-strict-aliasing', '-fno-common', '-dynamic', '-I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6', '-DPYTHONDIR="/usr/local/lib/python2.6/site-packages"', '-DPYTHONARCHDIR="/usr/local/lib/python2.6/site-packages"', '-DHAVE_PYEMBED=1', '-DNDEBUG', '-DNDEBUG', '../test.c', '-c', '-o', 'test.c.1.o']
err: In file included from /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/unicodeobject.h:4,
from /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h:85,
from ../test.c:2:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
In file included from /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/unicodeobject.h:4,
from /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h:85,
from ../test.c:2:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
lipo: can't figure out the architecture type of: /var/folders/Uu/UuXfo1NLFae4yyYpsCz-XE+++TI/-Tmp-//ccWFE9sK.out
from /Users/rgommers/Code/numpy: Test does not build: Traceback (most recent call last):
File "/Users/rgommers/Downloads/waf-1.6.11/waflib/Tools/c_config.py", line 756, in run_c_code
bld.compile()
File "/Users/rgommers/Downloads/waf-1.6.11/waflib/Build.py", line 351, in compile
raise Errors.BuildError(self.producer.error)
BuildError: Build failed
-> task in 'testprog' failed (exit status 1):
{task 21643248: c test.c -> test.c.1.o}
['/usr/bin/gcc', '-arch', 'ppc', '-arch', 'i386', '-isysroot', '/Developer/SDKs/MacOSX10.4u.sdk', '-arch', 'ppc', '-arch', 'i386', '-isysroot', '/Developer/SDKs/MacOSX10.4u.sdk', '-fno-strict-aliasing', '-fno-common', '-dynamic', '-fno-strict-aliasing', '-arch', 'ppc', '-arch', 'i386', '-isysroot', '/Developer/SDKs/MacOSX10.4u.sdk', '-fno-strict-aliasing', '-fno-common', '-dynamic', '-I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6', '-DPYTHONDIR="/usr/local/lib/python2.6/site-packages"', '-DPYTHONARCHDIR="/usr/local/lib/python2.6/site-packages"', '-DHAVE_PYEMBED=1', '-DNDEBUG', '-DNDEBUG', '../test.c', '-c', '-o', 'test.c.1.o']
Could not find the python development headers elsewhere
from /Users/rgommers/Code/numpy: The configuration failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment