[fpc-devel] adding x86_64-netbsd

Leonardo M. Ramé martinrame at yahoo.com
Tue Apr 21 14:15:28 CEST 2009


Axel, It was difficult to create the port to NetBSD? In my company we have several OpenBSD installs and it would be nice if we could run FPC apps on them.

Leonardo M. Ramé
http://leonardorame.blogspot.com


--- On Mon, 4/20/09, Axel Scheepers <axel at axel.truedestiny.net> wrote:

> From: Axel Scheepers <axel at axel.truedestiny.net>
> Subject: [fpc-devel] adding x86_64-netbsd
> To: fpc-devel at lists.freepascal.org
> Date: Monday, April 20, 2009, 12:59 PM
> Hi List,
> 
> I've been fiddling around adding netbsd x86_64 to fpc
> 2.2.4, I've got it
> to the point that I can compile both the rtl and the
> compiler but I'm
> having difficulties creating the prt0.as file(s).
> I can't link anything due to missing symbols;
> [...]
> Assembling pp
> Linking ./pp
> /home/axel/Sources/FPC/fpcbuild-2.2.4-netbsd_x86_64/fpcsrc/rtl/units/x86_64-netbsd/prt0.o:
> In function `___start':
> crt0.c:(.text+0xc5): undefined reference to `_fini'
> crt0.c:(.text+0xd0): undefined reference to `_(float, char
> __restrict *,
> wchar_t)'
> crt0.c:(.text+0xe3): undefined reference to `main'
> [..snip!..]
> 
> The file I created is a somewhat modified .s output from
> crt0.c from
> netbsd. Can someone help me a bit with this?
> I've included a patch with the things I changed (but
> there's some build
> leftovers in it too, sorry)
> 
> I used to program a lot in pascal for school about 16yrs
> ago, it would
> be fun to start playing with it again :)
> 
> Kind regards,
> Axel Scheepers
> -- 
> ()  ascii ribbon campaign - against html e-mail 
> /\  www.asciiribbon.org   - against
> proprietary attachments
> 
> -----Inline Attachment Follows-----
> 
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
> 


      



More information about the fpc-devel mailing list