[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Glibc/hurd work till now

From: Ludovic Courtès
Subject: Re: Glibc/hurd work till now
Date: Sat, 22 Mar 2014 15:16:06 +0100
User-agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux)

Manolis Ragkousis <address@hidden> skribis:

> I started writing the macro that chooses between 'glibc/linux' and
> 'glibc/hurd' so I added #:export (glibc) at defined modules, renamed glibc
> to glibc/linux and then I added
> (define (glibc-for-target target)
>   "Return the glibc for TARGET, glibc/linux for a linux host or
> glibc/hurd for a hurd host"
>   (match target
>     ("i686-pc-gnu" glibc/hurd)
>     (_ glibc/linux)))
> (define-syntax glibc
>   (identifier-syntax (glibc-for-target (%current-target-system))))

Looks good!  It should be:

  (glibc-for-target (or (%current-target-system) (%current-system)))

so that, when we build natively on GNU/Hurd, we also end up using

> Is my approach right? Because I am getting the error
> gnu/packages/base.scm:772:3: In procedure #<procedure 48307c0 ()>:
> gnu/packages/base.scm:772:3: In procedure struct-ref: Wrong type argument
> in position 1 (expecting struct): #<syntax-transformer glibc>

Run ‘make clean-go && make’ to recompile the Scheme file, and everything
will be alright, hopefully.  :-)

(This is because macros are expanded at compile time, so any Scheme file
that refers to ‘glibc’ must be recompiled so that the macro gets


reply via email to

[Prev in Thread] Current Thread [Next in Thread]