unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Manolis Ragkousis <manolis837@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: Guix-devel@gnu.org
Subject: Re: Glibc/hurd work till now
Date: Fri, 21 Mar 2014 23:23:32 +0000	[thread overview]
Message-ID: <CAFtzXzOfwLtvuct5ww5jYFMXHd6xJzmUMDV24fwSXR0u9Lu2OA@mail.gmail.com> (raw)
In-Reply-To: <CAFtzXzPLmEm0rAPoLfS-p8xWFvU20R5vRuV6onxhuDABoCwt=A@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 898 bytes --]

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

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>

when doing ./pre-inst-env guile -c '(use-modules (gnu packages base))'

Will the recipes inside base.scm, that inherit from glibc, automatically
inherit from the new one?

Manolis

[-- Attachment #1.2: Type: text/html, Size: 1258 bytes --]

[-- Attachment #2: build.log --]
[-- Type: text/plain, Size: 1864 bytes --]

;;; compiled /home/manolis/.cache/guile/ccache/2.0-LE-8-2.0/home/manolis/git_repos/guix/gnu/packages/base.scm.go
Backtrace:
In unknown file:
   ?: 19 [apply-smob/1 #<catch-closure 26969c0>]
In ice-9/boot-9.scm:
  63: 18 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
 432: 17 [eval # #]
In unknown file:
   ?: 16 [call-with-input-string "(use-modules (gnu packages base))" ...]
In ice-9/command-line.scm:
 180: 15 [#<procedure 26a94c0 at ice-9/command-line.scm:175:6 (port)> #<input: string 244b5b0>]
In unknown file:
   ?: 14 [eval (use-modules (gnu packages base)) #<directory (guile-user) 2688c60>]
In ice-9/eval.scm:
 505: 13 [#<procedure 256a760 at ice-9/eval.scm:499:4 (exp)> (use-modules #)]
In ice-9/psyntax.scm:
1091: 12 [expand-top-sequence ((use-modules (gnu packages base))) () ...]
 976: 11 [scan ((use-modules (gnu packages base))) () ...]
 270: 10 [scan ((# #) #(syntax-object *unspecified* # #)) () (()) ...]
In ice-9/boot-9.scm:
3513: 9 [process-use-modules (((gnu packages base)))]
 627: 8 [map #<procedure 26222e0 at ice-9/boot-9.scm:3513:25 (mif-args)> ((#))]
3514: 7 [#<procedure 26222e0 at ice-9/boot-9.scm:3513:25 (mif-args)> (#)]
2783: 6 [resolve-interface (gnu packages base) #:select ...]
2708: 5 [#<procedure 2619bc0 at ice-9/boot-9.scm:2696:4 (name #:optional autoload version #:key ensure)> # ...]
2981: 4 [try-module-autoload (gnu packages base) #f]
2320: 3 [save-module-excursion #<procedure 26c99f0 at ice-9/boot-9.scm:2982:17 ()>]
3001: 2 [#<procedure 26c99f0 at ice-9/boot-9.scm:2982:17 ()>]
In unknown file:
   ?: 1 [primitive-load-path "gnu/packages/base" ...]
In gnu/packages/base.scm:
 772: 0 [#<procedure 48307c0 ()>]

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>

  parent reply	other threads:[~2014-03-21 23:23 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-18 10:02 Glibc/hurd work till now Manolis Ragkousis
2014-03-18 10:57 ` Ludovic Courtès
     [not found]   ` <CAFtzXzNSuz-wx2SDUafTvqtmRUbfOohO2-Nfzy7LYKd-wuWFWQ@mail.gmail.com>
2014-03-18 11:10     ` Fwd: " Manolis Ragkousis
2014-03-18 13:32 ` Ludovic Courtès
2014-03-18 14:55   ` Andreas Enge
2014-03-18 16:04     ` Ludovic Courtès
2014-03-18 19:06       ` Manolis Ragkousis
2014-03-18 20:34         ` Ludovic Courtès
2014-03-18 20:41           ` Manolis Ragkousis
2014-03-19 19:38             ` Manolis Ragkousis
2014-03-19 20:17               ` Ludovic Courtès
2014-03-19 20:47                 ` Manolis Ragkousis
2014-03-19 21:58                   ` Ludovic Courtès
2014-03-20 16:02                     ` Manolis Ragkousis
2014-03-20 20:42                       ` libpthread fails to build as an add-on Ludovic Courtès
2014-03-20 20:58                         ` Manolis Ragkousis
2014-03-23  8:28                           ` Manolis Ragkousis
2014-03-23  9:17                             ` Manolis Ragkousis
2014-03-23 21:38                               ` Ludovic Courtès
2014-03-21 23:23                       ` Manolis Ragkousis [this message]
2014-03-22 14:16                         ` Glibc/hurd work till now Ludovic Courtès
2014-03-22 16:13                           ` Manolis Ragkousis

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://guix.gnu.org/

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

  git send-email \
    --in-reply-to=CAFtzXzOfwLtvuct5ww5jYFMXHd6xJzmUMDV24fwSXR0u9Lu2OA@mail.gmail.com \
    --to=manolis837@gmail.com \
    --cc=Guix-devel@gnu.org \
    --cc=ludo@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.
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).