[MacPorts] #22378: Error when building Atlas
MacPorts
noreply at macports.org
Sat Jan 2 01:49:17 PST 2010
#22378: Error when building Atlas
-----------------------------------------+----------------------------------
Reporter: handyman@… | Owner: jameskyle@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.8.1
Keywords: | Port: atlas
-----------------------------------------+----------------------------------
Comment(by aaaskew@…):
I have created a new patch which should help PowerPC Mac Mini owners.
This might help other PowerPC machines if the configure stage (in debug
mode) shows UNKNOWN for the processor type. To test this patch:
{{{
cd `port dir atlas`
sudo patch -p0 < ~/Desktop/atlas-PPC-Altivec-2.diff
sudo port clean --all atlas
sudo port -d install atlas
}}}
If the processor type is still shown as UNKNOWN then this is something
that should be forwarded on to the Atlas people at http://math-
atlas.sourceforge.net/faq.html#help The Atlas build works out the
processor type using:
{{{
sysctl hw.model
}}}
Try this on your machine and then look to see if it is defined:
{{{
cd `port dir atlas`
cd work/atlas-3.8.3/CONFIG/src/backend
less archinfo_freebsd.c
...
case AFPPC: /* don't know */
if (!CmndOneLine(NULL, "sysctl hw.model", res))
{
if (strstr(res, "PowerMac"))
{
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"))
mach = PPCG4;
else if
...
}}}
I added ||strstr(res,"c10,1") to this list so that my Mac Mini, which
returns PowerMac10,1, would work correctly.
Now I have the same problem as michael.klein above.
--
Ticket URL: <http://trac.macports.org/ticket/22378#comment:43>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list