Discussion:
Trying to update my CodeWarrior 8.2 to 8.3 and having trouble. Help??
(too old to reply)
Mark
2007-07-21 01:00:49 UTC
Permalink
Hi. I've been using an (obviously now archaic) Codewarrior 8.2 to
develop mildly Carbonized (meaning they could still use some major
improvements) applications. It's worked like a charm for many years.

Now (finally!) I'd like to bring some old CW8.2 projects into XCode.
The first thing I read in any instructions or tutorial on how to best
start this task is to make sure you are using, at least, CodeWarrior
8.3.

I found the CW updater application (to convert CW8.2 to CW8.3) and ran
it. The updater app updated everything and gave me a message saying the
update completed successfully, and reminded me that libraries now
needed to be re-built. It asked if I wanted it to automatically bring
up the Build Libraries project to facilitate this task. I said OK, and
it brought up the project as promised.

The BuildLlibraries.mcp project included 3 items...

1 - Build.MaxOSPPC.mcp
2 - Build.MacOSX.mcp
3 - Build.Win32.mcp

I then did a "Bring Up-to-Date", and it started the very long process
of rebuilding everything...starting from the top down.

The 1st and 3rd items (see above) completed without errors. The 2nd
item (Build.MacOSX.mcp), though, unfortunately, had 8847 errors. Yikes!

The first error is, and I quote...

"
Error : the file 'ppc/ansi.h' cannot be opened
(included from:
size_t.h:16
locale_api.h:13
cctype:24
ctype.h:17
CoreFoundation.h:14
CarbonCore.h:20
CoreServices.h:21
Carbon.h:20
MacHeadersMach-O.c:48
MSL MacHeadersMach-O.pch:24)
size_t_mach.h line 11 #include <ppc/ansi.h>
"

I've never changed the hierarchy of CW items, everything is as it
always was. (I consider that folder pretty much untouchable! Don't mess
with mother nature, so to speak.) So, why the error? And, most
importantly, what can I do to fix it? I'm running OSX 10.4.10, and
that's orders of magnitude beyond that which was assumed when the
updater was created years ago. Might that have something to do with the
error?

As it happens, I made a test copy of a previously built project of mine
that I had used CW8.2 on. I was surprised (considering the 8K errors
mentioned above) that my old CW8.2 project was easily able to be
rebuilt, without any errors at all. Everything compied fine today on
8.3 just like it had on 8.2 yesterday. The application built appeared
to work fine, and its size was just slightly larger than the
CW8.2-built app (indicating, I believe, that new libraries were used in
its creation.) So, it LOOKS LIKE it's working.

Of course, considering the 8K worth of errors on one of the library
projects, I can hardly trust this new rebuilt app. I'd guess it's built
from a combination of 8.2 and 8.3 code! I just mention this to give you
as many facts as I can in hopes you might help.

So, that's it. Any ideas why the BuildLibraries.mcp project wasn't able
to be fully built, and what I might do to fix it up?

(I'm looking for someone with a LONG memory...as this has probably
happened to many people YEARS ago! I know I'm slow coming to the
party!)

THANKS!
Michael
2007-07-21 14:36:27 UTC
Permalink
A google search turned up a link to this form posting on an Adobe
plugin's development forum: http://www.adobeforums.com/cgi-bin/webx?13@@.3bbde86b/0
It talks about how to setup Codewarrior to do plugin development on
Mac OS X 10.4.

It looks like Mac OS X 10.4 doesn't have the ansi.h header file, while
the Mac OS X 10.3.9 does. So setting the source volume to the 10.3.9
SDK probably will fix the problem. I haven't used Codewarrior in a
very long time, so I haven't tried this.

Michael
Post by Mark
The first error is, and I quote...
"
Error : the file 'ppc/ansi.h' cannot be opened
size_t.h:16
locale_api.h:13
cctype:24
ctype.h:17
CoreFoundation.h:14
CarbonCore.h:20
CoreServices.h:21
Carbon.h:20
MacHeadersMach-O.c:48
MSL MacHeadersMach-O.pch:24)
size_t_mach.h line 11 #include <ppc/ansi.h>
"
Mark
2007-07-21 16:55:06 UTC
Permalink
Hi Michael...THANKS for the response. That was a real good find, and I
had a lot of hope that that might be exactly the problem. I tried it,
but it didn't work. I was able to change the general/source tree pref
pane to the 10.3.9 SDK, and I re-searched the files, removed object
code, and tried to remake the project.

Just like before...the 1st of the 3 items (Build.MacOSPPC.mcp) took
forever but worked like a charm. But, as soon as the 2nd item started
to compile (Build.MacOSX.mcp), I started getting a run of errors
again...different errors though. The first error in the group was
now...

Error : the file 'mw_stdbool.h' cannot be opened
(included from:
CFBase.h:13
CoreFoundation.h:8
CarbonCore.h:20
CoreServices.h:21
Carbon.h:20
MacHeadersMach-O.c:48
MacHeadersMach-O.pch:21)
stdbool.h line 6 #include "mw_stdbool.h"



I'm not sure if this is progress or not. You might be on to the general
idea of what's wrong, but the specifics are still not fixed. I'll have
to do some more googling and see if I can add to your start. I
obviously waited WAY too long to start a move to XCode, and now being
up to date on Mac OSX is working against me! :-)

I was hoping I could ease the import of old CW projects to XCode by
getting up to CW8.3 and then doing an import, but if I can't figure
this inability to get CW8.3 up and running, I may have to just try
beginning a new XCode Carbon project from scratch and manually add my
source files, resources, etc.

Thanks again...
Post by Michael
A google search turned up a link to this form posting on an Adobe
It talks about how to setup Codewarrior to do plugin development on
Mac OS X 10.4.
It looks like Mac OS X 10.4 doesn't have the ansi.h header file, while
the Mac OS X 10.3.9 does. So setting the source volume to the 10.3.9
SDK probably will fix the problem. I haven't used Codewarrior in a
very long time, so I haven't tried this.
Michael
Post by Mark
The first error is, and I quote...
"
Error : the file 'ppc/ansi.h' cannot be opened
size_t.h:16
locale_api.h:13
cctype:24
ctype.h:17
CoreFoundation.h:14
CarbonCore.h:20
CoreServices.h:21
Carbon.h:20
MacHeadersMach-O.c:48
MSL MacHeadersMach-O.pch:24)
size_t_mach.h line 11 #include <ppc/ansi.h>
"
Michael
2007-07-22 17:05:02 UTC
Permalink
Hey,

I found this link: http://lists.apple.com/archives/xcode-users/2006/Sep/msg00044.html
and this: http://www.opensource.apple.com/darwinsource/Current/gcc-5363/more-hdrs/stdbool.h

I think the problem is that Codewarrior was including some header
files that came with GCC. Well more exactly, they included some Apple
header that included some GCC headers. Apparently that is a violation
of GCC's license and Apple modified their headers to prevent
Codewarrior from including the GCC headers.

I would probably just try to cheat by copying and renaming stdbool.h
to mw_stdbool.h... I wouldn't distribute a program built this way, but
it might get CW8.3 working well enough to create a project that XCode
can import.

Michael
Post by Mark
Hi Michael...THANKS for the response. That was a real good find, and I
had a lot of hope that that might be exactly the problem. I tried it,
but it didn't work. I was able to change the general/source tree pref
pane to the 10.3.9 SDK, and I re-searched the files, removed object
code, and tried to remake the project.
Just like before...the 1st of the 3 items (Build.MacOSPPC.mcp) took
forever but worked like a charm. But, as soon as the 2nd item started
to compile (Build.MacOSX.mcp), I started getting a run of errors
again...different errors though. The first error in the group was
now...
Error : the file 'mw_stdbool.h' cannot be opened
CFBase.h:13
CoreFoundation.h:8
CarbonCore.h:20
CoreServices.h:21
Carbon.h:20
MacHeadersMach-O.c:48
MacHeadersMach-O.pch:21)
stdbool.h line 6 #include "mw_stdbool.h"
I'm not sure if this is progress or not. You might be on to the general
idea of what's wrong, but the specifics are still not fixed. I'll have
to do some more googling and see if I can add to your start. I
obviously waited WAY too long to start a move to XCode, and now being
up to date on Mac OSX is working against me! :-)
I was hoping I could ease the import of old CW projects to XCode by
getting up to CW8.3 and then doing an import, but if I can't figure
this inability to get CW8.3 up and running, I may have to just try
beginning a new XCode Carbon project from scratch and manually add my
source files, resources, etc.
Thanks again...
Post by Michael
A google search turned up a link to this form posting on an Adobe
It talks about how to setup Codewarrior to do plugin development on
Mac OS X 10.4.
It looks like Mac OS X 10.4 doesn't have the ansi.h header file, while
the Mac OS X 10.3.9 does. So setting the source volume to the 10.3.9
SDK probably will fix the problem. I haven't used Codewarrior in a
very long time, so I haven't tried this.
Michael
Post by Mark
The first error is, and I quote...
"
Error : the file 'ppc/ansi.h' cannot be opened
size_t.h:16
locale_api.h:13
cctype:24
ctype.h:17
CoreFoundation.h:14
CarbonCore.h:20
CoreServices.h:21
Carbon.h:20
MacHeadersMach-O.c:48
MSL MacHeadersMach-O.pch:24)
size_t_mach.h line 11 #include <ppc/ansi.h>
"
Mark
2007-07-23 01:11:18 UTC
Permalink
Hi Michael...

Another good find and a good idea. THANKS!

To be honest, I'm not sure what I'm going to do now. At the moment, I
went back to CW8.2, and all is well (other than export to XCode.) I may
do what you suggest, then again, I may just try to start a new project
in XCode and brings things over bit by bit???

Again...thanks for your help...
Post by Michael
Hey,
http://lists.apple.com/archives/xcode-users/2006/Sep/msg00044.html
http://www.opensource.apple.com/darwinsource/Current/gcc-5363/more-hdrs/stdboo
l.h
I think the problem is that Codewarrior was including some header
files that came with GCC. Well more exactly, they included some Apple
header that included some GCC headers. Apparently that is a violation
of GCC's license and Apple modified their headers to prevent
Codewarrior from including the GCC headers.
I would probably just try to cheat by copying and renaming stdbool.h
to mw_stdbool.h... I wouldn't distribute a program built this way, but
it might get CW8.3 working well enough to create a project that XCode
can import.
Michael
Post by Mark
Hi Michael...THANKS for the response. That was a real good find, and I
had a lot of hope that that might be exactly the problem. I tried it,
but it didn't work. I was able to change the general/source tree pref
pane to the 10.3.9 SDK, and I re-searched the files, removed object
code, and tried to remake the project.
Just like before...the 1st of the 3 items (Build.MacOSPPC.mcp) took
forever but worked like a charm. But, as soon as the 2nd item started
to compile (Build.MacOSX.mcp), I started getting a run of errors
again...different errors though. The first error in the group was
now...
Error : the file 'mw_stdbool.h' cannot be opened
CFBase.h:13
CoreFoundation.h:8
CarbonCore.h:20
CoreServices.h:21
Carbon.h:20
MacHeadersMach-O.c:48
MacHeadersMach-O.pch:21)
stdbool.h line 6 #include "mw_stdbool.h"
I'm not sure if this is progress or not. You might be on to the general
idea of what's wrong, but the specifics are still not fixed. I'll have
to do some more googling and see if I can add to your start. I
obviously waited WAY too long to start a move to XCode, and now being
up to date on Mac OSX is working against me! :-)
I was hoping I could ease the import of old CW projects to XCode by
getting up to CW8.3 and then doing an import, but if I can't figure
this inability to get CW8.3 up and running, I may have to just try
beginning a new XCode Carbon project from scratch and manually add my
source files, resources, etc.
Thanks again...
Post by Michael
A google search turned up a link to this form posting on an Adobe
It talks about how to setup Codewarrior to do plugin development on
Mac OS X 10.4.
It looks like Mac OS X 10.4 doesn't have the ansi.h header file, while
the Mac OS X 10.3.9 does. So setting the source volume to the 10.3.9
SDK probably will fix the problem. I haven't used Codewarrior in a
very long time, so I haven't tried this.
Michael
Post by Mark
The first error is, and I quote...
"
Error : the file 'ppc/ansi.h' cannot be opened
size_t.h:16
locale_api.h:13
cctype:24
ctype.h:17
CoreFoundation.h:14
CarbonCore.h:20
CoreServices.h:21
Carbon.h:20
MacHeadersMach-O.c:48
MSL MacHeadersMach-O.pch:24)
size_t_mach.h line 11 #include <ppc/ansi.h>
"
Loading...