From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by sourceware.org (Postfix) with ESMTPS id 56E3A3858016 for ; Tue, 24 May 2022 01:46:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 56E3A3858016 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=mattwilson.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mattwilson.org Received: by mail-pj1-x102e.google.com with SMTP id z11so5694434pjc.3 for ; Mon, 23 May 2022 18:46:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mattwilson.org; s=google; h=date:from:to:subject:message-id:mime-version:content-disposition :content-transfer-encoding; bh=1eMNDSAxOPj52WLfvh6UR1TNZam6PMm0D7RdICyqvWo=; b=b0ssLoFZ5cawZyxRxfVM/0KoPOlaTasZtlCMCLNltjxtjASwrHjksQXFnyfmnvcq0z QMVMeMmhK6AM4G4sbbvCTkIewDt7PZRBKXheuam8L1QASzxPlZ3VChFHaEmkqphW2EMK 3iaMbD3hzHmjtJNJmwDgo28uyjk/fjAA8/8kM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:content-transfer-encoding; bh=1eMNDSAxOPj52WLfvh6UR1TNZam6PMm0D7RdICyqvWo=; b=brnw11dH0jGoSt+AhGSRDU75vZymIHnw6c169b7yQigyXzPlZHhDPEkpjpDt9fV7Lm IFVyTgTTJaI6yDRbPtEGCVUftfB0iP9vW6LLibJq553F7EYBLpGA8dnB2wglEPfxpm86 sg/gzvpRxCMGmNyxTlL9MzA2CBz5eftJAfU1NZtZQTvMOwtX4jeEVcHLAFfpgC31I3nP f6w66LNzIh6uhhz6ru1U1r8BS6Kh6X3bNb9BED6Q48WDDN1HPRue3E200CBjlnmqMLZx hFpaU9zCcbKWLEanftrpZoxyQW+HTwTQUjDRghT1/qa+AXzSXziz+gFqbPCZbWeGVpt9 65jQ== X-Gm-Message-State: AOAM532XmHn5VDJk4BG4Zg3/G4USPxc+XME1k/VMNyi3dJ4DRsWM9n4T gTdaBlFxcUoYktK89KA/fZCMzN8538/rRw== X-Google-Smtp-Source: ABdhPJx5+f0erus4JX1BwEP7KypqeeD69ddWB3F8sKu7KOwpFHGSMjKdUB7imMiVtokXq7r9W/L7lg== X-Received: by 2002:a17:90b:3b4c:b0:1e0:2c34:fbe8 with SMTP id ot12-20020a17090b3b4c00b001e02c34fbe8mr2005243pjb.70.1653356809555; Mon, 23 May 2022 18:46:49 -0700 (PDT) Received: from mattwilson.org ([50.45.185.53]) by smtp.gmail.com with ESMTPSA id be11-20020a056a001f0b00b00518764d09cdsm6732201pfb.164.2022.05.23.18.46.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 18:46:18 -0700 (PDT) Date: Mon, 23 May 2022 18:46:11 -0700 From: "Matthew R. Wilson" To: gcc-help@gcc.gnu.org Subject: Error in c++tools while building GCC 12.1.0 on HP-UX 11.23 Message-ID: <20220524014611.x7ae6pit33k33dfn@mattwilson.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=1.0 required=5.0 tests=BAYES_00, DKIM_INVALID, DKIM_SIGNED, KAM_DMARC_STATUS, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2022 01:46:53 -0000 Hello, This may be a bit of stretch given that HP-UX 11.23 (11i v2) is a bit...aged. But curious if anyone has any thoughts. I am trying to build GCC 12.1.0 on HP-UX 11.23 on 64-bit PA-RISC. (hppa64-hp-hpux11.23). I current have GCC 6.5.0 (by way of HP ANSI C -> GCC 4.7.4 -> GCC 6.5.0) with GNU binutils 2.38 (to provide as, since the GCC platforms page says to use gas instead of the HP-UX as). Stage 1 and Stage 2 appear to succeed. During Stage 3, I receive the following: /home/mwilson/build/src/gcc-12.1.0/c++tools/server.cc:756:69: error: 'readers' was not declared in this scope; did you mean 'readv'? 756 | if (active < 0 && sock_fd >=3D 0 && FD_ISSET (sock_fd, &readers)) | ^~~~~~~ With a bit more context: $ make =2E.. make[2]: Entering directory '/home/mwilson/build/gcc-12.1.0_001/c++tools' /home/mwilson/build/gcc-12.1.0_001/./gcc/xg++ -B/home/mwilson/build/gcc-12.= 1.0_001/./gcc/ -nostdinc++ `if test -f /home/mwilson/build/gcc-12.1.0_001/h= ppa64-hp-hpux11.23/libstdc++-v3/scripts/testsuite_flags; then /bin/sh /home= /mwilson/build/gcc-12.1.0_001/hppa64-hp-hpux11.23/libstdc++-v3/scripts/test= suite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -= L/home/mwilson/build/gcc-12.1.0_001/hppa64-hp-hpux11.23/libstdc++-v3/src -L= /home/mwilson/build/gcc-12.1.0_001/hppa64-hp-hpux11.23/libstdc++-v3/src/.li= bs -L/home/mwilson/build/gcc-12.1.0_001/hppa64-hp-hpux11.23/libstdc++-v3/li= bsupc++/.libs -B/home/mwilson/build/gcc-12.1.0_001/hppa64-hp-hpux11.23/libs= tdc++-v3/src/.libs -B/home/mwilson/build/gcc-12.1.0_001/hppa64-hp-hpux11.23= /libstdc++-v3/libsupc++/.libs -B/home/mwilson/bldutils64-gcc12.1.0/hppa64-h= p-hpux11.23/bin/ -B/home/mwilson/bldutils64-gcc12.1.0/hppa64-hp-hpux11.23/l= ib/ -isystem /home/mwilson/bldutils64-gcc12.1.0/hppa64-hp-hpux11.23/include= -isystem /home/mwilson/bldutils64-gcc12.1.0/hppa64-hp-hpux11.23/sys-includ= e -fchecking=3D1 -g -O2 -fno-exceptions -fno-rtti -I/home/mwilson/build/s= rc/gcc-12.1.0/c++tools/../libcody -I/home/mwilson/build/src/gcc-12.1.0/c++t= ools/../include -I/home/mwilson/build/src/gcc-12.1.0/c++tools/../gcc -I. -I= =2E./gcc \ -MMD -MP -MF server.d -c -o server.o /home/mwilson/build/src/gcc-12.1.0/= c++tools/server.cc In file included from /home/mwilson/build/gcc-12.1.0_001/gcc/include-fixed/= sys/types.h:464, from /home/mwilson/build/gcc-12.1.0_001/gcc/include-fixed= /stdio.h:24, from /home/mwilson/build/gcc-12.1.0_001/gcc/include-fixed= /wchar.h:30, from /home/mwilson/build/gcc-12.1.0_001/gcc/include-fixed= /inttypes.h:707, from /home/mwilson/build/gcc-12.1.0_001/gcc/include-fixed= /stdint.h:27, from /home/mwilson/build/gcc-12.1.0_001/gcc/include/stdin= t.h:9, from /home/mwilson/build/gcc-12.1.0_001/hppa64-hp-hpux11.= 23/libstdc++-v3/include/bits/align.h:36, from /home/mwilson/build/gcc-12.1.0_001/hppa64-hp-hpux11.= 23/libstdc++-v3/include/memory:72, from /home/mwilson/build/src/gcc-12.1.0/c++tools/../libco= dy/cody.hh:24, from /home/mwilson/build/src/gcc-12.1.0/c++tools/resolver= =2Eh:25, from /home/mwilson/build/src/gcc-12.1.0/c++tools/server.c= c:22: /home/mwilson/build/src/gcc-12.1.0/c++tools/server.cc: In function 'void se= rver(bool, int, module_resolver*)': /home/mwilson/build/src/gcc-12.1.0/c++tools/server.cc:756:69: error: 'reade= rs' was not declared in this scope; did you mean 'readv'? 756 | if (active < 0 && sock_fd >=3D 0 && FD_ISSET (sock_f= d, &readers)) | = ^~~~~~~ make[2]: *** [Makefile:84: server.o] Error 1 $ cat stage_current stage3 Not sure if this is because HP-UX 11.23's system headers aren't including something that's necessary (with GCC 6.5.0 I have a C++11 compiler, but I suspect HP-UX 11.23's libc isn't a C++11 stdlib...), or if this is a solveable problem. Alternatively, are these c++tools necessary? Can they be excluded from the build? My configure command was: $ /home/mwilson/build/src/gcc-12.1.0/configure \ --prefix=3D/home/mwilson/bldutils64-gcc12.1.0 \ --enable-languages=3Dc,c++ \ --with-gnu-as --with-as=3D/home/mwilson/bldutils64-gcc6.5.0/bin/gas \ --without-gnu-ld --with-ld=3D/usr/bin/ld \ --enable-threads=3Dposix Thanks, Matthew