Discussion:
hurd package
Rene
2018-08-15 02:47:51 UTC
Permalink
Hello,

I'm compiling hurd package from git 06429d67b7e9be332d1012ed4c2bba694e5ddabb through Guix and I've the following error:

gcc -std=gnu99 -fgnu89-inline -Wall -g -O3 -fno-strict-aliasing  -g -O2 -I.  -I..  -I../include -I../include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  -DPACKAGE_NAME=\"GNU\ Hurd\" -DPACKAGE_TARNAME=\"hurd\" -DPACKAGE_VERSION=\"0.9\" -DPACKAGE_STRING=\"GNU\ Hurd\ 0.9\" -DPACKAGE_BUGREPORT=\"bug-***@gnu.org\" -DPACKAGE_URL=\"http://www.gnu.org/software/hurd/\" -DHAVE_MIG_RETCODE=1 -DUTIME_NOW=-1 -DUTIME_OMIT=-2 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DX11_PREFIX=\"\"  -c -o wire.o wire.c
wire.c: In function ‘wire_task_self’:
wire.c:227:9: warning: implicit declaration of function ‘vm_wire_all’ [-Wimplicit-function-declaration]
   err = vm_wire_all (host, mach_task_self (), VM_WIRE_ALL);
         ^
wire.c:227:47: error: ‘VM_WIRE_ALL’ undeclared (first use in this function)
   err = vm_wire_all (host, mach_task_self (), VM_WIRE_ALL);
                                               ^
wire.c:227:47: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [<builtin>: wire.o] Error 1
make[1]: Leaving directory '/tmp/guix-build-hurd-0.9.1.drv-0/hurd-0.9.1/libshouldbeinlibc'
make: *** [Makefile:248: libshouldbeinlibc] Error 2
phase `build' failed after 13.5 seconds

Any idea about the error?

Attached file config.log

regards
Rene
Samuel Thibault
2018-08-15 08:09:06 UTC
Permalink
Hello,
wire.c:227:9: warning: implicit declaration of function ‘vm_wire_all’ [-Wimplicit-function-declaration]
wire.c:227:47: error: ‘VM_WIRE_ALL’ undeclared (first use in this function)
Which version of gnumach headers are you using? The 1.8 release doesn't
have it yet indeed, you need to use the git version.

Samuel
Manolis Ragkousis
2018-08-15 09:36:23 UTC
Permalink
Hello Rene
Post by Rene
Hello,
wire.c:227:9: warning: implicit declaration of function ‘vm_wire_all’ [-Wimplicit-function-declaration]
wire.c:227:47: error: ‘VM_WIRE_ALL’ undeclared (first use in this function)
Which version of gnumach headers are you using? The 1.8 release doesn't
have it yet indeed, you need to use the git version.
Can you try applying this to the gnumach-headers recipe and try again?
```

diff --git a/gnu/packages/hurd.scm b/gnu/packages/hurd.scm
index d6c1fb5e6..57b9edc10 100644
--- a/gnu/packages/hurd.scm
+++ b/gnu/packages/hurd.scm
@@ -49,11 +49,14 @@
(version "1.8")
(source
(origin
- (method url-fetch)
- (uri (gnumach-source-url version))
- (sha256
- (base32
- "02hygsfpd2dljl5lg1vjjg9pizi9jyxd4aiiqzjshz6jax62jm9f"))))
+ (method git-fetch)
+ (uri (git-reference
+ (url "git://git.sv.gnu.org/hurd/gnumach.git")
+ (commit "b25b78f5c087bd187889dc4bb6bfeff0826a651d")))
+ (sha256
+ (base32
+ "1cr39r37yhnfpsrhc952rfi31bb4rrxzc6r08p2d19559yp01lxk"))
+ (file-name (string-append name "-" version))))
(build-system gnu-build-system)
(arguments
`(#:phases
@@ -61,7 +64,10 @@
(replace 'install
(lambda _
(invoke "make" "install-data")))
- (delete 'build))
+ (delete 'build)
+ (add-after 'unpack 'autoreconf
+ (lambda _
+ (invoke "autoreconf" "-vif"))))

;; GNU Mach supports only IA32 currently, so cheat so that we can at
;; least install its headers.
@@ -72,6 +78,10 @@
'(#:configure-flags '("--build=i586-pc-gnu")))

#:tests? #f))
+ (native-inputs
+ `(("autoconf" ,autoconf)
+ ("automake" ,automake)
+ ("libtool" ,libtool)))
(home-page
"https://www.gnu.org/software/hurd/microkernel/mach/gnumach.html")
(synopsis "GNU Mach kernel headers")
(description

```
Manolis

Loading...