[gnutls-help] failing to build the guile bindings on x86_64-netbsd

ng0 at n0.is ng0 at n0.is
Mon Feb 25 02:48:02 CET 2019


Hi,

I'm trying to create a variant of the existing pkgsrc package
for gnutls by building the guile bindings.

With a sed many packagers do, 2.2 series of guile is detected.

This is what happens in the guile directory. Can someone tell
me why guild detects x86_64--netbsd as invalid target? I am
able to build a number of pkgsrc guile modules without this
error.

Making all in guile
gmake[2]: Entering directory '/usr/work/wip/gnutls-guile/work/gnutls-3.6.5/guile'
Making all in src
gmake[3]: Entering directory '/usr/work/wip/gnutls-guile/work/gnutls-3.6.5/guile/src'
  GEN      enum-map.i.c
  GEN      smob-types.i.c
  GEN      enums.h
  GEN      smobs.h
  GEN      core.x
  GEN      errors.x
/usr/pkg/bin/gmake  all-am
gmake[4]: Entering directory '/usr/work/wip/gnutls-guile/work/gnutls-3.6.5/guile/src'
  CC       guile_gnutls_v_2_la-core.lo
core.c:806:19: warning: 'session_record_port_gc_hint' defined but not used [-Wunused-const-variable=]
 static const char session_record_port_gc_hint[] =
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC       guile_gnutls_v_2_la-errors.lo
  CC       guile_gnutls_v_2_la-utils.lo
  CCLD     guile-gnutls-v-2.la
ld: /usr/pkg/guile/2.2/lib/libguile-2.2.so: warning: warning: tmpnam() possibly used unsafely, use mkstemp() or mkdtemp()
gmake[4]: Leaving directory '/usr/work/wip/gnutls-guile/work/gnutls-3.6.5/guile/src'
gmake[3]: Leaving directory '/usr/work/wip/gnutls-guile/work/gnutls-3.6.5/guile/src'
gmake[3]: Entering directory '/usr/work/wip/gnutls-guile/work/gnutls-3.6.5/guile'
  GEN      modules/gnutls.scm
  GUILEC   modules/gnutls.go
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /usr/work/wip/gnutls-guile/work/.buildlink/bin/guild
;;; compiled /usr/work/wip/gnutls-guile/work/.home/.cache/guile/ccache/2.2-LE-8-3.A/usr/pkg/guile/2.2/bin/guild.go
Backtrace:
           7 (apply-smob/1 #<catch-closure 7c3e50598a20>)
In ice-9/boot-9.scm:
    705:2  6 (call-with-prompt _ _ #<procedure default-prompt-handle?>)
In ice-9/eval.scm:
    619:8  5 (_ #(#(#<directory (guile-user) 7c3e4f9a5140>)))
In /usr/work/wip/gnutls-guile/work/.buildlink/bin/guild:
    72:17  4 (main _)
In srfi/srfi-1.scm:
    640:9  3 (for-each #<procedure 7c3e4e09d900 at scripts/compile.?> ?)
In scripts/compile.scm:
   259:26  2 (_ _)
In system/base/target.scm:
     52:2  1 (with-target "x86_64--netbsd" #<procedure 7c3e4e09d8c0 ?>)
In unknown file:
           0 (scm-error misc-error #f "~A ~S" ("invalid target" "?") #)

ERROR: In procedure scm-error:
invalid target "x86_64--netbsd"
gmake[3]: *** [Makefile:2318: modules/gnutls.go] Error 1
gmake[3]: Leaving directory '/usr/work/wip/gnutls-guile/work/gnutls-3.6.5/guile'
gmake[2]: *** [Makefile:1806: all-recursive] Error 1
gmake[2]: Leaving directory '/usr/work/wip/gnutls-guile/work/gnutls-3.6.5/guile'
gmake[1]: *** [Makefile:1539: all-recursive] Error 1
gmake[1]: Leaving directory '/usr/work/wip/gnutls-guile/work/gnutls-3.6.5'
gmake: *** [Makefile:1466: all] Error 2
*** Error code 2

Stop.
make[1]: stopped in /usr/pkgsrc/wip/gnutls-guile
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/wip/gnutls-guile





More information about the Gnutls-help mailing list