unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* guile build problem with gcc 4.6.0
@ 2011-03-12 15:49 Douglas Mencken
  2011-03-13 19:26 ` Andy Wingo
  0 siblings, 1 reply; 7+ messages in thread
From: Douglas Mencken @ 2011-03-12 15:49 UTC (permalink / raw)
  To: bug-guile

GC 4.6.0 introduced new warning: unused-but-set-variable, so with
-Werror it's now impossible to build guile.

/bin/bash ../libtool  --tag=CC   --mode=compile
powerpc-gnu-linux-uclibc-gcc -DHAVE_CONFIG_H   -I.. -I.. -I..
-pthread -g -O2 -Wall -Wmissing-prototypes -Werror -MT
libguile_la-async.lo -MD -MP -MF .deps/libguile_la-async.Tpo -c -o
libguile_la-async.lo `test -f 'async.c' || echo './'`async.c
libtool: compile:  powerpc-gnu-linux-uclibc-gcc -DHAVE_CONFIG_H -I..
-I.. -I.. -pthread -g -O2 -Wall -Wmissing-prototypes -Werror -MT
libguile_la-async.lo -MD -MP -MF .deps/libguile_la-async.Tpo -c
async.c  -fPIC -DPIC -o .libs/libguile_la-async.o
async.c: In function 'scm_i_queue_async_cell':
async.c:243:14: error: variable 'count' set but not used
[-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors

make[3]: *** [libguile_la-async.lo] Error 1



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

* Re: guile build problem with gcc 4.6.0
  2011-03-12 15:49 guile build problem with gcc 4.6.0 Douglas Mencken
@ 2011-03-13 19:26 ` Andy Wingo
  2011-03-14 16:51   ` Douglas Mencken
  0 siblings, 1 reply; 7+ messages in thread
From: Andy Wingo @ 2011-03-13 19:26 UTC (permalink / raw)
  To: Douglas Mencken; +Cc: bug-guile

On Sat 12 Mar 2011 16:49, Douglas Mencken <dougmencken@gmail.com> writes:

> GC 4.6.0 introduced new warning: unused-but-set-variable, so with
> -Werror it's now impossible to build guile.

This will generally be the case as new warnings are added, of course.

Can you send a log of "make -k" ?  Then we can fix them all in one go.

Andy
-- 
http://wingolog.org/



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

* Re: guile build problem with gcc 4.6.0
  2011-03-13 19:26 ` Andy Wingo
@ 2011-03-14 16:51   ` Douglas Mencken
  2011-03-17 10:46     ` Andy Wingo
  0 siblings, 1 reply; 7+ messages in thread
From: Douglas Mencken @ 2011-03-14 16:51 UTC (permalink / raw)
  To: Andy Wingo; +Cc: bug-guile

[-- Attachment #1: Type: text/plain, Size: 139 bytes --]

> Can you send a log of "make -k" ?  Then we can fix them all in one go.

Of course. guile 2.0.0, make -k output (stdout+stderr) attached.

[-- Attachment #2: make_k_log --]
[-- Type: application/octet-stream, Size: 23293 bytes --]

make  all-recursive
make[1]: Entering directory `/root/build-farm/guile-2.0.0.srcpkg'
Making all in lib
make[2]: Entering directory `/root/build-farm/guile-2.0.0.srcpkg/lib'
  GEN    alloca.h
  GEN    arg-nonnull.h
  GEN    c++defs.h
  GEN    warn-on-use.h
  GEN    arpa/inet.h
  GEN    iconv.h
  GEN    locale.h
  GEN    math.h
  GEN    netdb.h
  GEN    stdio.h
  GEN    stdlib.h
  GEN    string.h
  GEN    strings.h
  GEN    sys/file.h
  GEN    sys/socket.h
  GEN    sys/stat.h
  GEN    sys/time.h
  GEN    time.h
  GEN    unistd.h
  GEN    unused-parameter.h
  GEN    wchar.h
make  all-recursive
make[3]: Entering directory `/root/build-farm/guile-2.0.0.srcpkg/lib'
make[4]: Entering directory `/root/build-farm/guile-2.0.0.srcpkg/lib'
  CC     c-ctype.lo
  CC     c-strcasecmp.lo
  CC     c-strncasecmp.lo
  CC     close-hook.lo
  CC     full-read.lo
  CC     full-write.lo
  CC     malloca.lo
  CC     nproc.lo
  CC     sockets.lo
  CC     striconveh.lo
  CC     unistr/u8-mbtouc.lo
  CC     unistr/u8-mbtouc-aux.lo
  CC     unistr/u8-mbtouc-unsafe.lo
  CC     unistr/u8-mbtouc-unsafe-aux.lo
  CC     version-etc.lo
  CC     version-etc-fsf.lo
  CC     asnprintf.lo
  CC     canonicalize-lgpl.lo
  CC     iconv.lo
  CC     iconv_close.lo
  CC     iconv_open.lo
  CC     isinf.lo
  CC     printf-args.lo
  CC     printf-parse.lo
  CC     safe-read.lo
  CC     safe-write.lo
  CC     strftime.lo
  CC     vasnprintf.lo
  CCLD   libgnu.la
make[4]: Leaving directory `/root/build-farm/guile-2.0.0.srcpkg/lib'
make[3]: Leaving directory `/root/build-farm/guile-2.0.0.srcpkg/lib'
make[2]: Leaving directory `/root/build-farm/guile-2.0.0.srcpkg/lib'
Making all in meta
make[2]: Entering directory `/root/build-farm/guile-2.0.0.srcpkg/meta'
guile="/usr/bin/`echo guile | /bin/sed -e 's,x,x,'`" ;	\
cat ./guile-config.in							\
| /bin/sed -e "s,@pkgconfigdir@,/usr/lib/pkgconfig,g ;			\
	     s,@""PKG_CONFIG@,/usr/bin/pkg-config,g ;				\
	     s,@installed_guile@,$guile,g"				\
> guile-config.out
mv guile-config.out guile-config
chmod +x guile-config
make[2]: Leaving directory `/root/build-farm/guile-2.0.0.srcpkg/meta'
Making all in libguile
make[2]: Entering directory `/root/build-farm/guile-2.0.0.srcpkg/libguile'
  GEN    libpath.h
  GEN    gen-scmconfig.o
  GEN    gen-scmconfig
  GEN    scmconfig.h
  GEN    vm-i-system.i
  GEN    vm-i-scheme.i
  GEN    vm-i-loader.i
  SNARF  alist.x
  SNARF  arbiters.x
  SNARF  array-handle.x
  SNARF  array-map.x
  SNARF  arrays.x
  SNARF  async.x
  SNARF  backtrace.x
  SNARF  boolean.x
  SNARF  bitvectors.x
  SNARF  bytevectors.x
  SNARF  chars.x
  SNARF  control.x
  SNARF  continuations.x
  SNARF  debug.x
  SNARF  deprecated.x
  SNARF  deprecation.x
  SNARF  dynl.x
  SNARF  dynwind.x
  SNARF  eq.x
  SNARF  error.x
  SNARF  eval.x
  SNARF  evalext.x
  SNARF  expand.x
  SNARF  extensions.x
  SNARF  feature.x
  SNARF  fluids.x
  SNARF  foreign.x
  SNARF  fports.x
  SNARF  gc-malloc.x
  SNARF  gc.x
  SNARF  gettext.x
  SNARF  generalized-arrays.x
  SNARF  generalized-vectors.x
  SNARF  goops.x
  SNARF  gsubr.x
  SNARF  guardians.x
  SNARF  hash.x
  SNARF  hashtab.x
  SNARF  hooks.x
  SNARF  i18n.x
i18n.c:120:0: warning: "LC_CTYPE_MASK" redefined [enabled by default]
/usr/include/locale.h:166:0: note: this is the location of the previous definition
i18n.c:121:0: warning: "LC_COLLATE_MASK" redefined [enabled by default]
/usr/include/locale.h:169:0: note: this is the location of the previous definition
i18n.c:122:0: warning: "LC_MESSAGES_MASK" redefined [enabled by default]
/usr/include/locale.h:171:0: note: this is the location of the previous definition
i18n.c:123:0: warning: "LC_MONETARY_MASK" redefined [enabled by default]
/usr/include/locale.h:170:0: note: this is the location of the previous definition
i18n.c:124:0: warning: "LC_NUMERIC_MASK" redefined [enabled by default]
/usr/include/locale.h:167:0: note: this is the location of the previous definition
i18n.c:125:0: warning: "LC_TIME_MASK" redefined [enabled by default]
/usr/include/locale.h:168:0: note: this is the location of the previous definition
i18n.c:158:0: warning: "LC_ALL_MASK" redefined [enabled by default]
/usr/include/locale.h:193:0: note: this is the location of the previous definition
  SNARF  init.x
  SNARF  ioext.x
  SNARF  keywords.x
  SNARF  list.x
  SNARF  load.x
  SNARF  macros.x
  SNARF  mallocs.x
  SNARF  memoize.x
  SNARF  modules.x
  SNARF  numbers.x
  SNARF  objprop.x
  SNARF  options.x
  SNARF  pairs.x
  SNARF  ports.x
  SNARF  print.x
  SNARF  procprop.x
  SNARF  procs.x
  SNARF  promises.x
  SNARF  r6rs-ports.x
  SNARF  random.x
  SNARF  rdelim.x
  SNARF  read.x
  SNARF  root.x
  SNARF  rw.x
  SNARF  scmsigs.x
  SNARF  script.x
  SNARF  simpos.x
  SNARF  smob.x
  SNARF  sort.x
  SNARF  srcprop.x
  SNARF  srfi-1.x
  SNARF  srfi-4.x
  SNARF  srfi-13.x
  SNARF  srfi-14.x
  SNARF  srfi-60.x
  SNARF  stackchk.x
  SNARF  stacks.x
  SNARF  stime.x
  SNARF  strings.x
  SNARF  strorder.x
  SNARF  strports.x
  SNARF  struct.x
  SNARF  symbols.x
  SNARF  threads.x
  SNARF  throw.x
  SNARF  trees.x
  SNARF  uniform.x
  SNARF  values.x
  SNARF  variable.x
  SNARF  vectors.x
  SNARF  version.x
  SNARF  vports.x
  SNARF  weaks.x
  SNARF  frames.x
  SNARF  instructions.x
  SNARF  objcodes.x
  SNARF  programs.x
  SNARF  vm.x
  SNARF  filesys.x
  SNARF  posix.x
  SNARF  net_db.x
  SNARF  socket.x
  SNARF  regex-posix.x
make  all-am
make[3]: Entering directory `/root/build-farm/guile-2.0.0.srcpkg/libguile'
  CC     libguile_2.0_la-alist.lo
  CC     libguile_2.0_la-arbiters.lo
  CC     libguile_2.0_la-array-handle.lo
  CC     libguile_2.0_la-array-map.lo
  CC     libguile_2.0_la-arrays.lo
arrays.c: In function 'scm_i_read_array':
arrays.c:863:7: warning: variable 'got_rank' set but not used [-Wunused-but-set-variable]
  CC     libguile_2.0_la-async.lo
  CC     libguile_2.0_la-backtrace.lo
backtrace.c: In function 'display_backtrace_body':
backtrace.c:434:15: warning: variable 'indent_p' set but not used [-Wunused-but-set-variable]
  CC     libguile_2.0_la-boolean.lo
  CC     libguile_2.0_la-bitvectors.lo
  CC     libguile_2.0_la-bytevectors.lo
In file included from bytevectors.c:41:0:
../lib/striconveh.h:22:5: warning: "HAVE_ICONV" is not defined [-Wundef]
In file included from bytevectors.c:41:0:
../lib/striconveh.h:34:5: warning: "HAVE_ICONV" is not defined [-Wundef]
  CC     libguile_2.0_la-chars.lo
  CC     libguile_2.0_la-control.lo
  CC     libguile_2.0_la-continuations.lo
  CC     libguile_2.0_la-debug.lo
  CC     libguile_2.0_la-deprecated.lo
  CC     libguile_2.0_la-deprecation.lo
  CC     libguile_2.0_la-dynwind.lo
  CC     libguile_2.0_la-eq.lo
  CC     libguile_2.0_la-error.lo
  CC     libguile_2.0_la-eval.lo
  CC     libguile_2.0_la-evalext.lo
  CC     libguile_2.0_la-expand.lo
  CC     libguile_2.0_la-extensions.lo
  CC     libguile_2.0_la-feature.lo
  CC     libguile_2.0_la-fluids.lo
  CC     libguile_2.0_la-foreign.lo
  CC     libguile_2.0_la-fports.lo
  CC     libguile_2.0_la-frames.lo
  CC     libguile_2.0_la-gc-malloc.lo
  CC     libguile_2.0_la-gc.lo
gc.c: In function 'scm_gc_stats':
gc.c:281:33: warning: variable 'bytes_since_gc' set but not used [-Wunused-but-set-variable]
  CC     libguile_2.0_la-gdbint.lo
  CC     libguile_2.0_la-gettext.lo
  CC     libguile_2.0_la-generalized-arrays.lo
  CC     libguile_2.0_la-generalized-vectors.lo
  CC     libguile_2.0_la-goops.lo
  CC     libguile_2.0_la-gsubr.lo
  CC     libguile_2.0_la-guardians.lo
  CC     libguile_2.0_la-hash.lo
  CC     libguile_2.0_la-hashtab.lo
  CC     libguile_2.0_la-hooks.lo
  CC     libguile_2.0_la-i18n.lo
i18n.c:120:0: warning: "LC_CTYPE_MASK" redefined [enabled by default]
/usr/include/locale.h:166:0: note: this is the location of the previous definition
i18n.c:121:0: warning: "LC_COLLATE_MASK" redefined [enabled by default]
/usr/include/locale.h:169:0: note: this is the location of the previous definition
i18n.c:122:0: warning: "LC_MESSAGES_MASK" redefined [enabled by default]
/usr/include/locale.h:171:0: note: this is the location of the previous definition
i18n.c:123:0: warning: "LC_MONETARY_MASK" redefined [enabled by default]
/usr/include/locale.h:170:0: note: this is the location of the previous definition
i18n.c:124:0: warning: "LC_NUMERIC_MASK" redefined [enabled by default]
/usr/include/locale.h:167:0: note: this is the location of the previous definition
i18n.c:125:0: warning: "LC_TIME_MASK" redefined [enabled by default]
/usr/include/locale.h:168:0: note: this is the location of the previous definition
i18n.c:158:0: warning: "LC_ALL_MASK" redefined [enabled by default]
/usr/include/locale.h:193:0: note: this is the location of the previous definition
i18n.c: In function 'scm_make_locale':
i18n.c:610:16: warning: variable 'c_base_locale' set but not used [-Wunused-but-set-variable]
i18n.c: In function 'chr_to_case':
i18n.c:1119:7: warning: variable 'str' set but not used [-Wunused-but-set-variable]
  CC     libguile_2.0_la-init.lo
  CC     libguile_2.0_la-inline.lo
  CC     libguile_2.0_la-instructions.lo
  CC     libguile_2.0_la-ioext.lo
  CC     libguile_2.0_la-keywords.lo
  CC     libguile_2.0_la-list.lo
  CC     libguile_2.0_la-load.lo
  CC     libguile_2.0_la-macros.lo
  CC     libguile_2.0_la-mallocs.lo
  CC     libguile_2.0_la-memoize.lo
  CC     libguile_2.0_la-modules.lo
  CC     libguile_2.0_la-null-threads.lo
  CC     libguile_2.0_la-numbers.lo
numbers.c: In function 'scm_log':
numbers.c:9445:28: warning: "HAVE_CLOG" is not defined [-Wundef]
numbers.c: In function 'scm_exp':
numbers.c:9530:28: warning: "HAVE_CEXP" is not defined [-Wundef]
  CC     libguile_2.0_la-objcodes.lo
  CC     libguile_2.0_la-objprop.lo
  CC     libguile_2.0_la-options.lo
  CC     libguile_2.0_la-pairs.lo
  CC     libguile_2.0_la-poll.lo
  CC     libguile_2.0_la-ports.lo
In file included from ports.c:37:0:
../lib/striconveh.h:22:5: warning: "HAVE_ICONV" is not defined [-Wundef]
In file included from ports.c:37:0:
../lib/striconveh.h:34:5: warning: "HAVE_ICONV" is not defined [-Wundef]
ports.c: In function 'register_finalizer_for_port':
ports.c:525:8: warning: variable 'port_type' set but not used [-Wunused-but-set-variable]
  CC     libguile_2.0_la-print.lo
  CC     libguile_2.0_la-procprop.lo
  CC     libguile_2.0_la-procs.lo
  CC     libguile_2.0_la-programs.lo
  CC     libguile_2.0_la-promises.lo
  CC     libguile_2.0_la-r6rs-ports.lo
  CC     libguile_2.0_la-random.lo
  CC     libguile_2.0_la-rdelim.lo
  CC     libguile_2.0_la-read.lo
  CC     libguile_2.0_la-root.lo
  CC     libguile_2.0_la-rw.lo
  CC     libguile_2.0_la-scmsigs.lo
  CC     libguile_2.0_la-script.lo
  CC     libguile_2.0_la-simpos.lo
  CC     libguile_2.0_la-smob.lo
  CC     libguile_2.0_la-sort.lo
  CC     libguile_2.0_la-srcprop.lo
  CC     libguile_2.0_la-srfi-1.lo
  CC     libguile_2.0_la-srfi-4.lo
  CC     libguile_2.0_la-srfi-13.lo
  CC     libguile_2.0_la-srfi-14.lo
  CC     libguile_2.0_la-srfi-60.lo
  CC     libguile_2.0_la-stackchk.lo
  CC     libguile_2.0_la-stacks.lo
stacks.c: In function 'scm_make_stack':
stacks.c:250:7: warning: variable 'maxp' set but not used [-Wunused-but-set-variable]
  CC     libguile_2.0_la-stime.lo
  CC     libguile_2.0_la-strings.lo
In file included from strings.c:33:0:
../lib/striconveh.h:22:5: warning: "HAVE_ICONV" is not defined [-Wundef]
In file included from strings.c:33:0:
../lib/striconveh.h:34:5: warning: "HAVE_ICONV" is not defined [-Wundef]
  CC     libguile_2.0_la-strorder.lo
  CC     libguile_2.0_la-strports.lo
  CC     libguile_2.0_la-struct.lo
  CC     libguile_2.0_la-symbols.lo
  CC     libguile_2.0_la-threads.lo
  CC     libguile_2.0_la-throw.lo
  CC     libguile_2.0_la-trees.lo
  CC     libguile_2.0_la-uniform.lo
  CC     libguile_2.0_la-values.lo
  CC     libguile_2.0_la-variable.lo
  CC     libguile_2.0_la-vectors.lo
  CC     libguile_2.0_la-version.lo
  CC     libguile_2.0_la-vm.lo
  CC     libguile_2.0_la-vports.lo
  CC     libguile_2.0_la-weaks.lo
  CC     dynl.lo
  CC     filesys.lo
filesys.c: In function 'scm_readdir':
filesys.c:848:12: warning: variable 'namlen' set but not used [-Wunused-but-set-variable]
  CC     posix.lo
posix.c: In function 'scm_nice':
posix.c:1716:7: warning: variable 'nice_value' set but not used [-Wunused-but-set-variable]
  CC     net_db.lo
  CC     socket.lo
  CC     regex-posix.lo
  CCLD   libguile-2.0.la
  CC     guile-guile.o
  CCLD   guile
./.libs/libguile-2.0.so: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
./.libs/libguile-2.0.so: warning: gethostbyaddr is obsolescent, use getaddrinfo() instead.
./.libs/libguile-2.0.so: warning: gethostbyname is obsolescent, use getnameinfo() instead.
  GEN    c-tokenize.o
  GEN    guile_filter_doc_snarfage
  SNARF  alist.doc
  SNARF  arbiters.doc
  SNARF  array-handle.doc
  SNARF  array-map.doc
  SNARF  arrays.doc
  SNARF  async.doc
  SNARF  backtrace.doc
  SNARF  boolean.doc
  SNARF  bitvectors.doc
  SNARF  bytevectors.doc
  SNARF  chars.doc
  SNARF  control.doc
  SNARF  continuations.doc
  SNARF  debug.doc
  SNARF  deprecated.doc
  SNARF  deprecation.doc
  SNARF  dynl.doc
  SNARF  dynwind.doc
  SNARF  eq.doc
  SNARF  error.doc
  SNARF  eval.doc
  SNARF  evalext.doc
  SNARF  expand.doc
  SNARF  extensions.doc
  SNARF  feature.doc
  SNARF  fluids.doc
  SNARF  foreign.doc
  SNARF  fports.doc
  SNARF  gc-malloc.doc
  SNARF  gc.doc
  SNARF  gettext.doc
  SNARF  generalized-arrays.doc
  SNARF  generalized-vectors.doc
  SNARF  goops.doc
  SNARF  gsubr.doc
  SNARF  guardians.doc
  SNARF  hash.doc
  SNARF  hashtab.doc
  SNARF  hooks.doc
  SNARF  i18n.doc
i18n.c:120:0: warning: "LC_CTYPE_MASK" redefined [enabled by default]
/usr/include/locale.h:166:0: note: this is the location of the previous definition
i18n.c:121:0: warning: "LC_COLLATE_MASK" redefined [enabled by default]
/usr/include/locale.h:169:0: note: this is the location of the previous definition
i18n.c:122:0: warning: "LC_MESSAGES_MASK" redefined [enabled by default]
/usr/include/locale.h:171:0: note: this is the location of the previous definition
i18n.c:123:0: warning: "LC_MONETARY_MASK" redefined [enabled by default]
/usr/include/locale.h:170:0: note: this is the location of the previous definition
i18n.c:124:0: warning: "LC_NUMERIC_MASK" redefined [enabled by default]
/usr/include/locale.h:167:0: note: this is the location of the previous definition
i18n.c:125:0: warning: "LC_TIME_MASK" redefined [enabled by default]
/usr/include/locale.h:168:0: note: this is the location of the previous definition
i18n.c:158:0: warning: "LC_ALL_MASK" redefined [enabled by default]
/usr/include/locale.h:193:0: note: this is the location of the previous definition
  SNARF  init.doc
  SNARF  ioext.doc
  SNARF  keywords.doc
  SNARF  list.doc
  SNARF  load.doc
  SNARF  macros.doc
  SNARF  mallocs.doc
  SNARF  memoize.doc
memoize.c:478:***Mismatching FUNC_NAME.  Should be: `#define FUNC_NAME s_"@prompt"'
  SNARF  modules.doc
  SNARF  numbers.doc
  SNARF  objprop.doc
  SNARF  options.doc
  SNARF  pairs.doc
pairs.c:147:***Missing or erroneous `#define FUNC_NAME s_scm_cdr'
pairs.c:150:***Missing or erroneous #undef for scm_car: 
pairs.c:155:***Missing or erroneous `#define FUNC_NAME s_scm_cddr'
pairs.c:158:***Missing or erroneous #undef for scm_cdar: 
pairs.c:163:***Missing or erroneous `#define FUNC_NAME s_scm_cadr'
pairs.c:166:***Missing or erroneous #undef for scm_caar: 
pairs.c:171:***Missing or erroneous `#define FUNC_NAME s_scm_cdddr'
pairs.c:174:***Missing or erroneous #undef for scm_cddar: 
pairs.c:179:***Missing or erroneous `#define FUNC_NAME s_scm_cdadr'
pairs.c:182:***Missing or erroneous #undef for scm_cdaar: 
pairs.c:187:***Missing or erroneous `#define FUNC_NAME s_scm_caddr'
pairs.c:190:***Missing or erroneous #undef for scm_cadar: 
pairs.c:195:***Missing or erroneous `#define FUNC_NAME s_scm_caadr'
pairs.c:198:***Missing or erroneous #undef for scm_caaar: 
pairs.c:203:***Missing or erroneous `#define FUNC_NAME s_scm_cddddr'
pairs.c:206:***Missing or erroneous #undef for scm_cdddar: 
pairs.c:211:***Missing or erroneous `#define FUNC_NAME s_scm_cddadr'
pairs.c:214:***Missing or erroneous #undef for scm_cddaar: 
pairs.c:219:***Missing or erroneous `#define FUNC_NAME s_scm_cdaddr'
pairs.c:222:***Missing or erroneous #undef for scm_cdadar: 
pairs.c:227:***Missing or erroneous `#define FUNC_NAME s_scm_cdaadr'
pairs.c:230:***Missing or erroneous #undef for scm_cdaaar: 
pairs.c:235:***Missing or erroneous `#define FUNC_NAME s_scm_cadddr'
pairs.c:238:***Missing or erroneous #undef for scm_caddar: 
pairs.c:243:***Missing or erroneous `#define FUNC_NAME s_scm_cadadr'
pairs.c:246:***Missing or erroneous #undef for scm_cadaar: 
pairs.c:251:***Missing or erroneous `#define FUNC_NAME s_scm_caaddr'
pairs.c:254:***Missing or erroneous #undef for scm_caadar: 
pairs.c:259:***Missing or erroneous `#define FUNC_NAME s_scm_caaadr'
pairs.c:262:***Missing or erroneous #undef for scm_caaaar: 
  SNARF  ports.doc
  SNARF  print.doc
  SNARF  procprop.doc
  SNARF  procs.doc
  SNARF  promises.doc
  SNARF  r6rs-ports.doc
  SNARF  random.doc
  SNARF  rdelim.doc
  SNARF  read.doc
  SNARF  root.doc
  SNARF  rw.doc
  SNARF  scmsigs.doc
  SNARF  script.doc
  SNARF  simpos.doc
  SNARF  smob.doc
  SNARF  sort.doc
  SNARF  srcprop.doc
  SNARF  srfi-1.doc
  SNARF  srfi-4.doc
  SNARF  srfi-13.doc
  SNARF  srfi-14.doc
  SNARF  srfi-60.doc
  SNARF  stackchk.doc
  SNARF  stacks.doc
  SNARF  stime.doc
  SNARF  strings.doc
  SNARF  strorder.doc
  SNARF  strports.doc
  SNARF  struct.doc
  SNARF  symbols.doc
  SNARF  threads.doc
  SNARF  throw.doc
  SNARF  trees.doc
  SNARF  uniform.doc
  SNARF  values.doc
  SNARF  variable.doc
  SNARF  vectors.doc
  SNARF  version.doc
  SNARF  vports.doc
  SNARF  weaks.doc
  SNARF  filesys.doc
  SNARF  posix.doc
  SNARF  net_db.doc
  SNARF  socket.doc
  SNARF  regex-posix.doc
  GEN    guile-procedures.texi
/root/build-farm/guile-2.0.0.srcpkg/libguile/.libs/lt-guile: can't load library 'libguile-2.0.so.22'
make[3]: *** [guile-procedures.texi] Error 1
make[3]: Target `all-am' not remade because of errors.
make[3]: Leaving directory `/root/build-farm/guile-2.0.0.srcpkg/libguile'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/build-farm/guile-2.0.0.srcpkg/libguile'
Making all in module
make[2]: Entering directory `/root/build-farm/guile-2.0.0.srcpkg/module'
  GUILEC ice-9/eval.go
/root/build-farm/guile-2.0.0.srcpkg/libguile/.libs/lt-guile: can't load library 'libguile-2.0.so.22'
make[2]: *** [ice-9/eval.go] Error 16
make[2]: Target `all' not remade because of errors.
make[2]: Leaving directory `/root/build-farm/guile-2.0.0.srcpkg/module'
Making all in guile-readline
make[2]: Entering directory `/root/build-farm/guile-2.0.0.srcpkg/guile-readline'
  SNARF  readline.x
make  all-am
make[3]: Entering directory `/root/build-farm/guile-2.0.0.srcpkg/guile-readline'
  CC     readline.lo
  CCLD   libguilereadline-v-18.la
  GUILEC ice-9/readline.go
/root/build-farm/guile-2.0.0.srcpkg/libguile/.libs/lt-guile: can't load library 'libguile-2.0.so.22'
make[3]: *** [ice-9/readline.go] Error 16
make[3]: Target `all-am' not remade because of errors.
make[3]: Leaving directory `/root/build-farm/guile-2.0.0.srcpkg/guile-readline'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/build-farm/guile-2.0.0.srcpkg/guile-readline'
Making all in examples
make[2]: Entering directory `/root/build-farm/guile-2.0.0.srcpkg/examples'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/build-farm/guile-2.0.0.srcpkg/examples'
Making all in emacs
make[2]: Entering directory `/root/build-farm/guile-2.0.0.srcpkg/emacs'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/build-farm/guile-2.0.0.srcpkg/emacs'
Making all in test-suite
make[2]: Entering directory `/root/build-farm/guile-2.0.0.srcpkg/test-suite'
Making all in standalone
make[3]: Entering directory `/root/build-farm/guile-2.0.0.srcpkg/test-suite/standalone'
  SNARF  test-asmobs-lib.x
make  all-am
make[4]: Entering directory `/root/build-farm/guile-2.0.0.srcpkg/test-suite/standalone'
  CC     libtest_asmobs_la-test-asmobs-lib.lo
  CCLD   libtest-asmobs.la
  CC     libtest_ffi_la-test-ffi-lib.lo
  CCLD   libtest-ffi.la
  CC     libtest_extensions_la-test-extensions-lib.lo
  CCLD   libtest-extensions.la
make[4]: Leaving directory `/root/build-farm/guile-2.0.0.srcpkg/test-suite/standalone'
make[3]: Leaving directory `/root/build-farm/guile-2.0.0.srcpkg/test-suite/standalone'
Making all in vm
make[3]: Entering directory `/root/build-farm/guile-2.0.0.srcpkg/test-suite/vm'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/build-farm/guile-2.0.0.srcpkg/test-suite/vm'
make[3]: Entering directory `/root/build-farm/guile-2.0.0.srcpkg/test-suite'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/build-farm/guile-2.0.0.srcpkg/test-suite'
make[2]: Leaving directory `/root/build-farm/guile-2.0.0.srcpkg/test-suite'
Making all in benchmark-suite
make[2]: Entering directory `/root/build-farm/guile-2.0.0.srcpkg/benchmark-suite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/build-farm/guile-2.0.0.srcpkg/benchmark-suite'
Making all in am
make[2]: Entering directory `/root/build-farm/guile-2.0.0.srcpkg/am'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/build-farm/guile-2.0.0.srcpkg/am'
Making all in doc
make[2]: Entering directory `/root/build-farm/guile-2.0.0.srcpkg/doc'
Making all in ref
make[3]: Entering directory `/root/build-farm/guile-2.0.0.srcpkg/doc/ref'
make  all-am
make[4]: Entering directory `/root/build-farm/guile-2.0.0.srcpkg/doc/ref'
restore=: && backupdir=".am$$" && \
am__cwd=`pwd` && CDPATH="${ZSH_VERSION+.}:" && cd . && \
rm -rf $backupdir && mkdir $backupdir && \
if (/bin/bash /root/build-farm/guile-2.0.0.srcpkg/build-aux/missing --run makeinfo --version) >/dev/null 2>&1; then \
  for f in guile.info guile.info-[0-9] guile.info-[0-9][0-9] guile.i[0-9] guile.i[0-9][0-9]; do \
    if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \
  done; \
else :; fi && \
cd "$am__cwd"; \
if /bin/bash /root/build-farm/guile-2.0.0.srcpkg/build-aux/missing --run makeinfo   -I . \
 -o guile.info guile.texi; \
then \
  rc=0; \
  CDPATH="${ZSH_VERSION+.}:" && cd .; \
else \
  rc=$?; \
  CDPATH="${ZSH_VERSION+.}:" && cd . && \
  $restore $backupdir/* `echo "./guile.info" | sed 's|[^/]*$||'`; \
fi; \
rm -rf $backupdir; exit $rc
make[4]: Leaving directory `/root/build-farm/guile-2.0.0.srcpkg/doc/ref'
make[3]: Leaving directory `/root/build-farm/guile-2.0.0.srcpkg/doc/ref'
Making all in r5rs
make[3]: Entering directory `/root/build-farm/guile-2.0.0.srcpkg/doc/r5rs'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/build-farm/guile-2.0.0.srcpkg/doc/r5rs'
make[3]: Entering directory `/root/build-farm/guile-2.0.0.srcpkg/doc'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/build-farm/guile-2.0.0.srcpkg/doc'
make[2]: Leaving directory `/root/build-farm/guile-2.0.0.srcpkg/doc'
make[2]: Entering directory `/root/build-farm/guile-2.0.0.srcpkg'
make[2]: Leaving directory `/root/build-farm/guile-2.0.0.srcpkg'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/build-farm/guile-2.0.0.srcpkg'
make: *** [all] Error 2

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

* Re: guile build problem with gcc 4.6.0
  2011-03-14 16:51   ` Douglas Mencken
@ 2011-03-17 10:46     ` Andy Wingo
  2011-03-17 16:58       ` Ludovic Courtès
  0 siblings, 1 reply; 7+ messages in thread
From: Andy Wingo @ 2011-03-17 10:46 UTC (permalink / raw)
  To: Douglas Mencken; +Cc: bug-guile, ludo

On Mon 14 Mar 2011 17:51, Douglas Mencken <dougmencken@gmail.com> writes:

>> Can you send a log of "make -k" ?  Then we can fix them all in one go.
>
> Of course. guile 2.0.0, make -k output (stdout+stderr) attached.

Thanks.  I fixed most of them, but a couple require more thought:

> i18n.c:120:0: warning: "LC_CTYPE_MASK" redefined [enabled by default]
> /usr/include/locale.h:166:0: note: this is the location of the previous definition
> i18n.c:121:0: warning: "LC_COLLATE_MASK" redefined [enabled by default]
> /usr/include/locale.h:169:0: note: this is the location of the previous definition
> i18n.c:122:0: warning: "LC_MESSAGES_MASK" redefined [enabled by default]
> /usr/include/locale.h:171:0: note: this is the location of the previous definition
> i18n.c:123:0: warning: "LC_MONETARY_MASK" redefined [enabled by default]
> /usr/include/locale.h:170:0: note: this is the location of the previous definition
> i18n.c:124:0: warning: "LC_NUMERIC_MASK" redefined [enabled by default]
> /usr/include/locale.h:167:0: note: this is the location of the previous definition
> i18n.c:125:0: warning: "LC_TIME_MASK" redefined [enabled by default]
> /usr/include/locale.h:168:0: note: this is the location of the previous definition
> i18n.c:158:0: warning: "LC_ALL_MASK" redefined [enabled by default]
> /usr/include/locale.h:193:0: note: this is the location of the previous definition

I don't understand why the code is redefining these masks.  Ludovic, do
you know?

> In file included from bytevectors.c:41:0:
> ../lib/striconveh.h:22:5: warning: "HAVE_ICONV" is not defined [-Wundef]
> In file included from bytevectors.c:41:0:
> ../lib/striconveh.h:34:5: warning: "HAVE_ICONV" is not defined [-Wundef]

I sent gnulib a bug report for this; but somehow I seem to recall they
think -Wundef is silly.

> i18n.c: In function 'scm_make_locale':
> i18n.c:610:16: warning: variable 'c_base_locale' set but not used [-Wunused-but-set-variable]

This one is trickier to extricate, as it is used in another #if branch,
and it's harmless...

Thanks for the report,

Andy
-- 
http://wingolog.org/



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

* Re: guile build problem with gcc 4.6.0
  2011-03-17 10:46     ` Andy Wingo
@ 2011-03-17 16:58       ` Ludovic Courtès
  2011-03-20 19:11         ` Douglas Mencken
  0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2011-03-17 16:58 UTC (permalink / raw)
  To: Andy Wingo; +Cc: Douglas Mencken, bug-guile

Hello!

Andy Wingo <wingo@pobox.com> writes:

> On Mon 14 Mar 2011 17:51, Douglas Mencken <dougmencken@gmail.com> writes:
>
>>> Can you send a log of "make -k" ?  Then we can fix them all in one go.
>>
>> Of course. guile 2.0.0, make -k output (stdout+stderr) attached.
>
> Thanks.  I fixed most of them, but a couple require more thought:
>
>> i18n.c:120:0: warning: "LC_CTYPE_MASK" redefined [enabled by default]
>> /usr/include/locale.h:166:0: note: this is the location of the previous definition
>> i18n.c:121:0: warning: "LC_COLLATE_MASK" redefined [enabled by default]
>> /usr/include/locale.h:169:0: note: this is the location of the previous definition
>> i18n.c:122:0: warning: "LC_MESSAGES_MASK" redefined [enabled by default]
>> /usr/include/locale.h:171:0: note: this is the location of the previous definition
>> i18n.c:123:0: warning: "LC_MONETARY_MASK" redefined [enabled by default]
>> /usr/include/locale.h:170:0: note: this is the location of the previous definition
>> i18n.c:124:0: warning: "LC_NUMERIC_MASK" redefined [enabled by default]
>> /usr/include/locale.h:167:0: note: this is the location of the previous definition
>> i18n.c:125:0: warning: "LC_TIME_MASK" redefined [enabled by default]
>> /usr/include/locale.h:168:0: note: this is the location of the previous definition
>> i18n.c:158:0: warning: "LC_ALL_MASK" redefined [enabled by default]
>> /usr/include/locale.h:193:0: note: this is the location of the previous definition
>
> I don't understand why the code is redefining these masks.  Ludovic, do
> you know?

Douglas: What libc are you using?  On glibc, these macros shouldn’t get
redefined.

Basically, you shouldn’t expect -Werror to work on non-GNU systems.

Thanks,
Ludo’.



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

* Re: guile build problem with gcc 4.6.0
  2011-03-17 16:58       ` Ludovic Courtès
@ 2011-03-20 19:11         ` Douglas Mencken
  2011-03-20 20:13           ` Andy Wingo
  0 siblings, 1 reply; 7+ messages in thread
From: Douglas Mencken @ 2011-03-20 19:11 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: bug-guile

> What libc are you using? On glibc, these macros shouldn’t get
redefined.

My standard C library for this setup is uClibc.

> Basically, you shouldn’t expect -Werror to work on non-GNU systems.

Is it possible to switch off -Werror for non-glibc systems, for
example, on autoconf/automake/configure stage?
I'm currently using the following sed commands before running autoreconf:

sed -i 's/CFLAGS="${CFLAGS} -Werror"/##CFLAGS="${CFLAGS} -Werror"/'
./configure.ac
sed -i 's/POTENTIAL_GCC_CFLAGS="${POTENTIAL_GCC_CFLAGS}
-Werror"/##POTENTIAL_GCC_CFLAGS="${POTENTIAL_GCC_CFLAGS} -Werror"/'
./configure.ac



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

* Re: guile build problem with gcc 4.6.0
  2011-03-20 19:11         ` Douglas Mencken
@ 2011-03-20 20:13           ` Andy Wingo
  0 siblings, 0 replies; 7+ messages in thread
From: Andy Wingo @ 2011-03-20 20:13 UTC (permalink / raw)
  To: Douglas Mencken; +Cc: bug-guile, Ludovic Courtès

On Sun 20 Mar 2011 20:11, Douglas Mencken <dougmencken@gmail.com> writes:

> Is it possible to switch off -Werror for non-glibc systems

Certainly.

    $ ./configure --help | grep error
      --enable-error-on-warning    treat compile warnings as errors

It's off by default, actually.  Unless you are passing
--enable-error-on-warning, I don't know what's introducing -Werror on
your system.

Andy
-- 
http://wingolog.org/



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

end of thread, other threads:[~2011-03-20 20:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-12 15:49 guile build problem with gcc 4.6.0 Douglas Mencken
2011-03-13 19:26 ` Andy Wingo
2011-03-14 16:51   ` Douglas Mencken
2011-03-17 10:46     ` Andy Wingo
2011-03-17 16:58       ` Ludovic Courtès
2011-03-20 19:11         ` Douglas Mencken
2011-03-20 20:13           ` Andy Wingo

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).