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] |
Hi, Dan, thx for u remind. Since I already compiled the toolchain without --builduserland, I try to compile the ncurse and ptx stuff by eval `cat arm.dat` `cat gcc3.3.1-glibc2.3.2.dat` sh ptx.sh here i modified the ptx.sh a bit to let it download the latest 0.4.0.tgz instead the one from your site. after a while, i got a target directory with some bin and lib. then i began to compile a native arm gdb 6 by export bash_cv_have_mbstate_t=yes CC=arm-unknown-linux-gnu-gcc ./configure --target=arm-unknown-linux-gnu --prefix=/root/crosstool-0.24/result/arm-unknown-linux-gnu/gcc-3.3.1-glibc-2.3.2/target --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu make but always come to this error. i can not understand why since i already set the --host. ------------------ Beginning configuration for readline-4.3 for i686-pc-linux-gnu checking whether make sets $(MAKE)... (cached) yes checking for i686-pc-linux-gnu-gcc... (cached) arm-unknown-linux-gnu-gcc checking for C compiler default output... a.out checking whether the C compiler works... configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. --------------------- can u or anybody figure it out? thx. ming On Wed, 2003-11-12 at 15:51, Dan Kegel wrote: > Ming Zhang wrote: > > Anybody use the cross compiler generated by crosstool to compile gdb 5.3 > > or 6.0 before? > > > > I do: > > > > export CC=/foo/..../arm-linux-gnu-gcc > > mkdir gdb-build > > cd gdb-build > > ../gdb-5.3/configure --target=arm-linux-gnu --prefix=/foo > > > > then come to the problem that term library not found. I googled but can > > not find sth useful. > > You need to cross-build and install ncurses. > In theory, giving --builduserland when you install crosstool will do this... > > > if possible, can sb give me a link about hwo to cross compile the gdb? > > Only hitch with gdb-6.0 is you need to set an environment variable, I hear: > http://sources.redhat.com/ml/gdb/2003-08/msg00327.html > > I posted some notes about doing it with gdb-5.3 earlier, but 6.0 is > probably the way to go now. > > - 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
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |