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,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24213 invoked from network); 6 Aug 2020 03:10:21 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 6 Aug 2020 03:10:21 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 6E6849C1DB; Thu, 6 Aug 2020 13:10:18 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 81CB29C1AF; Thu, 6 Aug 2020 13:09:03 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=bsdimp-com.20150623.gappssmtp.com header.i=@bsdimp-com.20150623.gappssmtp.com header.b="EEFjD9SV"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id D59039C1AF; Thu, 6 Aug 2020 13:08:58 +1000 (AEST) Received: from mail-qk1-f177.google.com (mail-qk1-f177.google.com [209.85.222.177]) by minnie.tuhs.org (Postfix) with ESMTPS id 1598E9C1AD for ; Thu, 6 Aug 2020 13:08:58 +1000 (AEST) Received: by mail-qk1-f177.google.com with SMTP id g26so43771541qka.3 for ; Wed, 05 Aug 2020 20:08:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rPnXIHOSAs36P0vYCqBIkbqTtF114dn/Ftt7Y0+ncb8=; b=EEFjD9SVdizbuc6q8xXnWIQsaUYJIhGhC0hj2AmgtsyX9ZxVtLo3X5H/D/ZJDl58v0 4iPkGckkhpdYqNx5188wzRwfPlgg4GDTRL1I16xsUu6wu2KNUMVNnl33NxAKeOOIxHPK dPeU2K/5lA3270YCuuX5RCCH+p8Qev1VgeRapZ+666cQcAMCr4cpKiLEJLVOlDKeX/2+ b+gy/0hlHNBulpHGX8BCDwzXWr5UdyWykPYTGDAS7muKDU9TN/mMS+YGv4+xA2KU8SqI aFhaMK4bdv2RAwlzw1QA/keBjbRHmmFBLOOVYsgBO0BRFnS17XmodE7p8BAMIEf/bM3W rlyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rPnXIHOSAs36P0vYCqBIkbqTtF114dn/Ftt7Y0+ncb8=; b=qcz3F0PHfQxeBSQLgsR6HsQOAMylTUWGy73ltYfzREZBOTx2Nxe4N898axXinobYJz PIDE89Rjdn5dYog4OkSkXwEnx+IVhJ6feSQuLKPZ2JY7TLVrJ/YpGcJ/n7RfAgwusNG3 BDmMrViblp5yfcYMqkM8Q7Fsj31GU2funUK+AYGKbUtfWIAfEHoOpqVzaaLzsV1eifLM 38dEpIW3Baj3mLPZvxiN2/BGsCxsTOEmRj/saVuMgnOLvptJyj+I7knWfN8eMvwinfx2 hKNbM+rtHku6BCwNmLK5s4Va2XL7KRwM2vJs+pMkuqPSFyB2CgaaLZJ4wk8ZV95++OPE 3ZeQ== X-Gm-Message-State: AOAM532tsA0HJ99TSBnwV7kGbVDwEoJDaGYsPyus7SprWHlvcB0dETpu wTB+3mTgtwojcD5Hkcrh/ZheL5HtmV7KN2wbM3qLWA== X-Google-Smtp-Source: ABdhPJzycVFf3AVcYjExWTi8riEnwZhdkxPqS+9ziD3WlhMXIpkx+8dl22v0WaVx1y5/TMiGhCaTN31oRD2nv2nvdcI= X-Received: by 2002:a05:620a:565:: with SMTP id p5mr6812251qkp.215.1596683336945; Wed, 05 Aug 2020 20:08:56 -0700 (PDT) MIME-Version: 1.0 References: <0DBD06AA-6E1D-4CD3-A953-C47A4D06B272@anteil.com> In-Reply-To: From: Warner Losh Date: Wed, 5 Aug 2020 21:08:45 -0600 Message-ID: To: Jim Capp Content-Type: multipart/alternative; boundary="0000000000001e29e805ac2ccf94" Subject: Re: [TUHS] Debugging help sought X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: The Eunuchs Hysterical Society Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --0000000000001e29e805ac2ccf94 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Aug 5, 2020, 9:04 PM Warner Losh wrote: > > > On Wed, Aug 5, 2020, 8:12 PM Jim Capp wrote: > >> Looking through the code, I see some awfully long function names. Does >> anyone recall if there are/were limits on the size of variable and funct= ion >> names? >> > > 8 I think was the limit. > > Could that cause this error? >> > > Maybe too many symbols? > > The error comes from lookloc. This is called for external type > relocations. It searches the local symbol table for something that matche= s > the relocation entry. This error happens when it can't find it... > > Not sure of the root causes for *that* though. > Try cc -c and do size on the .o. that might give you a hint about what is too big. Warner Warner > >> On Aug 5, 2020, at 9:30 PM, Adam Thornton wrote: >> >> =EF=BB=BF >> I finally munged lbforth.c (https://gist.github.com/lbruder/10007431) >> into compiling cleanly on mostly-stock v7 with the system compiler (lbfo= rth >> itself does fine on 211BSD, but it needs a little help to build in a rea= l >> K&R environment). >> >> Which would be nice, except that when it gets to the linker.... >> >> $ cc -o 4th forth.c >> ld:forth.o: Local symbol botch >> >> WTF? >> >> How do I begin to debug this? >> >> Adam >> >> --0000000000001e29e805ac2ccf94 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Wed, Aug 5, 2020, 9:04 PM Warner Losh <imp@bsdimp.com> wrote:


On Wed, Aug 5, 2020, 8:12 PM Jim= Capp <jcapp@anteil.com> wrote:
Looking through the code, I see som= e awfully long function names. =C2=A0 Does anyone recall if there are/were = limits on the size of variable and function names?
=

8 I think was the= limit.

Could that cause this error?

Maybe too many symbols?

The error comes from lookloc. This is= called for external type relocations. It searches the local symbol table f= or something that matches the relocation entry. This error happens when it = can't find it...

Not= sure of the root causes for *that* though.
<= /div>

Try cc -c and do size on= the .o. that might give you a hint about what is too big.

Warner

=
Warner=C2=A0
<= div dir=3D"ltr">
On Aug 5, 2020, at 9:30 PM, Adam = Thornton <athornton@gmail.com> wrote:

=EF=BB=BF
I finally munged lbforth.c (https://gis= t.github.com/lbruder/10007431) into compiling cleanly on mostly-stock v= 7 with the system compiler (lbforth itself does fine on 211BSD, but it need= s a little help to build in a real K&R environment).

Which would be nice, except that when it gets to the linker....

$ cc -o 4th forth.c
ld:forth.o: Local symbol botch<= /div>

WTF?

How do I begin to de= bug this?

Adam
--0000000000001e29e805ac2ccf94--