• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Release build fails
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Release build fails


  • Subject: Re: Release build fails
  • From: "Kyle Sluder" <email@hidden>
  • Date: Wed, 10 Oct 2007 10:45:22 +0100

You mean the library you built with CodeWarrior executed faster?  Did
you remember to turn on optimizations in Xcode?

--Kyle Sluder

On 10/9/07, Michael McLaughlin <email@hidden> wrote:
> Greg Guerin's reply (below) is correct, as I discovered minutes prior to
> seeing it.
>
> The Release build of an Altivec-specific library failed because the Release
> architecture included i386 as well as ppc.  With deletion of the former, the
> build was successful.
>
> I created parallel projects in Xcode and CodeWarrior to test the library.
> Sadly, CW executed four times *faster* than Xcode on the same G5 platform.
> Both were set up to use Altivec so the difference is a mystery -- so far.
> Perhaps it has to do with the SIOUX (console) interface I added in the CW
> version.  Still, the output was negligible (just one line).
>
> Michael McLaughlin wrote:
>
> >union W128_T {
> >    vector unsigned int s; <-- error: parse error before vector
> >    uint32_t u[4];
> >};
> >
> >The most relevant configuration settings are C99 and Enable Altivec
> >Extensions, the same in both builds.
> >
> >Could anyone suggest where I might start looking?
> >
> >Note: I am using Xcode 2.4.1 and OS X 10.4.10.
>
> What CPU arch are you compiling on?  My guess: ppc.
>
> A Debug build defaults to native arch only (e.g. ppc).  AltiVec is PPC-only
> technology.
>
> A Release build defaults to ppc and i386 archs.  I suspect the i386 compile
> doesn't like the AltiVec type 'vector'.
>
> Changing the Architectures setting for the Release build to only compile
> for ppc would solve this problem.  Converting the source to not be
> AltiVec-specific would also solve it, assuming 'vector' is AltiVec-specific.
>
> If I'm wrong, please post a detailed build transcript, or at least the part
> right before the error occurs.  A telltale clue would be a CompileC step
> having -arch i386 as the point of failure.
>
>   -- GG
>
> --
> Mike McLaughlin
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Release build fails
      • From: Michael McLaughlin <email@hidden>
References: 
 >Re: Release build fails (From: Michael McLaughlin <email@hidden>)

  • Prev by Date: Re: Multiple search windows?
  • Next by Date: Re: Release build fails
  • Previous by thread: Re: Release build fails
  • Next by thread: Re: Release build fails
  • Index(es):
    • Date
    • Thread