This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: i386-coff linker problems



>>   Did you also remember to use the same --prefix=/bar when 
>you configured
>> newlib ?
>>
>>              DaveK
>
>ok i tried once again:
>
>rm -r newlib-1.9.0
>tar xfz newlib-1.9.0.tar.gz
>cd build_newlib
>rm -r *
>../newlib-1.9.0/configure --target=i386-coff --prefix=/bar
>make all install
>cd ../build_gcc
>make all install
>
>all ok
>
>newlib built the libc.a and libg.a just fine
>perhaps i forgot some ENVIRONMENT for compiling with the new 
>cross-compiler?
>in which library is the crt0.o built in?

  crt0.o should be a separate file that is built in newlib and gets
installed into /bar/lib/gcc-lib/i386-coff/2.95.3.  Check if it is there
or not.

>is make all install sufficient with newlib?

  It should be, but maybe something went wrong in the install.  Please
check to see if there is crt0.o anywhere in the build_newlib dir, and
take a look at the output during the install stage of "make all install"
to see if it got copied anywhere at all and where it went if it did.

>how can i ensure i386-coff-gcc uses the libc.a in the /bar/i386-coff 
>directory?

  That should be already happening automatically, because you used the
same --prefix setting for both of them.

> # ./i386-coff-gcc bla.c

Try this command from your first message again, add the '-v' flag so that
we can see all the commands it executes and the directories it checks.

        DaveK
-- 
" So far, science's crowning achievement, the Atomic Bomb, has not even
been able to alleviate the misery and torture of endless centuries of
world poverty." - George Hammond, self-proclaimed discoverer of the 
scientific proof of god.


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]