unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* 1.7.2: scmsigs.c,signal_delivery_thread
@ 2005-05-06 12:57 Werner Scheinast
  2005-05-07  1:49 ` Kevin Ryde
  0 siblings, 1 reply; 7+ messages in thread
From: Werner Scheinast @ 2005-05-06 12:57 UTC (permalink / raw)


The "make" of guile-1.7.2 exits with the following error:

 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -pthread -O3 -march=pentium4 
-mfpmath=sse -msse2 -Wall -Wmissing-prototypes -Werror -MT 
libguile_la-scmsigs.lo -MD -MP -MF .deps/libguile_la-scmsigs.Tpo -c 
scmsigs.c  -fPIC -DPIC -o .libs/libguile_la-scmsigs.o
scmsigs.c: In function `signal_delivery_thread':
scmsigs.c:152: warning: no return statement in function returning non-void
make[2]: *** [libguile_la-scmsigs.lo] Fehler 1
make[2]: Leaving directory `/home/werner/Archiv/guile-1.7.2/libguile'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/werner/Archiv/guile-1.7.2'
make: *** [all] Fehler 2

The build was done by:
export CFLAGS='-O3 -march=pentium4 -mfpmath=sse -msse2'
export CXXFLAGS=$CFLAGS
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --infodir=/usr/share/info --mandir=/usr/share/man
make

My boundary conditions:
gcc (GCC) 3.3.1 (SuSE Linux)
libtool-1.5-85
gmp-4.1.2-98
... and whatever is in a SuSE 9.0 system.

Best regards and thanks a lot for your work,
W. Scheinast


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


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

* Re: 1.7.2: scmsigs.c,signal_delivery_thread
  2005-05-06 12:57 1.7.2: scmsigs.c,signal_delivery_thread Werner Scheinast
@ 2005-05-07  1:49 ` Kevin Ryde
  2005-05-09 15:29   ` Paul Jarc
  2005-05-09 16:58   ` Werner Scheinast
  0 siblings, 2 replies; 7+ messages in thread
From: Kevin Ryde @ 2005-05-07  1:49 UTC (permalink / raw)
  Cc: bug-guile

Werner Scheinast <W.Scheinast@web.de> writes:
>
> -Wall

Did you add that?  It's probably not a good idea.

> scmsigs.c: In function `signal_delivery_thread':
> scmsigs.c:152: warning: no return statement in function returning non-void

I don't think that function ever returns, gcc probably shouldn't
complain about such cases.

I guess it could be void, but the function pointer is used in a spot
where the prototype should be an SCM return.


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


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

* Re: 1.7.2: scmsigs.c,signal_delivery_thread
  2005-05-07  1:49 ` Kevin Ryde
@ 2005-05-09 15:29   ` Paul Jarc
  2005-05-09 16:58   ` Werner Scheinast
  1 sibling, 0 replies; 7+ messages in thread
From: Paul Jarc @ 2005-05-09 15:29 UTC (permalink / raw)
  Cc: bug-guile, Werner Scheinast

Kevin Ryde <user42@zip.com.au> wrote:
> I don't think that function ever returns, gcc probably shouldn't
> complain about such cases.

__attribute__((noreturn)) may be helpful in that case.


paul


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


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

* Re: 1.7.2: scmsigs.c,signal_delivery_thread
  2005-05-07  1:49 ` Kevin Ryde
  2005-05-09 15:29   ` Paul Jarc
@ 2005-05-09 16:58   ` Werner Scheinast
  2005-05-09 19:01     ` Neil Jerram
  1 sibling, 1 reply; 7+ messages in thread
From: Werner Scheinast @ 2005-05-09 16:58 UTC (permalink / raw)
  Cc: bug-guile

Am 07.05.05 schrieb KevinRyde:

> Werner Scheinast <W.Scheinast@web.de> writes:
> >
> > -Wall
> 
> Did you add that?  It's probably not a good idea.

No, it was done automatically. (Or can there be a system-wide default 
option string?) I only added some processor optimization.

> > scmsigs.c: In function `signal_delivery_thread':
> > scmsigs.c:152: warning: no return statement in function returning non-void
> 
> I don't think that function ever returns, gcc probably shouldn't
> complain about such cases.

I wonder why he reports a mere "warning" and then stops with a fatal 
error.

> I guess it could be void, but the function pointer is used in a spot
> where the prototype should be an SCM return.

When I say "void", he exits with another message:

 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -pthread -O3 -march=pentium4 
-mfpmath=sse -msse2 -Wall -Wmissing-prototypes -Werror -MT 
libguile_la-scmsigs.lo -MD -MP -MF .deps/libguile_la-scmsigs.Tpo -c 
scmsigs.c  -fPIC -DPIC -o .libs/libguile_la-scmsigs.o
scmsigs.c:125: error: two or more data types in declaration of 
`signal_delivery_thread'
scmsigs.c: In function `start_signal_delivery_thread':
scmsigs.c:160: warning: passing arg 1 of `scm_spawn_thread' from 
incompatible pointer type
make[2]: *** [libguile_la-scmsigs.lo] Fehler 1
make[2]: Leaving directory `/home/werner/Archiv/guile-1.7.2/libguile'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/werner/Archiv/guile-1.7.2'
make: *** [all] Fehler 2

When I follow Paul's suggestion and add "__attribute__((noreturn))" before 
the function name (right?), it doesn't change anything.

Perhaps the mistake is somewhere else ... in my SuSE version of the gcc 
compiler or so ...?

Thanks anyway for the tips
Werner


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


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

* Re: 1.7.2: scmsigs.c,signal_delivery_thread
  2005-05-09 16:58   ` Werner Scheinast
@ 2005-05-09 19:01     ` Neil Jerram
  2005-05-10 12:16       ` Werner Scheinast
  0 siblings, 1 reply; 7+ messages in thread
From: Neil Jerram @ 2005-05-09 19:01 UTC (permalink / raw)
  Cc: bug-guile, KevinRyde

Werner Scheinast wrote:
> 
>>>scmsigs.c: In function `signal_delivery_thread':
>>>scmsigs.c:152: warning: no return statement in function returning non-void
>>
> When I follow Paul's suggestion and add "__attribute__((noreturn))" before 
> the function name (right?), it doesn't change anything.
> 
> Perhaps the mistake is somewhere else ... in my SuSE version of the gcc 
> compiler or so ...?
> 

Can you try adding

   return SCM_UNSPECIFIED;

to the end of the definition of signal_delivery_thread(), and see if 
that solves the problem?

Thanks,
	Neil


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


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

* Re: 1.7.2: scmsigs.c,signal_delivery_thread
  2005-05-09 19:01     ` Neil Jerram
@ 2005-05-10 12:16       ` Werner Scheinast
  2005-05-10 20:06         ` Neil Jerram
  0 siblings, 1 reply; 7+ messages in thread
From: Werner Scheinast @ 2005-05-10 12:16 UTC (permalink / raw)
  Cc: bug-guile, Paul Jarc, KevinRyde

Am 09.05.05 schrieb NeilJerram:

> Can you try adding
> 
>    return SCM_UNSPECIFIED;
> 
> to the end of the definition of signal_delivery_thread(), and see if 
> that solves the problem?

Yes, it does! Now the "make" runs without problems.
I still do no really understand why, but anyway ...

thank you
Werner


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


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

* Re: 1.7.2: scmsigs.c,signal_delivery_thread
  2005-05-10 12:16       ` Werner Scheinast
@ 2005-05-10 20:06         ` Neil Jerram
  0 siblings, 0 replies; 7+ messages in thread
From: Neil Jerram @ 2005-05-10 20:06 UTC (permalink / raw)
  Cc: bug-guile

Werner Scheinast wrote:
> Am 09.05.05 schrieb NeilJerram:
> 
> 
>>Can you try adding
>>
>>   return SCM_UNSPECIFIED;
>>
>>to the end of the definition of signal_delivery_thread(), and see if 
>>that solves the problem?
> 
> 
> Yes, it does! Now the "make" runs without problems.

OK, this is committed, so it'll be in the next snapshot.

	Neil


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


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

end of thread, other threads:[~2005-05-10 20:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-06 12:57 1.7.2: scmsigs.c,signal_delivery_thread Werner Scheinast
2005-05-07  1:49 ` Kevin Ryde
2005-05-09 15:29   ` Paul Jarc
2005-05-09 16:58   ` Werner Scheinast
2005-05-09 19:01     ` Neil Jerram
2005-05-10 12:16       ` Werner Scheinast
2005-05-10 20:06         ` Neil Jerram

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