× CodeTyphon Cross-Build Development, discussions and problems

Question i386 target on Ubuntu Trusty 64bit

  • Leslie
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 5 months ago - 6 years 5 months ago #7478 by Leslie
i386 target on Ubuntu Trusty 64bit was created by Leslie
Hi,

When trying to compile the simplest project with an a empty form to i386-linux target:

Free Pascal Compiler version 3.1.1 [2015/06/10] for i386
Copyright (c) 1993-2015 by Florian Klaempfl and others
(1002) Target OS: Linux for i386
(3104) Compiling /tmp/project1.lpr
(3104) Compiling unit1.pas
/tmp/unit1.pas(16,28) Hint: (5024) Parameter "Sender" not used
(9022) Compiling resource /tmp/lib/i386-linux/project1.or
(9015) Linking /tmp/project1
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: warning: /tmp/link.res contains output sections; did you forget -T?
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: skipping incompatible /usr/lib/x86_64-linux-gnu/crti.o when searching for /usr/lib/x86_64-linux-gnu/crti.o
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: cannot find /usr/lib/x86_64-linux-gnu/crti.o
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o when searching for /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: cannot find /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: skipping incompatible /usr/lib/x86_64-linux-gnu//libdl.so when searching for -ldl
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: skipping incompatible /usr/lib/x86_64-linux-gnu//libdl.a when searching for -ldl
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: cannot find -ldl
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: skipping incompatible /usr/lib/x86_64-linux-gnu//libQt4Pas.so when searching for -lQt4Pas
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: cannot find -lQt4Pas
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: skipping incompatible /usr/lib/x86_64-linux-gnu//libX11.so when searching for -lX11
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: skipping incompatible /usr/lib/x86_64-linux-gnu//libX11.a when searching for -lX11
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: cannot find -lX11
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: skipping incompatible /usr/lib/x86_64-linux-gnu//libc.so when searching for -lc
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: skipping incompatible /usr/lib/x86_64-linux-gnu//libc.a when searching for -lc
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: cannot find -lc
/tmp/project1.lpr(20,1) Error: (9013) Error while linking
/tmp/project1.lpr(20,1) Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Error: /usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/ppcross386 returned an error exitcode


Could this be path problem with an extra "/"? ( /usr/lib/x86_64-linux-gnu// ...)

Cheers
Leslie
Last edit: 6 years 5 months ago by Leslie.

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
6 years 5 months ago - 6 years 5 months ago #7479 by Sternas Stefanos
Replied by Sternas Stefanos on topic i386 target on Ubuntu Trusty 64bit
Sir
from Linux64 to Linux32 you must:
1)-Build first Linux32 FPC cross Element
2)-Download from our server Linux32 OS Libraries or
find and copy these Libraries from a Linux32 PC (-lX11=libX11.so, lQt4Pas=libQt4Pas.so etc)
3)-Build your Linux32 project with Typhon64 IDE (set TargetOS=Linux, TargtCPU=i386 and TargetPlatform=QT4 ??)

If you Linux64 PC support MultiArch info here
and you have build and Typhon32 IDE then you simple open Typhon32 and build your Linux32 project in your Linux64 PC

CodeTyphon Don't support MultiArch on Debian Linux Family (Ubuntu etc) yet

PilotLogic Architect and Core Programmer
Last edit: 6 years 5 months ago by Sternas Stefanos.

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

  • Leslie
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 5 months ago - 6 years 5 months ago #7480 by Leslie
Replied by Leslie on topic i386 target on Ubuntu Trusty 64bit
Sternas,

Thank you for your help! :)

1) Done

2) I am not quite sure what this means exactely. In CT Center CrossBuild/ Download libraries I have downloaded:
i386_linux
i386_linux-Qt4

Is there something else need to be done after this?

3)
Hint: (11030) Start of reading config file /usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/fpc.cfg
Hint: (11031) End of reading config file /usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/fpc.cfg
Free Pascal Compiler version 3.1.1 [2015/06/10] for i386
Copyright (c) 1993-2015 by Florian Klaempfl and others
(1002) Target OS: Linux for i386
(3104) Compiling /tmp/project1.lpr
(3104) Compiling unit1.pas
(9022) Compiling resource /tmp/lib/i386-linux/project1.or
(9015) Linking /tmp/project1
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: warning: /tmp/link.res contains output sections; did you forget -T?
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: skipping incompatible /usr/lib/x86_64-linux-gnu/crti.o when searching for /usr/lib/x86_64-linux-gnu/crti.o
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: cannot find /usr/lib/x86_64-linux-gnu/crti.o
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o when searching for /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: cannot find /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: skipping incompatible /usr/lib/x86_64-linux-gnu//libdl.so when searching for -ldl
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: skipping incompatible /usr/lib/x86_64-linux-gnu//libdl.a when searching for -ldl
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: cannot find -ldl
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: skipping incompatible /usr/lib/x86_64-linux-gnu//libQt4Pas.so when searching for -lQt4Pas
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: cannot find -lQt4Pas
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: skipping incompatible /usr/lib/x86_64-linux-gnu//libX11.so when searching for -lX11
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: skipping incompatible /usr/lib/x86_64-linux-gnu//libX11.a when searching for -lX11
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: cannot find -lX11
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: skipping incompatible /usr/lib/x86_64-linux-gnu//libc.so when searching for -lc
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: skipping incompatible /usr/lib/x86_64-linux-gnu//libc.a when searching for -lc
/usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: cannot find -lc
/tmp/project1.lpr(20,1) Error: (9013) Error while linking
/tmp/project1.lpr(20,1) Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Error: /usr/lib/codetyphon/fpc/fpc64/bin/x86_64-linux/ppcross386 returned an error exitcode
Last edit: 6 years 5 months ago by Leslie.

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
6 years 5 months ago - 6 years 5 months ago #7481 by Sternas Stefanos
Replied by Sternas Stefanos on topic i386 target on Ubuntu Trusty 64bit
Only give to your project the directory of downloaded Os Libraries.
FreePascal need these Linux32 libraries to Link/build your Linux32 Project





CT store these downloaded Os Libraries to codetyphon/binLibraries/xxx-xxx

PS: the CT cross build procedure is the same for All OSes, so you can look and here step 4

PilotLogic Architect and Core Programmer
Last edit: 6 years 5 months ago by Sternas Stefanos.
The following user(s) said Thank You: Leslie

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

  • Leslie
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 5 months ago #7482 by Leslie
Replied by Leslie on topic i386 target on Ubuntu Trusty 64bit
Excellent, it is working now.

Thanks a lot!

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