unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#65523: package `guile@3.0.9' has an invalid input: ("_" #<syntax-transformer pkg-config>)
@ 2023-08-25  7:19 Paul Alesius
  2023-09-02  7:48 ` Josselin Poiret via Bug reports for GNU Guix
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Alesius @ 2023-08-25  7:19 UTC (permalink / raw)
  To: 65523

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

In the source code directory of Guix, when trying to build a package from
gnu/packages/python-xyz.scm, it fails with the following error:

guix build: error:
/storage/src/guix/guix-gnu/guix/build-system/gnu.scm:146:8: package
`guile@3.0.9' has an invalid input: ("_" #<syntax-transformer pkg-config>)

For example:
guix build -L $(pwd) -e "(begin (use-modules (gnu packages python-xyz))
poetry)"
guix build -L $(pwd) -e "(begin (use-modules (gnu packages python-xyz))
python-lsp-server)"

It fails for all packages in python-xyz.scm. But you can build other
packages:
guix build -L $(pwd) -e "(begin (use-modules (gnu packages any-other))
program)"

/ Paul

[-- Attachment #2: Type: text/html, Size: 839 bytes --]

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

* bug#65523: package `guile@3.0.9' has an invalid input: ("_" #<syntax-transformer pkg-config>)
  2023-08-25  7:19 bug#65523: package `guile@3.0.9' has an invalid input: ("_" #<syntax-transformer pkg-config>) Paul Alesius
@ 2023-09-02  7:48 ` Josselin Poiret via Bug reports for GNU Guix
  2024-02-02  4:57   ` Maxim Cournoyer
  0 siblings, 1 reply; 3+ messages in thread
From: Josselin Poiret via Bug reports for GNU Guix @ 2023-09-02  7:48 UTC (permalink / raw)
  To: Paul Alesius, 65523

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

Hi Paul,

Paul Alesius <paul@unnservice.com> writes:

> In the source code directory of Guix, when trying to build a package from
> gnu/packages/python-xyz.scm, it fails with the following error:
>
> guix build: error:
> /storage/src/guix/guix-gnu/guix/build-system/gnu.scm:146:8: package
> `guile@3.0.9' has an invalid input: ("_" #<syntax-transformer pkg-config>)

Usually, if you see `#<syntax-transformer ...>` anywhere in an error,
that means that something that used to be just a variable was turned
into a macro, but the other modules using it weren't recompiled
(reminder that macro expansion happens at compilation time).  This
happens because Guile doesn't have any dependency tracking!  You can
work around this by recompiling all files containing a reference to
pkg-config, I usually do `grep -Rl pkg-config --include '*.go' . | xargs
rm`, followed by `make`.

Best,
-- 
Josselin Poiret

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 682 bytes --]

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

* bug#65523: package `guile@3.0.9' has an invalid input: ("_" #<syntax-transformer pkg-config>)
  2023-09-02  7:48 ` Josselin Poiret via Bug reports for GNU Guix
@ 2024-02-02  4:57   ` Maxim Cournoyer
  0 siblings, 0 replies; 3+ messages in thread
From: Maxim Cournoyer @ 2024-02-02  4:57 UTC (permalink / raw)
  To: Josselin Poiret; +Cc: Paul Alesius, 65523-done

Hi,

Josselin Poiret <dev@jpoiret.xyz> writes:

> Hi Paul,
>
> Paul Alesius <paul@unnservice.com> writes:
>
>> In the source code directory of Guix, when trying to build a package from
>> gnu/packages/python-xyz.scm, it fails with the following error:
>>
>> guix build: error:
>> /storage/src/guix/guix-gnu/guix/build-system/gnu.scm:146:8: package
>> `guile@3.0.9' has an invalid input: ("_" #<syntax-transformer pkg-config>)
>
> Usually, if you see `#<syntax-transformer ...>` anywhere in an error,
> that means that something that used to be just a variable was turned
> into a macro, but the other modules using it weren't recompiled
> (reminder that macro expansion happens at compilation time).  This
> happens because Guile doesn't have any dependency tracking!  You can
> work around this by recompiling all files containing a reference to
> pkg-config, I usually do `grep -Rl pkg-config --include '*.go' . | xargs
> rm`, followed by `make`.

Thanks for the answer, Josselin!

Closing.

-- 
Maxim




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

end of thread, other threads:[~2024-02-02  4:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-25  7:19 bug#65523: package `guile@3.0.9' has an invalid input: ("_" #<syntax-transformer pkg-config>) Paul Alesius
2023-09-02  7:48 ` Josselin Poiret via Bug reports for GNU Guix
2024-02-02  4:57   ` Maxim Cournoyer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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