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

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

Reply to
Luki
Loading thread data ...

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

Reply to
Colin Paul Gloster

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.