* Problem when packaging Avizo
@ 2022-03-03 2:45 Pier-Hugues Pellerin
2022-03-08 10:51 ` Ludovic Courtès
0 siblings, 1 reply; 5+ messages in thread
From: Pier-Hugues Pellerin @ 2022-03-03 2:45 UTC (permalink / raw)
To: help-guix
Hello,
I've been enjoying my time with Guix so far and I've decided to packages a
few applications that
I was using before switching. I've been trying to package avizo[0], they
seem to be using meson and ninja to build the software. So I've written the
following package, but when I've tried to build it using "guix build -L .
--debug=1 avizo" I get an exception.
Maybe I've missed something in the documentation.
Thanks for your help
Package:
(define-module (avizo)
#:use-module (guix packages)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages gnome)
#:use-module (gnu packages gtk)
#:use-module (gnu packages glib)
#:use-module (gnu packages pkg-config)
#:use-module (guix git-download)
#:use-module (guix build-system meson))
(define-public avizo
(package
(name "avizo")
(version "1.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/misterdanb/avizo")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "02h2jbgrbl2hyq6bzwryc1r47mipgdqrdh7zi44skc25w045s6q5"))))
(build-system meson-build-system)
(arguments
`(#:build-type "release"))
(inputs
`(("gtk+", gtk+)))
(native-inputs
`(("vala", vala)
("glib:bin", glib "bin")
("gobject-introspection", gobject-introspection)
("gtk-layer-shell", gtk-layer-shell)
("pkg-config", pkg-config)))
(home-page "https://github.com/misterdanb/avizo")
(synopsis "Avizo")
(description "@code{Avizo} is a simple notification daemon, mainly
intended to be used for multimedia keys for example with Sway.")
(license license:gpl3+)))
Snippet from the execution
avizo 1.1
User defined options
buildtype : release
prefix : /gnu/store/1fv2c9zhmzhbp7ry1y1qhnwql8bf83fq-avizo-1.2
c_link_args :
-Wl,-rpath=/gnu/store/1fv2c9zhmzhbp7ry1y1qhnwql8bf83fq-avizo-1.2/lib
cpp_link_args:
-Wl,-rpath=/gnu/store/1fv2c9zhmzhbp7ry1y1qhnwql8bf83fq-avizo-1.2/lib
Found ninja-1.10.2 at
/gnu/store/yqv6h38aa5809l4d8mz078knwf86mb32-ninja-1.10.2/bin/ninja
phase `configure' succeeded after 1.6 seconds
starting phase `patch-generated-file-shebangs'
phase `patch-generated-file-shebangs' succeeded after 0.0 seconds
starting phase `build'
Backtrace:
In guix/store.scm:
1320:8 19 (call-with-build-handler #<procedure 7f6d1bf4d9f0 at g…> …)
In guix/ui.scm:
466:3 18 (_)
In ice-9/boot-9.scm:
1747:15 17 (with-exception-handler #<procedure 7f6d04026120 at ic…> …)
1752:10 16 (with-exception-handler _ _ #:unwind? _ # _)
In guix/ui.scm:
453:6 15 (_)
In guix/scripts/build.scm:
626:5 14 (_)
In srfi/srfi-1.scm:
673:15 13 (append-map _ _ . _)
586:17 12 (map1 ("x86_64-linux"))
In guix/scripts/build.scm:
628:21 11 (_ _)
In guix/store.scm:
1406:5 10 (map/accumulate-builds #<store-connection 256.99 7f6d1…> …)
1421:15 9 (_ #<store-connection 256.99 7f6d1be687d0> _ _)
759:14 8 (process-stderr _ _)
In unknown file:
7 (display "@ build-log 4365 150\n[1/11] Generating aviz…" …)
In guix/status.scm:
754:20 6 (write! _ _ _)
In srfi/srfi-1.scm:
460:18 5 (fold #<procedure 7f6d1bf54e80 at guix/status.scm:644:…> …)
In guix/status.scm:
645:15 4 (_ (build-log 4365 "[1/11] Generating avizo-resource…") #)
179:23 3 (update-build #<<build-status> building: () downloadin…> …)
In ice-9/boot-9.scm:
1685:16 2 (raise-exception _ #:continuable? _)
1685:16 1 (raise-exception _ #:continuable? _)
1685:16 0 (raise-exception _ #:continuable? _)
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
In procedure struct-vtable: Wrong type argument in position 1 (expecting
struct): #f
--
ph,
[0]: https://github.com/misterdanb/avizo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problem when packaging Avizo
2022-03-03 2:45 Problem when packaging Avizo Pier-Hugues Pellerin
@ 2022-03-08 10:51 ` Ludovic Courtès
2022-03-08 16:53 ` Pier-Hugues Pellerin
0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2022-03-08 10:51 UTC (permalink / raw)
To: Pier-Hugues Pellerin; +Cc: help-guix
Hi Pier-Hugues,
Pier-Hugues Pellerin <ph@heykimo.com> skribis:
> In guix/status.scm:
> 645:15 4 (_ (build-log 4365 "[1/11] Generating avizo-resource…") #)
> 179:23 3 (update-build #<<build-status> building: () downloadin…> …)
> In ice-9/boot-9.scm:
> 1685:16 2 (raise-exception _ #:continuable? _)
> 1685:16 1 (raise-exception _ #:continuable? _)
> 1685:16 0 (raise-exception _ #:continuable? _)
>
> ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> In procedure struct-vtable: Wrong type argument in position 1 (expecting
> struct): #f
It looks like you hit a genuine bug, similar to
<https://issues.guix.gnu.org/43518>.
Does it happen every time you try to build this package?
Does it happen when you build with ‘--max-jobs=1 --no-offload’?
Thanks in advance,
Ludo’.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problem when packaging Avizo
2022-03-08 10:51 ` Ludovic Courtès
@ 2022-03-08 16:53 ` Pier-Hugues Pellerin
2022-03-16 14:52 ` Maxim Cournoyer
0 siblings, 1 reply; 5+ messages in thread
From: Pier-Hugues Pellerin @ 2022-03-08 16:53 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: help-guix
Hello Ludo,
It does happen every time, I've added the parameters '--max-jobs=1
--no-offload'
and I get the same results with the same stack trace. Anything else I could
give you, should
I open a bug report?
Thanks
ph
On Tue, Mar 8, 2022 at 5:51 AM Ludovic Courtès <ludo@gnu.org> wrote:
> Hi Pier-Hugues,
>
> Pier-Hugues Pellerin <ph@heykimo.com> skribis:
>
> > In guix/status.scm:
> > 645:15 4 (_ (build-log 4365 "[1/11] Generating avizo-resource…") #)
> > 179:23 3 (update-build #<<build-status> building: () downloadin…> …)
> > In ice-9/boot-9.scm:
> > 1685:16 2 (raise-exception _ #:continuable? _)
> > 1685:16 1 (raise-exception _ #:continuable? _)
> > 1685:16 0 (raise-exception _ #:continuable? _)
> >
> > ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> > In procedure struct-vtable: Wrong type argument in position 1 (expecting
> > struct): #f
>
> It looks like you hit a genuine bug, similar to
> <https://issues.guix.gnu.org/43518>.
>
> Does it happen every time you try to build this package?
>
> Does it happen when you build with ‘--max-jobs=1 --no-offload’?
>
> Thanks in advance,
> Ludo’.
>
--
ph,
http://heykimo.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problem when packaging Avizo
2022-03-08 16:53 ` Pier-Hugues Pellerin
@ 2022-03-16 14:52 ` Maxim Cournoyer
2022-03-25 19:26 ` Pier-Hugues Pellerin
0 siblings, 1 reply; 5+ messages in thread
From: Maxim Cournoyer @ 2022-03-16 14:52 UTC (permalink / raw)
To: Pier-Hugues Pellerin; +Cc: help-guix
Hi Pier-Hugues,
Pier-Hugues Pellerin <ph@heykimo.com> writes:
> Hello Ludo,
>
> It does happen every time, I've added the parameters '--max-jobs=1
> --no-offload'
> and I get the same results with the same stack trace. Anything else I could
> give you, should
> I open a bug report?
I've tested your definition, and it seems the problem is unrelated to
the suggested bug report after all. The issue appears to be adding the
current directory (presumably of your guix checkout) to the load path
with 'L .'; this somehow interferes with Guix's own loading/discovery
mechanism and fails with:
--8<---------------cut here---------------start------------->8---
guix build: warning: failed to load '(build-aux build-self)':
no code for module (build-aux build-self)
./build-aux/build-self.scm:19:0: warning: module name (build-self) does not match file name 'build-aux/bu'
hint: File `./build-aux/build-self.scm' should probably start with:
(define-module (build-aux build-self))
--8<---------------cut here---------------end--------------->8---
One way out would be to move your package to somewhere else:
--8<---------------cut here---------------start------------->8---
mkdir -p /tmp/avizo
mv avizo.scm /tmp/avizo
$ guix build -L /tmp/avizo avizo
/gnu/store/kv6ycqqxv2xqq3kxa9lmv9aczravs5cp-avizo-1.2
--8<---------------cut here---------------end--------------->8---
Alternatively, you could return the package object at the end of your
avizo.scm file, then build it more simply with:
--8<---------------cut here---------------start------------->8---
$ guix build -f avizo.scm
/gnu/store/kv6ycqqxv2xqq3kxa9lmv9aczravs5cp-avizo-1.2
--8<---------------cut here---------------end--------------->8---
I hope that helps!
Thanks,
Maxim
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problem when packaging Avizo
2022-03-16 14:52 ` Maxim Cournoyer
@ 2022-03-25 19:26 ` Pier-Hugues Pellerin
0 siblings, 0 replies; 5+ messages in thread
From: Pier-Hugues Pellerin @ 2022-03-25 19:26 UTC (permalink / raw)
To: Maxim Cournoyer; +Cc: help-guix
Hello,
Thanks for your reply, work got in the way of fun and I didn't have time to
reply.
I've run two different machines: a laptop and a desktop, I've copied the
avizo file on the desktop
and I was able to build it without any changes or issues using the same
command and similar directory structure.
I don't know if it's related or not, but when I tried to build the package
on my laptop my desktop machine was down and I do use it as a substitute, I
believe I've seen errors or warnings but I didn't pay attention to it. I
can try later this weekend to reproduce it.
I am going to make a patch adding avizo.
Thanks everyone.
On Wed, Mar 16, 2022 at 10:52 AM Maxim Cournoyer <maxim.cournoyer@gmail.com>
wrote:
> Hi Pier-Hugues,
>
> Pier-Hugues Pellerin <ph@heykimo.com> writes:
>
> > Hello Ludo,
> >
> > It does happen every time, I've added the parameters '--max-jobs=1
> > --no-offload'
> > and I get the same results with the same stack trace. Anything else I
> could
> > give you, should
> > I open a bug report?
>
> I've tested your definition, and it seems the problem is unrelated to
> the suggested bug report after all. The issue appears to be adding the
> current directory (presumably of your guix checkout) to the load path
> with 'L .'; this somehow interferes with Guix's own loading/discovery
> mechanism and fails with:
>
> --8<---------------cut here---------------start------------->8---
> guix build: warning: failed to load '(build-aux build-self)':
> no code for module (build-aux build-self)
> ./build-aux/build-self.scm:19:0: warning: module name (build-self) does
> not match file name 'build-aux/bu'
> hint: File `./build-aux/build-self.scm' should probably start with:
>
> (define-module (build-aux build-self))
> --8<---------------cut here---------------end--------------->8---
>
> One way out would be to move your package to somewhere else:
>
> --8<---------------cut here---------------start------------->8---
> mkdir -p /tmp/avizo
>
> mv avizo.scm /tmp/avizo
>
> $ guix build -L /tmp/avizo avizo
> /gnu/store/kv6ycqqxv2xqq3kxa9lmv9aczravs5cp-avizo-1.2
> --8<---------------cut here---------------end--------------->8---
>
> Alternatively, you could return the package object at the end of your
> avizo.scm file, then build it more simply with:
>
> --8<---------------cut here---------------start------------->8---
> $ guix build -f avizo.scm
> /gnu/store/kv6ycqqxv2xqq3kxa9lmv9aczravs5cp-avizo-1.2
> --8<---------------cut here---------------end--------------->8---
>
> I hope that helps!
>
> Thanks,
>
> Maxim
>
--
ph,
http://heykimo.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-03-25 19:33 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-03 2:45 Problem when packaging Avizo Pier-Hugues Pellerin
2022-03-08 10:51 ` Ludovic Courtès
2022-03-08 16:53 ` Pier-Hugues Pellerin
2022-03-16 14:52 ` Maxim Cournoyer
2022-03-25 19:26 ` Pier-Hugues Pellerin
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).