unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* warnings during compilation of guile-1.8.2 and "FAIL: check-guile"
@ 2007-08-02  7:29 Storbeck, Frank
  2007-08-16 23:38 ` Kevin Ryde
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Storbeck, Frank @ 2007-08-02  7:29 UTC (permalink / raw)
  To: bug-guile


[-- Attachment #1.1: Type: text/plain, Size: 9914 bytes --]

L.S.
 
while making guile-1.8.2 on Solaris 2.9 using gcc-4.1.1 I got the
following error message:
 
1.
== quote ===
<stuff deleted>
...
/bin/bash ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I.. -I.. -I..  -I/usr/local/include -D_REENTRANT -pthreads -g -O2 -Wall
-Wmissing-prototypes -Werror -MT libguile_la-threads.lo -MD -MP -MF
.deps/libguile_la-threads.Tpo -c -o libguile_la-threads.lo `test -f
'threads.c' || echo './'`threads.c
 gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -I/usr/local/include
-D_REENTRANT -pthreads -g -O2 -Wall -Wmissing-prototypes -Werror -MT
libguile_la-threads.lo -MD -MP -MF .deps/libguile_la-threads.Tpo -c
threads.c  -fPIC -DPIC -o .libs/libguile_la-threads.o
cc1: warnings being treated as errors
threads.c:525: warning: missing braces around initializer
threads.c:525: warning: (near initialization for
'init_thread_key_once.__pthread_once_pad')
make[3]: *** [libguile_la-threads.lo] Error 1
make[3]: Leaving directory `/usr/local/src/free/guile-1.8.2/libguile'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/src/free/guile-1.8.2/libguile'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/free/guile-1.8.2'
make: *** [all] Error 2
== unquote ===
 
A similar thing happened before this while compiling libguile/scmsigs.c
 
So I put braces:libguile/scmsigs.c on line 207:
  static scm_i_pthread_once_t once = {SCM_I_PTHREAD_ONCE_INIT};
 
and in libguile/threads.c on line 525:
static scm_i_pthread_once_t init_thread_key_once =
{SCM_I_PTHREAD_ONCE_INIT};
 
2.
The next problem occurred in libguile/filesys.c on line 916:
 
== quote ===
<stuff deleted>
...
 gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -I/usr/local/include -g -O2
-Wall -Wmissing-prototypes -Werror -MT filesys.lo -MD -MP -MF
.deps/filesys.Tpo -c filesys.c  -fPIC -DPIC -o .libs/filesys.o
cc1: warnings being treated as errors
filesys.c: In function 'scm_readdir':
filesys.c:916: warning: implicit declaration of function 'readdir64_r'
make[3]: *** [filesys.lo] Error 1
make[3]: Leaving directory `/usr/local/src/free/guile-1.8.2/libguile'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/src/free/guile-1.8.2/libguile'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/free/guile-1.8.2'
make: *** [all] Error 2

== unquote ===
 
I repaired this by placing a prototype on line 850:
void readdir_r_or_readdir64_r (DIR* , struct dirent_or_dirent64 *,
struct dirent_or_dirent64 **);

3.
After this compilation went OK, but after doing "make check" i got 4
failures on  posix.test:
 
== quote ===
<stuff deleted>
...
gcc -I../../test-suite/standalone -I../.. -I../../libguile-ltdl
-D_REENTRANT -pthreads -g -O2 -Wall -Wmissing-prototypes -Werror
-D_REENTRANT -pthreads -o .libs/test-conversion
test_conversion-test-conversion.o  ../../libguile/.libs/libguile.so -lrt
/usr/local/lib/libgmp.so -lsocket -lnsl -lm /usr/local/lib/libltdl.so
-ldl -R/usr/local/lib
creating test-conversion
make[4]: Nothing to be done for `test-system-cmds'.
make[4]: Nothing to be done for `test-require-extension'.
make[4]: Nothing to be done for `test-asmobs'.
make[4]: Nothing to be done for `test-use-srfi'.
make[4]: Leaving directory
`/usr/local/src/free/guile-1.8.2/test-suite/standalone'
make  check-TESTS
make[4]: Entering directory
`/usr/local/src/free/guile-1.8.2/test-suite/standalone'
PASS: test-system-cmds
PASS: test-require-extension
PASS: test-num2integral
PASS: test-round
PASS: test-gh
PASS: test-asmobs
PASS: test-list
PASS: test-unwind
PASS: test-conversion
PASS: test-use-srfi
===================
All 10 tests passed
===================
make[4]: Leaving directory
`/usr/local/src/free/guile-1.8.2/test-suite/standalone'
make[3]: Leaving directory
`/usr/local/src/free/guile-1.8.2/test-suite/standalone'
make[2]: Leaving directory
`/usr/local/src/free/guile-1.8.2/test-suite/standalone'
make[2]: Entering directory `/usr/local/src/free/guile-1.8.2/test-suite'
make[2]: Nothing to be done for `check-am'.
make[2]: Leaving directory `/usr/local/src/free/guile-1.8.2/test-suite'
make[1]: Leaving directory `/usr/local/src/free/guile-1.8.2/test-suite'
Making check in benchmark-suite
make[1]: Entering directory
`/usr/local/src/free/guile-1.8.2/benchmark-suite'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory
`/usr/local/src/free/guile-1.8.2/benchmark-suite'
Making check in lang
make[1]: Entering directory `/usr/local/src/free/guile-1.8.2/lang'
Making check in elisp
make[2]: Entering directory `/usr/local/src/free/guile-1.8.2/lang/elisp'
Making check in internals
make[3]: Entering directory
`/usr/local/src/free/guile-1.8.2/lang/elisp/internals'
make[3]: Nothing to be done for `check'.
make[3]: Leaving directory
`/usr/local/src/free/guile-1.8.2/lang/elisp/internals'
Making check in primitives
make[3]: Entering directory
`/usr/local/src/free/guile-1.8.2/lang/elisp/primitives'
make[3]: Nothing to be done for `check'.
make[3]: Leaving directory
`/usr/local/src/free/guile-1.8.2/lang/elisp/primitives'
make[3]: Entering directory `/usr/local/src/free/guile-1.8.2/lang/elisp'
make[3]: Nothing to be done for `check-am'.
make[3]: Leaving directory `/usr/local/src/free/guile-1.8.2/lang/elisp'
make[2]: Leaving directory `/usr/local/src/free/guile-1.8.2/lang/elisp'
make[2]: Entering directory `/usr/local/src/free/guile-1.8.2/lang'
make[2]: Nothing to be done for `check-am'.
make[2]: Leaving directory `/usr/local/src/free/guile-1.8.2/lang'
make[1]: Leaving directory `/usr/local/src/free/guile-1.8.2/lang'
Making check in am
make[1]: Entering directory `/usr/local/src/free/guile-1.8.2/am'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/usr/local/src/free/guile-1.8.2/am'
make[1]: Entering directory `/usr/local/src/free/guile-1.8.2'
make  check-TESTS
make[2]: Entering directory `/usr/local/src/free/guile-1.8.2'
Testing /usr/local/src/free/guile-1.8.2/pre-inst-guile ...
with GUILE_LOAD_PATH=/usr/local/src/free/guile-1.8.2/test-suite
Running alist.test
Running and-let-star.test
Running arbiters.test
Running bit-operations.test
Running c-api.test
Running chars.test
Running common-list.test
Running continuations.test
Running elisp.test
Running environments.test
Running eval.test
 
;;; (foo-pws)
Running exceptions.test
Running filesys.test
Running format.test
Running fractions.test
Running ftw.test
Running gc.test
Running getopt-long.test
Running goops.test
Running guardians.test
UNRESOLVED: guardians.test: standard guardian functionality: guarding
independent objects: re-guarding non-immediates
UNRESOLVED: guardians.test: standard guardian functionality: guarding
weakly referenced objects: guarded element of weak vector gets
eventually removed from weak vector
Running hash.test
Running hooks.test
Running import.test
Running interp.test
Running list.test
Running load.test
Running modules.test
Running numbers.test
Running optargs.test
Running options.test
Running poe.test
Running popen.test
Running ports.test
Running posix.test
FAIL: posix.test: putenv: removing
FAIL: posix.test: setenv: removing
FAIL: posix.test: unsetenv: something
FAIL: posix.test: unsetenv: empty
Running q.test
Running r4rs.test
Running r5rs_pitfall.test
Running ramap.test
Running reader.test
Running receive.test
Running regexp.test
Running socket.test
Running srcprop.test
Running srfi-1.test
Running srfi-10.test
Running srfi-11.test
Running srfi-13.test
Running srfi-14.test
UNRESOLVED: srfi-14.test: Latin-1 (8-bit charset): char-set:letter
(membership)
UNRESOLVED: srfi-14.test: Latin-1 (8-bit charset): char-set:letter
(size)
UNRESOLVED: srfi-14.test: Latin-1 (8-bit charset): char-set:lower-case
(size)
UNRESOLVED: srfi-14.test: Latin-1 (8-bit charset): char-set:upper-case
(size)
UNRESOLVED: srfi-14.test: Latin-1 (8-bit charset): char-set:punctuation
(membership)
Running srfi-19.test
Running srfi-26.test
Running srfi-31.test
Running srfi-34.test
Running srfi-39.test
Running srfi-4.test
Running srfi-6.test
Running srfi-60.test
Running srfi-9.test
Running strings.test
Running structs.test
Running symbols.test
Running syncase.test
Running syntax.test
UNRESOLVED: syntax.test: while: in empty environment: empty body
UNRESOLVED: syntax.test: while: in empty environment: initially false
UNRESOLVED: syntax.test: while: in empty environment: iterating
Running threads.test
Running time.test
Running unif.test
Running version.test
Running weaks.test
 
Totals for this test run:
passes:                 11778
failures:               4
unexpected passes:      0
expected failures:      25
unresolved test cases:  10
untested test cases:    0
unsupported test cases: 13
errors:                 0
 
FAIL: check-guile
==================================
1 of 1 tests failed
Please report to bug-guile@gnu.org
==================================
make[2]: *** [check-TESTS] Error 1
make[2]: Leaving directory `/usr/local/src/free/guile-1.8.2'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/usr/local/src/free/guile-1.8.2'
make: *** [check-recursive] Error 1
== unquote ===
 
regards
Frank Storbeck 

Wageningen IMARES - Institute for Marine Resources & Ecosystem Studies

M: P.O. Box 68, 1970 AB, IJmuiden, The Netherlands
V: Haringkade 1, 1976 CP IJmuiden, The Netherlands
T: +31 255 564790
H: +31 72 5092910
M: +31 6 13652034
F: +31 255 564644
e: frank.storbeck@wur.nl
e: frank@storbeck.nl 

This message is intended exclusively for the addressee. It may contain
information that is confidential. Any use or publication of this e-mail
message without permission of IMARES B.V. is not allowed. If you are not
the intended recipient, please notify us and delete this message.

 

[-- Attachment #1.2: Type: text/html, Size: 15037 bytes --]

[-- Attachment #2: Type: text/plain, Size: 137 bytes --]

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

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

* Re: warnings during compilation of guile-1.8.2 and "FAIL: check-guile"
  2007-08-02  7:29 warnings during compilation of guile-1.8.2 and "FAIL: check-guile" Storbeck, Frank
@ 2007-08-16 23:38 ` Kevin Ryde
  2007-08-16 23:42 ` Kevin Ryde
  2007-08-16 23:56 ` Kevin Ryde
  2 siblings, 0 replies; 4+ messages in thread
From: Kevin Ryde @ 2007-08-16 23:38 UTC (permalink / raw)
  To: bug-guile

"Storbeck, Frank" <Frank.Storbeck@wur.nl> writes:
>
> 1.
> == quote ===
> threads.c:525: warning: missing braces around initializer

That's supposed to be covered by SCM_NEED_BRACES_ON_PTHREAD_ONCE_INIT
which is tested by configure (see config.log) and set in
libguile/scmconfig.h, if you'd like to check if that test got the right
answer, and put it through.

(I believe the braces solaris demands are contrary to the posix standard
-- not that that helps anyone wanting it to work :-)


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


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

* Re: warnings during compilation of guile-1.8.2 and "FAIL: check-guile"
  2007-08-02  7:29 warnings during compilation of guile-1.8.2 and "FAIL: check-guile" Storbeck, Frank
  2007-08-16 23:38 ` Kevin Ryde
@ 2007-08-16 23:42 ` Kevin Ryde
  2007-08-16 23:56 ` Kevin Ryde
  2 siblings, 0 replies; 4+ messages in thread
From: Kevin Ryde @ 2007-08-16 23:42 UTC (permalink / raw)
  To: Frank.Storbeck; +Cc: bug-guile

"Storbeck, Frank" <Frank.Storbeck@wur.nl> writes:
>
> 2.
> filesys.c: In function 'scm_readdir':
> filesys.c:916: warning: implicit declaration of function 'readdir64_r'

We had another report that you have to define _REENTRANT to get
gmtime_r.  Is it the same for readdir64_r?  (If so I'll chuck that in
filesys.c.  Assuming of course readdir64_r does exist and is meant to be
used ...)


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


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

* Re: warnings during compilation of guile-1.8.2 and "FAIL: check-guile"
  2007-08-02  7:29 warnings during compilation of guile-1.8.2 and "FAIL: check-guile" Storbeck, Frank
  2007-08-16 23:38 ` Kevin Ryde
  2007-08-16 23:42 ` Kevin Ryde
@ 2007-08-16 23:56 ` Kevin Ryde
  2 siblings, 0 replies; 4+ messages in thread
From: Kevin Ryde @ 2007-08-16 23:56 UTC (permalink / raw)
  To: Frank.Storbeck; +Cc: bug-guile

"Storbeck, Frank" <Frank.Storbeck@wur.nl> writes:
>
> 3.
> FAIL: posix.test: putenv: removing
> FAIL: posix.test: setenv: removing
> FAIL: posix.test: unsetenv: something
> FAIL: posix.test: unsetenv: empty

Sounds like a bug.  I guess each one is about not being able to remove a
variable from the environment.  I think they all end up going down
scm_putenv() in libguile/posix.c, and it ought to be using unsetenv() to
remove.  Is unsetenv() available on solaris?  The fallback code if it's
not is most likely wrong (it's some DOS nonsense).


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


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

end of thread, other threads:[~2007-08-16 23:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-02  7:29 warnings during compilation of guile-1.8.2 and "FAIL: check-guile" Storbeck, Frank
2007-08-16 23:38 ` Kevin Ryde
2007-08-16 23:42 ` Kevin Ryde
2007-08-16 23:56 ` Kevin Ryde

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