From mboxrd@z Thu Jan 1 00:00:00 1970 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_INVALID,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 1171 invoked from network); 11 Jul 2022 20:03:11 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 11 Jul 2022 20:03:11 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 6DC5840138; Tue, 12 Jul 2022 06:03:05 +1000 (AEST) Received: from mail-vs1-f42.google.com (mail-vs1-f42.google.com [209.85.217.42]) by minnie.tuhs.org (Postfix) with ESMTPS id AC69240136 for ; Tue, 12 Jul 2022 06:03:00 +1000 (AEST) Received: by mail-vs1-f42.google.com with SMTP id l190so5947178vsc.0 for ; Mon, 11 Jul 2022 13:03:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KGIgBSnxk4BfWXYLYgcoW3O0CdVdnCgiNZv4DFuazck=; b=X91IH7X5HpNuHAqbCUC/l9bn6J4z4Nicru62rJuejgfzwL7nFy9Kf9keXeMVNT1XAg ye/8fQ/frytsHC8tipjJKfFVW8rSqEHEHSh1FF096IQiWCHd5matsOXLG5qsq68sMmIZ fFNdz3/uZl6zoE8RlkmF/NxW6PEcSsc51PfZvFF20IaUbSprtNtjYvSELDx4q005HKRN Xbx9JJYzLq+eakZlSZqVUg0MVaxcE50bgBVMXYPcvNDMXHCiy1RxTYM0xKu9XYqc+qt4 9F5g8UcZXmRYxSavTYvCEJfzeCiK9tdMeIEKj1lvCu0IFT1/zdGmzJFK5Kda8b0d8v1V 0UYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KGIgBSnxk4BfWXYLYgcoW3O0CdVdnCgiNZv4DFuazck=; b=z/sRxx3k5ERzzkGRtbTRj7AcqPoSFluk07mBqHdr476MifR1MnoX0cVytkvyMQXFAa F5kFQ7KATZydPqps653H3zaKEOsERUsyI7BLTt9w69v2jV70//QClWVmeu4Lsef5LjPE pJXq067n471N7N4fHu+9EqJm2yVHX7FCOwhj3dWm+WD1Fk+wVe4od3TSNU2X21tctaob tXxkXxADxZ3GruooPFHNEz/z2xjqbEK53pbXe0r/hLZjU8E1joEoDKe2e4Plo9RlkEZ6 T/5rOovT+mW7uuD/HqRBsMeqfC+X3PHDa8xEP49zWhHKXBT3zf5jle0qz2gFCxZWRd37 Ox9Q== X-Gm-Message-State: AJIora/5fjWzs753WxbSmjb3hF7szjMIsPwhXj5KHfow+GEvRRdF68Zc hHhpGi+usqi2TklM8+CNj25hOcQml3DHAfFCGEsP2g== X-Google-Smtp-Source: AGRyM1uDU4ugEj3dbAswdofGdhXR9L5TsJR69kcOrCdJXlrT5ZtDLKYDPAKE/bFnqpIlhwf3Wlm2YHDZN25htRqGa24= X-Received: by 2002:a05:6102:3d97:b0:357:4b1d:c1cc with SMTP id h23-20020a0561023d9700b003574b1dc1ccmr4319024vsv.40.1657569719510; Mon, 11 Jul 2022 13:01:59 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Mon, 11 Jul 2022 14:01:47 -0600 Message-ID: To: Gavin Tersteeg Content-Type: multipart/alternative; boundary="00000000000052812205e38d0627" Message-ID-Hash: PEY3UWRRLMWEZVRFQCDX2HABUNO3FFPU X-Message-ID-Hash: PEY3UWRRLMWEZVRFQCDX2HABUNO3FFPU X-MailFrom: wlosh@bsdimp.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: The Eunuchs Hysterical Society X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: LSX issues and musing List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --00000000000052812205e38d0627 Content-Type: text/plain; charset="UTF-8" On Mon, Jul 11, 2022, 1:48 PM Gavin Tersteeg wrote: > Hello, and greetings! > > I guess as this is my first post here, I should give some u background on > what I have been working on. Last summer I spent a lot of time getting UNIX > V6 working on my PDP-11/23 system. It took a lot of tinkering with the > kernel and drivers to make it work in the way I wanted to, but in the end I > was left with a system that ran well enough to do some demonstrations at > VCFMW. > > This year I want to do more stuff with 1970s era UNIX, but now with even > more technical restrictions. I have had a Heathkit H-11 (consumer grade > PDP-11/03) for a while now, and I have been looking for something > interesting to do with it. From my research, it seems like there were two > different UNIX variants that could run on a system like this. These > variants were LSX and MINI-UNIX. MINI-UNIX seems to require a decent > mass-storage device like a RK05 and some porting to work on an 11/03, while > LSX is designed to work on exactly the hardware specs that I have on hand. > > So on to the actual issues I am having at the moment: I have put together > a SIMH instance to get the ball rolling in building a kernel that will boot > on my EIS-less 11/03, but I am having significant difficulty actually > getting the kernel to build. The first issue is that the C compiler will > randomly spit out a "0: Missing temp file" when attempting to compile > something. This is annoying, but circumventable by just running the same > command over and over until it works. The second issue, however, is much > more of a road block for me. I can't seem to get the kernel to actually > link together once everything is compiled. When the final "ld -X" is > executed, I always get the following errors: > > " > Undefined: > _end > _edata > _decmch > " > (This is from the build script found in the "shlsx" file) > https://minnie.tuhs.org/cgi-bin/utree.pl?file=LSX/sys/shlsx > > I am assuming that this is some sort of issue with the object file > orderings, but I simply do not know enough about V6 ld to properly debug > this issue. I am hoping that somebody here has already run into this issue, > and knows what I am doing wrong. > _end is the end of the text segment. _edata same for the data. You can create these two by just creating a file that defines them as symbols = . And global. And link that file last. Though crt is supposed to have that. _decmch is likely in m.s so maybe that's not included. Iirc it should be next to last... You might already have files with these symbols... nm is your friend here... Warner If I can get this working, I have a long laundry list of modifications and > experiments that I want to run with LSX, but as it stands, this is where I > am stuck at. > > Thank you, > Gavin > --00000000000052812205e38d0627 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Mon, Jul 11, 2022, 1:48 PM Gavin Tersteeg <gctersteeg@gmail.com> wrote:
<= /div>
Hello, and greetings!<= div>
I guess as this is my first post here, I should give som= e u background on what I have been working on. Last summer I spent a lot of= time getting UNIX V6 working on my PDP-11/23 system. It took a lot of tink= ering with the kernel and drivers to make it work in the way I wanted to, b= ut in the end I was left with a system that ran well enough to do some demo= nstrations at VCFMW.

This year I want to do more s= tuff with 1970s era UNIX, but now with even more technical restrictions. I = have had a Heathkit H-11 (consumer grade PDP-11/03) for a while now, and I = have been looking for something interesting to do with it. From my research= , it seems like there were two different UNIX variants=C2=A0that could run = on a system like this. These variants=C2=A0were LSX and MINI-UNIX. MINI-UNI= X seems to require a decent mass-storage device like a RK05 and some portin= g to work on an 11/03, while LSX is designed to work on exactly the hardwar= e specs that I have on hand.

So on to the actual i= ssues I am having at the moment: I have put together a SIMH instance to get= the ball rolling in building a kernel that will boot on my EIS-less 11/03,= but I am having significant difficulty actually getting the kernel to buil= d. The first issue is that the C compiler will randomly spit out a "0:= Missing temp file" when attempting to compile something. This is anno= ying, but circumventable by just running the same command over and over unt= il it works. The second issue, however, is much more of a road block for me= . I can't seem to get the kernel to actually link together once everyth= ing is compiled. When the final "ld -X" is executed, I always get= the following errors:

"
Undefined:=
_end
_edata
_decmch
"
(This is from the build script found in the "shlsx" file)
<= /div>

I am assu= ming that this is some sort of issue with the object file orderings, but I = simply do not know enough about V6 ld to properly debug this issue. I am ho= ping that somebody here has already run into this issue, and knows what I a= m doing wrong.

_end is the end of the text segment. _edata same for = the data. You can create these two by just creating a file that defines the= m as symbols =3D . And global. And link that file last. Though crt is suppo= sed to have that.=C2=A0

= _decmch is likely in m.s so maybe that's not included.=C2=A0 Iirc it sh= ould be next to last...

= You might already have files with these symbols... nm is your friend here..= .

Warner=C2=A0

If I can get this working, I= have a long laundry list of modifications and experiments that I want to r= un with LSX, but as it stands, this is where I am stuck at.

<= /div>
Thank you,
Gavin
--00000000000052812205e38d0627--