unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: ludovic.courtes@laas.fr (Ludovic Courtès)
Cc: bug-guile@gnu.org
Subject: Re: CVS-060720 compilation failure on Solaris 10, patch
Date: Thu, 20 Jul 2006 09:52:37 +0200	[thread overview]
Message-ID: <87hd1c67cq.fsf@laas.fr> (raw)
In-Reply-To: <44BEFCF4.5020301@student.liu.se> (Claes Wallin's message of "Thu, 20 Jul 2006 05:48:04 +0200")

Hi,

Claes Wallin <clawa570+gmane@student.liu.se> writes:

> guile-CVS-060720 doesn't compile on Solaris 10. Attaching patch.

I won't be able to test your patch so here are just a few remarks.

> Comments:
>  - Compiles and passes standalone tests now. Gets stack overflows on
>    elisp.test and when trying to start 'guile'.

Did you compile Guile with optimizations?  When using GCC, compiling
with `-O0' quickly yields stack overflows (to that point that one
doesn't even get to the REPL).

>  - The sethostname and PTHREAD_ONCE_INIT conditions should be tested for
>    instead of just slapping a __sun__ on the workarounds. Please help.

Sorry, I don't understand this.

>  - Does any __GNUC__ platform _not_ want alloca.h?

I don't known.  We should normally not have to touch the `#ifdef's
around `alloca ()' since they are the documented way to deal with
`alloca ()' [0].  OTOH, the `#ifdef's changed a bit in the Autoconf
manual (see [0]), so perhaps we should update them accordingly.  Would
this solve your problem?

Otherwise, you can provide specific details as to why this arrangement
fails on your platform and report it to the Autoconf maintainers.  :-)

In any case, I'd be surprised that it fails on Solaris 10 since this is
quite a widespread platform.

Also, when submitting a patch, please follow the GNU coding standard for
ChangeLog entries and code (see below).

> diff -ur ../guile-core/test-suite/standalone/test-list.c ./test-suite/standalone/test-list.c
> --- ../guile-core/test-suite/standalone/test-list.c	2006-02-04 00:34:48.000000000 +0100
> +++ ./test-suite/standalone/test-list.c	2006-07-20 04:42:12.000000000 +0200
> @@ -26,7 +26,7 @@
>  /* pretty trivial, but ensure this entrypoint exists, since it was
>     documented in Guile 1.6 and earlier */
>  static void
> -test_scm_list (void)
> +test_scm_list ()

Is there something wrong with the original form?

> diff -ur ../guile-core/test-suite/standalone/test-num2integral.c ./test-suite/standalone/test-num2integral.c
> --- ../guile-core/test-suite/standalone/test-num2integral.c	2006-04-17 01:27:13.000000000 +0200
> +++ ./test-suite/standalone/test-num2integral.c	2006-07-20 04:37:41.000000000 +0200
> @@ -141,12 +141,15 @@
>  #endif /* SCM_SIZEOF_LONG_LONG != 0 */
>  }
>  
> +static void f() {
> +  test_long_long ();
> +  test_ulong_long ();
> +}
> +

This should really be something like:

  static void
  startup ()
  {
    ...
  }

>  int
>  main (int argc, char *argv[])
>  {
> -  scm_init_guile();
> -  test_long_long ();
> -  test_ulong_long ();
> +  scm_boot_guile(argc, argv, f, NULL);

`scm_init_guile ()' is documented and perfectly legal in 1.8.0.  Is
there any reason why you removed it from test cases?

Thanks,
Ludovic.

[0] http://www.gnu.org/software/autoconf/manual/html_node/Particular-Functions.html#Particular-Functions


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


  reply	other threads:[~2006-07-20  7:52 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-20  3:48 CVS-060720 compilation failure on Solaris 10, patch Claes Wallin
2006-07-20  7:52 ` Ludovic Courtès [this message]
2006-07-20 12:07   ` Claes Wallin
2006-07-20 12:29     ` Claes Wallin
2006-07-21  0:02       ` Kevin Ryde
2006-07-21  6:32         ` Claes Wallin
2006-07-24  0:46           ` Kevin Ryde
2006-07-24  9:35             ` Claes Wallin
2006-07-24  9:53             ` Claes Wallin
2006-07-21  0:04       ` Kevin Ryde
2006-07-21  6:30         ` Claes Wallin
2006-07-24  1:45           ` Kevin Ryde
2006-07-24  9:53             ` Claes Wallin
2006-07-25  0:46               ` Kevin Ryde
2006-07-21  0:08       ` Kevin Ryde
2006-07-25  0:42       ` Kevin Ryde
2006-07-25  7:33         ` Ludovic Courtès
2006-07-21  0:31   ` Kevin Ryde

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87hd1c67cq.fsf@laas.fr \
    --to=ludovic.courtes@laas.fr \
    --cc=bug-guile@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).