× CodeTyphon Cross-Build Development, discussions and problems

Question Program built by toolChain for raspbian not works

  • Study Ding
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 8 months ago - 6 years 8 months ago #6922 by Study Ding
I correctly setup and have everything compiled Codetyphon, Since I want to make program for Raspbian, I compile the cross compiler, the weird thing is that if I use the compiler using reapberryPi compiler(in the red box), the program will not run and I got "Segmentation Fault", while If I compile using the arm-linux-pi compile(in the green box), everything works just fine.

I checked the them in the toolChain folders(C:\codetyphon\binToolchains\win64-arm-linux and C:\codetyphon\binToolchains\win64-arm-raspberrypi), they exectuables are not the same,
but it should work.

Another thing I found is there is readme file in each folder, the readme file in the arm-linux-pi folder says this:

Files in this directory are part of CodeTyphon Studio Toolchains Library.Build with CodeTyphon Center and GNU Binutils version 2.23.1 for EABI=0


The readme file in the arm-linux-raspberryPi folder says this:

Files in this directory are part of CodeTyphon Studio Toolchains Library. Build with CodeTyphon Center and GNU Binutils version 2.24.0 for arm linux eabi hardfloat
1) Build xxx-armeb-linux--hardfloat
2) Rename everything with "armeb" to "arm"


Raspberry PI should support hardfloat, why does it not work?

Can anyone help?


Attachments:
Last edit: 6 years 8 months ago by Study Ding.

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 8 months ago - 6 years 8 months ago #6923 by Sternas Stefanos
Replied by Sternas Stefanos on topic Program built by toolChain for raspbian not works
My suggestion Sir
is to use FPC32 and Typhon32 for simple arm-Linux-raspberryPi (32bit CPU)
Did you read this ?

Did you see then difference of
x_FPC_Build_Cross_armeb_linux_hardfloat (general arm-linux script) and
x_FPC_Build_Cross_arm_linux_RapberryPi scripts
are NOT the same, they build FPC elements with difference options:
at line 150: OPT="-CpARMV6" and OPT="-CaEABIHF -CpARMV6 -CfVFPV2 -OoFASTMATH"

it's arm world ...

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

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

  • Study Ding
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 8 months ago - 6 years 8 months ago #6925 by Study Ding
Replied by Study Ding on topic Program built by toolChain for raspbian not works
Thanks man!
Your suggestion is to use FPC32, Did you mean I have to use FPC32?

Actually, The program built by FPC64 works fine on Model A, but not on Model A+

and I tried to compile using FPC32, there is no difference.

Can you please shed some light on me?

By the way, can you please explain the options on line 150?
Last edit: 6 years 8 months ago by Study Ding.

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 8 months ago - 6 years 8 months ago #6926 by Sternas Stefanos
Replied by Sternas Stefanos on topic Program built by toolChain for raspbian not works
You can start from here Sir

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

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