Welcome, Guest
Username: Password: Remember me
General discussions, feature requests for CodeTyphon Project and discussions that don't fit in any of the other specific CodeTyphon forum categories.
  • Page:
  • 1

TOPIC:

Strange error when trying to build for 32-bit Windows using Typhon64 on Windows 6 years 4 months ago #11264

  • Hans-Peter Gygax
  • Hans-Peter Gygax's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 24
  • Thank you received: 2
In "Project Options", I have set "TargetOS" to "Win32" and "Target CPU Family" to "i386".

When I try to build, I get:
Compile package adFCL 6.3.1: Success
Compile package bs_Utils 6.3.1: Success, Hints: 17
lazutf8.pas(509,44) Hint: Mixing signed expressions and longwords gives a 64bit result
lazutf8.pas(519,53) Hint: Mixing signed expressions and longwords gives a 64bit result
lazutf8.pas(524,33) Hint: Mixing signed expressions and longwords gives a 64bit result
lazutf8.pas(530,44) Hint: Mixing signed expressions and longwords gives a 64bit result
lazfileutils.pas(108,71) Hint: Parameter "Rights" not used
compwriterpas.pas(1330,21) Hint: Mixing signed expressions and longwords gives a 64bit result
compwriterpas.pas(1330,21) Hint: Converting the operands to "Int64" before doing the multiply could prevent overflow errors.
compwriterpas.pas(1335,32) Hint: Mixing signed expressions and longwords gives a 64bit result
lazlistclasses.pas(1236,43) Hint: Mixing signed expressions and longwords gives a 64bit result
lazlistclasses.pas(1639,20) Hint: Mixing signed expressions and longwords gives a 64bit result
lazlistclasses.pas(501,126) Hint: Mixing signed expressions and longwords gives a 64bit result
lazlistclasses.pas(611,116) Hint: Mixing signed expressions and longwords gives a 64bit result
lazlistclasses.pas(652,71) Hint: Mixing signed expressions and longwords gives a 64bit result
lazlistclasses.pas(654,143) Hint: Mixing signed expressions and longwords gives a 64bit result
lazlistclasses.pas(799,27) Hint: Mixing signed expressions and longwords gives a 64bit result
lazlistclasses.pas(1236,43) Hint: Mixing signed expressions and longwords gives a 64bit result
lazlistclasses.pas(1639,20) Hint: Mixing signed expressions and longwords gives a 64bit result
Compile package adLCLBase 6.3.1: Exit code 1, Errors: 1, Warnings: 1
Warning: windres: can't open file `TCalendarPopupForm': No such file or directory
calendarpopup.pas(183,1) Error: Error while compiling resources -> Compile with -vd for more details. Check for duplicates.

The project is just a test project, it contains a TVirtualStringTree and a button.

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

Strange error when trying to build for 32-bit Windows using Typhon64 on Windows 6 years 4 months ago #11265

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4518
  • Thank you received: 1102
Any project for test, Sir
PilotLogic Architect and Core Programmer

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

Last edit: by Sternas Stefanos.

Strange error when trying to build for 32-bit Windows using Typhon64 on Windows 6 years 4 months ago #11271

  • Hans-Peter Gygax
  • Hans-Peter Gygax's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 24
  • Thank you received: 2
So sorry for the long delay. Here's a ZIP file with my test project.
Attachments:

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

Strange error when trying to build for 32-bit Windows using Typhon64 on Windows 6 years 4 months ago #11272

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4518
  • Thank you received: 1102
Thanks Sir
just uncheck
"Use additional compiler config file..."





PilotLogic Architect and Core Programmer

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

Last edit: by Sternas Stefanos.

Strange error when trying to build for 32-bit Windows using Typhon64 on Windows 6 years 4 months ago #11273

  • Hans-Peter Gygax
  • Hans-Peter Gygax's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 24
  • Thank you received: 2
Thank you, but unfortunately that didn't change anything for me.

Could the reason be a mistake I made in CT Center ?

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

Strange error when trying to build for 32-bit Windows using Typhon64 on Windows 6 years 4 months ago #11274

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4518
  • Thank you received: 1102
I don't know
but
my suggestion is to "Remove and Build All" from CTCenter
PilotLogic Architect and Core Programmer

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

Last edit: by Sternas Stefanos.

Strange error when trying to build for 32-bit Windows using Typhon64 on Windows 6 years 4 months ago #11275

  • Hans-Peter Gygax
  • Hans-Peter Gygax's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 24
  • Thank you received: 2
I have now done so, but unfortunately the problem remains unchanged.

I'm attaching a screenshot showing my CTC.

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

Last edit: by Hans-Peter Gygax.

Strange error when trying to build for 32-bit Windows using Typhon64 on Windows 6 years 4 months ago #11276

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4518
  • Thank you received: 1102
Sir
Did you have any FPC or Lazarus Installations in your PC ?

We want more info
Please, post here your PC "Path" string only



.



PilotLogic Architect and Core Programmer

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

Last edit: by Sternas Stefanos.

Strange error when trying to build for 32-bit Windows using Typhon64 on Windows 6 years 4 months ago #11277

  • Hans-Peter Gygax
  • Hans-Peter Gygax's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 24
  • Thank you received: 2
Thank you Sternas,

I indeed had a Lazarus installation, plus some Embarcadero leftovers. I removed all of that, but now I'm getting:

Compile package adFCL 6.3.1: Exit code 1, Errors: 1
Error: ppc386.exe can't be executed, error message: Failed to execute ""ppc386.exe" -B -Twin32 -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -FuC:\codetyphon\typhon\packager\registration\ -FUC:\codetyphon\typhon\packager\units\i386-win32\ fcllaz.pas

The CTC "Get System Info" aborts (the output window closes after a split second).

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

Strange error when trying to build for 32-bit Windows using Typhon64 on Windows 6 years 4 months ago #11278

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4518
  • Thank you received: 1102
For your Path
please go to CTCenter=>CommandBox page
to see the "Get System Info" result

Please Build FPC32
and post here the Action Log info (please zip first)

We try to get more information to help you...
PilotLogic Architect and Core Programmer

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

Strange error when trying to build for 32-bit Windows using Typhon64 on Windows 6 years 4 months ago #11279

  • Hans-Peter Gygax
  • Hans-Peter Gygax's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 24
  • Thank you received: 2
After adding "C:\codetyphon\fpc\fpc32\bin\i386-win32" to my path, ppc386.exe now executes and I can build and launch my project.

Is this normal ?

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

Strange error when trying to build for 32-bit Windows using Typhon64 on Windows 6 years 4 months ago #11280

  • Hans-Peter Gygax
  • Hans-Peter Gygax's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 24
  • Thank you received: 2
Correction: I can only launch it without the debugger.

Here is the system info output:
CTCenter 6.30
for x86_64-win64-Win32/64
 
Start Action at 1/11/2018 12:16:27
_______________________________________________________________
.
===================================================
           CodeTyphon System Info
===================================================

Microsoft Windows [Version 10.0.16299.192]
.................................................

OS Name:                   Microsoft Windows 10 Home
OS Version:                10.0.16299 N/A Build 16299
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Workstation
OS Build Type:             Multiprocessor Free
System Boot Time:          1/11/2018, 10:43:24 AM
System Manufacturer:       ASUS
System Model:              All Series
System Type:               x64-based PC
System Directory:          C:\WINDOWS\system32
System Locale:             en-us;English (United States)
Total Physical Memory:     16,323 MB
.................................................
Operating System is: 64 bit
OS Folder: C:\WINDOWS
.
Computer name: DESKTOP-OMQBER9
.  
User Name: gygax
User with Administrator Privileges: "YES-- (ALL OK)"
User Settings Folder: C:\Users\gygax\AppData\Roaming
User Profile Folder: C:\Users\gygax
User Temp Folder: C:\Users\gygax\AppData\Local\Temp
.  
All Users Profile Folder: C:\ProgramData
All Users Programs Folder:C:\Program Files
.
------- PATH ------
C:\codetyphon\fpc\fpc32\bin\i386-win32;D:\Tools\x64\vc14\bin;D:\Tools\x64\bin;D:\Tools\;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin;C:\Program Files\NVIDIA GPU Computing To

_______________________________________________________________
 
Terminate Action at 1/11/2018 12:16:30
Total time: 00:00:02.838
ExitCode : 0
-----------------------------

I'm compiling fpc32 now.

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

Last edit: by Hans-Peter Gygax.

Strange error when trying to build for 32-bit Windows using Typhon64 on Windows 6 years 4 months ago #11281

  • Hans-Peter Gygax
  • Hans-Peter Gygax's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 24
  • Thank you received: 2
I have now re-built fpc32.exe, build output is attached.

I still cannot debug though, but maybe that is normal when cross-compiling ?

Building still only works when ../fpc32/bin/i386-win32/ is in the path.

I could probably work like this, even though I cannot debug directly.

Is there a way to have a project with separate "configurations", one for 64-bit, one for 32-bit ?
Attachments:

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

Strange error when trying to build for 32-bit Windows using Typhon64 on Windows 6 years 4 months ago #11282

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4518
  • Thank you received: 1102
<<I still cannot debug though, but maybe that is normal when cross-compiling ?>>

Yes you must use gdb for win32 target : C:\codetyphon\binGDB\win32\gdb.exe

and

gdb for win64 target : C:\codetyphon\binGDB\win64\gdb.exe

PilotLogic Architect and Core Programmer

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

Last edit: by Sternas Stefanos.

Strange error when trying to build for 32-bit Windows using Typhon64 on Windows 6 years 4 months ago #11283

  • Hans-Peter Gygax
  • Hans-Peter Gygax's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 24
  • Thank you received: 2
That works, thank you.

Are you considerung extending the IDE options so that a different debugger could be configured for each target platform ?

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

Strange error when trying to build for 32-bit Windows using Typhon64 on Windows 6 years 4 months ago #11284

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4518
  • Thank you received: 1102
No yet Sir
PilotLogic Architect and Core Programmer

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

  • Page:
  • 1