[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#25799: [PATCH] gnu: add basic support for "alpha-linux" system
From: |
Sergei Trofimovich |
Subject: |
bug#25799: [PATCH] gnu: add basic support for "alpha-linux" system |
Date: |
Tue, 7 Mar 2017 21:56:03 +0000 |
On Tue, 07 Mar 2017 18:17:02 +0100
address@hidden (Ludovic Courtès) wrote:
> Hello,
>
> Sergei Trofimovich <address@hidden> skribis:
>
> > This change allows cross-building packages
> > by just using --target=alpha-unknown-linux-gnu re2c:
> >
> > $ ./pre-inst-env guix build --target=alpha-unknown-linux-gnu re2c
> > $ file /gnu/store/p1z9iszzb4ng0vzc535sc2ha33ax24l6-re2c-0.16/bin/re2c
> > /gnu/store/p1z9iszzb4ng0vzc535sc2ha33ax24l6-re2c-0.16/bin/re2c: ELF 64-bit
> > LSB executable, Alpha (unofficial), version 1 (SYSV), dynamically linked,
> > interpreter
> > /gnu/store/0z5d6z3hh41w7z5g2g82zlnwgpbj0i1a-glibc-cross-alpha-unknown-linux-gnu-2.24/lib/ld-linux.so.2,
> > for GNU/Linux 3.2.0, not stripped
>
> Woow, fun. :-)
>
> Do you have an Alpha machine to test it on?
Sort of :)
$ cat /proc/cpuinfo
cpu : Alpha
cpu model : EV68AL
cpu variation : 7
cpu revision : 0
cpu serial number : AY22100848
system type : Tsunami
system variation : Clipper
system revision : 0
system serial number : AY15009638
cycle frequency [Hz] : 833333333
timer frequency [Hz] : 1024.00
I have ssh access to a machine with Gentoo linux on it.
But didn't try to run there anything guix-built
more complex that small statically linked programs. yet.
I still need to master 'guix archive'.
Currently I'm running most of stuff via qemu-alpha.
That works just fine on x86_64 host:
$ qemu-alpha /gnu/store/pzyj57ya3ckf1b627db19a5mwksr9h9c-re2c-0.16/bin/re2c
--version
re2c 0.16
I'd like to get to working guix package manager environment
on hardware alpha. Mostly as a first attempt before trying
slightly more complex things like sparc and powerpc64 :)
> > The only slighty nontrivial change is GLIBC_DYNAMIC_LINKER change:
> > glibc for alpha uses 'GLIBC_DYNAMIC_LINKER<TAB>"/lib/ld-linux.so.2"'
> >
> > * gnu/packages/bootstrap.scm (glibc-dynamic-linker): add
> > "/lib/ld-linux.so.2" as "alpha-linux" ld.so
> > * gnu/packages/gcc.scm (gcc-4.7): fix GLIBC_DYNAMIC_LINKER substitution
> > when delimiter is a tab
> > * gnu/packages/linux.scm (system->linux-architecture): add "alpha" arch
>
> Unfortunately the gcc.scm change triggers a full rebuild so we’ll have
> to delay it to ‘core-updates’ (most likely the next cycle).
>
> I’ve applied the patch without this change for now.
Should I try to resend once there will be an email about core-updates
branch opening or is there another branch to send core changes to?
My apologies for dumb questions.
--
Sergei
pgpID_aX4D0Zr.pgp
Description: Цифровая подпись OpenPGP