From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Massimiliano Gubinelli Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Fix build of guile-3.0 trunk with gcc-8 on hpux11.11 Date: Mon, 23 Mar 2020 23:57:35 +0100 Message-ID: References: Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_165F8B46-B05A-451F-8836-982E3E00B725" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="56161"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-devel@gnu.org To: John David Anglin Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Mon Mar 23 23:57:56 2020 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jGW15-000EUt-Ek for guile-devel@m.gmane-mx.org; Mon, 23 Mar 2020 23:57:55 +0100 Original-Received: from localhost ([::1]:40528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jGW14-0006ga-Bh for guile-devel@m.gmane-mx.org; Mon, 23 Mar 2020 18:57:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47558) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jGW0r-0006gM-Cm for guile-devel@gnu.org; Mon, 23 Mar 2020 18:57:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jGW0p-000202-38 for guile-devel@gnu.org; Mon, 23 Mar 2020 18:57:41 -0400 Original-Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:39810) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jGW0o-0001wS-KO for guile-devel@gnu.org; Mon, 23 Mar 2020 18:57:39 -0400 Original-Received: by mail-wr1-x42b.google.com with SMTP id p10so6829304wrt.6 for ; Mon, 23 Mar 2020 15:57:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=LM4CJujLCEKKPlhw15AZKUov2UtVOUD7Pcw75zZoe7w=; b=gDcNTIUDymnHXeD/a7OKSDGCJ0kKVY1E3ZKxm4X9BIxREEBLxbuvDJiU31KlI2zgU4 NhenrmT/bZGYk7r5OMxhLkrz0ZoxgwxkNFUgGm7qICAv1zcms2SgUPP1kYUEHvdZh4Cv Ukwx8IE2RMj1N7VYl8BwuxigO3R928ltSWmTkLj1U4O2Lky2isNc0gJ8mmCiPB06KmyJ k04kgMV8EkbKjaNTHYrYxPf+MAERy51RvEW+ekf7F0pMNdbsp0cXJeAH9oS+w0Q9GNoQ 1TBMKpxtobheZU6LQEuQHWEIS3jsVJ+LSytEOrwrvDUELD3tNtKBtCknyIdrEH8NPUOh EMHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=LM4CJujLCEKKPlhw15AZKUov2UtVOUD7Pcw75zZoe7w=; b=AFea2+7BUGlbbYJJ6aEnzpV86f2LzcuSOmVyPM0Nqm4E5kJMplPpdG6s5YSpEjFCjN v36TeLIjzpnj3FnK5E3zChpZnwKMf5e57o8WHU0ivHyr2osoP5BZrLyp9OuoSwkYtodi wPrzuDlhLnXfoIiLZjwzDqT0YraseRsPp1s3ZO//mVvH3J2OkgRsJsaD3wXNNZIaF1AO cxdHO7Ld1JSKMh4SPFwYU/iMjQKy275ypLrinxX2JMxZI3waZuHsQOUKWVopbbt6x5au EgHvtsOP83u1kbHPJJKXO/Y7kcg3t4J+zxS4kCz4Z6YZUKPAgnyd5m60qW0GlyFwOjPf Erwg== X-Gm-Message-State: ANhLgQ3+pNgESaqTXOLeeyN89HJ1AcCut/3ovV1TPftN9zS/o6eZMt6U LPd3YHUg1xTJJ+Oy3EhusBg= X-Google-Smtp-Source: ADFU+vveUlIpLnk7Um8n/OVb3707ciEApmJCi4cW6bDbAuhe3JDXZ4ZrBfY/wRqcdm3DMAbZJlGOrQ== X-Received: by 2002:adf:dcc2:: with SMTP id x2mr14652766wrm.192.1585004257108; Mon, 23 Mar 2020 15:57:37 -0700 (PDT) Original-Received: from [192.168.0.18] ([78.192.22.137]) by smtp.gmail.com with ESMTPSA id f1sm16307245wrv.37.2020.03.23.15.57.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Mar 2020 15:57:36 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3608.60.0.2.5) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42b X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.io gmane.lisp.guile.devel:20462 Archived-At: --Apple-Mail=_165F8B46-B05A-451F-8836-982E3E00B725 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi John, could maybe be a bug with the Boehm-gc? I had some recent issues = compiling Guile 2.2.7 in Haiku and discovered that there is a new = version (8.1.0, next release development) of the GC here https://github.com/ivmai/bdwgc which has some changes, in particular certain conditional compilations = related to HP/UX, see e.g. lines 2708, 3093, ... here: https://github.com/ivmai/bdwgc/blob/master/os_dep.c = Maybe you could try to link this new version and see if the problem with = the test persist. Best Massimiliano > On 23. Mar 2020, at 18:17, guile-devel-request@gnu.org wrote: >=20 >=20 > Message: 1 > Date: Mon, 23 Mar 2020 12:40:57 -0400 > From: John David Anglin > > To: guile-devel > > Cc: Helge Deller >, John Paul = Adrian Glaubitz > > > Subject: [PATCH] Fix build of guile-3.0 trunk with gcc-8 on hpux11.11 > Message-ID: <1b543c79-7e66-9a93-8c57-91527519bac3@bell.net = > > Content-Type: text/plain; charset=3Dutf-8 >=20 > The following change fixes the build of guile-3.0 using gcc-8 on = hpux11.11. > There are three issues addressed: >=20 > 1) The printf function does not support %zu. Since all the type sizes = are small, > we can use %u and cast the sizeof results to unsigned int. >=20 > 2) HP-UX 11.11 does not have readdir64 or readdir64_r. The change = adds back the > checks for readdir64 and readdir64_r. I added support for readdir64 = similar to that > for readdir64_r to gen-scmconfig.c and syscalls.h. >=20 > 3) I needed to link libguile against gcc's libatomic. I don't have a = configure fix yet. > So, I export "LIBS=3D-latomic" in my guild to get gcc's atomic = routines. This fixed segmentation > fault building the texi documentation. >=20 > With these changes, all tests pass except the following: >=20 > wrote = `/mnt/gnu/guile/objdir/cache/guile/ccache/3.0-BE-4-4.2/mnt/gnu/guile/guile= > /test-suite/standalone/test-out-of-memory.go' > GC Warning: Failed to expand heap by 67239936 bytes > GC Warning: Failed to expand heap by 67108864 bytes > GC Warning: Out of Memory! Heap size: 1 MiB. Returning NULL! > GC Warning: Failed to expand heap by 1000132608 bytes > GC Warning: Failed to expand heap by 1000001536 bytes > GC Warning: Out of Memory! Heap size: 1 MiB. Returning NULL! > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 8388608 bytes > GC Warning: Failed to expand heap by 65536 bytes > GC Warning: Out of Memory! Heap size: 37 MiB. Returning NULL! > GC Warning: Failed to expand heap by 65536 bytes > GC Warning: Out of Memory! Heap size: 37 MiB. Returning NULL! > Warning: Unwind-only out of memory exception; skipping pre-unwind = handler. > FAIL: test-out-of-memory > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 1 of 38 tests failed > (1 test was not run) > Please report to bug-guile@gnu.org > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > Please install if okay. >=20 > Guile is part of the build and test environment that I use for gcc. = HP-UX is still the only > environment where we have a working 64-bit compiler. It is needed to = build the 64-bit linux > kernel. >=20 > Regards, > Dave Anglin --Apple-Mail=_165F8B46-B05A-451F-8836-982E3E00B725 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Hi = John,
 could maybe be a bug with the Boehm-gc? I had = some recent issues compiling Guile 2.2.7 in Haiku and discovered that = there is a new version (8.1.0, next release development)  of the GC = here


which has some changes, in particular = certain conditional compilations related to HP/UX, see e.g. lines 2708, = 3093, ... here:


Maybe you could try = to link this new version and see if the problem with the test = persist.

Best
Massimiliano

On 23. Mar 2020, at 18:17, guile-devel-request@gnu.org wrote:


Message: 1
Date: Mon, 23 Mar 2020 12:40:57 = -0400
From: John = David Anglin <dave.anglin@bell.net>
To: guile-devel <guile-devel@gnu.org>
Cc: Helge Deller <deller@gmx.de>, John Paul Adrian = Glaubitz
<glaubitz@physik.fu-berlin.de>
Subject: [PATCH] Fix build of guile-3.0 trunk with gcc-8 on = hpux11.11
Message-ID: = <1b543c79-7e66-9a93-8c57-91527519bac3@bell.net>
Content-Type: text/plain; = charset=3Dutf-8

The following change fixes the build of guile-3.0 using gcc-8 = on hpux11.11.
There are = three issues addressed:

1) The printf function does not support %zu.  Since all = the type sizes are small,
we can use %u and cast the sizeof results to unsigned = int.

2) HP-UX = 11.11 does not have readdir64 or readdir64_r.  The change adds back = the
checks for = readdir64 and readdir64_r.  I added support for readdir64 similar = to that
for = readdir64_r to gen-scmconfig.c and syscalls.h.

3) I needed to link libguile = against gcc's libatomic. I don't have a configure fix yet.
So, I export "LIBS=3D-latomic" = in my guild to get gcc's atomic routines. This fixed = segmentation
fault = building the texi documentation.

With these changes, all tests pass except the = following:

wrote = `/mnt/gnu/guile/objdir/cache/guile/ccache/3.0-BE-4-4.2/mnt/gnu/guile/guile=
/test-suite/standalone/test-out-of-memory.go'
GC Warning: Failed to expand = heap by 67239936 bytes
GC Warning: Failed to expand heap by 67108864 bytes
GC Warning: Out of Memory! Heap = size: 1 MiB. Returning NULL!
GC Warning: Failed to expand heap by 1000132608 = bytes
GC Warning: = Failed to expand heap by 1000001536 bytes
GC Warning: Out of Memory! Heap size: 1 MiB. Returning = NULL!
GC Warning: = Failed to expand heap by 8388608 bytes
GC Warning: Failed to expand heap by 8388608 bytes
GC Warning: Failed to expand = heap by 8388608 bytes
GC Warning: Failed to expand heap by 8388608 bytes
GC Warning: Failed to expand = heap by 8388608 bytes
GC Warning: Failed to expand heap by 8388608 bytes
GC Warning: Failed to expand = heap by 8388608 bytes
GC Warning: Failed to expand heap by 8388608 bytes
GC Warning: Failed to expand = heap by 8388608 bytes
GC Warning: Failed to expand heap by 8388608 bytes
GC Warning: Failed to expand = heap by 8388608 bytes
GC Warning: Failed to expand heap by 8388608 bytes
GC Warning: Failed to expand = heap by 8388608 bytes
GC Warning: Failed to expand heap by 8388608 bytes
GC Warning: Failed to expand = heap by 8388608 bytes
GC Warning: Failed to expand heap by 8388608 bytes
GC Warning: Failed to expand = heap by 8388608 bytes
GC Warning: Failed to expand heap by 8388608 bytes
GC Warning: Failed to expand = heap by 8388608 bytes
GC Warning: Failed to expand heap by 8388608 bytes
GC Warning: Failed to expand = heap by 8388608 bytes
GC Warning: Failed to expand heap by 8388608 bytes
GC Warning: Failed to expand = heap by 8388608 bytes
GC Warning: Failed to expand heap by 8388608 bytes
GC Warning: Failed to expand = heap by 8388608 bytes
GC Warning: Failed to expand heap by 8388608 bytes
GC Warning: Failed to expand = heap by 8388608 bytes
GC Warning: Failed to expand heap by 8388608 bytes
GC Warning: Failed to expand = heap by 8388608 bytes
GC Warning: Failed to expand heap by 8388608 bytes
GC Warning: Failed to expand = heap by 65536 bytes
GC Warning: Out of Memory! Heap size: 37 MiB. Returning = NULL!
GC Warning: = Failed to expand heap by 65536 bytes
GC Warning: Out of Memory! Heap size: 37 MiB. Returning = NULL!
Warning: = Unwind-only out of memory exception; skipping pre-unwind = handler.
FAIL: = test-out-of-memory
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
1 of 38 tests failed
(1 test was not run)
Please report to bug-guile@gnu.org
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Please install if okay.

Guile is part of the build and test environment that I use = for gcc.  HP-UX is still the only
environment where we have a working 64-bit compiler.  It = is needed to build the 64-bit linux
kernel.

Regards,
Dave Anglin

= --Apple-Mail=_165F8B46-B05A-451F-8836-982E3E00B725--