GNU bug report logs - #18933
ATLAS fails to build on mips

Previous Next

Package: guix;

Reported by: Andreas Enge <andreas <at> enge.fr>

Date: Mon, 3 Nov 2014 09:35:02 UTC

Severity: normal

Tags: wontfix

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 18933 in the body.
You can then email your comments to 18933 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#18933; Package guix. (Mon, 03 Nov 2014 09:35:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andreas Enge <andreas <at> enge.fr>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 03 Nov 2014 09:35:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andreas Enge <andreas <at> enge.fr>
To: bug-guix <at> gnu.org
Subject: ATLAS fails to build on mips
Date: Mon, 3 Nov 2014 10:33:42 +0100
ATLAS fails to build on mipsel64:
   http://hydra.gnu.org/build/133025
with
mkdir ARCHS
make -f Make.top startup
make[1]: Entering directory '/tmp/nix-build-atlas-3.10.2.drv-0/build'
Make.top:1: Make.inc: No such file or directory
make[1]: *** No rule to make target 'Make.inc'.  Stop.
make[1]: Leaving directory '/tmp/nix-build-atlas-3.10.2.drv-0/build'

Can this be repaired, or is the package not supposed to work on mipsel64?
In the latter case, we would need to disable it for this architecture.

Andreas





Information forwarded to bug-guix <at> gnu.org:
bug#18933; Package guix. (Mon, 03 Nov 2014 17:54:02 GMT) Full text and rfc822 format available.

Message #8 received at 18933 <at> debbugs.gnu.org (full text, mbox):

From: Federico Beffa <beffa <at> ieee.org>
To: 18933 <at> debbugs.gnu.org
Subject: Re: ATLAS fails to build on mips
Date: Mon, 3 Nov 2014 18:53:35 +0100
What I see is that ATLAS is not able to detect the type of system on
which it is running.

My first question then is:

* Are we corss-compiling, or are we on proper hardware?

If we are cross-compiling, then the only solution that I see it to try
to fix the configuration with parameters passed to configure and give
up on optimization.

I have no practical experience with MIPS, so my next question is: In
the list of architectures supported by ATLAS I see:

49 = 'MIPSR1xK'
50 = 'MIPSICE9'

Is one of the two appropriate?

Also ATLAS wants to know about ISA extensions. Is any of the following
relevant or should I pick 'none'?

         none: 1
          VSX: 2
      AltiVec: 4
       AVXMAC: 8
      AVXFMA4: 16
          AVX: 32
         SSE3: 64
         SSE2: 128
         SSE1: 256
        3DNow: 512
         NEON: 1024

Regards,
Fede

P.S.: I'm indeed not subscribed to the bug list. Could you copy me directly?




Information forwarded to bug-guix <at> gnu.org:
bug#18933; Package guix. (Mon, 03 Nov 2014 21:28:02 GMT) Full text and rfc822 format available.

Message #11 received at 18933 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Enge <andreas <at> enge.fr>
To: Federico Beffa <beffa <at> ieee.org>
Cc: 18933 <at> debbugs.gnu.org
Subject: Re: bug#18933: ATLAS fails to build on mips
Date: Mon, 3 Nov 2014 22:27:45 +0100
On Mon, Nov 03, 2014 at 06:53:35PM +0100, Federico Beffa wrote:
> * Are we corss-compiling, or are we on proper hardware?

No, it is native on a mips machine.

> I have no practical experience with MIPS, so my next question is: In
> the list of architectures supported by ATLAS I see:
> 49 = 'MIPSR1xK'
> 50 = 'MIPSICE9'

No idea. But there is a debian package for mipsel, described as
"The libraries in this package are built without any processor extension instructions, and should run on all processors of this general architecture, albeit less than optimally."

> Also ATLAS wants to know about ISA extensions. Is any of the following
> relevant or should I pick 'none'?
>          none: 1
>           VSX: 2
>       AltiVec: 4
>        AVXMAC: 8
>       AVXFMA4: 16
>           AVX: 32
>          SSE3: 64
>          SSE2: 128
>          SSE1: 256
>         3DNow: 512
>          NEON: 1024

2 and 4 are for powerpc, 8 to 512 for x86 and 1024 for arm. So "none"
should be best.

Andreas





Information forwarded to bug-guix <at> gnu.org:
bug#18933; Package guix. (Sat, 08 Nov 2014 21:46:02 GMT) Full text and rfc822 format available.

Message #14 received at 18933 <at> debbugs.gnu.org (full text, mbox):

From: Federico Beffa <beffa <at> ieee.org>
To: Andreas Enge <andreas <at> enge.fr>
Cc: 18933 <at> debbugs.gnu.org
Subject: Re: bug#18933: ATLAS fails to build on mips
Date: Sat, 8 Nov 2014 22:45:18 +0100
I'm trying to pass an architecture parameter to configure. However, if
I do something like

...
       #:configure-flags
       `(...
         ;; On non "x86_64" / "i686" platforms, do not guess processor
         ;; architecture (because it fails) and do not use ISA extensions.
         ;; We set MACHINETYPE = 52 'generic' and ISA = 1 'none'.
         ,,(if (not (and (string-prefix? "x86_64" (%current-system))
                       (string-prefix? "i686" (%current-system))))
             "-A 52 -V 1")
...

the configure flags are not recognized. Differently from this, if I
pass each parameter as a separate string as in

"-A" "52" "-V" "1"

they are recognized. Do you have a suggestion for how to achieve this
without 4 equal 'if'?

Regards,
Fede




Information forwarded to bug-guix <at> gnu.org:
bug#18933; Package guix. (Sun, 09 Nov 2014 09:30:02 GMT) Full text and rfc822 format available.

Message #17 received at 18933 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Enge <andreas <at> enge.fr>
To: Federico Beffa <beffa <at> ieee.org>
Cc: 18933 <at> debbugs.gnu.org
Subject: Re: bug#18933: ATLAS fails to build on mips
Date: Sun, 9 Nov 2014 10:29:14 +0100
On Sat, Nov 08, 2014 at 10:45:18PM +0100, Federico Beffa wrote:
>        #:configure-flags
>        `(...
>          ;; On non "x86_64" / "i686" platforms, do not guess processor
>          ;; architecture (because it fails) and do not use ISA extensions.
>          ;; We set MACHINETYPE = 52 'generic' and ISA = 1 'none'.
>          ,,(if (not (and (string-prefix? "x86_64" (%current-system))
>                        (string-prefix? "i686" (%current-system))))
>              "-A 52 -V 1")

You should put the different configure flags as elements of a list.
To concatenate with an existing list, you can do something like this
(taken from xkbcomp):
    (inputs
      `(,@(package-inputs xkbcomp-intermediate)
        ("xkeyboard-config" ,xkeyboard-config)))

Andreas





Information forwarded to bug-guix <at> gnu.org:
bug#18933; Package guix. (Mon, 08 Dec 2014 09:14:02 GMT) Full text and rfc822 format available.

Message #20 received at 18933 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Federico Beffa <beffa <at> ieee.org>, request <at> debbugs.gnu.org
Cc: Andreas Enge <andreas <at> enge.fr>, 18933 <at> debbugs.gnu.org
Subject: Re: bug#18933: ATLAS fails to build on mips
Date: Mon, 08 Dec 2014 10:13:46 +0100
tag 18933 wontfix
close 18933
thanks

The attempt to get ATLAS on MIPS failed; commit 01480b9e disables it
on MIPS.

See
<https://lists.gnu.org/archive/html/guix-devel/2014-11/msg00516.html>
for the discussion.

Ludo’.




Added tag(s) wontfix. Request was from ludo <at> gnu.org (Ludovic Courtès) to control <at> debbugs.gnu.org. (Mon, 08 Dec 2014 09:14:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 18933 <at> debbugs.gnu.org and Andreas Enge <andreas <at> enge.fr> Request was from ludo <at> gnu.org (Ludovic Courtès) to control <at> debbugs.gnu.org. (Mon, 08 Dec 2014 09:14:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 05 Jan 2015 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 165 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.