unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Guile-reader install fail.
@ 2012-05-30 19:18 R. Clayton
  2012-05-31 14:15 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: R. Clayton @ 2012-05-30 19:18 UTC (permalink / raw)
  To: guile-user

I'm trying to install guile-reader 0.6 on a debian testing system updated
weekly using guile 2.0.5, and I've run into a problem (see the end of the
message for the whole sad story):

  $ main='(module-ref (resolve-module '\''(extract-doc)) '\'main')' && GUILE_AUTO_COMPILE=0 ../pre-inst-guile -l ./extract-doc.scm -c "(apply $main (cdr (command-line)))" ../src/token-readers.h
  Backtrace:
  In ice-9/boot-9.scm:
   149: 13 [catch #t #<catch-closure 8876280> ...]
   157: 12 [#<procedure 883f8c0 ()>]
  In unknown file:
     ?: 11 [catch-closure]
  In ice-9/boot-9.scm:
    63: 10 [call-with-prompt prompt0 ...]
  In ice-9/eval.scm:
   407: 9 [eval # #]
  In unknown file:
     ?: 8 [call-with-input-string "(apply (module-ref (resolve-module '(extract-doc)) 'main) (cdr (command-line)))" ...]
  In ice-9/command-line.scm:
   174: 7 [#<procedure 88782e0 at ice-9/command-line.scm:169:3 (port)> #<input: string 875cd20>]
  In unknown file:
     ?: 6 [eval (apply (module-ref # #) (cdr #)) #<directory (guile-user) 881e6c0>]
  In ice-9/eval.scm:
   407: 5 [eval # #]
  In ice-9/r4rs.scm:
   167: 4 [call-with-output-file "token-reader-doc.texi" ...]
   178: 3 [with-output-to-port #<variable 88dca18 value: #<output: file /dev/pts/11>> ...]
  In ice-9/eval.scm:
   407: 2 [eval # #]
   368: 1 [eval # #]
  In unknown file:
     ?: 0 [sort # #<procedure 88e41b0 at ice-9/eval.scm:396:13 (a b)>]

  ERROR: In procedure sort:
  ERROR: In procedure list-copy: Wrong type argument in position 1: (whitespace vector string srfi62-sexp-comment srfi-4 srfi30-block-comment square-bracket-sexp skribe-exp sexp semicolon-comment scsh-block-comment r6rs-syntax-quote-quasiquote-unquote r6rs-symbol-upper-case r6rs-symbol-misc-chars r6rs-symbol-lower-case r6rs-number r5rs-upper-case-number r5rs-lower-case-symbol-upper-case r5rs-lower-case-symbol-misc-chars r5rs-lower-case-symbol-lower-case r5rs-lower-case-number quote-quasiquote-unquote number+radix keyword guile-symbol-upper-case guile-symbol-misc-chars guile-symbol-lower-case guile-number guile-extended-symbol guile-bit-vector curly-brace-sexp character brace-free-symbol-upper-case brace-free-symbol-misc-chars brace-free-symbol-lower-case brace-free-number boolean-srfi-4 bo
 olean . #t)

  $ 

It seems something in guile-reader/doc is trying to sort an improper list.
Unfortunately, I'm unable to decipher the backtrace further.  How can this
problem  be fixed?

--

Here's the full install:

  $ pwd
  /usr/local/src/guile-reader-0.6

  $ ./configure  --prefix=/usr/local/packages/guile-reader-0.6 --with-guilemoduledir=/usr/share/guile/site
  checking for a BSD-compatible install... /usr/bin/install -c
  checking whether build environment is sane... yes
  checking for a thread-safe mkdir -p... /bin/mkdir -p
  checking for gawk... gawk
  checking whether make sets $(MAKE)... yes
  checking for gcc... gcc
  checking whether the C compiler works... yes
  checking for C compiler default output file name... a.out
  checking for suffix of executables... 
  checking whether we are cross compiling... no
  checking for suffix of object files... o
  checking whether we are using the GNU C compiler... yes
  checking whether gcc accepts -g... yes
  checking for gcc option to accept ISO C89... none needed
  checking for style of include used by make... GNU
  checking dependency style of gcc... gcc3
  checking for a sed that does not truncate output... /bin/sed
  checking build system type... i686-pc-linux-gnu
  checking host system type... i686-pc-linux-gnu
  checking how to print strings... printf
  checking for a sed that does not truncate output... (cached) /bin/sed
  checking for grep that handles long lines and -e... /bin/grep
  checking for egrep... /bin/grep -E
  checking for fgrep... /bin/grep -F
  checking for ld used by gcc... /usr/bin/ld
  checking if the linker (/usr/bin/ld) is GNU ld... yes
  checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
  checking the name lister (/usr/bin/nm -B) interface... BSD nm
  checking whether ln -s works... yes
  checking the maximum length of command line arguments... 1572864
  checking whether the shell understands some XSI constructs... yes
  checking whether the shell understands "+="... yes
  checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop
  checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
  checking for /usr/bin/ld option to reload object files... -r
  checking for objdump... objdump
  checking how to recognize dependent libraries... pass_all
  checking for dlltool... no
  checking how to associate runtime and link libraries... printf %s\n
  checking for ar... ar
  checking for archiver @FILE support... @
  checking for strip... strip
  checking for ranlib... ranlib
  checking command to parse /usr/bin/nm -B output from gcc object... ok
  checking for sysroot... no
  checking for mt... mt
  checking if mt is a manifest tool... no
  checking how to run the C preprocessor... gcc -E
  checking for ANSI C header files... yes
  checking for sys/types.h... yes
  checking for sys/stat.h... yes
  checking for stdlib.h... yes
  checking for string.h... yes
  checking for memory.h... yes
  checking for strings.h... yes
  checking for inttypes.h... yes
  checking for stdint.h... yes
  checking for unistd.h... yes
  checking for dlfcn.h... yes
  checking for objdir... .libs
  checking if gcc supports -fno-rtti -fno-exceptions... no
  checking for gcc option to produce PIC... -fPIC -DPIC
  checking if gcc PIC flag -fPIC -DPIC works... yes
  checking if gcc static flag -static works... yes
  checking if gcc supports -c -o file.o... yes
  checking if gcc supports -c -o file.o... (cached) yes
  checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
  checking whether -lc should be explicitly linked in... no
  checking dynamic linker characteristics... GNU/Linux ld.so
  checking how to hardcode library paths into programs... immediate
  checking for shl_load... no
  checking for shl_load in -ldld... no
  checking for dlopen... no
  checking for dlopen in -ldl... yes
  checking whether a program can dlopen itself... yes
  checking whether a statically linked program can dlopen itself... no
  checking whether stripping libraries is possible... yes
  checking if libtool supports shared libraries... yes
  checking whether to build shared libraries... yes
  checking whether to build static libraries... no
  checking for ANSI C header files... (cached) yes
  checking for stdlib.h... (cached) yes
  checking for string.h... (cached) yes
  checking for strings.h... (cached) yes
  checking lightning.h usability... no
  checking lightning.h presence... no
  checking for lightning.h... no
  configure: WARNING: GNU lightning not found; GNU lightning enhancements not compiled.
  checking for an ANSI C-conforming const... yes
  checking for inline... inline
  checking for size_t... yes
  checking size of void *... 4
  checking for stdlib.h... (cached) yes
  checking for GNU libc compatible malloc... yes
  checking for stdlib.h... (cached) yes
  checking for GNU libc compatible realloc... yes
  checking for strncasecmp... yes
  checking for gperf... /usr/bin/gperf
  checking for guile... /usr/bin/guile
  checking for guile-config... /usr/bin/guile-config
  checking for guile-tools... /usr/bin/guile-tools
  checking for ld used by GCC... /usr/bin/ld
  checking if the linker (/usr/bin/ld) is GNU ld... yes
  checking for shared library run path origin... done
  checking libguile compile flags...   
  checking libguile link flags...    -lguile -lltdl -lgmp -lcrypt -lm -lltdl
  checking for guile-snarf... /usr/bin/guile-snarf
  checking for guild... /usr/bin/guild
  checking for Guile site directory... guile-config info: no such build-info: sitedir
  /usr/share/guile/site
  checking for scm_take_u8vector... yes
  checking for scm_c_locale_stringn_to_number... yes
  checking for scm_i_mem2number... no
  checking for scm_i_input_error... yes
  checking for scm_i_read_array... yes
  checking for scm_charnames... yes
  checking for scm_charnums... yes
  checking for scm_from_stringn... no
  checking for scm_get_byte_or_eof... no
  checking for scm_unget_byte... no
  checking for scm_from_utf32_stringn... no
  checking for scm_gc_malloc_pointerless... no
  checking for scm_t_wchar... no
  configure: creating ./config.status
  config.status: creating Makefile
  config.status: creating pre-inst-guile
  config.status: creating src/Makefile
  config.status: creating tests/Makefile
  config.status: creating modules/Makefile
  config.status: creating doc/Makefile
  config.status: creating config.h
  config.status: config.h is unchanged
  config.status: creating src/reader-config.h
  config.status: src/reader-config.h is unchanged
  config.status: executing depfiles commands
  config.status: executing libtool commands
  config.status: executing pre-inst-guile-exec commands

  $ make
  make  all-recursive
  make[1]: Entering directory `/usr/local/src/guile-reader-0.6'
  Making all in src
  make[2]: Entering directory `/usr/local/src/guile-reader-0.6/src'
  cat token-readers.h | \
        ./extract-token-readers.sh | \
    /usr/bin/gperf -t -C -N _scm_token_reader_lookup > token-reader-lookup.c
  cat token-readers.h | \
   ./extract-token-readers.sh --no-gperf-header | \
          cut -f 1 -d , | sort | sed -e's/^\(.*\)$/"\1",/g' > token-reader-list.c
  cat reader.h | \
   ./extract-make-reader-flags.sh | \
        /usr/bin/gperf -t -C -N _scm_to_make_reader_flag > make-reader-flags.c
  /usr/bin/guile-snarf -o reader-lib.x reader-lib.c -DHAVE_CONFIG_H   -I. -I. -I.. 
  /usr/bin/guile-snarf -o token-readers.x token-readers.c -DHAVE_CONFIG_H   -I. -I. -I.. 
  /usr/bin/guile-snarf -o reader.x reader.c -DHAVE_CONFIG_H   -I. -I. -I.. 
  make  all-am
  make[3]: Entering directory `/usr/local/src/guile-reader-0.6/src'
  /bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I. -I. -I..   -Winline -Wdeclaration-after-statement -Wcast-align -Wpointer-arith -Wall -g -O2 -MT reader.lo -MD -MP -MF .deps/reader.Tpo -c -o reader.lo reader.c
  libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -I.. -Winline -Wdeclaration-after-statement -Wcast-align -Wpointer-arith -Wall -g -O2 -MT reader.lo -MD -MP -MF .deps/reader.Tpo -c reader.c  -fPIC -DPIC -o .libs/reader.o
  mv -f .deps/reader.Tpo .deps/reader.Plo
  /bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I. -I. -I..   -Winline -Wdeclaration-after-statement -Wcast-align -Wpointer-arith -Wall -g -O2 -MT token-readers.lo -MD -MP -MF .deps/token-readers.Tpo -c -o token-readers.lo token-readers.c
  libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -I.. -Winline -Wdeclaration-after-statement -Wcast-align -Wpointer-arith -Wall -g -O2 -MT token-readers.lo -MD -MP -MF .deps/token-readers.Tpo -c token-readers.c  -fPIC -DPIC -o .libs/token-readers.o
  In file included from token-readers.c:502:0:
  symbol-token-reader.c: In function 'scm_read_guile_number':
  symbol-token-reader.c:46:15: warning: unused variable 'pt' [-Wunused-variable]
  symbol-token-reader.c: In function 'scm_read_guile_mixed_case_symbol':
  symbol-token-reader.c:77:15: warning: unused variable 'pt' [-Wunused-variable]
  In file included from token-readers.c:515:0:
  symbol-token-reader.c: In function 'scm_read_r5rs_lower_case_number':
  symbol-token-reader.c:46:15: warning: unused variable 'pt' [-Wunused-variable]
  symbol-token-reader.c: In function 'scm_read_r5rs_lower_case_symbol':
  symbol-token-reader.c:77:15: warning: unused variable 'pt' [-Wunused-variable]
  In file included from token-readers.c:526:0:
  symbol-token-reader.c: In function 'scm_read_r5rs_upper_case_number':
  symbol-token-reader.c:46:15: warning: unused variable 'pt' [-Wunused-variable]
  symbol-token-reader.c: In function 'scm_read_r5rs_upper_case_symbol':
  symbol-token-reader.c:77:15: warning: unused variable 'pt' [-Wunused-variable]
  In file included from token-readers.c:539:0:
  symbol-token-reader.c: In function 'scm_read_r6rs_number':
  symbol-token-reader.c:46:15: warning: unused variable 'pt' [-Wunused-variable]
  symbol-token-reader.c: In function 'scm_read_r6rs_symbol':
  symbol-token-reader.c:77:15: warning: unused variable 'pt' [-Wunused-variable]
  In file included from token-readers.c:551:0:
  symbol-token-reader.c: In function 'scm_read_brace_free_number':
  symbol-token-reader.c:46:15: warning: unused variable 'pt' [-Wunused-variable]
  symbol-token-reader.c: In function 'scm_read_brace_free_symbol':
  symbol-token-reader.c:77:15: warning: unused variable 'pt' [-Wunused-variable]
  mv -f .deps/token-readers.Tpo .deps/token-readers.Plo
  /bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I. -I. -I..   -Winline -Wdeclaration-after-statement -Wcast-align -Wpointer-arith -Wall -g -O2 -MT reader-lib.lo -MD -MP -MF .deps/reader-lib.Tpo -c -o reader-lib.lo reader-lib.c
  libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -I.. -Winline -Wdeclaration-after-statement -Wcast-align -Wpointer-arith -Wall -g -O2 -MT reader-lib.lo -MD -MP -MF .deps/reader-lib.Tpo -c reader-lib.c  -fPIC -DPIC -o .libs/reader-lib.o
  mv -f .deps/reader-lib.Tpo .deps/reader-lib.Plo
  /bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I. -I. -I..   -Winline -Wdeclaration-after-statement -Wcast-align -Wpointer-arith -Wall -g -O2 -MT compat.lo -MD -MP -MF .deps/compat.Tpo -c -o compat.lo compat.c
  libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -I.. -Winline -Wdeclaration-after-statement -Wcast-align -Wpointer-arith -Wall -g -O2 -MT compat.lo -MD -MP -MF .deps/compat.Tpo -c compat.c  -fPIC -DPIC -o .libs/compat.o
  mv -f .deps/compat.Tpo .deps/compat.Plo
  /bin/bash ../libtool  --tag=CC   --mode=link gcc  -Winline -Wdeclaration-after-statement -Wcast-align -Wpointer-arith -Wall -g -O2 -module -version-info 1:0:0 -lguile -lltdl -lgmp -lcrypt -lm -lltdl  -o libguile-reader.la -rpath /usr/local/packages/guile-reader-0.6/lib reader.lo token-readers.lo reader-lib.lo compat.lo  
  libtool: link: gcc -shared  -fPIC -DPIC  .libs/reader.o .libs/token-readers.o .libs/reader-lib.o .libs/compat.o   -lguile -lgmp -lcrypt -lm -lltdl  -O2   -Wl,-soname -Wl,libguile-reader.so.1 -o .libs/libguile-reader.so.1.0.0
  libtool: link: (cd ".libs" && rm -f "libguile-reader.so.1" && ln -s "libguile-reader.so.1.0.0" "libguile-reader.so.1")
  libtool: link: (cd ".libs" && rm -f "libguile-reader.so" && ln -s "libguile-reader.so.1.0.0" "libguile-reader.so")
  libtool: link: ( cd ".libs" && rm -f "libguile-reader.la" && ln -s "../libguile-reader.la" "libguile-reader.la" )
  make[3]: Leaving directory `/usr/local/src/guile-reader-0.6/src'
  make[2]: Leaving directory `/usr/local/src/guile-reader-0.6/src'
  Making all in modules
  make[2]: Entering directory `/usr/local/src/guile-reader-0.6/modules'
  /bin/mkdir -p `dirname "system/reader.scm"`
  /bin/sed -e 's|[@]libdir[@]|/usr/local/packages/guile-reader-0.6/lib|g' < "system/reader.in" > "system/reader.scm.tmp"
  mv "system/reader.scm.tmp" "system/reader.scm"
  make[2]: Leaving directory `/usr/local/src/guile-reader-0.6/modules'
  Making all in doc
  make[2]: Entering directory `/usr/local/src/guile-reader-0.6/doc'
  main='(module-ref (resolve-module '\''(extract-doc)) '\'main')' &&     \
         GUILE_AUTO_COMPILE=0                                                    \
         ../pre-inst-guile -l ./extract-doc.scm          \
            -c "(apply $main (cdr (command-line)))" ../src/token-readers.h
  Backtrace:
  In ice-9/boot-9.scm:
   149: 13 [catch #t #<catch-closure 934f280> ...]
   157: 12 [#<procedure 93188c0 ()>]
  In unknown file:
     ?: 11 [catch-closure]
  In ice-9/boot-9.scm:
    63: 10 [call-with-prompt prompt0 ...]
  In ice-9/eval.scm:
   407: 9 [eval # #]
  In unknown file:
     ?: 8 [call-with-input-string "(apply (module-ref (resolve-module '(extract-doc)) 'main) (cdr (command-line)))" ...]
  In ice-9/command-line.scm:
   174: 7 [#<procedure 93512e0 at ice-9/command-line.scm:169:3 (port)> #<input: string 9235d20>]
  In unknown file:
     ?: 6 [eval (apply (module-ref # #) (cdr #)) #<directory (guile-user) 92f76c0>]
  In ice-9/eval.scm:
   407: 5 [eval # #]
  In ice-9/r4rs.scm:
   167: 4 [call-with-output-file "token-reader-doc.texi" ...]
   178: 3 [with-output-to-port #<variable 9444c80 value: #<output: file /dev/pts/11>> ...]
  In ice-9/eval.scm:
   407: 2 [eval # #]
   368: 1 [eval # #]
  In unknown file:
     ?: 0 [sort # #<procedure 9473d38 at ice-9/eval.scm:396:13 (a b)>]

  ERROR: In procedure sort:
  ERROR: In procedure list-copy: Wrong type argument in position 1: (whitespace vector string srfi62-sexp-comment srfi-4 srfi30-block-comment square-bracket-sexp skribe-exp sexp semicolon-comment scsh-block-comment r6rs-syntax-quote-quasiquote-unquote r6rs-symbol-upper-case r6rs-symbol-misc-chars r6rs-symbol-lower-case r6rs-number r5rs-upper-case-number r5rs-lower-case-symbol-upper-case r5rs-lower-case-symbol-misc-chars r5rs-lower-case-symbol-lower-case r5rs-lower-case-number quote-quasiquote-unquote number+radix keyword guile-symbol-upper-case guile-symbol-misc-chars guile-symbol-lower-case guile-number guile-extended-symbol guile-bit-vector curly-brace-sexp character brace-free-symbol-upper-case brace-free-symbol-misc-chars brace-free-symbol-lower-case brace-free-number boolean-srfi-4 bo
 olean . #t)
  make[2]: *** [token-reader-doc.texi] Error 1
  make[2]: Leaving directory `/usr/local/src/guile-reader-0.6/doc'
  make[1]: *** [all-recursive] Error 1
  make[1]: Leaving directory `/usr/local/src/guile-reader-0.6'
  make: *** [all] Error 2

  $




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Guile-reader install fail.
  2012-05-30 19:18 Guile-reader install fail R. Clayton
@ 2012-05-31 14:15 ` Ludovic Courtès
  2012-06-01  3:38   ` R. Clayton
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2012-05-31 14:15 UTC (permalink / raw)
  To: R. Clayton; +Cc: guile-user

Hi,

rvclayton@verizon.net (R. Clayton) skribis:

> I'm trying to install guile-reader 0.6 on a debian testing system updated
> weekly using guile 2.0.5, and I've run into a problem (see the end of the
> message for the whole sad story):
>   checking for guile... /usr/bin/guile

[...]

>   checking for scm_from_stringn... no
>   checking for scm_get_byte_or_eof... no
>   checking for scm_unget_byte... no
>   checking for scm_from_utf32_stringn... no
>   checking for scm_gc_malloc_pointerless... no
>   checking for scm_t_wchar... no

It looks like you’re using libguile from Guile 1.8 (otherwise you’d have
only “yes” above), perhaps with /usr/bin/guile from Guile 2.0.

Could it be that your $LD_LIBRARY_PATH leads ‘configure’ to use libguile
from Guile 1.8 somehow, or perhaps ‘guile-config’ from 1.8?  What’s the
value of GUILE_LDFLAGS in ‘config.log’?

Thanks,
Ludo’.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Guile-reader install fail.
  2012-05-31 14:15 ` Ludovic Courtès
@ 2012-06-01  3:38   ` R. Clayton
  0 siblings, 0 replies; 3+ messages in thread
From: R. Clayton @ 2012-06-01  3:38 UTC (permalink / raw)
  To: guile-user

  It looks like you’re using libguile from Guile 1.8 (otherwise you’d have
  only “yes” above), perhaps with /usr/bin/guile from Guile 2.0.

Oh, I am an idiot.  I installed guile 2 and assumed guile 1.8 would somehow
disappear.  Clearing out guile 1.8 packages solved the problem.  Thanks for
your help.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-06-01  3:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-30 19:18 Guile-reader install fail R. Clayton
2012-05-31 14:15 ` Ludovic Courtès
2012-06-01  3:38   ` R. Clayton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).