Forum

× CodeTyphon Cross-Build Development, discussions and problems

Question Cross Build Linux 64bit to Linux 32bit failed

  • Md. Shariful Alam Khan
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
2 months 2 weeks ago #12024 by Md. Shariful Alam Khan
Cross Build Linux 64bit to Linux 32bit failed was created by Md. Shariful Alam Khan
I did a post about Win32-Linux32 in Cross Build Win32-Linux32 which yet to have a suitable answer. So I tried to do Linux 64bit to Linux 32bit and came out as same as Win32-Linux32 with following error:
/usr/local/codetyphon/fpc/fpc64/bin/x86_64-linux/i386-linux-ld: cannot find /lib/ld-linux.so.2

ld-linux.so.2 file is available in /usr/local/codetyphon/binLibraries/i386-linux

I badly need to compile a library for Linux 32bit as my Linux host application is 32bit(Firebird 1.5) and I making a Firebird UDF.

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

More
2 months 1 week ago - 2 months 1 week ago #12027 by fredvs
Hello.

Not sure to understand.

Is your main system Linux 64 bit and do yo want to compile a 32 bit Linux library?

IMHO, the most easy is not to do Cross-compilation but use the 32 bit Typhon in a multi-arch 64 bit system.

To resume: install CodeTyphon with "multi-arch" enabled then, load 32 bit Typhon for compile your 32 bit library.
Last edit: 2 months 1 week ago by fredvs.

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

  • Md. Shariful Alam Khan
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
2 months 1 week ago - 2 months 1 week ago #12028 by Md. Shariful Alam Khan
Replied by Md. Shariful Alam Khan on topic Cross Build Linux 64bit to Linux 32bit failed
My main system is 64bit and trying to compile 32bit.

I tried to install 32bit IDE but got following error in Ubuntu Budgie 64-bit with 6GB of RAM and with Multi-Arch enabled

make -C packager/registration
make[1]: Entering directory '/usr/local/codetyphon/typhon/packager/registration'
/bin/rm -f ../units/i386-linux/fcllaz.ppu
/usr/local/codetyphon/fpc/fpc32/bin/i386-linux/ppc386 -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -Fu. -FE. -FU../units/i386-linux -di386 fcllaz.pas
Hint: (11030) Start of reading config file /usr/local/codetyphon/fpc/fpc32/bin/i386-linux/fpc.cnf
Hint: (11031) End of reading config file /usr/local/codetyphon/fpc/fpc32/bin/i386-linux/fpc.cnf
Free Pascal Compiler version 3.1.1 [2018/05/29] for i386
Copyr
Copyright (c) 1993-2018 by Florian Klaempfl and others
(1002) Target OS: Linux for i386
(3104) Compiling fcllaz.pas
Fatal: (10022) Can't find unit system used by fcllaz
Fatal: (1018) Compilation aborted
Makefile:2803: recipe for target 'fcllaz.ppu' failed
make[1]: *** [fcllaz.ppu] Error 1
make[1]: Leaving directory '/usr/local/codetyphon/typhon/packager/registration'
Makefile:3268: recipe for target 'registration' failed
make: *** [registration] Error 2
mv: cannot stat 'typhon': No such file or directory
mv: cannot stat 'typhonstart': No such file or directory
mv: cannot stat 'typhonbuild': No such file or directory
mv: cannot stat 'tools/ctres': No such file or directory
mv: cannot stat 'tools/ctlrstofrm': No such file or directory


[INFO]: Clean Tools Directory


??????????????????????????????????????????????????????????
[ERROR]: Sorry, Typhon32 Small IDE i386-linux-gtk2 NOT Build
??????????????????????????????????????????????????????????

==============================================================
Build Typhon32 BIG IDE i386-linux-gtk2 for Linux
==============================================================


[ERROR]: Sorry, Typhon32 from Small-IDE NOT Build
please remove and build Typhon again...
Last edit: 2 months 1 week ago by Md. Shariful Alam Khan.

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
2 months 1 week ago - 2 months 1 week ago #12029 by Sternas Stefanos
Replied by Sternas Stefanos on topic Cross Build Linux 64bit to Linux 32bit failed
Sir
Ubuntu Budgie 64-bit it's NOT MultiArch Distribution,
for this reason we don't enable CodeTyphon MultiArch ability in our CT-OS test info

For true MultiArch and MultiPlatform distributions my suggestion is
Debian 9.x, Fedora 28, Mageia 6 etc. more info

Many "Secondary" Linux Distribution do NOT support MultiArch
it's OS Packages and Libraries problem.

CodeTyphon Architect and Programmer
Last edit: 2 months 1 week ago by Sternas Stefanos.

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