I ran into a build problem for Python 2.6.4 on Snow Leopard.
- Mac OS X 10.6
- Yonah CPU 32-bit
- GCC-4.2.1
Update I
Solved by removing all non-standard inclusions and libraries from CFLAGS (there was uuid/uuid.hthere ...). Nevertheless, it is compiled, despite the error described below, and /usr/include/hfs/hfs_format.h:765is a hot spot. For a curious or resourceful source file:
$ cat /usr/include/hfs/hfs_format.h
...
748 #include <uuid/uuid.h>
749
750
751
752
753
754
755
756
757
758 #define JIB_RESERVED_SIZE ((32*sizeof(u_int32_t)) - sizeof(uuid_string_t) - 48)
759
760 struct JournalInfoBlock {
761 u_int32_t flags;
762 u_int32_t device_signature[8];
763 u_int64_t offset;
764 u_int64_t size;
765 uuid_string_t ext_jnl_uuid;
766 char machine_serial_num[48];
767 char reserved[JIB_RESERVED_SIZE];
768 } __attribute__((aligned(2), packed));
769 typedef struct JournalInfoBlock JournalInfoBlock;
...
I leave the question open, because there are too many warnings and this error in the assembly and it still puzzles me a little ...
Update II
To get rid of warnings regarding the deployment target, I edited Makefilebefore compilation:
$ cat Makefile
...
126 MACOSX_DEPLOYMENT_TARGET=10.3
...
Original question
Python 2.6.4 :
$ uname -v
$ Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; \
root:xnu-1486.2.11~1/RELEASE_I386
$ cd ~/src/Python-2.6.4
$ ./configure --enable-universalsdk=/ --prefix=$HOME
checking for --with-universal-archs... 32-bit
...
checking machine type as reported by uname -m... i386
...
checking for OSX 10.5 SDK or later... no
...
$ make
...
...
/usr/include/hfs/hfs_format.h:765: error: \
expected specifier-qualifier-list before ‘uuid_string_t’
, root Python/mactoolboxglue.c. !
:
/usr/include/AvailabilityMacros.h:108:14: warning:
Intel with Mac OS X Deployment Target < 10.4 is invalid.
gcc -c -arch ppc -arch i386 -isysroot / -fno-strict-aliasing -DNDEBUG -g \
-fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include \
-DPy_BUILD_CORE -o Objects/structseq.o Objects/structseq.c
In file included from /usr/include/architecture/i386/math.h:626,
from /usr/include/math.h:28,
from Include/pyport.h:235,
from Include/Python.h:58,
from Objects/structseq.c:4: