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: crosstool error when building termcap


Bhavana NAGENDRA wrote:
I used your crosstool v 27 to build the gcc toolchain for x86_64 target. I have a need cross compile
gdb for the same target. I did the following and it ran happily ran till the termcap error:


export bash_cv_have_mbstate_t=yes
CC=x86_64-unknown-linux-gnu-gcc ./configure ---target=x86_64-unknown-linux-gnu
---host=x86_64-unknown-linux-gnu --build=i686-pc-linux-gnu
configure: no termcap library found.


I found this thread http://sources.redhat.com/ml/crossgcc/2003-10/msg00195.html
where mention that building the crosstool with --builduserland installs termcap.h
and libncurses for the target.


Would using the all.sh option --builduserland work with crosstool 27?

Might or might not - I haven't tried it for many months...


I tried running the script with:
all.sh --nounpack --builduserland --notest

Error: export PATH

? What's that export PATH error? Hmm, do I have a typo somewhere?


+ cd /share/crosstool-0.27/build/x86_64-unknown-linux-gnu/gcc-3.3-20040811-glibc-2.3.2/ptxdist-testing-20031113
+ rm -rf src
+ ln -s /root/downloads src
+ cp /share/crosstool-0.27/ptx.config .config
+ export PREFIX
+ sh scripts/settoolchain.sh
unrecognized target x86_64-unknown-linux-gnu

Sounds like the script settoolchain doesn't support x86_64? Also shouldn't the termcap tarball be present?

Right, in fact, ptxdist as of that date didn't understand x86_64 at all. I'm not sure even if current ptxdist does.

Next I'll try unpacking the termcap rpm and cross compiling it......

Right, you need to crosscompile termcap yourself. Note, however, that back then I found the easiest way to install termcap was to install ncurses instead. Have a look at ptxdist-testing-20031113/rules/ncurses.make.

Ptxdist-0.6.0 has an actual termcap; have a look at
ptxdist-0.6.0/rules/termcap.make.  You can download that
at ptxdist.sf.net.

Good luck!  Oh, also, please use crosstool-0.28-rc37 (or whatever's latest)
instead of crosstool-0.27.
- Dan

--
Trying to get a job as a c++ developer?  See http://kegel.com/academy/getting-hired.html


------ 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]