unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#18933: ATLAS fails to build on mips
@ 2014-11-03  9:33 Andreas Enge
  2014-11-03 17:53 ` Federico Beffa
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Enge @ 2014-11-03  9:33 UTC (permalink / raw)
  To: 18933

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#18933: ATLAS fails to build on mips
  2014-11-03  9:33 bug#18933: ATLAS fails to build on mips Andreas Enge
@ 2014-11-03 17:53 ` Federico Beffa
  2014-11-03 21:27   ` Andreas Enge
  0 siblings, 1 reply; 6+ messages in thread
From: Federico Beffa @ 2014-11-03 17:53 UTC (permalink / raw)
  To: 18933

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?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#18933: ATLAS fails to build on mips
  2014-11-03 17:53 ` Federico Beffa
@ 2014-11-03 21:27   ` Andreas Enge
  2014-11-08 21:45     ` Federico Beffa
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Enge @ 2014-11-03 21:27 UTC (permalink / raw)
  To: Federico Beffa; +Cc: 18933

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#18933: ATLAS fails to build on mips
  2014-11-03 21:27   ` Andreas Enge
@ 2014-11-08 21:45     ` Federico Beffa
  2014-11-09  9:29       ` Andreas Enge
  2014-12-08  9:13       ` Ludovic Courtès
  0 siblings, 2 replies; 6+ messages in thread
From: Federico Beffa @ 2014-11-08 21:45 UTC (permalink / raw)
  To: Andreas Enge; +Cc: 18933

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#18933: ATLAS fails to build on mips
  2014-11-08 21:45     ` Federico Beffa
@ 2014-11-09  9:29       ` Andreas Enge
  2014-12-08  9:13       ` Ludovic Courtès
  1 sibling, 0 replies; 6+ messages in thread
From: Andreas Enge @ 2014-11-09  9:29 UTC (permalink / raw)
  To: Federico Beffa; +Cc: 18933

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#18933: ATLAS fails to build on mips
  2014-11-08 21:45     ` Federico Beffa
  2014-11-09  9:29       ` Andreas Enge
@ 2014-12-08  9:13       ` Ludovic Courtès
  1 sibling, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2014-12-08  9:13 UTC (permalink / raw)
  To: Federico Beffa, request; +Cc: 18933

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’.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-12-08  9:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-03  9:33 bug#18933: ATLAS fails to build on mips Andreas Enge
2014-11-03 17:53 ` Federico Beffa
2014-11-03 21:27   ` Andreas Enge
2014-11-08 21:45     ` Federico Beffa
2014-11-09  9:29       ` Andreas Enge
2014-12-08  9:13       ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).