unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#37037: Guile 2.0.13+1-5.1 FTBFS on GNU/Hurd due to one failing test.
@ 2019-08-15 12:29 Svante Signell
  2019-08-22 18:33 ` Svante Signell
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Svante Signell @ 2019-08-15 12:29 UTC (permalink / raw)
  To: 37037

Hello,

When building Debian version 2.0.13+1-5.1 one test fails making the
whole build to fail. The problem is in the file test-
suite/tests/statprof.test. According to that file it is known that
ITIMER_PROF is not implemented:

;; Throw `unresolved' upon ENOSYS.  This is used to skip tests on
;; platforms such as GNU/Hurd where `ITIMER_PROF' is is currently
;; unimplemented.
      
(define-syntax-rule (when-implemented body ...)
  (catch 'system-error
    (lambda ()
      body ...)
    (lambda args
      (let ((errno (system-error-errno args)))
        (false-if-exception (statprof-stop))
        (if (= errno ENOSYS)
            (throw 'unresolved)
            (apply throw args))))))

(pass-if-equal "return values"
    '(42 77)
  (call-with-values
      (lambda ()
        (with-output-to-port (%make-void-port "w")
          (lambda ()
            (with-statprof
                (let loop ((i 10000))
                  (if (zero? i)
                      (values 42 77)
                      (loop (1- i))))))))
    list))

However, when that test is run the following is reported:

Running statprof.test
ERROR: statprof.test: return values - arguments: ((system-error
"setitimer" "~A" ("Function not implemented") (1073741902)))
ERROR: statprof.test: statistical sample counts within expected range -
arguments: ((misc-error #f "~A" ("Can't reset profiler while profiler
is running.") #f))
ERROR: statprof.test: accurate call counting - arguments: ((misc-error
#f "~A" ("Can't reset profiler while profiler is running.") #f))

making that test (and package build) to fail.

An UNRESOLVED result would make that test to enable a successful
package build. Unfortunately I don't know anything about scheme code so
I cannot propose a patch to the Debian package maintainer. Maybe you
can help me?

Please Cc: since I'm not subscribed.

Thanks!







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

* bug#37037: Guile 2.0.13+1-5.1 FTBFS on GNU/Hurd due to one failing test.
  2019-08-15 12:29 bug#37037: Guile 2.0.13+1-5.1 FTBFS on GNU/Hurd due to one failing test Svante Signell
@ 2019-08-22 18:33 ` Svante Signell
  2019-08-22 18:34 ` bug#37037: [Fwd: Re: Guile 2.0.13+1-5.1 FTBFS on GNU/Hurd due to one failing test.] Svante Signell
  2019-08-22 21:01 ` bug#37037: Guile 2.0.13+1-5.1 FTBFS on GNU/Hurd due to one failing test Mark H Weaver
  2 siblings, 0 replies; 6+ messages in thread
From: Svante Signell @ 2019-08-22 18:33 UTC (permalink / raw)
  To: 37037

Ping!

On Thu, 2019-08-15 at 14:29 +0200, Svante Signell wrote:
> Hello,
> 
> When building Debian version 2.0.13+1-5.1 one test fails making the
> whole build to fail. The problem is in the file test-
> suite/tests/statprof.test. According to that file it is known that
> ITIMER_PROF is not implemented:
> 
> ;; Throw `unresolved' upon ENOSYS.  This is used to skip tests on
> ;; platforms such as GNU/Hurd where `ITIMER_PROF' is is currently
> ;; unimplemented.
>       
> (define-syntax-rule (when-implemented body ...)
>   (catch 'system-error
>     (lambda ()
>       body ...)
>     (lambda args
>       (let ((errno (system-error-errno args)))
>         (false-if-exception (statprof-stop))
>         (if (= errno ENOSYS)
>             (throw 'unresolved)
>             (apply throw args))))))
> 
> (pass-if-equal "return values"
>     '(42 77)
>   (call-with-values
>       (lambda ()
>         (with-output-to-port (%make-void-port "w")
>           (lambda ()
>             (with-statprof
>                 (let loop ((i 10000))
>                   (if (zero? i)
>                       (values 42 77)
>                       (loop (1- i))))))))
>     list))
> 
> However, when that test is run the following is reported:
> 
> Running statprof.test
> ERROR: statprof.test: return values - arguments: ((system-error
> "setitimer" "~A" ("Function not implemented") (1073741902)))
> ERROR: statprof.test: statistical sample counts within expected range
> -
> arguments: ((misc-error #f "~A" ("Can't reset profiler while profiler
> is running.") #f))
> ERROR: statprof.test: accurate call counting - arguments: ((misc-
> error
> #f "~A" ("Can't reset profiler while profiler is running.") #f))
> 
> making that test (and package build) to fail.
> 
> An UNRESOLVED result would make that test to enable a successful
> package build. Unfortunately I don't know anything about scheme code
> so
> I cannot propose a patch to the Debian package maintainer. Maybe you
> can help me?
> 
> Please Cc: since I'm not subscribed.
> 
> Thanks!
> 
> 






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

* bug#37037: [Fwd: Re: Guile 2.0.13+1-5.1 FTBFS on GNU/Hurd due to one failing test.]
  2019-08-15 12:29 bug#37037: Guile 2.0.13+1-5.1 FTBFS on GNU/Hurd due to one failing test Svante Signell
  2019-08-22 18:33 ` Svante Signell
@ 2019-08-22 18:34 ` Svante Signell
  2019-08-22 21:01 ` bug#37037: Guile 2.0.13+1-5.1 FTBFS on GNU/Hurd due to one failing test Mark H Weaver
  2 siblings, 0 replies; 6+ messages in thread
From: Svante Signell @ 2019-08-22 18:34 UTC (permalink / raw)
  To: 37037

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




[-- Attachment #2: Forwarded message — Re: Guile 2.0.13+1-5.1 FTBFS on GNU/Hurd due to one failing test. --]
[-- Type: message/rfc822, Size: 2933 bytes --]

From: Svante Signell <svante.signell@gmail.com>
To: bug-guile@gnu.org
Subject: Re: Guile 2.0.13+1-5.1 FTBFS on GNU/Hurd due to one failing test.
Date: Thu, 22 Aug 2019 20:33:28 +0200
Message-ID: <c492e5b766a191f834a27064796fe3baf6416ada.camel@gmail.com>

Ping!

On Thu, 2019-08-15 at 14:29 +0200, Svante Signell wrote:
> Hello,
> 
> When building Debian version 2.0.13+1-5.1 one test fails making the
> whole build to fail. The problem is in the file test-
> suite/tests/statprof.test. According to that file it is known that
> ITIMER_PROF is not implemented:
> 
> ;; Throw `unresolved' upon ENOSYS.  This is used to skip tests on
> ;; platforms such as GNU/Hurd where `ITIMER_PROF' is is currently
> ;; unimplemented.
>       
> (define-syntax-rule (when-implemented body ...)
>   (catch 'system-error
>     (lambda ()
>       body ...)
>     (lambda args
>       (let ((errno (system-error-errno args)))
>         (false-if-exception (statprof-stop))
>         (if (= errno ENOSYS)
>             (throw 'unresolved)
>             (apply throw args))))))
> 
> (pass-if-equal "return values"
>     '(42 77)
>   (call-with-values
>       (lambda ()
>         (with-output-to-port (%make-void-port "w")
>           (lambda ()
>             (with-statprof
>                 (let loop ((i 10000))
>                   (if (zero? i)
>                       (values 42 77)
>                       (loop (1- i))))))))
>     list))
> 
> However, when that test is run the following is reported:
> 
> Running statprof.test
> ERROR: statprof.test: return values - arguments: ((system-error
> "setitimer" "~A" ("Function not implemented") (1073741902)))
> ERROR: statprof.test: statistical sample counts within expected range
> -
> arguments: ((misc-error #f "~A" ("Can't reset profiler while profiler
> is running.") #f))
> ERROR: statprof.test: accurate call counting - arguments: ((misc-
> error
> #f "~A" ("Can't reset profiler while profiler is running.") #f))
> 
> making that test (and package build) to fail.
> 
> An UNRESOLVED result would make that test to enable a successful
> package build. Unfortunately I don't know anything about scheme code
> so
> I cannot propose a patch to the Debian package maintainer. Maybe you
> can help me?
> 
> Please Cc: since I'm not subscribed.
> 
> Thanks!
> 
> 


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

* bug#37037: Guile 2.0.13+1-5.1 FTBFS on GNU/Hurd due to one failing test.
  2019-08-15 12:29 bug#37037: Guile 2.0.13+1-5.1 FTBFS on GNU/Hurd due to one failing test Svante Signell
  2019-08-22 18:33 ` Svante Signell
  2019-08-22 18:34 ` bug#37037: [Fwd: Re: Guile 2.0.13+1-5.1 FTBFS on GNU/Hurd due to one failing test.] Svante Signell
@ 2019-08-22 21:01 ` Mark H Weaver
  2019-08-23 11:16   ` Svante Signell
  2 siblings, 1 reply; 6+ messages in thread
From: Mark H Weaver @ 2019-08-22 21:01 UTC (permalink / raw)
  To: Svante Signell; +Cc: 37037

Hi Svante,

Svante Signell <svante.signell@gmail.com> writes:

> When building Debian version 2.0.13+1-5.1 one test fails making the
> whole build to fail. The problem is in the file test-
> suite/tests/statprof.test. According to that file it is known that
> ITIMER_PROF is not implemented:
>
> ;; Throw `unresolved' upon ENOSYS.  This is used to skip tests on
> ;; platforms such as GNU/Hurd where `ITIMER_PROF' is is currently
> ;; unimplemented.
>       
> (define-syntax-rule (when-implemented body ...)
>   (catch 'system-error
>     (lambda ()
>       body ...)
>     (lambda args
>       (let ((errno (system-error-errno args)))
>         (false-if-exception (statprof-stop))
>         (if (= errno ENOSYS)
>             (throw 'unresolved)
>             (apply throw args))))))
>
> (pass-if-equal "return values"
>     '(42 77)
>   (call-with-values
>       (lambda ()
>         (with-output-to-port (%make-void-port "w")
>           (lambda ()
>             (with-statprof
>                 (let loop ((i 10000))
>                   (if (zero? i)
>                       (values 42 77)
>                       (loop (1- i))))))))
>     list))

It looks like this issue was already fixed in Guile 2.0.14, by commit
f2764cb1031379c47a17c02fef3f8164a6ce9cda on the 'stable-2.0' branch:

  https://git.savannah.gnu.org/cgit/guile.git/commit/?h=stable-2.0&id=f2764cb1031379c47a17c02fef3f8164a6ce9cda

Would you like to try it and report back?

     Thanks,
       Mark





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

* bug#37037: Guile 2.0.13+1-5.1 FTBFS on GNU/Hurd due to one failing test.
  2019-08-22 21:01 ` bug#37037: Guile 2.0.13+1-5.1 FTBFS on GNU/Hurd due to one failing test Mark H Weaver
@ 2019-08-23 11:16   ` Svante Signell
  2019-08-23 19:23     ` Mark H Weaver
  0 siblings, 1 reply; 6+ messages in thread
From: Svante Signell @ 2019-08-23 11:16 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: 37037

On Thu, 2019-08-22 at 17:01 -0400, Mark H Weaver wrote:
> Hi Svante,
> 
> Svante Signell <svante.signell@gmail.com> writes:
> 
> It looks like this issue was already fixed in Guile 2.0.14, by commit
> f2764cb1031379c47a17c02fef3f8164a6ce9cda on the 'stable-2.0' branch:
> 
>   
> https://git.savannah.gnu.org/cgit/guile.git/commit/?h=stable-2.0&id=f2764cb1031379c47a17c02fef3f8164a6ce9cda
> 
> Would you like to try it and report back?

Thank you, that commit fixed the problem. Reported to Debian version
2.0.13+1-5.1 as bug #935505, see 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=935505






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

* bug#37037: Guile 2.0.13+1-5.1 FTBFS on GNU/Hurd due to one failing test.
  2019-08-23 11:16   ` Svante Signell
@ 2019-08-23 19:23     ` Mark H Weaver
  0 siblings, 0 replies; 6+ messages in thread
From: Mark H Weaver @ 2019-08-23 19:23 UTC (permalink / raw)
  To: Svante Signell; +Cc: 37037-done

Svante Signell <svante.signell@gmail.com> writes:

> On Thu, 2019-08-22 at 17:01 -0400, Mark H Weaver wrote:
>> It looks like this issue was already fixed in Guile 2.0.14, by commit
>> f2764cb1031379c47a17c02fef3f8164a6ce9cda on the 'stable-2.0' branch:
>>   
>> https://git.savannah.gnu.org/cgit/guile.git/commit/?h=stable-2.0&id=f2764cb1031379c47a17c02fef3f8164a6ce9cda
>> 
>> Would you like to try it and report back?
>
> Thank you, that commit fixed the problem. Reported to Debian version
> 2.0.13+1-5.1 as bug #935505, see 
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=935505

Great, thanks for letting us know.  I'm closing this bug now.

     Regards,
       Mark





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

end of thread, other threads:[~2019-08-23 19:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-15 12:29 bug#37037: Guile 2.0.13+1-5.1 FTBFS on GNU/Hurd due to one failing test Svante Signell
2019-08-22 18:33 ` Svante Signell
2019-08-22 18:34 ` bug#37037: [Fwd: Re: Guile 2.0.13+1-5.1 FTBFS on GNU/Hurd due to one failing test.] Svante Signell
2019-08-22 21:01 ` bug#37037: Guile 2.0.13+1-5.1 FTBFS on GNU/Hurd due to one failing test Mark H Weaver
2019-08-23 11:16   ` Svante Signell
2019-08-23 19:23     ` Mark H Weaver

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