help-guix
[Top][All Lists]
Advanced

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

Re: Seeking help to create link to libstdc++.so in /lib64


From: Milind Kamble
Subject: Re: Seeking help to create link to libstdc++.so in /lib64
Date: Wed, 2 Nov 2022 06:59:35 -0500

Thanks for responding Petr. Could you elaborate how to compose it with
the outer function?
I tried this
(operating-system  ;; other stuff snipped out
  (services
      (list
             (extra-special-file "/lib64/libstdc++.so.6"
                         (file-append  `(,gcc "lib") "/lib/libstdc++.so.6"))
))))

It gives me this error:
In procedure struct-vtable: Wrong type argument in position 1
(expecting struct): (#<package gcc@10.3.0 gnu/packages/gcc.scm:659
7fb670d7d0b0> "lib")

So file-append does not like/expect a list. It expects a package
object for first argument

-Milind

On Tue, Nov 1, 2022 at 4:54 AM phodina <phodina@protonmail.com> wrote:
>
> Hi Milind,
>
>
>
> > If instead of file-append, I use string-append like this:
> > #~(string-append $#gcc:lib "/lib/libstdc++.so.6")
> > it works to the extent that gcc:lib is expanded correctly, but then
> > activate-service.scm script contains
> > (activate-special-files (quote (("/lib64/libstdc++.so.6"
> > (string-append "/gnu/store/6d0pl5khj08j3c2619jnypc8bznspgx8-gcc-10.3.0-lib"
> > "/lib/libstdc++.so.6")))))
> >
> > and which results in an error:
> > wrong type (expecting string): (string-append
> > "/gnu/store//gnu/store/6d0pl5khj08j3c2619jnypc8bznspgx8-gcc-10.3.0.lib"
> > "/lib/libstdc++.so.6")
> >
>
> IMHO you can try the following code instead of the Gexp:
> `(,gcc "lib")
>
> Hope it helps!
>
> ----
> Petr



reply via email to

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