From: Peter M <peter.mdk <at> gmail.com> wrote
> Subject: Help for building powerpc 405 target wanted
> Newsgroups: gmane.comp.compilers.scratchbox.devel
> Date: 2006-02-15 14:27:35 GMT (2 weeks, 7 hours and 5 minutes ago)
>Hello scratch box developers,

>My short term goal is to get hold of a static binary of tcpdump for
>powerpc 405. My longterm goal is to get a working scratchbox target
>for powerpc 405.

---

>I tried to follow wangji's recent mail about on how to build a
>crosstool toolchain inside the HOST target. But using the host
>toolchain scratchbox-toolchain-i686-gcc3.3-glibc2.3 1.0.2 the
>demo-ppc405.sh stops with an error when building libiberty saying
>something like I should use --host instead of --build. Outside of
>scratchbox the demo-ppc405.sh script just works.

>Then I thought I could copy my working crosscompiler into
>/scratchbox/compilers/powerpc-405-gcc-3.4.1-glibc-2.3.3/ and created
>the 3 files: compiler-name, gcc.specs, target_setup.sh



>Any suggestions and help would be greatly appreciated!



>Regards
>Peter M
hi Peter,
that's the problem with "host-gcc" not fully working as with your pc !
You should just copy from what you have done with crosstool outside scratchbox
the big include_dir,lib_dir...but not the bin_dir(where reside 
ar,as,cpp,gcc....)login scratchbox ,and do manually the build_toolchain
after binutils,compile directly gcc ! since headers come from above,
just be carefull(trial error !) with libiberty,libgcc,libstdc;take them off 
lib_dir,during compile phase of binutil,gcc....
that way ,you should at least be able to get cross binary stuff .
check by typing gcc -v  or cpp -v;if it gets recognised you are almost done
complete copy what is missing from lib which doesn't get thru
create the rest (sbox_links,compilername,targetsetup,....)
I recently succeed that way to build openwrt_buildtree_mipsel-uclibc-toolchain
for my sbox!
good luck
wangji

_______________________________________________
Scratchbox-devel mailing list
[email protected]
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-devel

Reply via email to