Yesterday, I upgraded to OS X Lion and Xcode 4.1. Now when I try to compile (configure; make all) the same source, it hangs on the following:
"gcc -DHAVE_CONFIG_H -I. -I./libarchive -DLIBARCHIVE_STATIC -I./tar -I./tar/ccache -I./tar/chunks -I./tar/glue -I./tar/multitape -I./tar/storage -I./lib/crypto -I./lib/datastruct -I./lib/keyfile -I./lib/netpacket -I./lib/netproto -I./lib/network -I./lib/util -DETC_TARSNAP_CONF=\"/usr/local/etc/tarsnap.conf\" -DUSERAGENT=\"tarsnap-1.0.29\" -g -O2 -MT tar/multitape/tarsnap-chunkify.o -MD -MP -MF tar/multitape/.deps/tarsnap-chunkify.Tpo -c -o tar/multitape/tarsnap-chunkify.o `test -f 'tar/multitape/chunkify.c' || echo './'`tar/multitape/chunkify.c"
top shows cc1 running and taking 100% of the CPU. I've repeated it several times (delete; unpack; configure; make all) with the same result.
It *does* compile okay if I remove the -O2 flag.I just did a fresh install of OS X Lion (i.e. from a USB stick on to a blank partition), applied the two Apple software updates (iTunes and, IIRC, remote desktop client) and installed Xcode 4.1. I get exactly the same result, i.e. the tarsnap compile hangs at the same point with -O2 but does compile without -O2.
I've e-mailed Colin and he suggested that I post to the list. - John, jman@home.org