Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
It took mush time to compile, googling and understanding
found conversations about -msoft-float
my steps:
# funpkg -i binutils-2.18.50.0.1-4.tgz automake-1.10.1-2.tgz autoconf-2.61-2.tgz flex-2.5.33-5.tgz bison-2.3-3.tgz patch-2.5.9-3.tgz gcc-4.1-2.tgz gettext-0.17-2.tgz make-3.81-3.tgz uclibc-0.9.29-7.tgz kernel-headers-2.6.9.1-2.tgz # mkdir cd /mnt/HD_a2/compile # cd /mnt/HD_a2/compile # tar xjf ocaml-3.12.1.tar.bz2 # cd ocaml-3.12.1/ # export TMPDIR=/ffp/tmp //avoid insuffient disk space error # ./configure -prefix /ffp -no-curses -no-tk -no-shared-libs -host arm-unknown-linux-uclibc -cc gcc\ -msoft-float //avoid soft/hard float error //modified . build/camlp4-targets.sh file add '/bin/' to line with `basename $file .ml` // `/bin/basename $file .ml` //i didn't understand why `basename $file .ml` didn't work in script //maybe i forgot install busybox or reboot after installing. i don't know // but link basename -> /bin/busybox exists;( # make world # make opt # make opt.opt
P.P.S. So. i've got after make opt.opt
/ffp/bin/ld: failed to merge target specific data of file stdlib/stdlib.a(nativeint.o) /ffp/bin/ld: ERROR: stdlib/stdlib.a(lexing.o) uses hardware FP, whereas ocamlc.opt uses software FP /ffp/bin/ld: failed to merge target specific data of file stdlib/stdlib.a(lexing.o) /ffp/bin/ld: ERROR: stdlib/stdlib.a(parsing.o) uses hardware FP, whereas ocamlc.opt uses software FP /ffp/bin/ld: failed to merge target specific data of file stdlib/stdlib.a(parsing.o) /ffp/bin/ld: ERROR: stdlib/stdlib.a(set.o) uses hardware FP, whereas ocamlc.opt uses software FP /ffp/bin/ld: failed to merge target specific data of file stdlib/stdlib.a(set.o) /ffp/bin/ld: ERROR: stdlib/stdlib.a(map.o) uses hardware FP, whereas ocamlc.opt uses software FP /ffp/bin/ld: failed to merge target specific data of file stdlib/stdlib.a(map.o) /ffp/bin/ld: ERROR: stdlib/stdlib.a(stack.o) uses hardware FP, whereas ocamlc.opt uses software FP /ffp/bin/ld: failed to merge target specific data of file stdlib/stdlib.a(stack.o) /ffp/bin/ld: ERROR: stdlib/stdlib.a(camlinternalLazy.o) uses hardware FP, whereas ocamlc.opt uses software FP /ffp/bin/ld: failed to merge target specific data of file stdlib/stdlib.a(camlinternalLazy.o) /ffp/bin/ld: ERROR: stdlib/stdlib.a(buffer.o) uses hardware FP, whereas ocamlc.opt uses software FP /ffp/bin/ld: failed to merge target specific data of file stdlib/stdlib.a(buffer.o) /ffp/bin/ld: ERROR: stdlib/stdlib.a(printf.o) uses hardware FP, whereas ocamlc.opt uses software FP /ffp/bin/ld: failed to merge target specific data of file stdlib/stdlib.a(printf.o) /ffp/bin/ld: ERROR: stdlib/stdlib.a(format.o) uses hardware FP, whereas ocamlc.opt uses software FP /ffp/bin/ld: failed to merge target specific data of file stdlib/stdlib.a(format.o) /ffp/bin/ld: ERROR: stdlib/stdlib.a(arg.o) uses hardware FP, whereas ocamlc.opt uses software FP /ffp/bin/ld: failed to merge target specific data of file stdlib/stdlib.a(arg.o) /ffp/bin/ld: ERROR: stdlib/stdlib.a(digest.o) uses hardware FP, whereas ocamlc.opt uses software FP /ffp/bin/ld: failed to merge target specific data of file stdlib/stdlib.a(digest.o) /ffp/bin/ld: ERROR: stdlib/stdlib.a(random.o) uses hardware FP, whereas ocamlc.opt uses software FP /ffp/bin/ld: failed to merge target specific data of file stdlib/stdlib.a(random.o) /ffp/bin/ld: ERROR: stdlib/stdlib.a(weak.o) uses hardware FP, whereas ocamlc.opt uses software FP /ffp/bin/ld: failed to merge target specific data of file stdlib/stdlib.a(weak.o) /ffp/bin/ld: ERROR: stdlib/stdlib.a(filename.o) uses hardware FP, whereas ocamlc.opt uses software FP /ffp/bin/ld: failed to merge target specific data of file stdlib/stdlib.a(filename.o) collect2: ld returned 1 exit status File "caml_startup", line 1, characters 0-1: Error: Error during linking
Last edited by pavelc (2011-07-19 11:48:05)
Offline
so i understood that make opt.opt is no need
# cd mldonkey-3.0.7
# make maintainerclean
# ./configure --enable-force-ocaml --enable-minimum --prefix=/ffp
press yes for locally ocaml
ctrl+z after unpacking ocaml
and i modified . build/camlp4-targets.sh replace `basename $file .ml` to `/bin/basename $file .ml`
ocaml compiled
# make mlnet.static
or # make mlnet.byte.static
i've got
root@bob:/mnt/HD_a2/compile/mldonkey-3.0.7# make mlnet.byte.static /mnt/HD_a2/compile/mldonkey-3.0.7/patches/local/bin/ocamlc -linkall -ccopt -static -o mlnet.byte.static \ -custom bigarray.cma unix.cma str.cma -ccopt " -I/ffp/include" -cclib "-lcharset -lz /ffp/lib/libiconv.so -Wl,-rpath -Wl,/ffp/lib" -ccopt "-pthread" \ \ \ \ \ \ \ -I build build/extlib.cma build/cdk.cma build/bitstring.cma build/magic.cma build/common.cma build/client.cma build/core.cma build/driver.cma src/daemon/common/commonMain.cmo /ffp/bin/ld: attempted static link of dynamic object `/ffp/lib/libiconv.so' collect2: ld returned 1 exit status File "_none_", line 1, characters 0-1: Error: Error while building custom runtime system make: *** [mlnet.byte.static] Error 2 # make mlnet.static /mnt/HD_a2/compile/mldonkey-3.0.7/patches/local/bin/ocamlopt -inline 10 -linkall -ccopt -static -o mlnet.static \ bigarray.cmxa unix.cmxa str.cmxa -ccopt " -I/ffp/include" -cclib "-lcharset -lz /ffp/lib/libiconv.so -Wl,-rpath -Wl,/ffp/lib" -ccopt "-pthread" \ \ \ \ \ \ \ -I build build/extlib.cmxa build/cdk.cmxa build/bitstring.cmxa build/magic.cmxa build/common.cmxa build/client.cmxa build/core.cmxa build/driver.cmxa src/daemon/common/commonMain.cmx /ffp/bin/ld: attempted static link of dynamic object `/ffp/lib/libiconv.so' collect2: ld returned 1 exit status File "caml_startup", line 1, characters 0-1: Error: Error during linking make: *** [mlnet.static] Error 2
Last edited by pavelc (2011-07-20 02:12:42)
Offline
Didn't shadowandy do this some time back?
He posted everything on his site.
And have you tried searching for mldonkey?
There are six pages of hits on this forum alone.
Offline
I am user of mldonkey 3.0.4 (downloaded it from shadowandy)
and it works fine
But i want newer version. Shadowandy stoped compiling mldonkey;(
I read discussion between chapin and shadowandy
and i am not sure that chapin compiled mldonkey on his dns-323
Offline