Re: Installing cross-compiled packages alongside a cross-compile toolchain

2024-06-12 Thread Christoph Buck
Thiago Jung Bauermann writes: > Hello Christoph, Hi Thiago! > This is a pity, because it doesn't look like this use-case would be hard > to support in Guix and I think it would be a killer feature for > developers, allowing it to gain more popularity as a development tool. I think so too. Comp

Re: Installing cross-compiled packages alongside a cross-compile toolchain

2024-06-12 Thread Christoph Buck
th a feature to support native cross-build toolchains in `guix shell` i would probably add the `target` option. This option would instantiate the gcc toolchain with a cross-compile configuration for the host platform, but treat any package as cross-compiled version, so that i can specify the ad

Re: Installing cross-compiled packages alongside a cross-compile toolchain

2024-06-07 Thread Richard Sent
Hi Christoph! Christoph Buck writes: >> (define gcc-cross-aarch64-linux-toolchain >> (let ((chain (cross-gcc-toolchain "aarch64-linux-gnu"))) >> (package >> (inherit chain) >> (native-search-paths >>(package-search-paths >> (lookup-package-input chain "gcc-cross

Re: Installing cross-compiled packages alongside a cross-compile toolchain

2024-06-07 Thread Thiago Jung Bauermann
o an sd card. Additionally i want to setup a > development environment on my x64 dev machine, which i want to use to > develop native applications for the aarch64 target. For this i need a > cross-compile gcc toolchain (host: x64 target: aarch64) and > cross-compiled packages of all libraries

Installing cross-compiled packages alongside a cross-compile toolchain

2024-05-21 Thread Christoph Buck
environment on my x64 dev machine, which i want to use to develop native applications for the aarch64 target. For this i need a cross-compile gcc toolchain (host: x64 target: aarch64) and cross-compiled packages of all libraries my application will use. Sounds like the perfect use-case for the `guix shell

Cross-compile Rust packages

2023-02-08 Thread phodina via
Hello, is there a way to cross-compile the Rust binaries in Guix? I attempted to cross-compile Alacritty for Aarch64 architecture but got error. $ ./pre-inst-env guix build alacritty --target=aarch64-linux-gnu guix build: error: gnu/packages/terminals.scm:1396:2: alacritty@0.9.0: build system

Re : Re: no C_INCLUDE_PATH env variable defined : I can't compile C applications

2022-10-29 Thread Mohamed Amine LEGHERABA
Thanks guys, I tested with bash home service, and restarted my computer and now It's working. Before I was using zsh and zsh home service but it was broked for some reasons, maybe I played to much with the config files ^^. Thanks, Mohamed Amine LEGHERABA --- Original Message --- Le lund

Re: no C_INCLUDE_PATH env variable defined : I can't compile C applications

2022-10-24 Thread Efraim Flashner
On Mon, Oct 24, 2022 at 02:57:57PM +0800, 宋文武 wrote: > Mohamed Amine LEGHERABA writes: > > > Thanks Ricardo for your answer. > > > > Sorry if my message was not clear, > > I don't have the env variable C_INCLUDE_PATH in my guix system and I > > should have it because I have the packages "gcc-tool

Re: no C_INCLUDE_PATH env variable defined : I can't compile C applications

2022-10-23 Thread 宋文武
Mohamed Amine LEGHERABA writes: > Thanks Ricardo for your answer. > > Sorry if my message was not clear, > I don't have the env variable C_INCLUDE_PATH in my guix system and I > should have it because I have the packages "gcc-toolchain" and > "linux-libre-headers" in my home profile. > When I run

no C_INCLUDE_PATH env variable defined : I can't compile C applications

2022-10-23 Thread Mohamed Amine LEGHERABA via
Hello, When I do "echo $C_INCLUDE_PATH" in my bash prompt (either my account or root), I have nothing. When I run a custom guix shell (with gcc-toolchain) and I run "echo $C_INCLUDE_PATH", I have "/gnu/store/1p21dbv408cb45zcc15v7wj0q7x99rz2-profile/include" Without this env variable, C programs

Re : Re: no C_INCLUDE_PATH env variable defined : I can't compile C applications

2022-10-23 Thread Mohamed Amine LEGHERABA
Thanks Ricardo for your answer. Sorry if my message was not clear, I don't have the env variable C_INCLUDE_PATH in my guix system and I should have it because I have the packages "gcc-toolchain" and "linux-libre-headers" in my home profile. When I run a instance of guix shell with these 2 packag

Re: no C_INCLUDE_PATH env variable defined : I can't compile C applications

2022-10-23 Thread Ricardo Wurmus
Mohamed Amine LEGHERABA via writes: > When I do "echo $C_INCLUDE_PATH" in my bash prompt (either my account or > root), I have nothing. > > When I run a custom guix shell (with gcc-toolchain) and I run "echo > $C_INCLUDE_PATH", > I have "/gnu/store/1p21dbv408cb45zcc15v7wj0q7x99rz2-profile/inc

Re: compile

2022-05-02 Thread zimoun
Hi Mario, On Mon, 02 May 2022 at 19:04, marioBB wrote: > I used manifest file with: > > (specifications->manifest > '("ghc@8.10.7" > "ghc-zstd")) > > $ guix shell [...] > Loaded package environment from > /home/ms/.ghc/x86_64-linux-8.10.7/environments/default > : cannot satisfy -package

Re: compile

2022-05-02 Thread marioBB
> On Sat, 02 Apr 2022 at 18:46, marioBB via help-guix@gnu.org wrote: > > > I play around ghc compilation using guix ghc-* packages, but I've got a > > problem. > > When I install some ghc package (guix install ghc-) > > I'd like to use it in this way 'ghc -o output HelloWorld.hs -package ghc- > >

Re: compile

2022-05-02 Thread zimoun
Hi, On Sat, 02 Apr 2022 at 18:46, marioBB via wrote: > I play around ghc compilation using guix ghc-* packages, but I've got a > problem. > When I install some ghc package (guix install ghc-*) > I'd like to use it in this way 'ghc -o output HelloWorld.hs -package ghc-* > I've got an error `: ca

compile

2022-04-02 Thread marioBB via
Hi Guix community, I hope that someone here can help me. I play around ghc compilation using guix ghc-* packages, but I've got a problem. When I install some ghc package (guix install ghc-*) I'd like to use it in this way 'ghc -o output HelloWorld.hs -package ghc-* I've got an error `: cannot satis

Re: ffmpeg possibly missing compile option?

2021-12-11 Thread Alexander Asteroth
backend libvdpau_nvidia.so: cannot open shared object >> file: No such file or directory > > In [0] it is suggested that missing compile options are the reason for > these kind of errors might be missing compile flags (--enable...) which > are in fact not enabled in the package spec

ffmpeg possibly missing compile option?

2021-12-10 Thread Alexander Asteroth
Dear all, I'm trying to use vlc and ffmpeg on guix to cut mp4 files. When trying to play the mp4 files using vlc I encounter errors like: > Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object > file: No such file or directory In [0] it is suggested that miss

Resources issue with glib-compile-resources

2021-10-02 Thread phodina
Hi Guix, I'm struggling to build this package (patch provided below) and would like to ask for your ideas. The issue is that in Makefile we call glib-compile-resources to compile the resources. However, the path needs to be substituted otherwise the resources are not found when the a

Re: How to compile native?

2021-04-14 Thread Xinglu Chen
On Wed, Apr 14 2021, Vincent Legoll wrote: >> If you wanted to compile packages with specific compile flags, then >> you'll need to make custom package definitions. > > That's probably what Charles wants, but in a global way, settings > CFLAGS once for the whole d

Re: How to compile native?

2021-04-14 Thread Vincent Legoll
Hello, On Wed, Apr 14, 2021 at 8:32 PM Joshua Branson wrote: > > Charles Direg writes: > > > Hi, > > > > How can I do a compilation of the packages natively? > > Yes this is possible! You can disable substitutes to compile all > packages natively. I think

Re: How to compile native?

2021-04-14 Thread Joshua Branson
Charles Direg writes: > Hi, > > How can I do a compilation of the packages natively? Yes this is possible! You can disable substitutes to compile all packages natively. > > What I mean is that, for example in Gentoo it can be used inside > /etc/portage/make.conf: CFLAGS=

How to compile native?

2021-04-06 Thread Charles Direg
Hi, How can I do a compilation of the packages natively? What I mean is that, for example in Gentoo it can be used inside /etc/portage/make.conf: CFLAGS="-O2 -march=native -mtune=native" Is that possible in guix? Thank you very much for your time, I will be waiting for your kind responses. Gree

Re: ice-9/eval.scm:142:16: In procedure compile-top-call:

2020-03-10 Thread Jeremy Korwin-Zmijowski
"") (commit ""))) (method git-fetch) (sha256 (base32 "" (build-system emacs-build-system) (synopsis "") (description "") (license bsd-3) (home-page ""))' > /tmp/dummy-package-definition.scm $ ./pre-inst-env guix buil

Re: ice-9/eval.scm:142:16: In procedure compile-top-call:

2020-03-09 Thread Julien Lepiller
Le 9 mars 2020 06:17:24 GMT-04:00, "Jérémy Korwin-Zmijowski" a écrit : >Hi Pierre ! > >Thank you for the feedback of your test. And the insight. > >I did it with a recent guix built from sources. >But could be something wrong with my operating procedure... > >Jérémy > >Le 9 mars 2020 11:02:56 GMT

Re: ice-9/eval.scm:142:16: In procedure compile-top-call:

2020-03-09 Thread Jérémy Korwin-Zmijowski
Hi Pierre ! Thank you for the feedback of your test. And the insight. I did it with a recent guix built from sources. But could be something wrong with my operating procedure... Jérémy Le 9 mars 2020 11:02:56 GMT+01:00, Pierre Neidhardt a écrit : >Hi! > >Actually I don't get this error. I ge

ice-9/eval.scm:142:16: In procedure compile-top-call:

2020-03-08 Thread Jeremy Korwin-Zmijowski
(license bsd-3) (home-page ""))' > /tmp/dummy-package-definition.scm $ ./pre-inst-env guix build -f /tmp/dummy-package-definition.scm ice-9/eval.scm:142:16: In procedure compile-top-call: error: git-reference: unbound variable hint: Did you forget `(use-modules (guix git-download))'? Do you know why Guix doesn't see my import ? Jérémy

How to install a cross-compile toolchain?

2019-12-17 Thread Vivien Kraus
Hello guix! Trying to understand why gmp fails when cross-compiled as mingw (it cannot use g++...), I wanted to know if I could get a guix environment, but with cross-compiled dependencies. Or at least install a cross-compiler. guix environment does not recognize --target=i686-w64-mingw32. It

Re: why does guix compile rust for root?

2019-03-28 Thread Ivan Petkov
I think something changed recently which has cause a rebuild in rust (libgit2 maybe?). Hydra is building rust 1.31 as we speak, so the substitutes should be available soon —Ivan

Re: why does guix compile rust for root?

2019-03-28 Thread Joshua Branson
writes: > oops, sorry, that was usual user command run. so rust is need for icecat. Yup. Making rust reproducible is tough at the moment. I think we have to compile several rust versions at the moment... > > Mar 28, 2019, 4:45 AM by zna...@tutanota.com: > > Also I did not

Re: why does guix compile rust for root?

2019-03-27 Thread znavko
oops, sorry, that was usual user command run. so rust is need for icecat. Mar 28, 2019, 4:45 AM by zna...@tutanota.com: > Also I did not install rust by myself: > > # guix package --list-installed | grep rust > # > > > Mar 28, 2019, 4:43 AM by > zna...@tutanota.com >

Re: why does guix compile rust for root?

2019-03-27 Thread znavko
Also I did not install rust by myself: # guix package --list-installed | grep rust # Mar 28, 2019, 4:43 AM by zna...@tutanota.com : > Hello! I ran `guix system reconfigure /etc/config.scm` and now rust is > compiling. Rust is compiling too long. > > I've produced `gu

why does guix compile rust for root?

2019-03-27 Thread znavko
Hello! I ran `guix system reconfigure /etc/config.scm` and now rust is compiling. Rust is compiling too long. I've produced `guix graph --type=reverse-package rust | dot -Tsvg > r.svg` to see why does guix do this, but there is no answer. My config and rust reverse dependecies tree are in attac

Re: 'CONFIG_HEADER not defined' during sed compile during 'guix pull'

2019-02-03 Thread Nathan Valentine
Just to round this one out, I was able to get things working in a Fedora29 VM by relying on Substitutes. I found the 'Binary Installation' docs to be somewhat misleading but I wrote a BASH script (wrapped in a Vagrantfile) which details my working setup. I'm not sure its worth sharing here since

Re: 'CONFIG_HEADER not defined' during sed compile during 'guix pull'

2019-01-30 Thread Ricardo Wurmus
ing the build. > I'm trying to ease into GuixSD by first installing Guix on top of Fedora29. > Following through the docs for 'Binary installation', when I do a 'guix pull' > I'm eventually getting this error during the sed compile: > > inplace-selin

Re: 'CONFIG_HEADER not defined' during sed compile during 'guix pull'

2019-01-30 Thread Nathan Valentine
Thanks for looking at things, Ricardo. > That’s not good but I cannot reproduce this as of Guix > ba123b6dda3afb84c457f9e68c20eeff61e2c740. I ran “guix build --check > sed” to build sed. (Are you running the daemon on a system where > SELinux is enabled?) I get no output and a 0 exit code when

'CONFIG_HEADER not defined' during sed compile during 'guix pull'

2019-01-30 Thread Nathan Valentine
I'm trying to ease into GuixSD by first installing Guix on top of Fedora29. Following through the docs for 'Binary installation', when I do a 'guix pull' I'm eventually getting this error during the sed compile: inplace-selinux.sh: set-up failure: CONFIG_HEADE

Re: How to compile LaTeX with 'hyperref' package?

2018-01-23 Thread Mathieu Lirzin
Hello Ricardo, Ricardo Wurmus writes: >> Mathieu Lirzin writes: >> >>> I will try with ‘texlive-full’ to see if things work better. >> >> s/texlive-full/texlive >> >> The installation was quicker that I expect since it was already >> compiled. I confirm that compiling with ‘texlive’ succeed si

Re: How to compile LaTeX with 'hyperref' package?

2018-01-22 Thread Ricardo Wurmus
Hi Mathieu, > Mathieu Lirzin writes: > >> I will try with ‘texlive-full’ to see if things work better. > > s/texlive-full/texlive > > The installation was quicker that I expect since it was already > compiled. I confirm that compiling with ‘texlive’ succeed since > ‘hyperref.sty’ is found direc

Re: How to compile LaTeX with 'hyperref' package?

2018-01-22 Thread Mathieu Lirzin
Mathieu Lirzin writes: > I will try with ‘texlive-full’ to see if things work better. s/texlive-full/texlive The installation was quicker that I expect since it was already compiled. I confirm that compiling with ‘texlive’ succeed since ‘hyperref.sty’ is found directly in ‘texlive’ store outpu

How to compile LaTeX with 'hyperref' package?

2018-01-22 Thread Mathieu Lirzin
/store/pj62c2n9cfxq92l0sb4rcja2sh4bjjgp-texlive-latex-listings-44591 texlive-latex-hyperref 6.84a2 out /gnu/store/z00alqpxjainhwlss44fdvmlgkk6m0sp-texlive-latex-hyperref-6.84a2 --8<---cut here---end--->8--- I fail to compile a “main.tex” containing ‘\usepackage{hyperre

Re: How/When will guix pull stop to compile the 616 files?

2017-08-14 Thread Quiliro Ordonez Baca
Paul Dufresne writes: > It takes 45 mins. on my relatively old dual core to guix-pull (would > say 95% of the time > compiling). I have the same machine you do. I have opted to stop xorg and enter tty1. Then, when the download is finished, I stop networking in order to make use of the least reso

Re: How/When will guix pull stop to compile the 616 files?

2017-08-09 Thread Jack Hill
On Wed, 9 Aug 2017, Ricardo Wurmus wrote: Before a substitute can be requested, Guix will have to compute a derivation locally. In the case of Guix itself this is rather expensive. Once we have the derivation we can ask substitute servers if they have a binary substitute for performing the wor

Re: How/When will guix pull stop to compile the 616 files?

2017-08-09 Thread Ricardo Wurmus
Jack Hill writes: > On Tue, 8 Aug 2017, Ricardo Wurmus wrote: > >> >> Paul Dufresne writes: >> >>> It takes 45 mins. on my relatively old dual core to guix-pull >> >> Yeah, this isn’t great. Since 0.13.0 compilation is slower and requires >> a whole lot more memory. That’s a known problem. >>

Re: How/When will guix pull stop to compile the 616 files?

2017-08-08 Thread Paul Dufresne
Jack asked: > Could building be avoided entirely with substitutes? Are substitutes not > appropriate for some reason, or is it just that substitutes are not > produced on Hydra for every guix commit? Now, I feel dumb for not having thought to ask that question!

Re: How/When will guix pull stop to compile the 616 files?

2017-08-08 Thread Jack Hill
On Tue, 8 Aug 2017, Ricardo Wurmus wrote: Paul Dufresne writes: It takes 45 mins. on my relatively old dual core to guix-pull Yeah, this isn’t great. Since 0.13.0 compilation is slower and requires a whole lot more memory. That’s a known problem. There are some ideas to reduce the amoun

Re: How/When will guix pull stop to compile the 616 files?

2017-08-08 Thread Ricardo Wurmus
Paul Dufresne writes: > It takes 45 mins. on my relatively old dual core to guix-pull Yeah, this isn’t great. Since 0.13.0 compilation is slower and requires a whole lot more memory. That’s a known problem. There are some ideas to reduce the amount of compilation that has to happen locally,

Re: How/When will guix pull stop to compile the 616 files?

2017-08-08 Thread Paul Dufresne
I try to get to the way/vocabulary you use. It takes 45 mins. on my relatively old dual core to guix-pull (would say 95% of the time compiling). The way I begin to see it, the problem seems that guix-system itself seems to be considered as latest-drv derivation. I guess I would have prefer that t

Re: How/When will guix pull stop to compile the 616 files?

2017-08-08 Thread Alex Sassmannshausen
Hi Paul Paul Dufresne writes: > Ok, I was able to make a guix pull without compiling the 616 files. > > But I just done it again, and it seems to compile the full 616 files > each time a commit is done... > I think. This is right — guix pull will download (now via git) the l

Re: How/When will guix pull stop to compile the 616 files?

2017-08-07 Thread Paul Dufresne
Ok, I was able to make a guix pull without compiling the 616 files. But I just done it again, and it seems to compile the full 616 files each time a commit is done... I think.

How/When will guix pull stop to compile the 616 files?

2017-08-07 Thread Paul Dufresne
installed, even if it is. Well, I thought after first success, it would stop to compile it ... but it seems to compile it every time... or maybe if one of the 616 files changed, it have to recompile them all? I wonder, why it cannot recompile only the files that have changed.