Re: guile 1.4 compilation error with gcc4

2005-08-21 Thread Thien-Thi Nguyen
   From: Aaron Voisine <[EMAIL PROTECTED]>
   Date: Sat, 20 Aug 2005 14:38:16 -0700

scm_make_gsubr (s_ ## scm_acons,  3,  0,  0, (SCM (*)()) scm_acons); 

   configure options as follows:

   export LIBRARY_PATH=/sw/lib
   export CPPFLAGS=-no-cpp-precomp
   export CPATH=/sw/include
   ./configure --prefix=/sw --infodir=/sw/share/info

on first glance, the CPPFLAGS looks suspicious.  the ## is supposed to
"glue" the tokens surrounding it together producing a single identifier,
in this case `s_scm_acons', during the C preprocessing pass.  thus
options that disable (or otherwise inhibit normal operation) of the C
preprocessor are questionable.  what happens when you configure without
setting CPPFLAGS?  (why is it necessary to set it?)

   and the configure output: [...]

ok, i'll save this to compare w/ the non-CPPFLAGS output (unless we get
lucky and things magically work w/o further investigation :-).

thi


___
Bug-guile mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-guile


Re: guile 1.4 compilation error with gcc4

2005-08-21 Thread Aaron Voisine
alist.x is generated (I deleted it and reran make just to be sure) The
offending lines look like this:

 scm_make_gsubr (s_ ## scm_acons,  3,  0,  0, (SCM (*)()) scm_acons); 
 scm_make_gsubr (s_ ## scm_sloppy_assq,  2,  0,  0, (SCM (*)())
scm_sloppy_assq);
 scm_make_gsubr (s_ ## scm_sloppy_assv,  2,  0,  0, (SCM (*)())
scm_sloppy_assv);

configure options as follows:

export LIBRARY_PATH=/sw/lib
export CPPFLAGS=-no-cpp-precomp
export CPATH=/sw/include
./configure --prefix=/sw --infodir=/sw/share/info

and the configure output:

creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... no
checking how to run the C preprocessor... gcc -E -traditional-cpp
checking for AIX... no
checking for POSIXized ISC... no
checking for minix/config.h... no
checking for gcc option to accept ANSI C... none needed
checking host system type... i386-apple-darwin8.1.0
checking build system type... i386-apple-darwin8.1.0
checking for ranlib... ranlib
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for BSD-compatible nm... /usr/bin/nm -p
checking whether ln -s works... yes
updating cache ./config.cache
loading cache ./config.cache within ltconfig
checking for object suffix... o
checking for executable suffix... no
checking for gcc option to produce PIC... -fno-common
checking if gcc PIC flag -fno-common works... yes
checking if gcc supports -c -o file.o... no
checking if we can lock with hard links... yes
checking if gcc supports -fno-rtti -fno-exceptions ... no
checking if gcc static flag -static works... none
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -p output... ok
checking how to hardcode library paths into programs... unsupported
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... darwin8.1.0 dyld
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
checking for dlopen in -ldl... yes
checking for dlfcn.h... no
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
creating libtool
updating cache ./config.cache
loading cache ./config.cache
checking for working const... yes
checking for inline... inline
checking size of int... 4
checking size of long... 4
checking for long longs... yes
checking for ANSI C header files... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for io.h... no
checking for libc.h... yes
checking for limits.h... yes
checking for malloc.h... no
checking for memory.h... yes
checking for string.h... yes
checking for regex.h... yes
checking for rxposix.h... no
checking for rx/rxposix.h... no
checking for sys/ioctl.h... yes
checking for sys/select.h... yes
checking for sys/time.h... yes
checking for sys/timeb.h... yes
checking for sys/times.h... yes
checking for sys/types.h... yes
checking for sys/utime.h... no
checking for time.h... yes
checking for unistd.h... yes
checking for utime.h... yes
checking for libc.h... (cached) yes
checking for unistd.h... (cached) yes
checking whether libc.h and unistd.h can be included together... yes
checking for uid_t in sys/types.h... yes
checking type of array argument to getgroups... gid_t
checking return type of signal handlers... void
checking for mode_t... yes
checking for main in -lm... yes
checking for gethostbyname... yes
checking for connect... yes
checking for ctermid... yes
checking for ftime... yes
checking for fchown... yes
checking for getcwd... yes
checking for geteuid... yes
checking for gettimeofday... yes
checking for lstat... yes
checking for mkdir... yes
checking for mknod... yes
checking for nice... yes
checking for readlink... yes
checking for rename... yes
checking for rmdir... yes
checking for select... yes
checking for setegid... yes
checking for seteuid... yes
checking for setlocale... yes
checking for setpgid... yes
checking for setsid... yes
checking for sigaction... yes
checking for siginterrupt... yes
checking for strftime... yes
checking for strptime

Re: guile 1.4 compilation error with gcc4

2005-08-21 Thread Thien-Thi Nguyen
   From: Aaron Voisine <[EMAIL PROTECTED]>
   Date: Fri, 19 Aug 2005 23:42:59 -0700

   I'm trying to compile guile 1.4 with apple's gcc 4.0.0 (from xcode
   tools 2.2 preview 1) and I get the following compilation error:

   [...]
   ../libguile/alist.x:5: error: stray '##' in program

   looking at alist.x the syntax doesn't look like anything i've ever
   seen in k&r (course I'm no expert). Any ideas?

could you post the first few lines of alist.x?  this file is generated
at compile-time, and should not be in the distribution tarball -- if it
is, that's probably (another) methodology bug.

please also post the output of running the configure script, including
some mention of what options you passed to it, etc.

thi


___
Bug-guile mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-guile


guile 1.4 compilation error with gcc4

2005-08-20 Thread Aaron Voisine
I'm trying to compile guile 1.4 with apple's gcc 4.0.0 (from xcode
tools 2.2 preview 1) and I get the following compilation error:

gcc -DHAVE_CONFIG_H -I.. -I./.. -I../libltdl -no-cpp-precomp -O2 -Wall
-Wmissing-prototypes -c alist.c  -fno-common -DPIC
In file included from alist.c:394:
../libguile/alist.x: In function 'scm_init_alist':
../libguile/alist.x:2: error: stray '##' in program
../libguile/alist.x:2: error: 's_' undeclared (first use in this function)
../libguile/alist.x:2: error: (Each undeclared identifier is reported only once
../libguile/alist.x:2: error: for each function it appears in.)
../libguile/alist.x:2: error: parse error before 'scm_acons'
../libguile/alist.x:3: error: stray '##' in program
../libguile/alist.x:3: error: parse error before 'scm_sloppy_assq'
../libguile/alist.x:4: error: stray '##' in program
../libguile/alist.x:4: error: parse error before 'scm_sloppy_assv'
../libguile/alist.x:5: error: stray '##' in program


looking at alist.x the syntax doesn't look like anything i've ever seen in k&r
(course I'm no expert). Any ideas?

l8r
Aaron

-- 
There's no trick to being a humorist when you have the whole
government working for you -- Will Rodgers


___
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile