FPC 3.2 error when cross compile from Linux x64 to NetBSD

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

FPC 3.2 error when cross compile from Linux x64 to NetBSD

AlexeyT
FPC 3.2 installed in FPCupdeluxe, with Lazarus trunk. NetBSD binary is
made but with such error in Laz window:


Compile Project, Mode: netbsd x64, OS: netbsd, Target:
builds/netbsd-x64-gtk2/cudatext: Success, Errors: 2
Error: /home/user/fpcupdeluxe/cross/bin/x86_64-netbsd/x86_64-netbsd-ld:
/home/user/fpcupdeluxe/fpc/units/x86_64-netbsd/rtl/cwstring.o: in
function `CWSTRING_$$_init$':
Error: cwstring.pp:(.text.n_cwstring_$$_init$+0x10): warning: warning:
reference to compatibility __setlocale_mb_len_max_32();include
<locale.h> for correct reference

----
user@user-Notebook:~$ fpcupdeluxe/fpc/bin/x86_64-linux/fpc
Free Pascal Compiler version 3.2.0-beta-r41315 [2019/02/16] for x86_64

--
Regards,
Alexey

_______________________________________________
fpc-pascal maillist  -  [hidden email]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: FPC 3.2 error when cross compile from Linux x64 to NetBSD

Schindler Karl-Michael-2


Date: Tue, 25 Jun 2019 00:12:06 +0300
From: "Alexey Tor." <[hidden email]>
To: FPC mail list <[hidden email]>
Subject: [fpc-pascal] FPC 3.2 error when cross compile from Linux x64 to NetBSD
Message-ID: <[hidden email]>
Content-Type: text/plain; charset=utf-8; format=flowed

FPC 3.2 installed in FPCupdeluxe, with Lazarus trunk. NetBSD binary is 
made but with such error in Laz window:


Compile Project, Mode: netbsd x64, OS: netbsd, Target: 
builds/netbsd-x64-gtk2/cudatext: Success, Errors: 2
Error: /home/user/fpcupdeluxe/cross/bin/x86_64-netbsd/x86_64-netbsd-ld: 
/home/user/fpcupdeluxe/fpc/units/x86_64-netbsd/rtl/cwstring.o: in 
function `CWSTRING_$$_init$':
Error: cwstring.pp:(.text.n_cwstring_$$_init$+0x10): warning: warning: 
reference to compatibility __setlocale_mb_len_max_32();include 
<locale.h> for correct reference

----
user@user-Notebook:~$ fpcupdeluxe/fpc/bin/x86_64-linux/fpc
Free Pascal Compiler version 3.2.0-beta-r41315 [2019/02/16] for x86_64

-- 
Regards,
Alexey

With svn revision 42282 the cross compiler for x86_64-netbsd is built on macOS without a problem. Maybe try a recent revision.

Regards - MiSchi.


_______________________________________________
fpc-pascal maillist  -  [hidden email]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal