Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#19719 closed defect (fixed)

Atlas 3.8.2 fails to build on PPC

Reported by: anddam (Andrea D'Amore) Owned by: jameskyle@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: atlas build fails ppc Cc: bruno.matos@…
Port: atlas

Description

I'm trying to build atlas@3.8.2 on a G4 running 10.5.7 and upgraded ports, I get several errors first of whom is

dmm.c:40: error: 'vector' undeclared (first use in this function)

that vector reference makes me think about an AltiVec specific issue.

I'm attaching the build phase debug output.

Attachments (3)

atlas build error.txt (12.3 KB) - added by anddam (Andrea D'Amore) 15 years ago.
Portfile.patch (842 bytes) - added by mtalexander (Mike Alexander) 15 years ago.
Patch to make atlas build on a PowerPC machine
error after patch.txt.gz (127.9 KB) - added by anddam (Andrea D'Amore) 15 years ago.

Download all attachments as: .zip

Change History (12)

Changed 15 years ago by anddam (Andrea D'Amore)

Attachment: atlas build error.txt added

comment:1 Changed 15 years ago by tobypeterson

Owner: changed from ajb78@… to macports-tickets@…

Changed 15 years ago by mtalexander (Mike Alexander)

Attachment: Portfile.patch added

Patch to make atlas build on a PowerPC machine

comment:2 Changed 15 years ago by mtalexander (Mike Alexander)

I just attached a patch to the atlas Portfile which makes it build on a PowerPC. I know almost nothing about atlas so I don't know if this is correct or not, but it seems plausible. Ticket 20106 seems to imply that

python -c "import numpy; numpy.test()"

is a way to test atlas. I tried this (after upgrading py25-numpy) and it worked.

comment:3 Changed 15 years ago by blb@…

Owner: changed from macports-tickets@… to jameskyle@…

comment:4 Changed 15 years ago by anddam (Andrea D'Amore)

Still not working, full debug output from configure to build attached.

Changed 15 years ago by anddam (Andrea D'Amore)

Attachment: error after patch.txt.gz added

comment:5 in reply to:  description Changed 15 years ago by aaaskew@…

Replying to and.damore@…:

I'm trying to build atlas@3.8.2 on a G4 running 10.5.7 and upgraded ports, I get several errors first of whom is

dmm.c:40: error: 'vector' undeclared (first use in this function)

that vector reference makes me think about an AltiVec specific issue.

I'm attaching the build phase debug output.

I see the same issue on a 32bit PPC G4 running 10.4.11, and MacPorts 1.8.1 while building atlas 3.8.3.

Looking at the atlas source web site, there is some suggestion about issues when not using the Apple GCC. I started by adding

configure.args-append -D c -DATL_AVgcc

to the Portfile. This then caused errors saying to add a -maltivec flag. Adding --cflags="-maltivec" (my guess) or --cflags="-mregnames" (also from the atlas web site) did not help.

I then noticed that MACHTYPE set after the configure stage of the atlas build is bad and the Architecture is set to UNKNOWN. Atlas seems to build xprobe_arch to work this out but it is failing. The error says make:* [xarchinfo_x86] Error 1

Why would it be trying to do x86 commands?

Please tell me what I should be looking for next or what further information I can provide.

comment:6 Changed 15 years ago by jameskyle@…

Resolution: fixed
Status: newclosed

current trunk version 3.8.3 should fix many ppc issues.

I can't guarantee the G4 though as I do not test on this arch.

comment:7 Changed 15 years ago by anddam (Andrea D'Amore)

I'm going to sync and check it just now.

comment:8 Changed 15 years ago by bruno.matos@…

I have a problem with the version 3.8.3 either:

--->  Building atlas
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_atlas/work/atlas-3.8.3/build" && /usr/bin/make build " returned error 2
Command output:               Performance = 228.24 (15.25 of copy matmul, 15.23 of clock)


STAGE 2-4: TUNING PREC='c' (precision 4 of 4)


   STAGE 2-4-1 : BUILDING BLOCK MATMUL TUNE
make -f Makefile IRunMMDef pre=c 2>&1 | ./xatlas_tee INSTALL_LOG/cMMSEARCH.LOG
make -f Makefile INSTALL_LOG/cMMRES pre=c 2>&1 | ./xatlas_tee INSTALL_LOG/cMMSEARCH.LOG
      cL1MATMUL: lat=4, nb=80, pf=1, mu=5, nu=4, ku=80, if=8, nf=1;
                 Performance: 1324.05 (88.33 percent of of detected clock rate)
make -f Makefile INSTALL_LOG/cNCNB pre=c 2>&1 | ./xatlas_tee INSTALL_LOG/cMMSEARCH.LOGmake -f Makefile INSTALL_LOG/cbestNN_40x40x40 pre=c nb=40 2>&1 | ./xatlas_tee INSTALL_LOG/cMMSEARCH.LOG      NCgemmNN : muladd=1, lat=4, pf=1, nb=40, mu=5, nu=4 ku=40,
                 ForceFetch=0, ifetch=8 nfetch=1
                 Performance = 1771.68 (133.81 of copy matmul, 118.19 of clock)
make -f Makefile INSTALL_LOG/cbestNT_40x40x40 pre=c nb=40 2>&1 | ./xatlas_tee INSTALL_LOG/cMMSEARCH.LOG      NCgemmNT : muladd=1, lat=5, pf=1, nb=40, mu=5, nu=4 ku=40,
                 ForceFetch=0, ifetch=8 nfetch=1
                 Performance = 1700.90 (128.46 of copy matmul, 113.47 of clock)
make -f Makefile INSTALL_LOG/cbestTN_40x40x40 pre=c nb=40 2>&1 | ./xatlas_tee INSTALL_LOG/cMMSEARCH.LOG      NCgemmTN : muladd=1, lat=4, pf=1, nb=40, mu=5, nu=4 ku=40,
                 ForceFetch=0, ifetch=8 nfetch=1
                 Performance = 1729.49 (130.62 of copy matmul, 115.38 of clock)
make -f Makefile INSTALL_LOG/cbestTT_40x40x40 pre=c nb=40 2>&1 | ./xatlas_tee INSTALL_LOG/cMMSEARCH.LOG      NCgemmTT : muladd=1, lat=2, pf=1, nb=40, mu=5, nu=4 ku=40,
                 ForceFetch=0, ifetch=8 nfetch=1
                 Performance = 1611.51 (121.71 of copy matmul, 107.51 of clock)
make -f Makefile MMinstall pre=c 2>&1 | ./xatlas_tee INSTALL_LOG/cMMSEARCH.LOG


   STAGE 2-4-2: CacheEdge DETECTION
make -f Makefile INSTALL_LOG/atlas_csNKB.h pre=c 2>&1 | ./xatlas_tee INSTALL_LOG/cMMCACHEEDGE.LOG
make[1]: *** [build] Error 255
make: *** [build] Error 2

Thank you! r Regards.

comment:9 Changed 15 years ago by bruno.matos@…

Cc: bruno.matos@… added

Cc Me!

Note: See TracTickets for help on using tickets.