|
From: Yves S. G. <you...@gm...> - 2011-09-16 23:59:49
|
Wow, I'm very surprised at the response. Many thanks!
I know I've been gone for some time, but work and life did not give me much
free time. I'll try to address several of the concerns in this thread right
now.
I am running Lion at the moment.
When I tried to compile the 2.49 .tar.bz2 file (with the
--ignore-absence-of-libsigsegv flag, although, I really would want this to
function, it installed fine with MacPorts), this is the output that I get:
I go into src, then open up config.lisp... what am I supposed to do there?
Anyways, since the instructions didn't tell me what to do, I ignored it and
kept going.
Did this:
$ make
.....
intelem.d:414: warning: control reaches end of non-void function
lisparit.d: In function ‘I_to_L’:
intelem.d:330: warning: control reaches end of non-void function
lisparit.d: In function ‘I_to_UL’:
intelem.d:234: warning: control reaches end of non-void function
gcc -I/Users/ysg/Downloads/CLisp/clisp-2.49/src/gllib -g -O2 -W -Wswitch
-Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations
-Wno-sign-compare -Wno-format-nonliteral -O -falign-functions=4
-DUNIX_BINARY_DISTRIB -DENABLE_UNICODE -DDYNAMIC_MODULES -DNO_GETTEXT -I. -c
i18n.c
gcc -I/Users/ysg/Downloads/CLisp/clisp-2.49/src/gllib -g -O2 -W -Wswitch
-Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations
-Wno-sign-compare -Wno-format-nonliteral -O -falign-functions=4
-DUNIX_BINARY_DISTRIB -DENABLE_UNICODE -DDYNAMIC_MODULES -DNO_GETTEXT -I. -c
unixaux.c
echo '/* generated from Makefile */' > cflags.h.new
echo '#define CC "gcc"' >> cflags.h.new
echo '#define CFLAGS "-g -O2 -W -Wswitch -Wcomment -Wpointer-arith
-Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare
-Wno-format-nonliteral -O -falign-functions=4 -DUNIX_BINARY_DISTRIB
-DENABLE_UNICODE -DDYNAMIC_MODULES -DNO_GETTEXT -I."' >> cflags.h.new
echo '#define LDFLAGS ""' >> cflags.h.new
echo '#define CLFLAGS ""' >> cflags.h.new
echo '#define LIBS "-lncurses -liconv libgnu_cl.a"' >> cflags.h.new
echo '#define CPPFLAGS "-I/Users/ysg/Downloads/CLisp/clisp-2.49/src/gllib"'
>> cflags.h.new
echo '#define CPP "gcc -E"' >> cflags.h.new
echo '#define CXX "g++"' >> cflags.h.new
echo '#define CXXFLAGS ""' >> cflags.h.new
echo '#define X_LIBS "-L/usr/X11/lib -R/usr/X11/lib"' >> cflags.h.new
if cmp cflags.h.new cflags.h > /dev/null 2>&1; then rm -f cflags.h.new; else
mv cflags.h.new cflags.h; fi
touch cflags.h.stamp
gcc -I/Users/ysg/Downloads/CLisp/clisp-2.49/src/gllib -g -O2 -W -Wswitch
-Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations
-Wno-sign-compare -Wno-format-nonliteral -O -falign-functions=4
-DUNIX_BINARY_DISTRIB -DENABLE_UNICODE -DDYNAMIC_MODULES -DNO_GETTEXT -I. -c
built.c
test -r libgnu_cl.a || ln -s gllib/libgnu.a libgnu_cl.a
gcc -I/Users/ysg/Downloads/CLisp/clisp-2.49/src/gllib -g -O2 -W -Wswitch
-Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations
-Wno-sign-compare -Wno-format-nonliteral -O -falign-functions=4
-DUNIX_BINARY_DISTRIB -DENABLE_UNICODE -DDYNAMIC_MODULES -DNO_GETTEXT -I.
-DCOMPILE_STANDALONE -O0 -c genclisph.c
genclisph.d: In function ‘main’:
genclisph.d:285: warning: comparison of unsigned expression < 0 is always
false
gcc -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type
-Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O
-falign-functions=4 -DUNIX_BINARY_DISTRIB -DENABLE_UNICODE -DDYNAMIC_MODULES
-DNO_GETTEXT -I. genclisph.o -o genclisph
(echo '#ifndef _CLISP_H' ; echo '#define _CLISP_H' ; echo; echo '/* config.h
*/' ; grep '^#' config.h ) > clisp.h
(echo; echo '/* 'intparam.h' */' ; grep '^#' intparam.h ) >> clisp.h
(echo; echo '/* 'floatparam.h' */' ; grep '^#' floatparam.h ) >> clisp.h
(echo; echo '/* genclisph */' ; ./genclisph clisp-test.c ; echo ; echo
'#endif /* _CLISP_H */') >> clisp.h
writing test file clisp-test.c
stdbool.h: No such file or directory
gcc -I/Users/ysg/Downloads/CLisp/clisp-2.49/src/gllib -g -O2 -W -Wswitch
-Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations
-Wno-sign-compare -Wno-format-nonliteral -O -falign-functions=4
-DUNIX_BINARY_DISTRIB -DENABLE_UNICODE -DDYNAMIC_MODULES -DNO_GETTEXT -I.
-DUSE_CLISP_H=1 -DCOMPILE_STANDALONE clisp-test.c -o clisp-test-clisp
clisp-test.c: In function ‘main’:
clisp-test.c:18: error: expected declaration or statement at end of input
make: *** [clisp.h] Error 1
Unfortunately I did not have much time to really dig into this.
This is what I get when I compile from the head.
I got the same error about not having libsigsegv... bummer.
I configure again without this library.
$ make
............
depbase=`echo stat.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -g -O2 -W -Wswitch -Wcomment
-Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations
-Wno-sign-compare -Wno-format-nonliteral -O -falign-functions=4
-DUNIX_BINARY_DISTRIB -DENABLE_UNICODE -DDYNAMIC_MODULES -DNO_GETTEXT
-fno-common -DPIC -MT stat.o -MD -MP -MF $depbase.Tpo -c -o stat.o stat.c
&&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo strerror_r.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -g -O2 -W -Wswitch -Wcomment
-Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations
-Wno-sign-compare -Wno-format-nonliteral -O -falign-functions=4
-DUNIX_BINARY_DISTRIB -DENABLE_UNICODE -DDYNAMIC_MODULES -DNO_GETTEXT
-fno-common -DPIC -MT strerror_r.o -MD -MP -MF $depbase.Tpo -c -o
strerror_r.o strerror_r.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo strverscmp.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -g -O2 -W -Wswitch -Wcomment
-Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations
-Wno-sign-compare -Wno-format-nonliteral -O -falign-functions=4
-DUNIX_BINARY_DISTRIB -DENABLE_UNICODE -DDYNAMIC_MODULES -DNO_GETTEXT
-fno-common -DPIC -MT strverscmp.o -MD -MP -MF $depbase.Tpo -c -o
strverscmp.o strverscmp.c &&\
mv -f $depbase.Tpo $depbase.Po
rm -f libgnu.a
ar cru libgnu.a c-ctype.o fd-hook.o localcharset.o glthread/lock.o malloca.o
sockets.o strftime.o strnlen1.o tempname.o glthread/threadlib.o
uniname/uniname.o uniwidth/width.o fnmatch.o ioctl.o lstat.o mkfifo.o
mknod.o mktime.o readlink.o regex.o setenv.o stat.o strerror-override.o
strerror_r.o strverscmp.o
/usr/bin/ranlib: file: libgnu.a(fd-hook.o) has no symbols
/usr/bin/ranlib: file: libgnu.a(threadlib.o) has no symbols
ranlib libgnu.a
ranlib: file: libgnu.a(fd-hook.o) has no symbols
ranlib: file: libgnu.a(threadlib.o) has no symbols
sh config.status --header=config.h
config.status: creating config.h
config.status: config.h is unchanged
touch config.h
echo '#include "config.h"' > tmp.c
cat 'intparam.c' >> tmp.c
gcc tmp.c -o intparam
./intparam intparam.h
rm -f intparam tmp.c
echo '#include "config.h"' > tmp.c
cat 'floatparam.c' >> tmp.c
gcc tmp.c -o floatparam
./floatparam floatparam.h
rm -f floatparam tmp.c
gcc -I/Users/ysg/Downloads/CLisp/clisp/src/gllib -g -O2 -W -Wswitch
-Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations
-Wno-sign-compare -Wno-format-nonliteral -O -falign-functions=4
-DUNIX_BINARY_DISTRIB -DENABLE_UNICODE -DDYNAMIC_MODULES -DNO_GETTEXT
../utils/comment5.c -o comment5
In file included from /usr/include/sys/time.h:198,
from
/Users/ysg/Downloads/CLisp/clisp/src/gllib/sys/time.h:39,
from
/Users/ysg/Downloads/CLisp/clisp/src/gllib/sys/select.h:59,
from /usr/include/unistd.h:672,
from
/Users/ysg/Downloads/CLisp/clisp/src/gllib/unistd.h:44,
from
/Users/ysg/Downloads/CLisp/clisp/src/gllib/stdlib.h:90,
from ../utils/comment5.c:29:
/Users/ysg/Downloads/CLisp/clisp/src/gllib/time.h:469: error: expected ‘;’,
‘,’ or ‘)’ before ‘__timer’
/Users/ysg/Downloads/CLisp/clisp/src/gllib/time.h:491: error: expected ‘;’,
‘,’ or ‘)’ before ‘__timer’
make: *** [comment5] Error 1
It seems to be failing for a different file.
On Thu, Sep 15, 2011 at 4:53 AM, Vladimir Tzankov <vtz...@gm...>wrote:
> Hi Yves,
> I regularly build hg head on Mac (Snow Leopard - WITH gcc) without
> problems - both 32 & 64 bit version, with generational GC,
> with/without threads. I do not remember any problems with 2.49 as
> well.
>
> Can you try to build 2.49 not in MacPorts environment? Simply use
> configure script and make. Is there a difference (if not - please try
> hg head as well).
>
> Vladimir
>
> On Wed, Sep 14, 2011 at 11:25 PM, Yves S. Garret
> <you...@gm...> wrote:
> > Hi all.
> > I was trying to get Common Lisp to compile on my Mac using MacPorts.
> I've
> > run into an issue with getting it to compile. The version is 2.49.
> Below
> > you can find the description that I and some other MacPort users are
> running
> > into.
> >
> > https://trac.macports.org/ticket/30338
>
|