Welcome to MacForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Internal Mach-O Importer Error File 'ImportMachO.c' Line 1..

 
   Macintosh computer (Home) -> Programmer Code RSS
Next:  9.2 Upgrade prob {OS X Volume} definition  
Author Message
MW Ron

External


Since: Aug 04, 2003
Posts: 983



(Msg. 1) Posted: Tue Mar 16, 2004 1:14 pm
Post subject: Internal Mach-O Importer Error File 'ImportMachO.c' Line 111
Archived from groups: comp>sys>mac>programmer>codewarrior (more info?)

Hello Folks

I've had several reports lately of an error when generating Mach-O
Applications

You will get the error

Internal Mach-O Importer Error File 'ImportMachO.c' Line 1112

This is from a new crt1.o library the simple solution is to use
Metrowerks version of this library mwcrt1.o until we can sort out if
this is our bug or Apple's bug or the cosmos acting up.

Ron

--

Announcing CodeWarrior Development Tools for Windows v9.2
http://www.metrowerks.com/MW/Develop/Desktop/Windows/Professional/Default.htm
Ron Liechty - MWRon.DeleteThis@metrowerks.com - <http://www.metrowerks.com>

 >> Stay informed about: Internal Mach-O Importer Error File 'ImportMachO.c' Line 1.. 
Back to top
Login to vote
pawliger

External


Since: May 05, 2004
Posts: 1



(Msg. 2) Posted: Wed May 05, 2004 2:38 pm
Post subject: Re: Internal Mach-O Importer Error File 'ImportMachO.c' Line [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I am now running into this problem.

On my machine, where I am experiencing the problem, running 'ls -l
/lib/crt1.o' shows:
-r--r--r-- 1 root wheel 6156 5 Feb 22:13 /usr/lib/crt1.o
(The lack of year means its date is 2004)

On other machines that do not exhibit the problem, it shows:
-r--r--r-- 1 root wheel 5544 12 Sep 2003 /usr/lib/crt1.o

My machine was one that came with 10.3.2 preinstalled. I then updated to
10.3.3.

 >> Stay informed about: Internal Mach-O Importer Error File 'ImportMachO.c' Line 1.. 
Back to top
Login to vote
MW Ron

External


Since: Aug 04, 2003
Posts: 983



(Msg. 3) Posted: Wed May 05, 2004 2:56 pm
Post subject: Re: Internal Mach-O Importer Error File 'ImportMachO.c' Line [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
<ac87698846c0d30b057d3cb71b407703.TakeThisOut@localhost.talkaboutmac.com>,
"pawliger" <pawliger@mycompanyname> wrote:

 >I am now running into this problem.
 >
 >On my machine, where I am experiencing the problem, running 'ls -l
 >/lib/crt1.o' shows:
 >-r--r--r-- 1 root wheel 6156 5 Feb 22:13 /usr/lib/crt1.o
 >(The lack of year means its date is 2004)
 >
 >On other machines that do not exhibit the problem, it shows:
 >-r--r--r-- 1 root wheel 5544 12 Sep 2003 /usr/lib/crt1.o
 >
 >My machine was one that came with 10.3.2 preinstalled. I then updated to
 >10.3.3.

use mwcrt1.0 or write a bug report to MW Tech Support and copy me. I
have a fix for it if you need to use the newer crt1.0

Note this is mentioned in the release notes for the newer Apple
developers tools.

Ron

--
Free Download - New Version Released
CodeWarrior Development Studio for HC(S)12 Microcontrollers v3.1
offers "emulator-like" debugging support for HCS12 derivatives
<a style='text-decoration: underline;' href="http://www.metrowerks.com/MW/Develop/Embedded/HC12/Default.htm" target="_blank">http://www.metrowerks.com/MW/Develop/Embedded/HC12/Default.htm</a>

Ron Liechty - MWRon.TakeThisOut@metrowerks.com - <a style='text-decoration: underline;' href="http://www.metrowerks.com" target="_blank">http://www.metrowerks.com</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Internal Mach-O Importer Error File 'ImportMachO.c' Line 1.. 
Back to top
Login to vote
thimsmith

External


Since: May 14, 2004
Posts: 1



(Msg. 4) Posted: Fri May 14, 2004 9:41 pm
Post subject: Re: Internal Mach-O Importer Error File 'ImportMachO.c' Line [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ron, can you tell me how to "use mwcrt1.o"?

I've tried:

$ export LD_LIBRARY_PATH=/path/to/MW/Startup
$ mwcc t.c

I also tried:

$ mwcc t.c /path/to/mwcrt1.o

In both cases I still get the error:
 > mwcc t.c "/Applications/Metrowerks CodeWarrior 9.0/Metrowerks
CodeWarrior/MacOS X Support/Libraries/Startup/mwcrt1.o"
Error : Internal Mach-O Importer Error File 'ImportMachO.c' Line 1112
can't
find section for address

Errors caused tool to abort.
Error : linker '/usr/bin/mwld' returned with exit code 1

Errors caused tool to abort.

I can't replace /usr/lib/crt1.o, as it is used in other builds and
sysadmins won't take the risk of it causing some problems.

Is there a way I, without root privs, can use mwcrt1.o in place of
crt1.o?

Here's a few more details:

$ mwcc -version

Metrowerks C/C++ Compiler for Mac OS X/PPC.
Copyright (c)1993-2003 Metrowerks, Inc.
All rights reserved.
Version 3.2 build 381
Runtime Built: Aug 25 2003 20:39:49

$ uname -a
Darwin powermacg5 7.3.0 Darwin Kernel Version 7.3.0: Fri Mar 5 14:22:55
PST 2004; root:xnu/xnu-517.3.15.obj~4/RELEASE_PPC Power Macintosh
powerpc

Thanks!

Tim<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Internal Mach-O Importer Error File 'ImportMachO.c' Line 1.. 
Back to top
Login to vote
MW Ron

External


Since: Aug 04, 2003
Posts: 983



(Msg. 5) Posted: Mon May 17, 2004 3:36 pm
Post subject: Re: Internal Mach-O Importer Error File 'ImportMachO.c' Line [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
<c8df2e38aebda0b5d8714085a2baa1dc DeleteThis @localhost.talkaboutmac.com>,
"thimsmith" <tim@undisclosed> wrote:

 >Ron, can you tell me how to "use mwcrt1.o"?
 >
 >I've tried:
 >
 >$ export LD_LIBRARY_PATH=/path/to/MW/Startup
 >$ mwcc t.c
 >
 >I also tried:
 >
 >$ mwcc t.c /path/to/mwcrt1.o
 >
 >In both cases I still get the error:
  >> mwcc t.c "/Applications/Metrowerks CodeWarrior 9.0/Metrowerks
 >CodeWarrior/MacOS X Support/Libraries/Startup/mwcrt1.o"
 > Error : Internal Mach-O Importer Error File 'ImportMachO.c' Line 1112
 >can't
 > find section for address
 >
 >Errors caused tool to abort.
 > Error : linker '/usr/bin/mwld' returned with exit code 1
 >
 >Errors caused tool to abort.
 >
 >I can't replace /usr/lib/crt1.o, as it is used in other builds and
 >sysadmins won't take the risk of it causing some problems.

mwcrt1.o is a replacement for crt1.o if you can't replace that then
you need to get new command line tools from us. Please send me an
e-mail request and I'll see if I can send them to you.

Ron

--
Free Download - New Version Released
CodeWarrior Development Studio for HC(S)12 Microcontrollers v3.1
offers "emulator-like" debugging support for HCS12 derivatives
<a style='text-decoration: underline;' href="http://www.metrowerks.com/MW/Develop/Embedded/HC12/Default.htm" target="_blank">http://www.metrowerks.com/MW/Develop/Embedded/HC12/Default.htm</a>

Ron Liechty - MWRon DeleteThis @metrowerks.com - <a style='text-decoration: underline;' href="http://www.metrowerks.com" target="_blank">http://www.metrowerks.com</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Internal Mach-O Importer Error File 'ImportMachO.c' Line 1.. 
Back to top
Login to vote
Sean Bartholomew

External


Since: Nov 30, 2003
Posts: 12



(Msg. 6) Posted: Fri May 21, 2004 6:07 pm
Post subject: Re: Internal Mach-O Importer Error File 'ImportMachO.c' Line [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

the same thing is happening to me Ron. my program used to work fine. i
then reformatted my harddrive and re-installed CW 9.0 and now i get
this dumb message whenever i try to run it.
thing is...i ONLY have mwcrt1.0. theres no crt1.0 ANYWHERE on my
computer acording to my recent search.
so im stumped.
 >> Stay informed about: Internal Mach-O Importer Error File 'ImportMachO.c' Line 1.. 
Back to top
Login to vote
MW Ron

External


Since: Aug 04, 2003
Posts: 983



(Msg. 7) Posted: Sat May 22, 2004 3:01 pm
Post subject: Re: Internal Mach-O Importer Error File 'ImportMachO.c' Line [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <b8a337c3.0405211407.4673a202 DeleteThis @posting.google.com>,
adrian DeleteThis @rivaband.com (Sean Bartholomew) wrote:

 >the same thing is happening to me Ron. my program used to work fine. i
 >then reformatted my harddrive and re-installed CW 9.0 and now i get
 >this dumb message whenever i try to run it.
 >thing is...i ONLY have mwcrt1.0. theres no crt1.0 ANYWHERE on my
 >computer acording to my recent search.
 >so im stumped.

When you reformatted your hard drive you probably forgot to reinstall
the OS X tools. You need to have the OS X tools installed (called
XCode Tools with OS X 10.3). Not having them installed might give this
error too.

Send me a note if this is not your problem

Ron

--
Metrowerks, one of the worldıs top 100 companies and influencers
in the software development industry. - SD Times May 2004
<a style='text-decoration: underline;' href="http://www.sdtimes.com/2004sdt100.htm" target="_blank">http://www.sdtimes.com/2004sdt100.htm</a>

Metrowerks, maker of CodeWarrior
Ron Liechty - MWRon DeleteThis @metrowerks.com - <a style='text-decoration: underline;' href="http://www.metrowerks.com" target="_blank">http://www.metrowerks.com</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Internal Mach-O Importer Error File 'ImportMachO.c' Line 1.. 
Back to top
Login to vote
James Spencer1

External


Since: Feb 12, 2004
Posts: 40



(Msg. 8) Posted: Sat May 22, 2004 3:18 pm
Post subject: Re: Internal Mach-O Importer Error File 'ImportMachO.c' Line [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <mwron-EFA030.12013822052004 DeleteThis @news.newsguy.com>, MW Ron
<mwron DeleteThis @metrowerks.com> wrote:

 > In article <b8a337c3.0405211407.4673a202 DeleteThis @posting.google.com>,
 > adrian DeleteThis @rivaband.com (Sean Bartholomew) wrote:
 >
  > >the same thing is happening to me Ron. my program used to work fine. i
  > >then reformatted my harddrive and re-installed CW 9.0 and now i get
  > >this dumb message whenever i try to run it.
  > >thing is...i ONLY have mwcrt1.0. theres no crt1.0 ANYWHERE on my
  > >computer acording to my recent search.
  > >so im stumped.
 >
 > When you reformatted your hard drive you probably forgot to reinstall
 > the OS X tools. You need to have the OS X tools installed (called
 > XCode Tools with OS X 10.3). Not having them installed might give this
 > error too.
 >
 > Send me a note if this is not your problem
 >
 > Ron

While this certainly might be his problem, I'll bet it's not but rather
it is one of two other things:

1) He is searching for the wrong file name; the file is crt1.o, i.e.
the last character is a l letter "oh", not a zero which is what is
typed in his message.

2) When he searched, he didn't search for hidden files. crt1.o is to
be found in /usr/lib and usr is not visible.

Spence

--
James P. Spencer
Rochester, MN

"Badges?? We don't need no stinkin badges!"<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Internal Mach-O Importer Error File 'ImportMachO.c' Line 1.. 
Back to top
Login to vote
Thomas Engelmeier1

External


Since: Sep 11, 2003
Posts: 96



(Msg. 9) Posted: Mon May 24, 2004 3:08 pm
Post subject: Re: Internal Mach-O Importer Error File 'ImportMachO.c' Line [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <b8a337c3.0405211407.4673a202.DeleteThis@posting.google.com>,
adrian.DeleteThis@rivaband.com (Sean Bartholomew) wrote:

 > the same thing is happening to me Ron. my program used to work fine. i
 > then reformatted my harddrive and re-installed CW 9.0 and now i get
 > this dumb message whenever i try to run it.
 > thing is...i ONLY have mwcrt1.0. theres no crt1.0 ANYWHERE on my
 > computer acording to my recent search.
 > so im stumped.

crt1.o does not disturb by its presence on your hard drive. It contains
symbol information that is formatted in an way CW chokes when it tries
to link it to your executable. So crt1.o is present in your (as well as
in any sample) project.
This is the point to fix: Your project.

HTH,
Tom_E

--
This address is valid in its unmodified form but expires soon.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Internal Mach-O Importer Error File 'ImportMachO.c' Line 1.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Internal Mach-O Importer Error - CW 8.3 reports this error which means nothing to me: "Error : Internal Mach-O Importer Error File 'ImportMachO.c' Line 1870 unsupported unknown reloc type" Any idea ? Thanks. Stephane

Mach-O C++ error question - I'm getting the following error (compiles fine w/CFM 9.2, but with Mach-O 9.2, I have problems): Error : ';' expected x.h line 428 for(BPtrVector::iterator i = first; i != last; ++i) Or the form: TRectangle&lt;T&gt;::iterator des...

compilation error Mach-O - Hi I have a library that compile and work fine in PEF format under codewarrior IDE 5.5 but now I have to compile that library in Mach-O format (Linker Mac OS X PowerPC Mach-O). In my project settings, I put these Access Paths: { Compiler}MacOS X Support....

puzzling Mach-O error - I'm finally converting my CFM project to Mach-O in preparation for a move to XCode. My Mach-O build is generating an error that I'm not sure how to solve. After compiling and linking, the compiler says "Package: ScoreWindow.pobj: Source file &qu...

MSL Prefix file for Mach-O libraries - Hi, I have a mach-O project where I have MSL_All_Mach-O_D.lib linked. Some functions (seekp of iostream in my case) work wrong when the same code in Carbon is running fine for years. When checking the preferences in MSL projects, compiled for mach-O I..
   Macintosh computer (Home) -> Programmer Code All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
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



[ Contact us | Terms of Service/Privacy Policy ]