From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by sourceware.org (Postfix) with ESMTPS id 2EB823858CDB for ; Thu, 23 Mar 2023 17:16:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2EB823858CDB Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-x42e.google.com with SMTP id m2so21420537wrh.6 for ; Thu, 23 Mar 2023 10:16:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679591790; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=JUZvHr7+BfCTnhHdbh1tp8XkSFIbtfCYz7OUzljkYcE=; b=oNxYoTdAM3AAZtpfLb8CE+mI06r9vNrDADoowsgkfxceEWKkzbRy1CFZKRJUEepQcM i/IpOmRlK6RNIrx2j0H1AwmdpwDw8g/MU5P8o3JQSon3U16w8UJKuyJb4spNHZ2MG7qY sQuHu1BQQqOaA+PWUIM9/BGOuFe1gGuHlhq3WY/uMNd/daedulAx0WJ2fn5eoqhZ3Uu+ ChpeGyXndjsbHHKyJLvF+HK1FJX5o/e2TP44rU1+pgEU84jX0/aZ6/Q6vdJXqNUb0ovw 6//N1sfohQU9VlmpfCfkDJ4mTdDaiuMYaSOcSyOhKNOwxfzcEo/hKvE7ozb5XMTJWmOG 7+sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679591790; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JUZvHr7+BfCTnhHdbh1tp8XkSFIbtfCYz7OUzljkYcE=; b=nls+6lXuX0akFDp2/On4XPAJnw4cFvDHvQ7lBMsh01+mqQTYGg5a5GZnBJMrkJ1IQm LzpuFpq5JNayJDkvojOjbEBuMwPb3+mczQXbrmpTG+FHYZbD854HfBNhalJcHq0twyeC 8rlcZ3QZ3RqOMP2pccNwO9tsHdkBxJz0NivUYCsBIakQsZKSyXTNzdic1ZMjO2H7AF1M IxuKzJ0oNtC4LCAR7ohbNxx3t7JRtUblmvinxkGlLiI6VxL1ihKOHUlDGxF1kgH/Bo/J p7v6BCuzKBqHCf6fKTbF2jeS/qO+QK+feStaXSAZiqwh5wzrPLirP4tZq/1k3/3gNAhL NoBw== X-Gm-Message-State: AAQBX9e4Gz1bDepvrQmaVO5aAdmblXFcWNKcA6khc2ulElW3KHja3qOv jtHgzBhgIAoCyPjMkwVmASdu3fxIXy8= X-Google-Smtp-Source: AKy350bcMlqPg4EiClmUoNUa9E+orp6AlbDSfu6zKO5H6XEf/Y4CLCBzdQnvLfRb6rRR/SMfDg30fQ== X-Received: by 2002:a5d:404f:0:b0:2cc:4e58:f6d0 with SMTP id w15-20020a5d404f000000b002cc4e58f6d0mr2775888wrp.54.1679591789761; Thu, 23 Mar 2023 10:16:29 -0700 (PDT) Received: from smtpclient.apple (p200300c7f71a2022a911e6a0eb60b4e9.dip0.t-ipconnect.de. [2003:c7:f71a:2022:a911:e6a0:eb60:b4e9]) by smtp.gmail.com with ESMTPSA id k10-20020a5d6e8a000000b002d1daafea30sm16539954wrz.34.2023.03.23.10.16.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Mar 2023 10:16:29 -0700 (PDT) From: Dennis Grevenstein Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Subject: Re: building gcc 3.0.4 on mips-dec-osf1: where are CPP definitions set? Date: Thu, 23 Mar 2023 18:16:17 +0100 References: To: gcc-help@gcc.gnu.org In-Reply-To: Message-Id: <80EE4930-7763-4CFB-8C8B-1DBDDEB04A12@gmail.com> X-Mailer: Apple Mail (2.3731.400.51.1.1) X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > Am 22.03.2023 um 20:19 schrieb Dennis Grevenstein = : >=20 >> Am 21.03.2023 um 01:04 schrieb Jonathan Wakely = : >>=20 >>> I=E2=80=99ve got an unusual problem. I have on old DECstation (MIPS = R3000 >>> based) running the infamous OSF/1. I got gcc-2.7.2.3 compiled and >>> working and I am now trying to upgrade to 3.0.4. >>> One problem I found is that gcc-3.0.4 no longer defines >>> #define __LANGUAGE_C__ 1 >>> and a number of header files depend on it. >>> It still defines >>> #define __LANGUAGE_C 1 >>> but of course that is not the same. >>> gcc-2.7.2.3 still defined it correctly. I assume that this is just = an >>> error in some file, but I can=E2=80=99t find where these defines are = set. >>=20 >> I think it's a call to builtin_define in gcc/config/mips/mips.h >=20 > this is correct and I eventually got gcc-3.0.4 compiled. > However, the resulting gcc doesn=E2=80=99t fully work. It can go = through > stage2 and it can build some apps like GNU sed, but will produce > binaries that fail with a Signal 11 with some other apps. > I think I would rather go back to gcc-2.7.2.3. just a little FYI for any future retro-computing hobbyists: I have built gcc-2.8.1: ../gcc-2.8.1/configure --enable-languages=3Dc,c++,f77 --disable-nls = --with-as=3D/usr/bin/as --with-ld=3D/usr/bin/ld --disable-shared = --prefix=3D/usr/local/gcc281 mips-dec-osf1 It needed a small fix in gcc-2.8.1/config/mips/mips.h, where I had to add the missing definition of =E2=80=9E-D__LANGUAGE_C__=E2=80=9C. It is also important NOT to specify the =E2=80=9E--without-gnu-as=E2=80=9C= , because it will make gcc produce assembler code that the MIPS as can=E2=80=99t process. This gcc apparently works fine. I could build some packages that work correctly. regards, Dennis