From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: John David Anglin 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 19:23:22 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="41247"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 Cc: guile-devel@gnu.org To: Massimiliano Gubinelli Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Tue Mar 24 00:23:37 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 1jGWPx-000AdK-6W for guile-devel@m.gmane-mx.org; Tue, 24 Mar 2020 00:23:37 +0100 Original-Received: from localhost ([::1]:40670 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jGWPw-0004a4-5s for guile-devel@m.gmane-mx.org; Mon, 23 Mar 2020 19:23:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51052) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jGWPl-0004Zv-76 for guile-devel@gnu.org; Mon, 23 Mar 2020 19:23:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jGWPj-00077u-IA for guile-devel@gnu.org; Mon, 23 Mar 2020 19:23:25 -0400 Original-Received: from simcoe208srvr.owm.bell.net ([184.150.200.208]:57647 helo=torfep02.bell.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jGWPj-00077D-Cu for guile-devel@gnu.org; Mon, 23 Mar 2020 19:23:23 -0400 Original-Received: from bell.net torfep02 184.150.200.158 by torfep02.bell.net with ESMTP id <20200323232322.UZSP3112.torfep02.bell.net@torspm02.bell.net> for ; Mon, 23 Mar 2020 19:23:22 -0400 Original-Received: from [192.168.2.49] (really [70.53.53.104]) by torspm02.bell.net with ESMTP id <20200323232322.HATL16325.torspm02.bell.net@[192.168.2.49]>; Mon, 23 Mar 2020 19:23:22 -0400 In-Reply-To: Content-Language: en-US X-CM-Analysis: v=2.3 cv=KfusTjQD c=1 sm=1 tr=0 a=htCe9XT+XAlGhzqgweArVg==:117 a=htCe9XT+XAlGhzqgweArVg==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=N659UExz7-8A:10 a=SS2py6AdgQ4A:10 a=YYWsVJXmAAAA:20 a=mDV3o1hIAAAA:8 a=FBHGMhGWAAAA:8 a=fHWy_WlB7WxrQqUbA_0A:9 a=pILNOxqGKmIA:10 a=_FVE-zBwftR9WsbkzFJk:22 a=9gvnlMMaQFpL9xblJ6ne:22 X-CM-Envelope: MS4wfBN3dsDPkV6BsxD5afUFMBC81MbiEtByALaIA0ixuhgAmgs5cwKMZZPjja81NDRTOCSm+yha1KqwdueeJWOxf1OYWB5Or127E4qTcSbq/dWR6HoTokIk k+zx8JwZJSq5rJJL8laKHcFFGUsEnc2DiwHR0fq+enV1ZsFyI70leO5l X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 184.150.200.208 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:20463 Archived-At: Hi Massimiliano, I don't think so.  I have a recent build of bdwgc from github including this change: https://github.com/ivmai/bdwgc/issues/308 The bdwgc testsuite is clean. The patch that I submitted in issue 308 was to help in debugging issues with guile.  HEURISTIC2 causes faults during startup that aren't easy to get by using gdb.   I also submitted the previous change to use HEURISTIC2 as the other techniques to determine the stack bottom were problematic (e.g., with autogen). The %zu issue causes immediate problems in the build due to incorrect type sizes. The readdir issue fixes a testsuite issue.  As things stand, readdir64 is used in libguile and it's not available. I think the issue with libatomic may also affect hppa-linux.  Some atomic support depends on LWS system calls on hppa.  These are in libatomic.  On x86, it's only necessary to include libatomic.h and not link directly with libatomic.  There's stuff in gcc testsuite to handle this. Dave On 2020-03-23 6:57 p.m., Massimiliano Gubinelli wrote: > 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: >> >> >> 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=utf-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=-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 >> ================================== >> 1 of 38 tests failed >> (1 test was not run) >> Please report to bug-guile@gnu.org >> ================================== >> >> 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 > -- John David Anglin dave.anglin@bell.net