* guile-1.4.1: test failures under shared library, -O3
@ 2002-05-24 4:42 Michael Deutschmann
2002-06-16 22:59 ` Thien-Thi Nguyen
0 siblings, 1 reply; 4+ messages in thread
From: Michael Deutschmann @ 2002-05-24 4:42 UTC (permalink / raw)
I have encountered the following "make check" failure attempting
to build guile-1.4.1:
FAIL: r4rs.test: (6 9): (#<procedure leaf-eq? (x y)> (a (b (c))) ((a) b c))
I normally use maximal optimization ("-O3 -fomit-frame-pointer
-fstrict-aliasing") to compile programs, and found that the problem does
not occur when no flags are specified. It also doesn't happen if guile
is configured not to use shared libraries.
By swap experiments, I've narrowed the problem to "continuations.c". If
this file is compiled with "-fPIC" and "-O3", the test suite will not
succeed. If "-fomit-frame-pointer" is also specifed, the above test
failure will occur -- otherwise, the test suite will segfault.
Versions:
i486-pc-linux-gnu
linux-2.0.40rc4
glibc-2.1.3
gcc-2.95.3
---- Michael Deutschmann <michael@talamasca.ocis.net>
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: guile-1.4.1: test failures under shared library, -O3
2002-05-24 4:42 guile-1.4.1: test failures under shared library, -O3 Michael Deutschmann
@ 2002-06-16 22:59 ` Thien-Thi Nguyen
2002-06-17 2:12 ` Michael Deutschmann
0 siblings, 1 reply; 4+ messages in thread
From: Thien-Thi Nguyen @ 2002-06-16 22:59 UTC (permalink / raw)
Cc: bug-guile
From: Michael Deutschmann <michael@talamasca.ocis.net>
Date: Thu, 23 May 2002 21:42:36 -0700 (PDT)
[r4rs.test errors if continuations.c compiled w/ "-fPIC -O3",
segfaults if also w/ "-fomit-frame-pointer"]
thanks for the bug report. i suspect "-fomit-frame-pointer" screws up
stack-based garbage collection, but am not yet learned enough to say for
sure.
could you supply a ./configure invocation (including env vars) that
reproduces the "-fPIC -O3" problem? i can guess but i'd rather not.
thi
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: guile-1.4.1: test failures under shared library, -O3
2002-06-16 22:59 ` Thien-Thi Nguyen
@ 2002-06-17 2:12 ` Michael Deutschmann
2002-06-29 19:31 ` Thien-Thi Nguyen
0 siblings, 1 reply; 4+ messages in thread
From: Michael Deutschmann @ 2002-06-17 2:12 UTC (permalink / raw)
Cc: bug-guile
On Sun, 16 Jun 2002, Thien-Thi Nguyen wrote:
> could you supply a ./configure invocation (including env vars) that
> reproduces the "-fPIC -O3" problem? i can guess but i'd rather not.
`CFLAGS="-fPIC -O3" configure' should work. I don't recall exactly, but
I'm pretty sure I clipped out everything that wasn't needed to trip the
bug. My normal configure invocation is pretty big...
`CFLAGS=-O3 configure --enable-shared' also trips the bug -- I just used
-fPIC explicitly with static libs to rule out any other cause intrinsic
to shared library linking.
---- Michael Deutschmann <michael@talamasca.ocis.net>
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: guile-1.4.1: test failures under shared library, -O3
2002-06-17 2:12 ` Michael Deutschmann
@ 2002-06-29 19:31 ` Thien-Thi Nguyen
0 siblings, 0 replies; 4+ messages in thread
From: Thien-Thi Nguyen @ 2002-06-29 19:31 UTC (permalink / raw)
Cc: bug-guile
fyi, i've added this as:
1007-cc-optimizations-break-r4rs-test
thi
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-06-29 19:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-24 4:42 guile-1.4.1: test failures under shared library, -O3 Michael Deutschmann
2002-06-16 22:59 ` Thien-Thi Nguyen
2002-06-17 2:12 ` Michael Deutschmann
2002-06-29 19:31 ` Thien-Thi Nguyen
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).