Welcome, Guest
Username: Password: Remember me
CodeTyphon Cross-Build Development, discussions and problems
  • Page:
  • 1

TOPIC:

ARM - Cross-compiler linking ERROR. 10 years 8 months ago #4340

  • trazanet
  • trazanet's Avatar Topic Author
  • Visitor
  • Visitor
hello all.

i'm a newbie in cross-compile matters.
my testing machines:
0.- tablet PengPOD (lubuntu 12.04, open system i can view and take all lib's using ssh) 7' armv7.
1.- ubuntu 12.10(64), CodeTyphon ->fpc_7.1 (all working ok, toolchains, and all the song's)
2.- ubuntu 12.04(32), CodeTyphon ->fpc_7.1 (same above)
3.- ubuntu 12.04(32), lazarus 0.9->fpc_2.6.0 (binutils setting's like wiki arm cross tutorial, all working ok, fpccross making binarys only in text mode)
4.- ubuntu 12.10(32), lazarus 1.08->fpc_2.6.2 (same above)

i admit i m a begginner in cross-compilation, and my english follow the same way..
this is the error are follow me all this days, in all my machines is the SAME, when i use the ppcrossarm, almost finishing when linking...

""Compilando paquete LCL 1.0.1" completado
a2.lpr(22) Warning: "crti.o" not found, this will probably cause a linking failure
a2.lpr(22) Warning: "crtbegin.o" not found, this will probably cause a linking failure
a2.lpr(22) Warning: "crtend.o" not found, this will probably cause a linking failure
a2.lpr(22) Warning: "crtn.o" not found, this will probably cause a linking failure
a2.lpr(22) Warning: "crti.o" not found, this will probably cause a linking failure
a2.lpr(22) Warning: "crtbegin.o" not found, this will probably cause a linking failure
a2.lpr(22) Warning: "crtend.o" not found, this will probably cause a linking failure
a2.lpr(22) Warning: "crtn.o" not found, this will probably cause a linking failure
/arm-linux-ld: warning: link.res contains output sections; did you forget -T?
/arm-linux-ld: cannot find -ldl
/arm-linux-ld: cannot find -lpthread
/arm-linux-ld: cannot find -lX11
/arm-linux-ld: cannot find -lgdk_pixbuf-2.0
/arm-linux-ld: cannot find -lgtk-x11-2.0
/arm-linux-ld: cannot find -lgdk-x11-2.0
/arm-linux-ld: cannot find -lgobject-2.0
/arm-linux-ld: cannot find -lglib-2.0
/arm-linux-ld: cannot find -lgthread-2.0
/arm-linux-ld: cannot find -lgmodule-2.0
/arm-linux-ld: cannot find -lpango-1.0
/arm-linux-ld: cannot find -lcairo
/arm-linux-ld: cannot find -latk-1.0
/arm-linux-ld: cannot find -lc
a2.lpr(22) Error: Error while linking
a2.lpr(22) Fatal: There were 1 errors compiling module, stopping"

Correct me if i wrong, are 3 ways to make binaries:
1.- using command line in terminal, making simple programs eg:
fpc -Tlinux -Parm -XParm-linux- TestARM.pas
2.- using codetyphon/lazarus, using default 'fpc' compiler, and parameter:
-Tlinux -Parm -XParm-linux-
3.- using codetyphon/lazarus, setting 'fpcrossarm' compiler, (this binary compiler apears when you set make crosscompile, before installing lazarus)
4.- when i try with lazarus, i use the wikitutorial for cross-compile too , and this command to create the cross-compiler binary:
"sudo make crossinstall CPU_TARGET=arm OS_TARGET=linux CROSSBINDIR=/home/felipote/lazarus/fpc/binutils/ OPT=-dFPC_ARMEL INSTALL_PREFIX=/usr" (same wiki tutorial....)

, sternas upload a 'arm-linux-pi.7z', but:
1.- i don't know how use this libs
2.- i don't know how create a new ppcrossarm with this libs, but i think, it's fix the problem, bacause many people (no so many) has the same issue.
someone can explain how use this lib's and to make this happend
so, i always think: 'the pengpod is a ubuntu linux-machine, how i can't run a simple form on it?'...not good.
so, that's it
and this is, the never ending history... :-S
apreciate any help.
thanks

Please Log in or Create an account to join the conversation.

  • Page:
  • 1