[MacPorts] #26864: atlas @3.8.3 build fails with #error Use the "-maltivec" flag to enable PowerPC AltiVec support

MacPorts noreply at macports.org
Sun Nov 7 16:07:51 PST 2010


#26864: atlas @3.8.3 build fails with #error Use the "-maltivec" flag to enable
PowerPC AltiVec support
----------------------------------+-----------------------------------------
 Reporter:  jpmasseria@…          |       Owner:  jameskyle@…           
     Type:  defect                |      Status:  new                   
 Priority:  Normal                |   Milestone:                        
Component:  ports                 |     Version:  1.9.1                 
 Keywords:                        |        Port:  atlas                 
----------------------------------+-----------------------------------------

Comment(by jpmasseria@…):

 I was finally able to figure out the problem.  The computer I'm using is
 an eMac that returns "{{{hw.model: PowerMac4,4}}}" for {{{sysctl
 hw.model}}}

 Therefore I had to change the patch for {{{archinfo_freebsd.c}}} to
 include {{{strstr(res,"c4,4")}}} as shown below:
 {{{
 --- CONFIG/src/backend/archinfo_freebsd.c.orig  2009-02-18
 18:47:37.000000000 +0000
 +++ CONFIG/src/backend/archinfo_freebsd.c       2010-01-01
 11:45:22.000000000 +0000
 @@ -69,7 +69,7 @@
              if
 (strstr(res,"c1,2")||strstr(res,"c3,1")||strstr(res,"c3,2")||
 strstr(res,"c3,3")||strstr(res,"c3,4")||strstr(res,"c3,5")||
 strstr(res,"c3,6")||strstr(res,"c4,2")||strstr(res,"c4,5")||
 -                strstr(res,"c5,1"))
 +
 strstr(res,"c5,1")||strstr(res,"c10,1")||strstr(res,"c4,4"))
                 mach = PPCG4;
              else if (strstr(res,"c11,2")|| strstr(res,"c12,1")||
                       strstr(res,"c7,2") || strstr(res,"c7,3") ||
 }}}

 The log file now shows:

 {{{

 :info:configure               flibchkF.o -l gfortran -lm
 :info:configure rm -f *core* *.o config?.out
 :info:configure
 :info:configure OS configured as OSX (11)
 :info:configure
 :info:configure Assembly configured as GAS_PPC (4)
 :info:configure
 :info:configure Vector ISA Extension configured as  AltiVec (1,2)
 :info:configure
 :info:configure Architecture configured as  PPCG4 (4)
 :info:configure
 :info:configure Clock rate configured as 700Mhz
 :info:configure
 :info:configure Maximum number of threads configured as  1
 :info:configure Cannot detect CPU throttling.
 }}}

 The build is still running, but I am confident that I have overcome the
 "-maltivec" flag issue as I can see compiles in the log file now using
 this option.

 I will post my final results later when the build finishes.

 John

-- 
Ticket URL: <https://trac.macports.org/ticket/26864#comment:4>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list