guix-devel
[Top][All Lists]
Advanced

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

Re: avr-gcc


From: Jan Nieuwenhuizen
Subject: Re: avr-gcc
Date: Sat, 16 Apr 2016 21:55:52 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Ludovic Courtès writes:

> Jan Nieuwenhuizen <address@hidden> skribis:
>
>> Except for packages that need a native gcc to build tools during build
>> time (CC_FOR_BUILD).  For such packages (like Bash or Guile),
>> standard-packages must include gcc again.  Then, the build recipe's
>> phases must be changed so that when cross compiling, the
>> C_INCLUDE_PATH is moved into CPATH and C_INCLUDE_PATH is unset.
>> That makes this solution even more unattractive, many changes
>> to package recipe's could be needed.
>
> Right!  That is really a bug, and I wonder why we didn’t catch it before
> (maybe because the libc’s are pretty much the same in the systems we
> were targeting?).
>
> I had actually worked around it in
> e8e2e18b84eb8842a59be9bf7d49bb672260ae3a in one particular case.

Ah, I see.

> So the fix, as you suggest, is (1) to change
> gcc-cross-environment-variables.patch to CROSS_ify the other environment
> variables as well, and (2) to remove the unsetenv that was added in
> e8e2e18b84eb8842a59be9bf7d49bb672260ae3a.

Yes, that's the idea.  And then also use CROSS_C_INCLUDE_PATH and
C_INCLUDE_PATH in cross-base.scm, i.e., for the new libc and gcc cross
builds.

> Could you give it a try?  :-)

I'm looking into this and have some success, quite some things need
to be rebuilt ;-)

> Thanks for taking the time to explain!

That's good to hear!  Thanks for looking into this and providing
information!

Greetings,
Jan

-- 
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar®  http://AvatarAcademy.nl  



reply via email to

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