Welcome, Guest
Username: Password: Remember me
CodeTyphon FreeBSD, OpenBSD, NetBSD and DragonFly OSes Development, discussions and problems
  • Page:
  • 1

TOPIC:

CT 7.10 failes to compile on GhostBSD 20.03 4 years 5 months ago #14623

  • Manos S. Pappas
  • Manos S. Pappas's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 69
  • Thank you received: 1
Hello,

As the title says, I am trying to install CT 7.10 (released version) to a GhostBSD 20.03 installation.
Before trying to install, I've followed the Wiki section regarding setting up my user as sudoer.

The problem is that Free Pascal installation fails as it cannot compile cleanly.
Here is the log from the console after selecting option 4 (FreePascal remove and build all) showing the actual error (gcc dependencies related)
gmake[7]: Circular syscall.ppu <- baseunix.ppu dependency dropped.
gmake[7]: Circular syscall.ppu <- baseunix.ppu dependency dropped.
gmake[7]: Circular syscall.ppu <- baseunix.ppu dependency dropped.
gmake[6]: Circular syscall.ppu <- baseunix.ppu dependency dropped.
gmake[6]: Circular syscall.ppu <- baseunix.ppu dependency dropped.
gmake[4]: Circular syscall.ppu <- baseunix.ppu dependency dropped.
gmake[4]: Circular syscall.ppu <- baseunix.ppu dependency dropped.
/usr/local/bin/ld: cannot find /usr/lib/libc_nonshared.a
/usr/local/bin/ld: cannot find /usr/lib/libssp_nonshared.a
gmake[2]: *** [Makefile:1755: fpmake] Error 1
gmake[1]: *** [Makefile:2781: packages_smart] Error 2
gmake: *** [Makefile:2929: build-stamp.x86_64-freebsd] Error 2
gmake[7]: Circular syscall.ppu <- baseunix.ppu dependency dropped.
gmake[7]: Circular syscall.ppu <- baseunix.ppu dependency dropped.
gmake[7]: Circular syscall.ppu <- baseunix.ppu dependency dropped.
gmake[6]: Circular syscall.ppu <- baseunix.ppu dependency dropped.
gmake[6]: Circular syscall.ppu <- baseunix.ppu dependency dropped.
gmake[4]: Circular syscall.ppu <- baseunix.ppu dependency dropped.
gmake[4]: Circular syscall.ppu <- baseunix.ppu dependency dropped.
/usr/local/bin/ld: cannot find /usr/lib/libc_nonshared.a
/usr/local/bin/ld: cannot find /usr/lib/libssp_nonshared.a
gmake[2]: *** [Makefile:1755: fpmake] Error 1
gmake[1]: *** [Makefile:2781: packages_smart] Error 2
gmake: *** [Makefile:2929: build-stamp.x86_64-freebsd] Error 2
cp: /usr/local/codetyphon/fpc/newfpc/bin/*: No such file or directory
cp: /usr/local/codetyphon/fpc/newfpc/share/*: No such file or directory
cp: /usr/local/codetyphon/fpc/newfpc/lib/fpc/3.3.1/*: No such file or directory
cp: /usr/local/codetyphon/fpc/newfpc/lib/fpc/*: No such file or directory
mv: rename /usr/local/codetyphon/fpc/fpc64/ppcx64 to /usr/local/codetyphon/fpc/fpc64/bin/x86_64-freebsd/ppcx64: No such file or directory

Any help is appreciated.
Best Regards,
Manos S. Pappas

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

CT 7.10 failes to compile on GhostBSD 20.03 4 years 5 months ago #14624

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4523
  • Thank you received: 1108
Mano
We try CT on GhostBSD many time without success in last 4 years ( and TrueOS info )
The latest successful CT build on GhostBSD was before 4 year info
We don't know what happen on GhostBSD packages system/tree from TrueOS (formerly PC-BSD or PCBSD)
info1 info2
or the differences between FreeBSD and TrueOS (formerly PC-BSD or PCBSD) packages.

In our LAB we use FreeBSD 32 and 64 as reference OS
PilotLogic Architect and Core Programmer

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

Last edit: by Sternas Stefanos.

CT 7.10 failes to compile on GhostBSD 20.03 4 years 5 months ago #14625

  • Manos S. Pappas
  • Manos S. Pappas's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 69
  • Thank you received: 1
Hi Stefane,

I will investigate further the matter and will try to find what is going on.
Lazarus 2.0.6 and FPC 3.0.4 are available on the official GhostBSD repos but I'd prefer to use CT as I use it across many platforms.

I suspect the problem relies with the GCC toolchain in GhostBSD 20.03 which uses a FreeBSD 12.x kernel with a different userland C runtime.
It would be great if CT - using FreeBSD as it's reference BSD OS - would switch on BSD's from GCC to CLang, like it does on MacOS.

Will post here my progress.
Best Regards,
Manos S. Pappas

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

CT 7.10 failes to compile on GhostBSD 20.03 4 years 5 months ago #14626

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4523
  • Thank you received: 1108
We will try again

My suggestion is to try and Lazarus 2.0.6 // FPC 3.0.4 from GhostBSD packages
if there working ...
PilotLogic Architect and Core Programmer

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

Last edit: by Sternas Stefanos.

CT 7.10 failes to compile on GhostBSD 20.03 4 years 5 months ago #14631

  • Manos S. Pappas
  • Manos S. Pappas's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 69
  • Thank you received: 1
According to this page: wiki.freepascal.org/FreeBSD
FreeBSD 12.0 is unable to compile the source for FPC 3.3.1.

GhostBSD 20.x is based on FreeBSD 12.1 so this explains why it is not possible (currently) to compile FPC 3.3.1.
There is a workaround posted on the above page but I do not see how this could be applied when building CT.

Will continue searching, my next step is to check if GhostBSD has some compatibility kernel stubs enabled, since - according to the page above - FPC does try to invoke some really old FreeBSD system calls and this creates issues.

GhostBSD 20.03 comes with working FPC 3.0.4 and Lazarus 2.0.6 but I want to use CT since it is the toolkit I am using across my systems.
Best Regards,
Manos S. Pappas

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

CT 7.10 failes to compile on GhostBSD 20.03 4 years 5 months ago #14633

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4523
  • Thank you received: 1108
Mano
first of all FPC and CT-FPC are NOT the same.

2) CodeTyphon works OK on FreeBSD 12.1 without any problem
FreeBSD64-o2.jpg CT 7.10
FreeBSD64-n4.jpg CT LAB 7.20

3) We test GhostBSD,
after 3 installations our report is that the pkg system of this OS has big problem.

-If we try to update the OS, the OS don't start
-We install again the OS, but this time we try to install gcc pkg.
The OS can't install any OS pkg, the pkg system stall/crashes without any error.
GhostBSD-x1.jpg
GhostBSD-x2.jpg

We will NOT waste our time with this OS (for now).

4) My suggestion is to try and FreeBSD.


PilotLogic Architect and Core Programmer

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

Last edit: by Sternas Stefanos.

CT 7.10 failes to compile on GhostBSD 20.03 4 years 5 months ago #14644

  • Manos S. Pappas
  • Manos S. Pappas's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 69
  • Thank you received: 1
Stefane,

There is a small issue with the package system right from the GhostBSD 20.03 ISO.
I have reported this to the GhostBSD forum and I got the answer here: forums.ghostbsd.org/viewtopic.php?f=69&p...7b84183c769695#p8219

The solution was simply to remove a repo config file:
sudo rm /usr/local/etc/pkg/repos/GhostBSD.conf

After doing so, I was able to update the system, it rebooted without issues and I can install gcc 9.3.0, binutils 2.33 etc without issues.

I understand your concern regarding GhostBSD, I will give FreeBSD a try when I have more time.
Best Regards,
Manos S. Pappas

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

CT 7.10 failes to compile on GhostBSD 20.03 4 years 5 months ago #14645

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4523
  • Thank you received: 1108
We will do the same
after GhostBSD new ISO release.

PS: Mano can you give us a screen with working Laz/FPC on GhostBSD ?
PilotLogic Architect and Core Programmer

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

Last edit: by Sternas Stefanos.

CT 7.10 failes to compile on GhostBSD 20.03 4 years 5 months ago #14648

  • Manos S. Pappas
  • Manos S. Pappas's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 69
  • Thank you received: 1
Stefane, here is a screenshot of the Lazarus/FPC that came from GhostBSD repositories.


On the other hand, I've followed your advice and installed FreeBSD 12.1 with KDE Plasma 5 (FuryBSD latest ISO with KDE 5.18) and I still cannot compile the FPC part from CT 7.1 distribution archive (changing widgets to QT5 and re-installing system libraries, no errors while installing packages from there).


The problem is that at some point the (gcc?) compiler crashes.
gmake[7]: Circular syscall.ppu <- baseunix.ppu dependency dropped.
gmake[7]: Circular syscall.ppu <- baseunix.ppu dependency dropped.
gmake[7]: Circular syscall.ppu <- baseunix.ppu dependency dropped.
gmake[6]: Circular syscall.ppu <- baseunix.ppu dependency dropped.
gmake[6]: Circular syscall.ppu <- baseunix.ppu dependency dropped.
gmake[4]: Circular syscall.ppu <- baseunix.ppu dependency dropped.
gmake[4]: Circular syscall.ppu <- baseunix.ppu dependency dropped.
gmake[2]: *** [Makefile:1759: smart] Segmentation fault (core dumped)
gmake[1]: *** [Makefile:2781: packages_smart] Error 2
gmake: *** [Makefile:2929: build-stamp.x86_64-freebsd] Error 2
gmake[7]: Circular syscall.ppu <- baseunix.ppu dependency dropped.
gmake[7]: Circular syscall.ppu <- baseunix.ppu dependency dropped.
gmake[7]: Circular syscall.ppu <- baseunix.ppu dependency dropped.
gmake[6]: Circular syscall.ppu <- baseunix.ppu dependency dropped.
gmake[6]: Circular syscall.ppu <- baseunix.ppu dependency dropped.
gmake[2]: *** [Makefile:1768: clean] Segmentation fault (core dumped)
gmake[1]: *** [Makefile:2807: packages_clean] Error 2
gmake: *** [Makefile:2926: build-stamp.x86_64-freebsd] Error 2
Segmentation fault (core dumped)
cp: /usr/local/codetyphon/fpc/newfpc/bin/*: No such file or directory
cp: /usr/local/codetyphon/fpc/newfpc/share/*: No such file or directory
cp: /usr/local/codetyphon/fpc/newfpc/lib/fpc/3.3.1/*: No such file or directory
cp: /usr/local/codetyphon/fpc/newfpc/lib/fpc/*: No such file or directory
mv: rename /usr/local/codetyphon/fpc/fpc64/ppcx64 to /usr/local/codetyphon/fpc/fpc64/bin/x86_64-freebsd/ppcx64: No such file or directory

I have the same problem even if I use the default widgets selected (gtk2). :(
FuryBSD is essentially FreeBSD, it just comes with either KDE or XFCE pre-installed (neither XFCE version also works with CT7.10).

I will try one last time to install CT 7.10 on bare-bones FreeBSD with KDE installed manually before giving up.
Best Regards,
Manos S. Pappas
Attachments:

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

Last edit: by Manos S. Pappas.

CT 7.10 failes to compile on GhostBSD 20.03 4 years 5 months ago #14653

  • Manos S. Pappas
  • Manos S. Pappas's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 69
  • Thank you received: 1
I've completed a FreeBSD 12.1 setup (following the FreeBSD handbook) with KDE 5.18 and I can verify that it is not possible to compile CT 7.10 on this also; the part where the FreePascal is built fails with core dumps.

The problem is replicated no matter which toolkit is selected for the LCL, gtk2 (default) or QT5.
The bootstrap FPC is built fine but when trying to FPC build all, the whole process crashes.
./fpmake compile --localunitdir=.. --os=freebsd --cpu=x86_64 -o -Ur -o -Xs -o -O2 -o -n -o -Cg -o -Fl/usr/local/lib -o -dx86_64 -o -dRELEASE --compiler=/usr/local/codetyphon/fpcsrc/compiler/ppcx64 -bu -o -XX -o -CX
gmake[2]: *** [Makefile:1759: smart] Segmentation fault (core dumped)
gmake[2]: Leaving directory '/usr/local/codetyphon/fpcsrc/packages'
gmake[1]: *** [Makefile:2781: packages_smart] Error 2
gmake[1]: Leaving directory '/usr/local/codetyphon/fpcsrc'
gmake: *** [Makefile:2929: build-stamp.x86_64-freebsd] Error 2               

The problem is on the fpmake built on /usr/local/codetyphon/fpcsrc/packages.
Best Regards,
Manos S. Pappas

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

Last edit: by Manos S. Pappas.

CT 7.10 failes to compile on GhostBSD 20.03 4 years 5 months ago #14655

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4523
  • Thank you received: 1108
Mano
I don't know how to help you.
Please, if you want our help, give us more information about your FreeBSD installation,
For our installations we use this procedure
for FreeBSD 32 and FreeBSD 64 Bits.

Just for the record,
from our daily LAB tests some live screens from
FreeBSD ver 12.1 32Bit (2GB RAM/4 Cores/60 GB SSD/1680x1050 pixels Monitor)




CTCenter and Typhon V-IDE build for GTK2 platform




Building CTCenter with Typhon32 V-IDE for QT5 platform. Yes we build CTCenter on every Host OS.




Test on Typhon32 V-IDE pl_OpenGL pkg on QT5 platform




.
PilotLogic Architect and Core Programmer
Attachments:

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

Last edit: by Sternas Stefanos.

CT 7.10 failes to compile on GhostBSD 20.03 4 years 5 months ago #14672

  • Manos S. Pappas
  • Manos S. Pappas's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 69
  • Thank you received: 1
Hello Stefane,

Thank you for the suggestions; I am trying to compile CT 7.10 on three different machines (one real and two Virtualbox VMs) using FreeBSD 12.1 with the following specs:
Real machine: Intel i5-4570K, 12GB RAM, 500GB Hard Disk, FreeBSD 12.1 x64/amd64
VBox1: Dual-core PC, x64, 8GB RAM, 40GB virtual disk, FreeBSD 12.1 x64/amd64
VBox2: Dual-core PC, x86, 4GB RAM, 40GB virtual disk, FreeBSD 12.1 x86

An all machines I experience the exact same behaviour: CT7.1 fails to compile because it cannot compile the FPC needed. The bootstrapping compiler works but when it tries to compile fpcmake, it coredumps.

I've followed the exact steps from the page you've mentioned above, installing the same dependencies and doing exactly the same thing (compiling FPC under MATE desktop with gtk2); still the same problem.

I appreciate your time and help but I won't bother with FreeBSD anymore.

Thank you for your time and effort to help.
Best Regards,
Manos S. Pappas

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

CT 7.10 failes to compile on GhostBSD 20.03 4 years 5 months ago #14673

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4523
  • Thank you received: 1108
OK Mano

We test again GhostBSD 20.04.1 with the same problem,
on VM:4xCores/8GB RAM/120 GB HD.

Host WPC 2x Xeon E5 (32 Cores)/64GB RAM ECC
PilotLogic Architect and Core Programmer

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

Last edit: by Sternas Stefanos.
  • Page:
  • 1