DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 1st July 2024
fredvs fredvs is offline
New User
 
Join Date: Jul 2024
Posts: 4
Default OpenBSD 7.5 and Free Pascal Compiler.

Good morning.

We use the Free Pascal Compiler for OpenBSD.
https://gitlab.com/freepascal.org/fpc

The compiler works perfectly on OpenBSD 7.4. (and previous) and applications compiled on OpenBSD 7.4. works correctly on OpenBSD 7.5.

But, on OpenBSD 7.5, the compiler itself runs but produces binaries that don't run on OpenBSD (all versions).

We are lost, because there is no way to debug it, gdb gives no information about what is wrong.

There is a topic on the fpc forum:
https://forum.lazarus.freepascal.org...c,67536.0.html
But you may see that we are in the dark.

What needs to be changed in the fpc sources to make fpc produce running binaries, like it did for OpenBSD 7.4?
Or maybe we need to use other settings for the linker?

Thanks for your help.

Last edited by fredvs; 1st July 2024 at 11:30 AM.
Reply With Quote
  #2   (View Single Post)  
Old 1st July 2024
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,020
Default

Hello, and welcome!

The port of fpc was marked broken for OpenBSD/amd64 in November of 2023, prior to the 7.5-release, which is why there is no package for the amd64 architecture for 7.5 As noted in the commit log for ports/lang/fpc/Makefile, this was due to an llvm 16 incompatibility.

I recommend reaching out to the port maintainer, Pascal Stumpf, who's email address can be obtained from pkg_info(1) or from the contents of the port's Makefile.
Reply With Quote
  #3   (View Single Post)  
Old 1st July 2024
fredvs fredvs is offline
New User
 
Join Date: Jul 2024
Posts: 4
Default

Quote:
Originally Posted by jggimi View Post
Hello, and welcome!

The port of fpc was marked broken for OpenBSD/amd64 in November of 2023, prior to the 7.5-release, which is why there is no package for the amd64 architecture for 7.5 As noted in the commit log for ports/lang/fpc/Makefile, this was due to an llvm 16 incompatibility.

I recommend reaching out to the port maintainer, Pascal Stumpf, who's email address can be obtained from pkg_info(1) or from the contents of the port's Makefile.
I did not use the OpenBSD port-package but the binaries provided from here:
https://sourceforge.net/projects/fre...OpenBSD/3.2.2/

> this was due to an llvm 16 incompatibility.

OK, but why applications compiled on OpenBSD 7.4. runs ok on OpenBSD 7.5 (and 7.4)?

> I recommend reaching out to the port maintainer, Pascal Stumpf,

OK, I will try.

Thanks.
Reply With Quote
  #4   (View Single Post)  
Old 1st July 2024
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,020
Default

Currently, this port includes two OpenBSD-specific patches, which may be or may not be needed when used on other platforms. One patch adds '-z nobtcfi', the other prevents gzipped man pages.

Ports maintainers will usually notify upstream projects of any patches they have which they believe should be considered by that project for broad applicability.
Reply With Quote
  #5   (View Single Post)  
Old 1st July 2024
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,020
Default

Quote:
OK, but why applications compiled on OpenBSD 7.4. runs ok on OpenBSD 7.5 (and 7.4)?
I don't have enough information to answer this question. I can only guess that there are possible library incompatibilities.
Reply With Quote
  #6   (View Single Post)  
Old 1st July 2024
fredvs fredvs is offline
New User
 
Join Date: Jul 2024
Posts: 4
Default

Quote:
Originally Posted by jggimi View Post
Currently, this port includes two OpenBSD-specific patches, which may be or may not be needed when used on other platforms. One patch adds '-z nobtcfi', the other prevents gzipped man pages.

Ports maintainers will usually notify upstream projects of any patches they have which they believe should be considered by that project for broad applicability.
Excellent!
[EDIT] But it does not fix the problem. :-(
I sent an email to the openbsd-fpc port maintainer.
Of course we will find a solution for openbsd + fpc.

Thank you very much for the attention.

Fre;D

Last edited by fredvs; 1st July 2024 at 09:44 PM.
Reply With Quote
  #7   (View Single Post)  
Old 1st July 2024
fredvs fredvs is offline
New User
 
Join Date: Jul 2024
Posts: 4
Default

Quote:
Originally Posted by jggimi View Post
I don't have enough information to answer this question. I can only guess that there are possible library incompatibilities.
Detailed infos about the problem begin from there:
https://forum.lazarus.freepascal.org...html#msg520261

But yes, as you can see, 9 pages of explorations...
Reply With Quote
Reply

Tags
fpc, free pascal compiler, openbsd 7.5

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Obtaining Free Pascal library units and IDE not just compiler in_the_void35 NetBSD Package System (pkgsrc) 12 5th December 2015 01:35 PM
Lazarus 1.0: free cross-platform Pascal IDE J65nko News 0 30th August 2012 10:22 PM
New version of Free Pascal, 2.6.0 J65nko News 0 11th January 2012 06:13 PM
OpenBSD/pf without compiler HOWTO update? zazen OpenBSD Installation and Upgrading 6 26th June 2011 06:47 AM
Delphi or Object Pascal In OpenBSD? SunSpyda Programming 14 28th November 2009 11:21 AM


All times are GMT. The time now is 01:11 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick