I think what may be happening is gcc is trying to build a universal =20
executable and can't find any ia64 stuff.

Try this change in Makefile:

from:

ifeq ($(shell uname), Darwin)
        OS =3D Darwin
        PICOLISP-FLAGS =3D -lc -lm -ldl

to:

ifeq ($(shell uname), Darwin)
        OS =3D Darwin
        PICOLISP-FLAGS =3D -lc -lm -ldl -arch i386

John

On 6 Sep 2009, at 4:48 PM, Jon Kleiser wrote:

Hi,

I've just installed Mac OS X 10.6, aka "Snow Leopard", on a =20
partition on
my Mac (Intel Core 2 Duo, which probably means 32 bit only), and I was
curious to see what the consequences might be for Pico Lisp. I =20
downloaded
the ongoing dev. version of Pico Lisp and did the usual "(cd src; make
picolisp)". The results weren't too nice, but I'm not sure what the
problem is:

$ (cd src; make picolisp)
gcc -c -O2 -m32 -pipe -falign-functions -fomit-frame-pointer
-fno-strict-aliasing -W -Wimplicit -Wreturn-type -Wunused -Wformat
-Wuninitialized -Wstrict-prototypes -D_GNU_SOURCE  -=20
D_FILE_OFFSET_BITS=3D64
-D_OS=3D'"Darwin"' main.c
gcc -c -O2 -m32 -pipe -falign-functions -fomit-frame-pointer
-fno-strict-aliasing -W -Wimplicit -Wreturn-type -Wunused -Wformat
-Wuninitialized -Wstrict-prototypes -D_GNU_SOURCE  -=20
D_FILE_OFFSET_BITS=3D64
-D_OS=3D'"Darwin"' gc.c
gcc -c -O2 -m32 -pipe -falign-functions -fomit-frame-pointer
-fno-strict-aliasing -W -Wimplicit -Wreturn-type -Wunused -Wformat
-Wuninitialized -Wstrict-prototypes -D_GNU_SOURCE  -=20
D_FILE_OFFSET_BITS=3D64
-D_OS=3D'"Darwin"' apply.c
gcc -c -O2 -m32 -pipe -falign-functions -fomit-frame-pointer
-fno-strict-aliasing -W -Wimplicit -Wreturn-type -Wunused -Wformat
-Wuninitialized -Wstrict-prototypes -D_GNU_SOURCE  -=20
D_FILE_OFFSET_BITS=3D64
-D_OS=3D'"Darwin"' flow.c
gcc -c -O2 -m32 -pipe -falign-functions -fomit-frame-pointer
-fno-strict-aliasing -W -Wimplicit -Wreturn-type -Wunused -Wformat
-Wuninitialized -Wstrict-prototypes -D_GNU_SOURCE  -=20
D_FILE_OFFSET_BITS=3D64
-D_OS=3D'"Darwin"' sym.c
gcc -c -O2 -m32 -pipe -falign-functions -fomit-frame-pointer
-fno-strict-aliasing -W -Wimplicit -Wreturn-type -Wunused -Wformat
-Wuninitialized -Wstrict-prototypes -D_GNU_SOURCE  -=20
D_FILE_OFFSET_BITS=3D64
-D_OS=3D'"Darwin"' subr.c
gcc -c -O2 -m32 -pipe -falign-functions -fomit-frame-pointer
-fno-strict-aliasing -W -Wimplicit -Wreturn-type -Wunused -Wformat
-Wuninitialized -Wstrict-prototypes -D_GNU_SOURCE  -=20
D_FILE_OFFSET_BITS=3D64
-D_OS=3D'"Darwin"' big.c
gcc -c -O2 -m32 -pipe -falign-functions -fomit-frame-pointer
-fno-strict-aliasing -W -Wimplicit -Wreturn-type -Wunused -Wformat
-Wuninitialized -Wstrict-prototypes -D_GNU_SOURCE  -=20
D_FILE_OFFSET_BITS=3D64
-D_OS=3D'"Darwin"' io.c
io.c: In function =91doEcho=92:
io.c:2072: warning: =91op=92 may be used uninitialized in this =
function
io.c: In function =91doCommit=92:
io.c:3224: warning: =91note=92 may be used uninitialized in this =
function
gcc -c -O2 -m32 -pipe -falign-functions -fomit-frame-pointer
-fno-strict-aliasing -W -Wimplicit -Wreturn-type -Wunused -Wformat
-Wuninitialized -Wstrict-prototypes -D_GNU_SOURCE  -=20
D_FILE_OFFSET_BITS=3D64
-D_OS=3D'"Darwin"' net.c
gcc -c -O2 -m32 -pipe -falign-functions -fomit-frame-pointer
-fno-strict-aliasing -W -Wimplicit -Wreturn-type -Wunused -Wformat
-Wuninitialized -Wstrict-prototypes -D_GNU_SOURCE  -=20
D_FILE_OFFSET_BITS=3D64
-D_OS=3D'"Darwin"' tab.c
mkdir -p ../bin ../lib
gcc -o ../bin/picolisp -lc -lm -ldl main.o gc.o apply.o flow.o sym.o
subr.o big.o io.o net.o tab.o
ld: warning: in main.o, file is not of required architecture
ld: warning: in gc.o, file is not of required architecture
ld: warning: in apply.o, file is not of required architecture
ld: warning: in flow.o, file is not of required architecture
ld: warning: in sym.o, file is not of required architecture
ld: warning: in subr.o, file is not of required architecture
ld: warning: in big.o, file is not of required architecture
ld: warning: in io.o, file is not of required architecture
ld: warning: in net.o, file is not of required architecture
ld: warning: in tab.o, file is not of required architecture
Undefined symbols:
 "_main", referenced from:
     start in crt1.10.6.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [../bin/picolisp] Error 1

I also tried building Pico Lisp 2.3.5, but got the same as above. =20
However,
running the Pico Lisp 2.3.5 that I built using Mac OS X 10.5.x, went =20=

fine,
including my OpenGL Chinese Checkers.

Snow Leopard does bring some changes re. gcc. Some info may be found =20=

here:
<http://arstechnica.com/apple/reviews/2009/08/mac-os-x-10-6.ars/9>

/Jon

--=20
UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=3dunsubscribe

--
UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe

Reply via email to