[sldev] Linux non-x86 SSE build script

Dana Fagerstrom Dana.Fagerstrom at Sun.COM
Mon Aug 6 06:15:13 PDT 2007


Paul,

For SPARC I handle the situation via the ARCH/arch variables inside the 
SConstruct to dictate which cflags get used. I'd assume the same can be 
added for PowerPC.

Of course I'm still having horrible luck with the newer SConstruct 
distributed with updates since 1.17.0.  I'm still using modified 
versions of the one from 1.16.0 - just added the GStreamer additions on 
Friday.

D


> Just preparing the 1.18.1.2 Debian packages, I've come across an issue
> where the build script now tries to build certain files with  -msse
> -mfpmath=sse or -msse2 -mfpmath=sse.
> 
> I was just wondering what the plan to move forward with this is, given
> that gcc won't accept those flags on non-x86 architectures, which to my
> mind implies this probably wouldn't have built on PowerPC Mac OS X
> or Sparc Solaris either.
> 
> I'm considering just throwing #ifdefs around the code that uses the SSE
> and SSE2, and then doing some kind of surgery to SConstruct to ignore
> the _sse.cpp and _sse2.cpp files on non-x86.
> 
> But I was hoping there's some kind of upstream plan to fix this, to save
> me duplicating any work here.
> 
> Of course, if anyone on-list's already solved this, I'm interested in
> patches too. ^_^
> 
> It's also worth keeping in mind that eventually we could end up with a
> Sparc Linux port, if someone wants one. (Really, it'lll simply be some
> junction of the Sparc Solaris port and the PowerPC Linux port...)
> 
> I haven't put anything in Jira about this yet, I'm hoping to get the lay
> of the land first.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Click here to unsubscribe or manage your list subscription:
> /index.html

-- 
=====================================================================
Dana Fagerstrom                        Phone: 877.851.6343
Sun Services                             Fax: 877.851.6343
400 Atrium Dr.                         Email: dana.fagerstrom at Sun.COM
Somerset, NJ  08873               SneakerNet: USMT01
=====================================================================
    Pressure - It can turn a lump of coal into a flawless diamond,
               and an average person into a perfect basketcase.
               -- www.despair.com
=====================================================================



More information about the SLDev mailing list