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

Jul 02, 2006 1 Replies

hi!



i tried to compile a toolchain for my i386. i followed the instructions of bill gatliff

formatting link
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



"i tried to compile a toolchain for my i386. i followed the instructions of bill gatliff

formatting link
"

Why use something which is out of date? Use

formatting link

" 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.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required