From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from minnie.tuhs.org (minnie.tuhs.org [IPv6:2600:3c01:e000:146::1]) by inbox.vuxu.org (Postfix) with ESMTP id 5010B2F399 for ; Thu, 5 Dec 2024 07:37:59 +0100 (CET) Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id A535443CF8; Thu, 5 Dec 2024 16:37:53 +1000 (AEST) Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) by minnie.tuhs.org (Postfix) with ESMTPS id 34B0243CF6 for ; Thu, 5 Dec 2024 16:37:49 +1000 (AEST) Received: by mail-qk1-x736.google.com with SMTP id af79cd13be357-7b65f2daae6so58608285a.1 for ; Wed, 04 Dec 2024 22:37:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733380668; x=1733985468; darn=tuhs.org; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=Fzxc54SDoDGF8VtER0BGxRFk2to3lRvo+5e6iQLHfvI=; b=eijMz7OhMX2VIW3YaqOT8yhnWhcoABijkMEVc6viN7at1FhBQS1D1fZlUJTkZmtacY Utg+UsKXvBcRpkHKFEDkMaqX5JrDhdotzwP+IR5Dj7dj0yOq2VhdX6jaRyQg4SkzulBH /HjezLoHb17vm8KCIlGcVFKERHLp3yOk5YPIroud1OZlVgqWBA79FltE2Z18mdpSISyP 6B1djho5mJg35n58gC8plrCgCe0TA22v4LRUQTDOxmExQSS5BR0imdzV8V28O5lk5MAV 3HNwUGWYWztf4JTOV5XJec6hfrPHhv7S/wJi6LIlL9W9Tf4LlRV9zVSU61HBKHsWha6i YmCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733380668; x=1733985468; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Fzxc54SDoDGF8VtER0BGxRFk2to3lRvo+5e6iQLHfvI=; b=mufhvlslyyWPVGxv7jYPkoBKXbfmyJCttQuyyc5YRp++OCJpWhyhpl4erM2LSuuUGq TMHJR6VTbr78fRkXymq9otM/Dzc9KrMj2J2KFvaeQz2L5aEZjd5bvbSKrqSsXnVxpC3w QRjG/aJ7qIW6n9IOAqZSpPxFSsmNwJgdUnj9H7ulah1JBeuttfOBitOalRC0N5wgg1Iq psTwpMQfxLKVvupJ2q/FpYAZoUgpUUYrPBEz35RtMcrIhyaunbkAegQm2Au1ZmO5Ze0i mngvvM539rzJ13PHYWuO5xwBf5v2r0GZCFWRsOWhrmV6zd4Yn8K2N8ImAgJVVrl4XrnH yEQQ== X-Gm-Message-State: AOJu0YwBbgI+XrUxvvRujYbcLNWZoA03bgZBrJVkuIz36HwQQOeP45TN UqvdWXGzRNkImjHQBqRbsmetBQwLfG9ht2VdgOjp9sH4HjprchkQo5sVvA== X-Gm-Gg: ASbGncvNmAJkC4E7xh2GC5/2pdg8pE5ntde1iAZKV4eQnHX8hzVnk/FpelqHYg4n45Y 5H1XNrzrk84GjKSArNm8e35+6dj+dpYZzGBRT/IkSPpdEiCQcj/a+PLHmrtIgCxIInHwlKrACjX Ao2lLvHViaNvQFJ3AII/14SLUImLmnLVihC6XK2PU759PiM/hf1f4Chy2pLlJ+mOUmtLbO4L8wD wK6zOmkC/rvqX3CPrAgkuq7BxiqGDo6DQnBAtG6KAi+7EQBhz+mpvkrFhxGMexHjqSAsaVzy2dN hdsnJ6LV X-Google-Smtp-Source: AGHT+IHGWGHRPbg4qRLfCnuEoQE1MvaCtBzkAQBLmwJDwLrUOoqkukIkbaTTdevXuLnswTNtSWDjgA== X-Received: by 2002:a05:620a:1a08:b0:7b6:7618:d7cd with SMTP id af79cd13be357-7b6a619aca9mr1143228185a.43.1733380668061; Wed, 04 Dec 2024 22:37:48 -0800 (PST) Received: from t430-fbsd (syn-074-070-140-193.res.spectrum.com. [74.70.140.193]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7b6b5a5b6d1sm34765085a.36.2024.12.04.22.37.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 22:37:47 -0800 (PST) Date: Thu, 5 Dec 2024 01:38:34 -0500 (EST) From: Dan Plassche To: Noel Chiappa In-Reply-To: <20241201042131.E7DD318C075@mercury.lcs.mit.edu> Message-ID: References: <20241201042131.E7DD318C075@mercury.lcs.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Message-ID-Hash: 6WEGQNTRP5MV5W7DPXSK3F5DSH2OMAWS X-Message-ID-Hash: 6WEGQNTRP5MV5W7DPXSK3F5DSH2OMAWS X-MailFrom: boomer3200@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-tuhs.tuhs.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: tuhs@tuhs.org X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: Typesetter C Compiler and Troff (Re: Re: v6 Unix Documents) List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Sat, 30 Nov 2024, Noel Chiappa wrote: > > > I was able to rebuild both the UNSW and the native PWB compiler on PWB > > 1.0, but not to backport either to vanilla v6. > > Any idea what the problem was? I'm curious, because we ran a version of the > Typesetter compiler on the MIT systems, which ran an enhanced V6. > > Noel Yes, I have a general sense after making some progress building on v6 and further exploring the PWB 1.0 and UNSW sets as noted below. Would be interested to complete the process and add any details I am missing. I had to use the new c compiler and assembler from the Shoppa disk (nix_v6.rl02.gz) to bootstrap the build using the UNSW files on v6. The original typesetter c distribution was supposed to be for v6, which is my intended use case, but it appears the third-party copies we have available drifted: - the stock v6 compiler could not build the new "Portable I/O Library" (/lib/libS.a supporting stdio) from UNSW or PWB as the pre-requisite to building the new compiler. The code is almost all the same in both, although UNSW is missing tmpnam.c. - "old" cc gave a lot of basic syntax errors from the included stdio.h and the library files with some of the most common issues being redeclared items and classes. - I had to adjust the UNSW includes to point to the in-directory stdio.h file rather than the to be created include path (/usr/include/stdio.h from #include ) that was assumed to already exist (not on v6). - table.o for the stdio library appears to require the new as - PWB 1.0 builds already have ncc and are straightforward, but rely on makefiles and use syscalls that are not available on v6 - UNSW's set provides traditional run shell scripts, but incorporates features -- the Bourne shell colon no-op and as with an -o flag -- that are not on v6 - everything for stdio and the new compiler apart from c1 built cleanly using ncc with /xlib I am still tracking down why building c1 lead to an error (_itol undefined). I think the build is getting close. Also, I suspect that the typesetter c distribution from AT&T differed from what we have in terms of the build scripts and likely included binaries with the source: it seems that at some point ncc became necessary to build later verison of ncc. Thanks, Dan