From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.markwbutt.com (smtp.markwbutt.com [51.222.106.99]) by sourceware.org (Postfix) with ESMTP id 6456E3858D20 for ; Fri, 20 Jan 2023 15:40:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6456E3858D20 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=markwbutt.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=markwbutt.com Received: from efa.jam.icn (efa.jam.icn [192.168.100.20]) by smtp.markwbutt.com (Postfix) with ESMTPS id B02FFC0138 for ; Fri, 20 Jan 2023 12:10:41 -0330 (NST) X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,KAM_NUMSUBJECT,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 DKIM-Filter: OpenDKIM Filter v2.11.0 efa.jam.icn 4Nz3c93dgRzCmJs X-JAMNet-MailScanner-EFA-Watermark: 1674834034.57433@jARXWM5OkV3rF0g2HcOlbw X-JAMNet-MailScanner-EFA-From: mark@markwbutt.com X-JAMNet-MailScanner-EFA: Found to be clean X-JAMNet-MailScanner-EFA-ID: 4Nz3c13LlzzCmJs X-JAMNet-MailScanner-EFA-Information: Please contact mark@markwbutt.com for more information Received: from mail.jam.icn (mail.jam.icn [192.168.100.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (no client certificate requested) by efa.jam.icn (MailScanner Milter) with SMTP id 4Nz3c13LlzzCmJs for ; Fri, 20 Jan 2023 12:10:33 -0330 (NST) DKIM-Filter: OpenDKIM Filter v2.11.0 efa.jam.icn 4Nz3c13LlzzCmJs Received: from mail.jam.icn (localhost [127.0.0.1]) by mail.jam.icn (Postfix) with ESMTPS id 249D84311AA3 for ; Fri, 20 Jan 2023 12:10:33 -0330 (NST) Received: from mail.jam.icn ([127.0.0.1]) by localhost (mail.jam.icn [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Sw8D5JPDNiyB for ; Fri, 20 Jan 2023 12:10:32 -0330 (NST) Received: from smtpclient.apple (extweb.jam.icn [192.168.100.6]) by mail.jam.icn (Postfix) with ESMTPA id BF1E54311AA3 for ; Fri, 20 Jan 2023 12:10:32 -0330 (NST) From: Mark Butt Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.200.110.1.12\)) Subject: Building and install GCC 8.3.0, OpenBSD 7.2 on DEC Alpha EV5 Message-Id: Date: Fri, 20 Jan 2023 12:10:21 -0330 To: gcc-help@gcc.gnu.org X-Mailer: Apple Mail (2.3731.200.110.1.12) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi Everyone, I have OpenBSD 7.2 installed and running on an AlphaServer 4100. DEC Alpha= EV5 processors. No major issues with getting it running on this old hardware other than a s= light bug one of the developers over at OpenBSD squashed for me. I have been having great success with building modern tools and software on= the system. No problems at all. Except for one=E2=80=A6 A particular piece of software I am trying to build requires GCC 8.3.0 whic= h is much newer than the version that comes with OpenBSD. I am attempting = to build and install GCC 8.3.0 in a separate location from the main system = compiler as OpenBSD doesn=E2=80=99t usually take kindly to having its syste= m compiler version changed.=20 I have used the gcc-8.3.0 included script to download and extract the depen= dancies that GCC will need. I have also downloaded, compiled and installed= the latest version of binutils. Installed to /usr/local These are the configure and make commands I am using, and I am running this= in a location NOT in the source tree. bash-5.2# pwd /u01/software/gcc/build-gcc-8.3.0 bash-5.2# ../gcc-8.3.0/configure CFLAGS=3D"-I/usr/include -I/usr/local/incl= ude" LDFLAGS=3D"-L/usr/lib -L/usr/local/lib" --disable-multilib --disable-c= et --enable-language=3Dc,c++ --prefix=3D/usr/local --disable-nls bash-5.2# /usr/local/bin/make Things appear to go well for quite a while (two 300Mhz processors), then th= e make dies with: gcc -c -DHAVE_CONFIG_H -I/usr/include -I/usr/local/include -I. -I../../../= gcc-8.3.0/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstr= 10:31:49 [22/1989] dantic -D_GNU_SOURCE ../../../gcc-8.3.0/libiberty/objalloc.c -o objalloc.o ../../../gcc-8.3.0/libiberty/objalloc.c: In function 'objalloc_create=E2=80= =99: ../../../gcc-8.3.0/libiberty/objalloc.c:95: error: 'PTR' undeclared (first = use in this function)=20 ../../../gcc-8.3.0/libiberty/objalloc.c:95: error: (Each undeclared identif= ier is reported only once=20 ../../../gcc-8.3.0/libiberty/objalloc.c:95: error: for each function it app= ears in.) ../../../gcc-8.3.0/libiberty/objalloc.c:95: error: expected ';' before =E2= =80=98malloc' ../../../gcc-8.3.0/libiberty/objalloc.c: At top level:=20 ../../../gcc-8.3.0/libiberty/objalloc.c:115: error: expected '=3D', ',', ';= ', 'asm' or '__attribute__' before =E2=80=98_objalloc_alloc' ../../../gcc-8.3.0/libiberty/objalloc.c:198: error: expected declaration sp= ecifiers or '...' before =E2=80=98PTR' ../../../gcc-8.3.0/libiberty/objalloc.c:199: error: conflicting types for = =E2=80=98objalloc_free_block' ../../../gcc-8.3.0/libiberty/../include/objalloc.h:113: error: previous dec= laration of 'objalloc_free_block' was here ../../../gcc-8.3.0/libiberty/objalloc.c: In function 'objalloc_free_block= =E2=80=99: ../../../gcc-8.3.0/libiberty/objalloc.c:201: error: 'block' undeclared (fir= st use in this function) ../../../gcc-8.3.0/libiberty/objalloc.c:260: error: 'PTR' undeclared (first= use in this function) ../../../gcc-8.3.0/libiberty/objalloc.c:260: error: expected ';' before =E2= =80=98first' ../../../gcc-8.3.0/libiberty/objalloc.c:290: error: expected ';' before =E2= =80=98p' make[3]: *** [Makefile:1041: objalloc.o] Error 1 make[3]: Leaving directory '/u01/software/gcc/build-gcc-8.3.0/build-alpha-u= nknown-openbsd7.2/libiberty' make[2]: *** [Makefile:2645: all-build-libiberty] Error 2 make[2]: Leaving directory '/u01/software/gcc/build-gcc-8.3.0' make[1]: *** [Makefile:26838: stage1-bubble] Error 2 make[1]: Leaving directory '/u01/software/gcc/build-gcc-8.3.0' make: *** [Makefile:952: all] Error 2 I took a look at ../gcc-8.3.0/libiberty/objalloc.c and it appears to be ha= ving issues with: Line 95 referenced in the error above: ret->chunks =3D (PTR) malloc (CHUNK= _SIZE); This could entirely be down to me going about this endeavour the wrong way.= I have been doing a lot of reading, and experimenting over the past two w= eeks=E2=80=A6 but not much luck getting past this. I have tried the defaul= t shell for OpenBSD as well as the bash shell noted above incase there was = something about the bash install I did=E2=80=A6 I have a personal preferenc= e towards bash :)=20 If anyone sees this and has an =E2=80=9CA-HA!=E2=80=9D moment about what co= uld be wrong, I would certainly appreciate any assistance you could offer. Thanks all and enjoy the weekend! -M --=20 This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.