Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1213484 - No AArch64 support in Singular
Summary: No AArch64 support in Singular
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Singular
Version: rawhide
Hardware: aarch64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Paulo Andrade
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: ARM64, F-ExcludeArch-aarch64
TreeView+ depends on / blocked
 
Reported: 2015-04-20 16:51 UTC by Marcin Juszkiewicz
Modified: 2015-05-01 04:08 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-05-01 04:08:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
patch which got it built for me (1.12 KB, patch)
2015-04-20 16:53 UTC, Marcin Juszkiewicz
no flags Details | Diff

Description Marcin Juszkiewicz 2015-04-20 16:51:23 UTC
Description of problem:

Singular does not recognize AArch64 architecture and due to this do not build everything (dbmsr.so etc).

Version-Release number of selected component (if applicable):

3.1.6-11

How reproducible:

always

Steps to Reproduce:
1. do a build for aarch64 (arm-koji)
2.
3.

Actual results:

First:

creating cache ./config.cache
checking uname for singular... unknown
configure: warning: Unknown architecture: Check singuname.sh

Then:

+ pushd /builddir/build/BUILDROOT/Singular-3.1.6-7.fc21.aarch64/usr/lib64
+ mkdir -p Singular
+ mv dbmsr.so 'p_Procs*.so' Singular
mv: cannot stat 'dbmsr.so': No such file or directory
mv: cannot stat 'p_Procs*.so': No such file or directory
RPM build errors:

Expected results:

package builds

Additional info:

Comment 1 Marcin Juszkiewicz 2015-04-20 16:53:11 UTC
Created attachment 1016452 [details]
patch which got it built for me

With this small patch it built for me.

But when I look at amount of code for ARM and s390 then I do not know is it all what is needed.

Comment 2 Paulo Andrade 2015-04-26 16:50:35 UTC
I updated the existing -arches.patch, but did not test it so far
on aarch64. See
http://pkgs.fedoraproject.org/cgit/Singular.git/commit/?id=90662c5251ab9e93422685eb14cf20a8d8d4ea84

I think what is more important is to just not guess

...
#elif defined(SI_CPU_AARCH64)
  // FIXME: need to run some tests
  #define HAVE_MULT_MOD
  #define HAVE_GENERIC_ADD
  #ifdef HAVE_MULT_MOD
  #define HAVE_DIV_MOD
  #endif
...

but it should be upstream to make benchmark tests...

Comment 3 Marcin Juszkiewicz 2015-04-27 05:03:40 UTC
Package builds:

Wrote: /builddir/build/RPMS/factory-devel-3.1.6-12.fc23.aarch64.rpm
Wrote: /builddir/build/RPMS/factory-gftables-3.1.6-12.fc23.noarch.rpm
Wrote: /builddir/build/RPMS/libfac-devel-3.1.6-12.fc23.aarch64.rpm
Wrote: /builddir/build/RPMS/Singular-examples-3.1.6-12.fc23.aarch64.rpm
Wrote: /builddir/build/RPMS/Singular-doc-3.1.6-12.fc23.aarch64.rpm
Wrote: /builddir/build/RPMS/Singular-surfex-3.1.6-12.fc23.aarch64.rpm
Wrote: /builddir/build/RPMS/Singular-emacs-3.1.6-12.fc23.aarch64.rpm
Wrote: /builddir/build/RPMS/Singular-debuginfo-3.1.6-12.fc23.aarch64.rpm

Comment 4 Paulo Andrade 2015-05-01 04:08:13 UTC
If there any remaining issues please report again.


Note You need to log in before you can comment on or make changes to this bug.