|
Next: Why is BootX a Mach-O file?
|
| Author |
Message |
External

Since: May 26, 2008 Posts: 5
|
(Msg. 1) Posted: Mon May 26, 2008 3:56 pm
Post subject: how to fix a powerpc bug... on intel Archived from groups: comp>sys>mac>programmer>help (more info?)
|
|
|
Hello,
I have here only Intel Mac OS X... and build for PowerPC as well.
The PowerPC build works as expected on the Intel (thanks to Rosetta
emulation I suppose)... but it does not work on a PowerPC
Is the only solution to test on a true PowerPC, or is there a possibility
with an emulator (which?)
if the only way is the true-PowerPC way, is there any place to find PowerPC
based Macs [i'm in France]?
Regards
Armel |
|
| Back to top |
|
 |  |
External

Since: Jun 06, 2005 Posts: 660
|
(Msg. 2) Posted: Mon May 26, 2008 3:56 pm
Post subject: Re: how to fix a powerpc bug... on intel [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
In article <483ac183$0$890$ba4acef3@news.orange.fr>,
"Armel" <armelasselin.DeleteThis@hotmail.com> wrote:
> Hello,
>
> I have here only Intel Mac OS X... and build for PowerPC as well.
> The PowerPC build works as expected on the Intel (thanks to Rosetta
> emulation I suppose)... but it does not work on a PowerPC
Are you sure about that? You're not building a Universal binary? Are you
sure you're building a deployment release, instead of a debug build that
will only work on *your* specific machine?
> Is the only solution to test on a true PowerPC, or is there a possibility
> with an emulator (which?)
> if the only way is the true-PowerPC way, is there any place to find PowerPC
> based Macs [i'm in France]?
Find a developer with a PPC machine who can test for you or even let you
use his/her machine.
--
"Harry?" Ron's voice was a mere whisper. "Do you smell something ... burning?"
- Harry Potter and the Odor of the Phoenix |
|
| Back to top |
|
 |  |
External

Since: May 26, 2008 Posts: 5
|
(Msg. 3) Posted: Mon May 26, 2008 4:42 pm
Post subject: Re: how to fix a powerpc bug... on intel [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Gregory Weston" <uce DeleteThis @splook.com> a écrit dans le message de news:
uce-4373B4.10221426052008 DeleteThis @newsclstr02.news.prodigy.com...
> In article <483ac183$0$890$ba4acef3@news.orange.fr>,
> "Armel" <armelasselin DeleteThis @hotmail.com> wrote:
>
>> Hello,
>>
>> I have here only Intel Mac OS X... and build for PowerPC as well.
>> The PowerPC build works as expected on the Intel (thanks to Rosetta
>> emulation I suppose)... but it does not work on a PowerPC
>
> Are you sure about that? You're not building a Universal binary? Are you
> sure you're building a deployment release, instead of a debug build that
> will only work on *your* specific machine?
I build PPC and Intel separately (the exe is quite big).
about the deployment release with respect to debug release... I have been
quite careful to not use anything specific from my own machine, and the
Intel build which differ only by the '-arch ppc' works well on other Intel
machines.
Are there any explicit command to run?
>
>> Is the only solution to test on a true PowerPC, or is there a possibility
>> with an emulator (which?)
>> if the only way is the true-PowerPC way, is there any place to find
>> PowerPC
>> based Macs [i'm in France]?
>
> Find a developer with a PPC machine who can test for you or even let you
> use his/her machine.
not easy
Regards
Armel |
|
| Back to top |
|
 |  |
External

Since: Jun 06, 2005 Posts: 660
|
(Msg. 4) Posted: Mon May 26, 2008 4:42 pm
Post subject: Re: how to fix a powerpc bug... on intel [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
In article <483acc4d$0$871$ba4acef3@news.orange.fr>,
"Armel" <armelasselin.RemoveThis@hotmail.com> wrote:
> "Gregory Weston" <uce.RemoveThis@splook.com> a écrit dans le message de news:
> uce-4373B4.10221426052008.RemoveThis@newsclstr02.news.prodigy.com...
> > In article <483ac183$0$890$ba4acef3@news.orange.fr>,
> > "Armel" <armelasselin.RemoveThis@hotmail.com> wrote:
> >
> >> Hello,
> >>
> >> I have here only Intel Mac OS X... and build for PowerPC as well.
> >> The PowerPC build works as expected on the Intel (thanks to Rosetta
> >> emulation I suppose)... but it does not work on a PowerPC
> >
> > Are you sure about that? You're not building a Universal binary? Are you
> > sure you're building a deployment release, instead of a debug build that
> > will only work on *your* specific machine?
> I build PPC and Intel separately (the exe is quite big).
> about the deployment release with respect to debug release... I have been
> quite careful to not use anything specific from my own machine,
Yes, but depending on the tools you're using and how they're configured,
it's possible to generate a build that does make assumptions the
ultimately restrict it to your machine even if your code is the most
beautiful and robust thing ever written. It's even the default behavior
for debug builds in certain versions of XCode.
> and the
> Intel build which differ only by the '-arch ppc' works well on other Intel
> machines.
> Are there any explicit command to run?
>
> >
> >> Is the only solution to test on a true PowerPC, or is there a possibility
> >> with an emulator (which?)
> >> if the only way is the true-PowerPC way, is there any place to find
> >> PowerPC
> >> based Macs [i'm in France]?
> >
> > Find a developer with a PPC machine who can test for you or even let you
> > use his/her machine.
> not easy
Ultimately, you should never claim to support a machine you haven't
tested on (or at least something moderately close). If you have no
access to a real PPC, I wouldn't bother deploying a PPC build. But I
still consider it very strange that something would run under Rosetta on
an Intel box and fail on a real PowerMac.
What's the nature of "does not work?"
G
--
"Harry?" Ron's voice was a mere whisper. "Do you smell something ... burning?"
- Harry Potter and the Odor of the Phoenix |
|
| Back to top |
|
 |  |
External

Since: May 26, 2008 Posts: 5
|
(Msg. 5) Posted: Mon May 26, 2008 9:44 pm
Post subject: Re: how to fix a powerpc bug... on intel [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Gregory Weston" <uce.RemoveThis@splook.com> a écrit dans le message de news:
uce-475988.13194926052008.RemoveThis@newsclstr03.news.prodigy.net...
> In article <483acc4d$0$871$ba4acef3@news.orange.fr>,
> "Armel" <armelasselin.RemoveThis@hotmail.com> wrote:
>
>> "Gregory Weston" <uce.RemoveThis@splook.com> a écrit dans le message de news:
>> uce-4373B4.10221426052008.RemoveThis@newsclstr02.news.prodigy.com...
>> > In article <483ac183$0$890$ba4acef3@news.orange.fr>,
>> > "Armel" <armelasselin.RemoveThis@hotmail.com> wrote:
>> >
>> >> Hello,
>> >>
>> >> I have here only Intel Mac OS X... and build for PowerPC as well.
>> >> The PowerPC build works as expected on the Intel (thanks to Rosetta
>> >> emulation I suppose)... but it does not work on a PowerPC
>> >
>> > Are you sure about that? You're not building a Universal binary? Are
>> > you
>> > sure you're building a deployment release, instead of a debug build
>> > that
>> > will only work on *your* specific machine?
>> I build PPC and Intel separately (the exe is quite big).
>> about the deployment release with respect to debug release... I have been
>> quite careful to not use anything specific from my own machine,
>
> Yes, but depending on the tools you're using and how they're configured,
> it's possible to generate a build that does make assumptions the
> ultimately restrict it to your machine even if your code is the most
> beautiful and robust thing ever written. It's even the default behavior
> for debug builds in certain versions of XCode.
>
>> and the
>> Intel build which differ only by the '-arch ppc' works well on other
>> Intel
>> machines.
>> Are there any explicit command to run?
>>
>> >
>> >> Is the only solution to test on a true PowerPC, or is there a
>> >> possibility
>> >> with an emulator (which?)
>> >> if the only way is the true-PowerPC way, is there any place to find
>> >> PowerPC
>> >> based Macs [i'm in France]?
>> >
>> > Find a developer with a PPC machine who can test for you or even let
>> > you
>> > use his/her machine.
>> not easy
>
> Ultimately, you should never claim to support a machine you haven't
> tested on (or at least something moderately close). If you have no
> access to a real PPC, I wouldn't bother deploying a PPC build. But I
> still consider it very strange that something would run under Rosetta on
> an Intel box and fail on a real PowerMac.
memory alignment problems won't be catched by an emulator optimized for
speed (PowerPC can access packets of more than 8 bits only on boundaries of
the given packets size, whereas Intel processors can access memory without
alignment, even if it's a bit slower than when acces is aligned).
> What's the nature of "does not work?"
that's my exact problem... as we have no PowerPC we decide to not support it
at all. But as some customers asked again and again to have a PowerPC build
we did one and asked them to test the program... unfortunately the only
information that I coudl get from them is 'it does not run'.
if I could put a hand on a true machine and run a few commands, i'm pretty
sure that I can could determine in a few minutes or hours what is wrong...
maybe it's just a dylib missing or an entry point, maybe it's a memory
alignment problem, just running otool or gdb could tell, but without a
machine, i'm stuck.
Armel |
|
| Back to top |
|
 |  |
External

Since: Jun 06, 2005 Posts: 660
|
(Msg. 6) Posted: Mon May 26, 2008 9:44 pm
Post subject: Re: how to fix a powerpc bug... on intel [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
In article <483b1332$0$928$ba4acef3@news.orange.fr>,
"Armel" <armelasselin.DeleteThis@hotmail.com> wrote:
> > Ultimately, you should never claim to support a machine you haven't
> > tested on (or at least something moderately close). If you have no
> > access to a real PPC, I wouldn't bother deploying a PPC build. But I
> > still consider it very strange that something would run under Rosetta on
> > an Intel box and fail on a real PowerMac.
> memory alignment problems won't be catched by an emulator optimized for
> speed (PowerPC can access packets of more than 8 bits only on boundaries of
> the given packets size, whereas Intel processors can access memory without
> alignment, even if it's a bit slower than when acces is aligned).
>
> > What's the nature of "does not work?"
> that's my exact problem... as we have no PowerPC we decide to not support it
> at all. But as some customers asked again and again to have a PowerPC build
> we did one and asked them to test the program... unfortunately the only
> information that I coudl get from them is 'it does not run'.
"Does not run" actually narrows down the scope of the problem a lot. It
is, for example, a much smaller problem space than a post-launch crash.
Around here, a G4 mini isn't that difficult to buy used, and can be
fairly cheap. What's the used market like in your area?
> if I could put a hand on a true machine and run a few commands, i'm pretty
> sure that I can could determine in a few minutes or hours what is wrong...
> maybe it's just a dylib missing or an entry point, maybe it's a memory
> alignment problem, just running otool or gdb could tell, but without a
> machine, i'm stuck.
Ask them to examine the system and/or console log files as they attempt
to run it.
--
"Harry?" Ron's voice was a mere whisper. "Do you smell something ... burning?"
- Harry Potter and the Odor of the Phoenix |
|
| Back to top |
|
 |  |
External

Since: May 26, 2008 Posts: 5
|
(Msg. 7) Posted: Wed May 28, 2008 3:54 pm
Post subject: Re: how to fix a powerpc bug... on intel [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Gregory Weston" <uce.DeleteThis@splook.com> a écrit dans le message de news:
uce-968385.21030926052008.DeleteThis@newsclstr03.news.prodigy.net...
> In article <483b1332$0$928$ba4acef3@news.orange.fr>,
> "Armel" <armelasselin.DeleteThis@hotmail.com> wrote:
>
>> > Ultimately, you should never claim to support a machine you haven't
>> > tested on (or at least something moderately close). If you have no
>> > access to a real PPC, I wouldn't bother deploying a PPC build. But I
>> > still consider it very strange that something would run under Rosetta
>> > on
>> > an Intel box and fail on a real PowerMac.
>> memory alignment problems won't be catched by an emulator optimized for
>> speed (PowerPC can access packets of more than 8 bits only on boundaries
>> of
>> the given packets size, whereas Intel processors can access memory
>> without
>> alignment, even if it's a bit slower than when acces is aligned).
>>
>> > What's the nature of "does not work?"
>> that's my exact problem... as we have no PowerPC we decide to not support
>> it
>> at all. But as some customers asked again and again to have a PowerPC
>> build
>> we did one and asked them to test the program... unfortunately the only
>> information that I coudl get from them is 'it does not run'.
>
> "Does not run" actually narrows down the scope of the problem a lot. It
> is, for example, a much smaller problem space than a post-launch crash.
>
> Around here, a G4 mini isn't that difficult to buy used, and can be
> fairly cheap. What's the used market like in your area?
>
>> if I could put a hand on a true machine and run a few commands, i'm
>> pretty
>> sure that I can could determine in a few minutes or hours what is
>> wrong...
>> maybe it's just a dylib missing or an entry point, maybe it's a memory
>> alignment problem, just running otool or gdb could tell, but without a
>> machine, i'm stuck.
>
> Ask them to examine the system and/or console log files as they attempt
> to run it.
that's what I'll try to do.
I dumped otool -L for my executable:
/System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
(compatibility version 1.0.0, current version 50.0.0)
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility
version 1.0.0, current version 275.0.0)
/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
(compatibility version 2.0.0, current version 136.0.0)
/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility
version 1.0.0, current version 12.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
111.0.0)
/System/Library/Frameworks/WebKit.framework/Versions/A/WebKit
(compatibility version 1.0.0, current version 525.13.0)
/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version
7.0.0)
/usr/lib/libcharset.1.dylib (compatibility version 2.0.0, current version
2.0.0)
@loader_path/libcurl.3.dylib (compatibility version 4.0.0, current version
4.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version
7.4.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version
1.0.0)
/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
(compatibility version 1.0.0, current version 32.0.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation(compatibility version 150.0.0, current version 476.10.0) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 34.0.0)can I determine from that if my app will load on a 10.4 PPC Mac OS X ?RegardsArmel |
|
| Back to top |
|
 |  |
| Related Topics: | MTCoreAudio on Intel; does it work? - Hi, My project is using MTCoreAudio and works OK on PPC but:- inputDevice = [MTCoreAudioDevice defaultInputDevice]; returns nil on my Intel iMac. Does MTCoreAudio work on Intel? Thanks, Paul
Intel Mac pixel buffer issue - Hi All, I'm having some issues with a pixel buffer I create via GWorlds and DrawString() on Intel-based Mac. I'm basically creating a GWorld with the k32RGBAPixelFormat and writing some text in the GWorld using DrawString(). I first make all the pixels...
[Q] Using OCUnit on Intel, how do I also run my unit tests.. - Summary: I'm Using OCUnit on Intel. How do I also run my unit tests under Rosetta? I've got an XCode project with Unit Tests, as documented in: Test Driving Your Code with OCUnit http://developer.apple.com/tools/unittest.html When I add the Unit Test...
How to type in ASCII? - Stupid question #2 of the week. I'm trying to avoid writing a printer driver for a barcode label printer. It responds to reasonable commands, and I want to embed a command in a page that tells the printer to cut the paper. It's <STX> o STX, of c...
applications and windows - Hello. I'm primarily a system programmer, unix one. Currently I have to implement the following logic: On Mac OS X enumerate all running application only those that are displaying windows. Find which of them is "active", where "active&qu... |
|
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum
|
|
|
|