EmbeddedRelated.com
Forums
Memfault Beyond the Launch

building i386 toolchain - ld can't find crti.o

Started by Luki July 2, 2006
hi!

i tried to compile a toolchain for my i386. i followed the instructions
of bill gatliff (http://venus.billgatliff.com/node/18). all worked
quite fine. except, i had to add the option "--disable-threads" at "6.3
building the bootstrap cross compiler" and at "6.5 building a complete
cross compiler" (there was no pthread.h). i'm afraid, this was a
mistake.

because at the last point (6.5), ld coud not find the file crti.o! how
can force ld to find this file?

actually, i do not need a c++ compiler. i like c programming and i
think i can go without a c++ compiler. can i forget the last point?

i used these packages:
binutils-2.17.
gcc-4.1.1. (and the gcc-4.1.0-4.1.1.diff)
newlib-1.14
target: i386-linux

On Sun, 1 Jul 2006, Lukas Troellinger wrote:

"i tried to compile a toolchain for my i386. i followed the instructions
of bill gatliff (http://venus.billgatliff.com/node/18)."

Why use something which is out of date? Use HTTP://Kegel.com/crosstool/

" all worked
quite fine. except, i had to add the option "--disable-threads" at "6.3
building the bootstrap cross compiler" and at "6.5 building a complete
cross compiler" (there was no pthread.h). i'm afraid, this was a
mistake.

because at the last point (6.5), ld coud not find the file crti.o!"

If crti.o exists then ld not finding it has nothing to do with pthreads.

" how
can force ld to find this file?"

If crti.o exists, read ld's documentation.

"actually, i do not need a c++ compiler. [..]

[..]"

You did not say anything about C++ above that sentence.

Memfault Beyond the Launch