NetBSD Problem Report #60510
From www@netbsd.org Mon Jul 27 13:40:48 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits)
client-signature RSA-PSS (2048 bits))
(Client CN "mail.netbsd.org", Issuer "YR2" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id AFB931A923B
for <gnats-bugs@gnats.NetBSD.org>; Mon, 27 Jul 2026 13:40:48 +0000 (UTC)
Message-Id: <20260727134047.68D5E1A923C@mollari.NetBSD.org>
Date: Mon, 27 Jul 2026 13:40:47 +0000 (UTC)
From: uwe@stderr.spb.ru
Reply-To: uwe@stderr.spb.ru
To: gnats-bugs@NetBSD.org
Subject: lang/gforth fails to build on NetBSD/sparc64
X-Send-Pr-Version: www-1.0
X-From4GNATS: "uwe@stderr.spb.ru via gnats" <gnats-admin@NetBSD.org>
>Number: 60510
>Category: pkg
>Synopsis: lang/gforth fails to build on NetBSD/sparc64
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: simonb
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jul 27 13:45:00 +0000 2026
>Last-Modified: Wed Aug 12 09:12:15 +0000 2026
>Originator: Valery Ushakov
>Release: pkgsrc-2026Q2
>Organization:
>Environment:
NetBSD aurinko 11.99.7 NetBSD 11.99.7 (ULTRA1) #0: Thu Jul 23 00:59:41 MSK 2026 uwe@supi:/home/uwe/work/netbsd/cvs/src/sys/arch/sparc64/compile/ULTRA1 sparc64
>Description:
lang/gforth fails to build on NetBSD current on sparc64
>How-To-Repeat:
for i in libffi.fs fflib.fs cstr.fs unix/socket.fs; do ./gforth -e "s\" `pwd`/lib/gforth/0.7.3/libcc-named/\" libcc-named-dir-v 2! libcc-path clear-path libcc-named-dir libcc-path also-path
:noname 2drop s\" /usr/pkg/lib/gforth/0.7.3/libcc-named/\" ; is replace-rpath" ./$i -e bye; done
/home/uwe/work/netbsd/cvs/pkgsrc-quarterly/lang/gforth/work.sparc64/gforth-0.7.3/lib/gforth/0.7.3/libcc-named/libffi.c: In function 'libffi_LTX_gforth_c_ffi_prep_closure1_aaa_n':
/home/uwe/work/netbsd/cvs/pkgsrc-quarterly/lang/gforth/work.sparc64/gforth-0.7.3/lib/gforth/0.7.3/libcc-named/libffi.c:95:3: warning: 'ffi_prep_closure' is deprecated: use ffi_prep_closure_loc instead [-Wdeprecated-declarations]
95 | sp[2]=ffi_prep_closure1((void *)(sp[2]),(void *)(sp[1]),(void *)(sp[0]));
| ^~
In file included from /home/uwe/work/netbsd/cvs/pkgsrc-quarterly/lang/gforth/work.sparc64/gforth-0.7.3/lib/gforth/0.7.3/libcc-named/libffi.c:3:
/home/uwe/work/netbsd/cvs/pkgsrc-quarterly/lang/gforth/work.sparc64/.buildlink/include/ffi.h:374:1: note: declared here
374 | ffi_prep_closure (ffi_closure*,
| ^~~~~~~~~~~~~~~~
*** Warning: linker path does not have real file for library -lffi.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libffi but no candidates were found. (...for regex pattern test)
*** Warning: libtool could not satisfy all declared inter-library
*** dependencies of module libffi. Therefore, libtool will create
*** a static module, that should work as long as the dlopening
*** application is linked with the -dlopen flag.
file not found
in file included from *OS command line*:-1
libffi.fs:159: open-lib failed
>>>end-c-library<<<
Backtrace:
$41E04990 throw
$41E40A98 c(abort")
$41E41348 compile-wrapper-function1
/home/uwe/work/netbsd/cvs/pkgsrc-quarterly/lang/gforth/work.sparc64/gforth-0.7.3/lib/gforth/0.7.3/libcc-named/fflib.c: In function 'fflib_LTX_gforth_c_alloc_callback1_a_a':
/home/uwe/work/netbsd/cvs/pkgsrc-quarterly/lang/gforth/work.sparc64/gforth-0.7.3/lib/gforth/0.7.3/libcc-named/fflib.c:177:46: error: passing argument 1 of 'alloc_callback' from incompatible pointer type [-Wincompatible-pointer-types]
177 | #define alloc_callback1(a_ip) alloc_callback(gforth_callback_ffcall, (Xt *)a_ip)
| ^~~~~~~~~~~~~~~~~~~~~~
| |
| void (*)(void ***, void *)
/home/uwe/work/netbsd/cvs/pkgsrc-quarterly/lang/gforth/work.sparc64/gforth-0.7.3/lib/gforth/0.7.3/libcc-named/fflib.c:182:15: note: in expansion of macro 'alloc_callback1'
182 | sp[0]=(Cell)alloc_callback1((void *)(sp[0]));
| ^~~~~~~~~~~~~~~
In file included from /home/uwe/work/netbsd/cvs/pkgsrc-quarterly/lang/gforth/work.sparc64/gforth-0.7.3/lib/gforth/0.7.3/libcc-named/fflib.c:3:
/home/uwe/work/netbsd/cvs/pkgsrc-quarterly/lang/gforth/work.sparc64/.buildlink/include/callback.h:58:35: note: expected 'callback_function_t' {aka 'void (*)(void *, struct vacall_alist *)'} but argument is of type 'void (*)(void ***, void *)'
58 | extern callback_t alloc_callback (callback_function_t /* ADDRESS */, void* /* DATA */);
| ^~~~~~~~~~~~~~~~~~~
in file included from *OS command line*:-1
fflib.fs:136: libtool compile failed
>>>end-c-library<<<
Backtrace:
$41E04990 throw
$41E40740 c(abort")
$41E41348 compile-wrapper-function1
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->simonb
Responsible-Changed-By: bsiegert@NetBSD.org
Responsible-Changed-When: Wed, 12 Aug 2026 09:12:15 +0000
Responsible-Changed-Why:
Over to maintainer
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.