Recent

Author Topic: Fpcupdeluxe  (Read 819642 times)

Josh

  • Hero Member
  • *****
  • Posts: 1274
Re: Fpcupdeluxe
« Reply #615 on: September 29, 2017, 02:44:14 pm »
Hi
Just updated Laz updated darwin i386 and x64 cross compilers.

I think something major has changed, if I target Darwin and change widgetset to carbon with i386, when I compile it says its ok, but if i copy this to the mac shared folder that has the app bundle, I get this is not an Application error, if i double click the generated file it open with textedit, and sometimes it informs me that its a windows file.

I then tried changing to Darwin, X64 and cocoa as widgetset, and this created a slightly larger file but the same problem as above.

Any thoughts?
« Last Edit: September 29, 2017, 05:28:23 pm by josh »
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

Josh

  • Hero Member
  • *****
  • Posts: 1274
Re: Fpcupdeluxe
« Reply #616 on: September 30, 2017, 10:14:52 am »
Hi

Trying to install darwin cross compilers, getting the error below when trying either i386 to darwin or x86-64 to darwin.

genmath.inc(919,7) Fatal: Internal error 2014051001

The best way to get accurate information on the forum is to post something wrong and wait for corrections.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #617 on: September 30, 2017, 10:23:03 am »
What about the error message shown ?
Quote
FPC revision 30351 introduced some changed into the compiler causing this error.
Has something todo about how floating points are handled. And that has changed.
See: http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&revision=30351

Josh

  • Hero Member
  • *****
  • Posts: 1274
Re: Fpcupdeluxe
« Reply #618 on: September 30, 2017, 10:36:10 am »
Hi
I noticed that, but following link, refers to something 2.5 years ago.
The installation is a new installation, so nothing else is installed just a vanilla fpc trunk.
« Last Edit: September 30, 2017, 10:40:09 am by josh »
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #619 on: September 30, 2017, 10:49:32 am »
You will encounter more problems when using FPC 64bit on Windows for cross-compiling: the "80 bit extended floating point".
See: http://bugs.freepascal.org/view.php?id=29892
See: http://bugs.freepascal.org/view.php?id=9262
Be prepared.

The preferred Windows setup is still: a 32bit install and cross-compile towards 64bit if needed.

kazalex

  • New Member
  • *
  • Posts: 29
Re: Fpcupdeluxe
« Reply #620 on: September 30, 2017, 01:19:15 pm »
Ubuntu 16.04 amd_64:
Quote
Building compiler for darwin-i386.
The installer encountered the following error:
Option at position 28 (-sp) needs an argument
Something wrong with fpmake exectable. Remove the executable and call make recursively to recover.
The installer encountered the following error:
Option at position 27 (-sp) needs an argument
Something wrong with fpmake exectable. Remove the executable and call make recursively to recover.
fpcupdeluxe: info: TAny_darwin-i386: found correct binary utilities in directory /home/kazalex/Development/freepascal/cross/bin/x86-darwin
fpcupdeluxe: info: TAny_darwin-i386: found correct library in directory /home/kazalex/Development/freepascal/cross/lib/x86-darwin/MacOSX10.11.sdk/usr/lib
osxcross: error: invoking compiler failed
system.pp(387) Error: Error while assembling exitcode 1
system.pp(387) Fatal: There were 2 errors compiling module, stopping
system.pp(387) Error: Error while assembling exitcode 1
Fatal: Compilation aborted
system.pp(387) Fatal: There were 2 errors compiling module, stopping
fpcupdeluxe: ERROR: FPCCrossInstaller (BuildModuleCustom: FPC): Running cross compiler fpc make all for i386-darwin failed with an error code.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #621 on: September 30, 2017, 01:53:24 pm »
What version of FPC ?

kazalex

  • New Member
  • *
  • Posts: 29
Re: Fpcupdeluxe
« Reply #622 on: September 30, 2017, 02:03:06 pm »

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #623 on: September 30, 2017, 05:53:52 pm »
Confirmed
Linux Mint64 100% ok.
Ubuntu64 failure.
Looking into it.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #624 on: September 30, 2017, 06:49:06 pm »
@kazalex
Mmmm ... rather trivial ...
You need to install clang to cross towards Darwin.
(sudo apt-get install clang)
You need to install java to cross towards java.
(sudo apt-get install default-jre)
I will add warnings into fpcupdeluxe about this.

VTwin

  • Hero Member
  • *****
  • Posts: 1215
  • Former Turbo Pascal 3 user
Re: Fpcupdeluxe
« Reply #625 on: September 30, 2017, 07:56:38 pm »
DonAlfredo,

Many thanks for working on this valuable project. The complexity of installing on multiple versions on 3 platforms means I usually install only the stable releases. Fpcupdeluxe may allow me contribute better with more bug hunting. I'm particularly interested in helping debug the Cocoa widgets.

I tried to install the latest version, v1.4.0r:

fpcupdeluxe-x86_64-darwin-cocoa.app

and ran into the same issues josh did. I'll follow his progress and see if I can make it work.

Cheers,
VTwin
“Talk is cheap. Show me the code.” -Linus Torvalds

Free Pascal Compiler 3.2.2
macOS 12.1: Lazarus 2.2.6 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 2.2.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.2.6 (64 bit on VBox)

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #626 on: September 30, 2017, 08:03:38 pm »
Remember: fpcupdeluxe-x86_64-darwin-cocoa installs 64bit Lazarus Cocoa, which is far from perfect yet.

I my opinion, and for the moment, it is easier to stick with carboni386 and cross towards cocoa64.
Carboni386 works perfect and makes life easier on you.
Crossing towards cocoa64 will help you in revealing the cocoa-quircks.
Just my 2 cents.

kazalex

  • New Member
  • *
  • Posts: 29
Re: Fpcupdeluxe
« Reply #627 on: September 30, 2017, 08:13:52 pm »
You need to install clang to cross towards Darwin.
(sudo apt-get install clang)
Now works. Thanks.

You need to install java to cross towards java.
(sudo apt-get install default-jre)
I have Java installed but still receive an error:
Quote
Building compiler for java-jvm.
system.j:230: JAS Error: Badly formatted number.
...but last line of log:
Quote
SUCCESS: Fpcupdeluxe ended without errors.
...confused

VTwin

  • Hero Member
  • *****
  • Posts: 1215
  • Former Turbo Pascal 3 user
Re: Fpcupdeluxe
« Reply #628 on: October 01, 2017, 03:42:47 pm »
I my opinion, and for the moment, it is easier to stick with carboni386 and cross towards cocoa64.

Thanks, I'll try that route.
“Talk is cheap. Show me the code.” -Linus Torvalds

Free Pascal Compiler 3.2.2
macOS 12.1: Lazarus 2.2.6 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 2.2.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.2.6 (64 bit on VBox)

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11459
  • FPC developer.
Re: Fpcupdeluxe
« Reply #629 on: October 01, 2017, 04:59:35 pm »
You will encounter more problems when using FPC 64bit on Windows for cross-compiling: the "80 bit extended floating point".
See: http://bugs.freepascal.org/view.php?id=29892
See: http://bugs.freepascal.org/view.php?id=9262
Be prepared.

The preferred Windows setup is still: a 32bit install and cross-compile towards 64bit if needed.

Note:
Quote from: svn logs
---
r37294 | pierre | 2017-09-21 16:10:03 +0200 (Thu, 21 Sep 2017) | 1 line
Changed paths:
   M /trunk/rtl/inc/genmath.inc
   M /trunk/rtl/inc/mathh.inc

 Add FPC_SOFT_FPUX80 conditional code for 80-bit float type using soft float unit
---
r37295 | pierre | 2017-09-21 16:36:48 +0200 (Thu, 21 Sep 2017) | 1 line
Changed paths:
   M /trunk/compiler/fpcdefs.inc

 Allow compilation of ppc386 compiler using FPC_SOFT_FPUX80, i.e. soft float 80-bit extended float
---
r37296 | pierre | 2017-09-21 16:39:14 +0200 (Thu, 21 Sep 2017) | 1 line
Changed paths:
   M /trunk/compiler/nadd.pas

 Disable some code using bestrealrec if macro FPC_SOFT_FPUX80 is defined
---
r37297 | pierre | 2017-09-21 16:40:23 +0200 (Thu, 21 Sep 2017) | 1 line
Changed paths:
   M /trunk/compiler/assemble.pas

 Add code for writing 80-bit data with soft 80-bit extended when FPC_SOFT_FPUX80 is defined
---
r37298 | pierre | 2017-09-21 17:47:49 +0200 (Thu, 21 Sep 2017) | 1 line
Changed paths:
   M /trunk/compiler/assemble.pas

Fix cycle failure after last commit
---

 

TinyPortal © 2005-2018