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]
Other format: [Raw text]

Re: cannot open crt0.o


Hi Bill,

I followed exactly same configuration described at 
http://billgatliff.com/twiki/bin/view/Crossgcc/BuildBootstrapGcc to build 
the bootstrap gcc.

And then I tried to build newlib as per the configuration 
described at http://billgatliff.com/twiki/bin/view/Crossgcc/BuildNewlib.

But still, configuration for newlib fails, as it expects crt0.o to be 
already built. Does, bootstrap compiler expected to build crt0.o??

Regards,
Abhijit.

On Wed, 9 Jul 2003, Bill Gatliff wrote:

> Abhijit:
> 
> 
> Check your gcc build against the FAQ and/or Wiki.  Among other things, 
> you're leaving off the --without-headers.
> 
> http://crossgcc.billgatliff.com/index.html
> http://billgatliff.com/twiki/bin/view/Crossgcc/WebHome
> 
> 
> b.g.
> 
> 
> 
> Abhijit Deshpande wrote:
> 
> >Hi,
> >
> >Here is my build script:
> >
> >target=mipsel-elf
> >prefix=$PWD/$target-install
> >
> >binutils_ver=binutils-2.13.1
> >srcdir=$PWD/$binutils_ver
> >objdir=$PWD/build-$binutils_ver-$target.dir
> >
> >cd $objdir
> >
> >$srcdir/configure --target=$target \
> >    --prefix=$prefix --exec-prefix=$prefix \
> >    --with-elf \
> >    --disable-nls
> >
> >make all install
> >
> >cd ..
> >
> >PATH=$prefix/bin:$PATH
> >gcc_ver=gcc-3.2.2
> >srcdir=$PWD/$gcc_ver
> >objdir=$PWD/build-$gcc_ver-$target.dir
> >
> >cd $objdir
> >
> >$srcdir/configure --target=$target \
> >    --prefix=$prefix --exec-prefix=$prefix \
> >    --enable-languages=c \
> >    --disable-shared \
> >    --disable-threads \
> >    --with-gnu-as --with-gnu-ld \
> >    --with-elf \
> >    --disable-nls
> >
> >make all install
> >
> >cd ..
> >
> >mipsgcc=$prefix/bin/${target}-gcc
> >newlib_ver=newlib-1.11.0
> >srcdir=$PWD/$newlib_ver
> >objdir=$PWD/build-$newlib_ver-$target.dir
> >
> >cd $objdir
> >
> >env CC=$mipsgcc \
> >    $srcdir/configure --host=${target} --prefix=$prefix \
> >    --build=i386-linux \
> >    --with-elf
> >
> >make all install
> >
> >cd ..
> >
> >And it fails while configuring newlib, with the message:
> >
> >...../mipsel-elf-install/lib/gcc-lib/mipsel-elf/3.2.2/../../../../mipsel-elf/bin/ld: 
> >cannot open crt0.o: No such file or directory
> >collect2: ld returned 1 exit status
> >
> >*** The command '....../mipsel-elf-install/bin/mipsel-elf-gcc -o 
> >conftest -g -O2 conftest.c' failed.
> >*** You must set the environment variable CC to a working compiler.
> >
> >Thanks,
> >Abhijit.
> >
> >On Wed, 9 Jul 2003, Bill Gatliff wrote:
> >
> >  
> >
> >>Abhijit:
> >>
> >>Looks like you didn't do your bootstrap build properly.  See the links 
> >>in the prior response.
> >>
> >>b.g.
> >>
> >>
> >>Dan Kegel wrote:
> >>
> >>    
> >>
> >>>Abhijit Deshpande wrote:
> >>>
> >>>      
> >>>
> >>>>I am trying to build a cross-compiler for mips-elf target.
> >>>>
> >>>>I could build binutils-2.13.1 and gcc-3.2.2 successfully. But while 
> >>>>configuring newlib-1.11.0, it failed with following message:
> >>>>
> >>>>...../mipsel-elf-install/lib/gcc-lib/mipsel-elf/3.2.2/../../../../mipsel-elf/bin/ld: 
> >>>>cannot open crt0.o: No such file or directory
> >>>>collect2: ld returned 1 exit status
> >>>>
> >>>>*** The command '....../mipsel-elf-install/bin/mipsel-elf-gcc -o 
> >>>>conftest -g -O2 conftest.c' failed.
> >>>>*** You must set the environment variable CC to a working compiler.
> >>>>
> >>>>As per my understanding, crt0.o will be available after building 
> >>>>newlib.. but configure script for newlib itself is failing because 
> >>>>crt0.o is not present..
> >>>>
> >>>>I would like to know how to solve this problem?? or is there anything 
> >>>>wrong with my assumption that crt0.o is generated after building 
> >>>>newlib..
> >>>>        
> >>>>
> >>>I'm not familiar with building newlib, but if you post
> >>>your build script, maybe we could spot the problem.
> >>>- Dan
> >>>
> >>>
> >>>------
> >>>Want more information?  See the CrossGCC FAQ, 
> >>>http://www.objsw.com/CrossGCC/
> >>>Want to unsubscribe? Send a note to 
> >>>crossgcc-unsubscribe@sources.redhat.com
> >>>
> >>>      
> >>>
> >>    
> >>
> >
> >  
> >
> >------------------------------------------------------------------------
> >
> >----------------------------------------- (softjin.com)
> >
> >This message and any attachment contained is scanned by InterScan VirusWall in SoftJin and No virus found.
> >
> >---------------------------------------------------------
> >
> >  
> >
> >------------------------------------------------------------------------
> >
> >------
> >Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
> >Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
> >
> 
> 

-- 

Attachment: VirusWall_Message.txt
Description: Text document

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

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