[New-bugs-announce] [issue2559] atom sorting error when buiding ctypes

Skip Montanaro report at bugs.python.org
Sat Apr 5 21:27:08 CEST 2008


New submission from Skip Montanaro <skip at pobox.com>:

I recently started getting the following error when building the
trunk on Mac OS X Leopard:

  ld: atom sorting error for .LFE1 and .ffi_call_SYSV_end in
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/x86/x86-darwin.o

I tried rm'ing my build directory then rerunning configure.  Same
result.  Here's the make output after simply removing all '*ctypes*'
files from the build directory:

% find build -name '*ctypes*' | xargs rm -r
% make
running build
running build_ext
building '_ctypes_test' extension
creating
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I. -I/Users/skip/src/python/trunk/./Include
-I/Users/skip/src/python/trunk/./Mac/Include -I. -IInclude -I./Include
-I/Users/skip/local/include -I/opt/local/include
-I/Users/skip/src/python/trunk/Include -I/Users/skip/src/python/trunk -c
/Users/skip/src/python/trunk/Modules/_ctypes/_ctypes_test.c -o
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/_ctypes_test.o
gcc -L/Users/skip/local/lib -L/opt/local/lib -bundle -undefined
dynamic_lookup
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/_ctypes_test.o
-L/Users/skip/local/lib -L/opt/local/lib -o
build/lib.macosx-10.3-i386-2.6/_ctypes_test.so
building '_ctypes' extension
creating
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/darwin
creating
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx
creating
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/x86
creating
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/powerpc
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I_ctypes/darwin -I.
-I/Users/skip/src/python/trunk/./Include
-I/Users/skip/src/python/trunk/./Mac/Include
-I/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/include
-I/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/powerpc -I.
-IInclude -I./Include -I/Users/skip/local/include -I/opt/local/include
-I/Users/skip/src/python/trunk/Include -I/Users/skip/src/python/trunk -c
/Users/skip/src/python/trunk/Modules/_ctypes/_ctypes.c -o
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/_ctypes.o
-DMACOSX
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I_ctypes/darwin -I.
-I/Users/skip/src/python/trunk/./Include
-I/Users/skip/src/python/trunk/./Mac/Include
-I/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/include
-I/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/powerpc -I.
-IInclude -I./Include -I/Users/skip/local/include -I/opt/local/include
-I/Users/skip/src/python/trunk/Include -I/Users/skip/src/python/trunk -c
/Users/skip/src/python/trunk/Modules/_ctypes/callbacks.c -o
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/callbacks.o
-DMACOSX
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I_ctypes/darwin -I.
-I/Users/skip/src/python/trunk/./Include
-I/Users/skip/src/python/trunk/./Mac/Include
-I/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/include
-I/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/powerpc -I.
-IInclude -I./Include -I/Users/skip/local/include -I/opt/local/include
-I/Users/skip/src/python/trunk/Include -I/Users/skip/src/python/trunk -c
/Users/skip/src/python/trunk/Modules/_ctypes/callproc.c -o
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/callproc.o
-DMACOSX
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I_ctypes/darwin -I.
-I/Users/skip/src/python/trunk/./Include
-I/Users/skip/src/python/trunk/./Mac/Include
-I/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/include
-I/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/powerpc -I.
-IInclude -I./Include -I/Users/skip/local/include -I/opt/local/include
-I/Users/skip/src/python/trunk/Include -I/Users/skip/src/python/trunk -c
/Users/skip/src/python/trunk/Modules/_ctypes/stgdict.c -o
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/stgdict.o
-DMACOSX
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I_ctypes/darwin -I.
-I/Users/skip/src/python/trunk/./Include
-I/Users/skip/src/python/trunk/./Mac/Include
-I/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/include
-I/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/powerpc -I.
-IInclude -I./Include -I/Users/skip/local/include -I/opt/local/include
-I/Users/skip/src/python/trunk/Include -I/Users/skip/src/python/trunk -c
/Users/skip/src/python/trunk/Modules/_ctypes/cfield.c -o
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/cfield.o
-DMACOSX
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I_ctypes/darwin -I.
-I/Users/skip/src/python/trunk/./Include
-I/Users/skip/src/python/trunk/./Mac/Include
-I/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/include
-I/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/powerpc -I.
-IInclude -I./Include -I/Users/skip/local/include -I/opt/local/include
-I/Users/skip/src/python/trunk/Include -I/Users/skip/src/python/trunk -c
/Users/skip/src/python/trunk/Modules/_ctypes/malloc_closure.c -o
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/malloc_closure.o
-DMACOSX
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I_ctypes/darwin -I.
-I/Users/skip/src/python/trunk/./Include
-I/Users/skip/src/python/trunk/./Mac/Include
-I/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/include
-I/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/powerpc -I.
-IInclude -I./Include -I/Users/skip/local/include -I/opt/local/include
-I/Users/skip/src/python/trunk/Include -I/Users/skip/src/python/trunk -c
/Users/skip/src/python/trunk/Modules/_ctypes/darwin/dlfcn_simple.c -o
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/darwin/dlfcn_simple.o
-DMACOSX
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I_ctypes/darwin -I.
-I/Users/skip/src/python/trunk/./Include
-I/Users/skip/src/python/trunk/./Mac/Include
-I/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/include
-I/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/powerpc -I.
-IInclude -I./Include -I/Users/skip/local/include -I/opt/local/include
-I/Users/skip/src/python/trunk/Include -I/Users/skip/src/python/trunk -c
/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/ffi.c -o
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/ffi.o
-DMACOSX
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I_ctypes/darwin -I.
-I/Users/skip/src/python/trunk/./Include
-I/Users/skip/src/python/trunk/./Mac/Include
-I/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/include
-I/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/powerpc -I.
-IInclude -I./Include -I/Users/skip/local/include -I/opt/local/include
-I/Users/skip/src/python/trunk/Include -I/Users/skip/src/python/trunk -c
/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/x86/x86-darwin.S
-o
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/x86/x86-darwin.o
-DMACOSX
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I_ctypes/darwin -I.
-I/Users/skip/src/python/trunk/./Include
-I/Users/skip/src/python/trunk/./Mac/Include
-I/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/include
-I/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/powerpc -I.
-IInclude -I./Include -I/Users/skip/local/include -I/opt/local/include
-I/Users/skip/src/python/trunk/Include -I/Users/skip/src/python/trunk -c
/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/x86/x86-ffi_darwin.c
-o
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/x86/x86-ffi_darwin.o
-DMACOSX
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I_ctypes/darwin -I.
-I/Users/skip/src/python/trunk/./Include
-I/Users/skip/src/python/trunk/./Mac/Include
-I/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/include
-I/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/powerpc -I.
-IInclude -I./Include -I/Users/skip/local/include -I/opt/local/include
-I/Users/skip/src/python/trunk/Include -I/Users/skip/src/python/trunk -c
/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/x86/x86-ffi64.c
-o
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/x86/x86-ffi64.o
-DMACOSX
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I_ctypes/darwin -I.
-I/Users/skip/src/python/trunk/./Include
-I/Users/skip/src/python/trunk/./Mac/Include
-I/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/include
-I/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/powerpc -I.
-IInclude -I./Include -I/Users/skip/local/include -I/opt/local/include
-I/Users/skip/src/python/trunk/Include -I/Users/skip/src/python/trunk -c
/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/powerpc/ppc-darwin.S
-o
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/powerpc/ppc-darwin.o
-DMACOSX
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I_ctypes/darwin -I.
-I/Users/skip/src/python/trunk/./Include
-I/Users/skip/src/python/trunk/./Mac/Include
-I/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/include
-I/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/powerpc -I.
-IInclude -I./Include -I/Users/skip/local/include -I/opt/local/include
-I/Users/skip/src/python/trunk/Include -I/Users/skip/src/python/trunk -c
/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/powerpc/ppc-darwin_closure.S
-o
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/powerpc/ppc-darwin_closure.o
-DMACOSX
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I_ctypes/darwin -I.
-I/Users/skip/src/python/trunk/./Include
-I/Users/skip/src/python/trunk/./Mac/Include
-I/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/include
-I/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/powerpc -I.
-IInclude -I./Include -I/Users/skip/local/include -I/opt/local/include
-I/Users/skip/src/python/trunk/Include -I/Users/skip/src/python/trunk -c
/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/powerpc/ppc-ffi_darwin.c
-o
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/powerpc/ppc-ffi_darwin.o
-DMACOSX
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I_ctypes/darwin -I.
-I/Users/skip/src/python/trunk/./Include
-I/Users/skip/src/python/trunk/./Mac/Include
-I/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/include
-I/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/powerpc -I.
-IInclude -I./Include -I/Users/skip/local/include -I/opt/local/include
-I/Users/skip/src/python/trunk/Include -I/Users/skip/src/python/trunk -c
/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/powerpc/ppc64-darwin_closure.S
-o
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/powerpc/ppc64-darwin_closure.o
-DMACOSX
gcc -L/Users/skip/local/lib -L/opt/local/lib -bundle -undefined
dynamic_lookup
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/_ctypes.o
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/callbacks.o
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/callproc.o
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/stgdict.o
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/cfield.o
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/malloc_closure.o
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/darwin/dlfcn_simple.o
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/ffi.o
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/x86/x86-darwin.o
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/x86/x86-ffi_darwin.o
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/x86/x86-ffi64.o
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/powerpc/ppc-darwin.o
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/powerpc/ppc-darwin_closure.o
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/powerpc/ppc-ffi_darwin.o
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/powerpc/ppc64-darwin_closure.o
-L/Users/skip/local/lib -L/opt/local/lib -o
build/lib.macosx-10.3-i386-2.6/_ctypes.so
ld: atom sorting error for .LFE1 and .ffi_call_SYSV_end in
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/x86/x86-darwin.o
ld: atom sorting error for .LFE1 and .ffi_call_SYSV_end in
build/temp.macosx-10.3-i386-2.6/Users/skip/src/python/trunk/Modules/_ctypes/libffi_osx/x86/x86-darwin.o

----------
assignee: theller
components: ctypes
messages: 65001
nosy: skip.montanaro, theller
severity: normal
status: open
title: atom sorting error when buiding ctypes
type: compile error
versions: Python 2.6

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2559>
__________________________________


More information about the New-bugs-announce mailing list