Hey guys,
I'm back on this thread. A quick question about waf ...: is it possible to disable some of the options regarding the architecture detection ? For some reasons, waf is detecting these "arch" flags and I'm having a hard time identifying the source of this. Any way to disable this and avoid mixing i386 with x86_64 ?
------------------------------------------
Checking for python version
(2, 7, 10, 'final', 0)
['/usr/bin/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: '/System/Library/Frameworks/Python.framework/Versions/2.7'
'.so'
'-arch i386 -arch x86_64 -Wl,-F.'
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib'
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config'
'/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7'
''
'10.11'
'cc -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -Wl,-F.'
'-fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE'
'/System/Library/Frameworks/Python.framework/Versions/2.7'
'.so'
'-arch i386 -arch x86_64 -Wl,-F.'
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib'
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config'
'/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7'
''
'10.11'
'cc -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -Wl,-F.'
'-fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE'
As a result, compiling with -arch i386 totally crashes my new system:
err: /var/folders/b4/2x_4h7q13bb_d__fj557d3xm0000gn/T//ccidyPw6.s: error: register %rbp is only available in 64-bit mode
pushq %rbp
^~~~
/var/folders/b4/2x_4h7q13bb_d__fj557d3xm0000gn/T//ccidyPw6.s: error: register %rsp is only available in 64-bit mode
movq %rsp, %rbp
^~~~
/var/folders/b4/2x_4h7q13bb_d__fj557d3xm0000gn/T//ccidyPw6.s: error: register %rbp is only available in 64-bit mode
movl %edi, -4(%rbp)
^~~~
/var/folders/b4/2x_4h7q13bb_d__fj557d3xm0000gn/T//ccidyPw6.s: error: register %rsi is only available in 64-bit mode
movq %rsi, -16(%rbp)
^~~~
/var/folders/b4/2x_4h7q13bb_d__fj557d3xm0000gn/T//ccidyPw6.s: error: register %rbp is only available in 64-bit mode
popq %rbp
^~~~
from /Volumes/OpenFOAM/Aster/codeaster-src.V11/bibc: Test does not build: Traceback (most recent call last):
Compiling manually the test program without arch -i386 works no problem.
Thanks
PO