Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Go to Heaven for the climate, Hell for the company." -- Mark Twain


computers / comp.os.vms / cross tools and CLD scope

SubjectAuthor
* cross tools and CLD scopeCraig A. Berry
+* Re: cross tools and CLD scopeSimon Clubley
|`- Re: cross tools and CLD scopeDavid Jones
`* Re: cross tools and CLD scopeArne Vajhøj
 `* Re: cross tools and CLD scopeBob Wilson
  `* Re: cross tools and CLD scopeRobert A. Brooks
   `* Re: cross tools and CLD scopehb
    `* Re: cross tools and CLD scopeCraig A. Berry
     `* Re: cross tools and CLD scopeDavid Jones
      `* Re: cross tools and CLD scopeRobert A. Brooks
       +* Re: cross tools and CLD scopeSimon Clubley
       |+- Re: cross tools and CLD scopeBob Wilson
       |`- Re: cross tools and CLD scopeCraig A. Berry
       `- Re: cross tools and CLD scopeDavid Jones

1
cross tools and CLD scope

<skicqa$g8m$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=18077&group=comp.os.vms#18077

  copy link   Newsgroups: comp.os.vms
Path: rocksolid2!news.neodome.net!weretis.net!feeder8.news.weretis.net!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: craigbe...@nospam.mac.com (Craig A. Berry)
Newsgroups: comp.os.vms
Subject: cross tools and CLD scope
Date: Sun, 17 Oct 2021 18:49:29 -0500
Organization: A noiseless patient Spider
Lines: 40
Message-ID: <skicqa$g8m$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 17 Oct 2021 23:49:31 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="8017d6b450656f6afc371ac0f9ad9246";
logging-data="16662"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19/SL2l/+REFdsfbAUq/nRbJAa2FqQJAmI="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.2.0
Cancel-Lock: sha1:0+x61//dH99AoGg+AmpFvKpSNB8=
Content-Language: en-US
 by: Craig A. Berry - Sun, 17 Oct 2021 23:49 UTC

So I finally got around to bringing up a v9.1-A system and took a swing
at trying to build something with the cross tools on Itanium. The docs
for those tools mention SYS$MANAGER:X86_XTOOLS$SYLOGIN.COM, which, among
other things, "Adds the cross-tools specific command definitions to the
CLI table of a process."

So far so good. You wouldn't want to mangle your system command tables
on your Itanium system if you were still trying to target Itanium some
of the time. But, as far as I can see, CLD definitions -- unlike logical
names and symbols -- are not inherited by subprocesses. Is that really
true?

Here is my conundrum:

$ show symbol cc
CC == "XCC"
$ cc/vers
VSI C X7.4-528 (GEM 50V6F) for X86 on OpenVMS IA64 V8.4-2L3
$ xcc/vers
VSI C X7.4-528 (GEM 50V6F) for X86 on OpenVMS IA64 V8.4-2L3
$ mmk
CC/DECC/NOANSI_ALIAS
/Include=[]/Standard=Relaxed_ANSI/Prefix=All/Obj=.obj/NoList/float=ieee/ieee=denorm/NAMES=(SHORTENED)/Define=(PERL_CORE,_USE_STD_STAT=1)
PERLMINI.C
%DCL-W-IVVERB, unrecognized command verb - check validity and spelling
\XCC\
%MMK-F-ERRUPD, error status %X00038090 occurred when updating target
PERLMINI.OBJ

Clearly the symbol definition does what's on the tin and runs the XCC
command when CC is invoked, and clearly the process I'm starting from
knows what the XCC command is. But when MMK creates a subprocess to run
a command, that process has no idea what XCC means.

Surely I am not the first person to encounter this. Any real-world
build system using MMS or MMK would encounter the same thing. Do I
really have to hack up the command definitions to stuff the cross tools
commands into the system table, and then figure out how to unstuff them
later when I want to target Itanium rather than x86_64?

Re: cross tools and CLD scope

<skidkv$j1v$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=18078&group=comp.os.vms#18078

  copy link   Newsgroups: comp.os.vms
Path: rocksolid2!news.neodome.net!weretis.net!feeder8.news.weretis.net!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: cross tools and CLD scope
Date: Mon, 18 Oct 2021 00:03:44 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <skidkv$j1v$1@dont-email.me>
References: <skicqa$g8m$1@dont-email.me>
Injection-Date: Mon, 18 Oct 2021 00:03:44 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="a6a17b515585bce50dbf6016137908fe";
logging-data="19519"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18RY9RrKeL5107Eu6VNBW3uwd+jfbROKRE="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:OipxJ60L4s4lrWhA5G60ips6rKI=
 by: Simon Clubley - Mon, 18 Oct 2021 00:03 UTC

On 2021-10-17, Craig A. Berry <craigberry@nospam.mac.com> wrote:
>
> Surely I am not the first person to encounter this. Any real-world
> build system using MMS or MMK would encounter the same thing. Do I
> really have to hack up the command definitions to stuff the cross tools
> commands into the system table, and then figure out how to unstuff them
> later when I want to target Itanium rather than x86_64?

Can you create a custom DCLTABLES for your account (call it CRAIGDCL
or something similar), and have that as your login DCL command table
using AUTHORIZE ?

Look at SET COMMAND/REPLACE and SET COMMAND/OUTPUT for ideas.

Simon.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.

Re: cross tools and CLD scope

<616cba03$0$702$14726298@news.sunsite.dk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=18079&group=comp.os.vms#18079

  copy link   Newsgroups: comp.os.vms
Path: rocksolid2!news.neodome.net!news.uzoreto.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Sun, 17 Oct 2021 20:04:19 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.2.0
Subject: Re: cross tools and CLD scope
Content-Language: en-US
Newsgroups: comp.os.vms
References: <skicqa$g8m$1@dont-email.me>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <skicqa$g8m$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 48
Message-ID: <616cba03$0$702$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: d6221141.news.sunsite.dk
X-Trace: 1634515459 news.sunsite.dk 702 arne@vajhoej.dk/68.9.63.232:60704
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Mon, 18 Oct 2021 00:04 UTC

On 10/17/2021 7:49 PM, Craig A. Berry wrote:
> So I finally got around to bringing up a v9.1-A system and took a swing
> at trying to build something with the cross tools on Itanium.  The docs
> for those tools mention SYS$MANAGER:X86_XTOOLS$SYLOGIN.COM, which, among
> other things, "Adds the cross-tools specific command definitions to the
> CLI table of a process."
>
> So far so good.  You wouldn't want to mangle your system command tables
> on your Itanium system if you were still trying to target Itanium some
> of the time. But, as far as I can see, CLD definitions -- unlike logical
> names and symbols -- are not inherited by subprocesses.  Is that really
> true?
>
> Here is my conundrum:
>
> $ show symbol cc
>   CC == "XCC"
> $ cc/vers
> VSI C X7.4-528 (GEM 50V6F) for X86 on OpenVMS IA64 V8.4-2L3
> $ xcc/vers
> VSI C X7.4-528 (GEM 50V6F) for X86 on OpenVMS IA64 V8.4-2L3
> $ mmk
> CC/DECC/NOANSI_ALIAS
> /Include=[]/Standard=Relaxed_ANSI/Prefix=All/Obj=.obj/NoList/float=ieee/ieee=denorm/NAMES=(SHORTENED)/Define=(PERL_CORE,_USE_STD_STAT=1)
> PERLMINI.C
> %DCL-W-IVVERB, unrecognized command verb - check validity and spelling
>  \XCC\
> %MMK-F-ERRUPD, error status %X00038090 occurred when updating target
> PERLMINI.OBJ
>
> Clearly the symbol definition does what's on the tin and runs the XCC
> command when CC is invoked, and clearly the process I'm starting from
> knows what the XCC command is.  But when MMK creates a subprocess to run
> a command, that process has no idea what XCC means.
>
> Surely I am not the first person to encounter this.  Any real-world
> build system using MMS or MMK would encounter the same thing.  Do I
> really have to hack up the command definitions to stuff the cross tools
> commands into the system table, and then figure out how to unstuff them
> later when I want to target Itanium rather than x86_64?

Two ideas:
* maybe MMK can be convinced to @ that COM file as the first thing in
the subprocess
* create a X64DCLTABLES and create an account X64CRAIG with that
as default CLITABLES

Arne

Re: cross tools and CLD scope

<6382e6f5-e820-4848-b9cb-3d35a370bd01n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=18083&group=comp.os.vms#18083

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:622a:1826:: with SMTP id t38mr26434022qtc.195.1634518574215;
Sun, 17 Oct 2021 17:56:14 -0700 (PDT)
X-Received: by 2002:ac8:6d0b:: with SMTP id o11mr26207178qtt.367.1634518574087;
Sun, 17 Oct 2021 17:56:14 -0700 (PDT)
Path: rocksolid2!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Sun, 17 Oct 2021 17:56:13 -0700 (PDT)
In-Reply-To: <616cba03$0$702$14726298@news.sunsite.dk>
Injection-Info: google-groups.googlegroups.com; posting-host=47.14.38.130; posting-account=ojMOCgoAAAA7kUURiPLns5DY9KGN5RW5
NNTP-Posting-Host: 47.14.38.130
References: <skicqa$g8m$1@dont-email.me> <616cba03$0$702$14726298@news.sunsite.dk>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6382e6f5-e820-4848-b9cb-3d35a370bd01n@googlegroups.com>
Subject: Re: cross tools and CLD scope
From: bwan...@gmail.com (Bob Wilson)
Injection-Date: Mon, 18 Oct 2021 00:56:14 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 3
 by: Bob Wilson - Mon, 18 Oct 2021 00:56 UTC

I don't know if this will solve your problem (I'm not familiar with MMK), but for MMS we use the .FIRST directive to run a command procedure which, among other things, runs a setup command procedure for "tools" (worked fine in the IA64 port, haven't tried it yet for x86)

Re: cross tools and CLD scope

<skikqf$nv1$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=18086&group=comp.os.vms#18086

  copy link   Newsgroups: comp.os.vms
Path: rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: FIRST.L...@vmssoftware.com (Robert A. Brooks)
Newsgroups: comp.os.vms
Subject: Re: cross tools and CLD scope
Date: Sun, 17 Oct 2021 22:06:07 -0400
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <skikqf$nv1$1@dont-email.me>
References: <skicqa$g8m$1@dont-email.me>
<616cba03$0$702$14726298@news.sunsite.dk>
<6382e6f5-e820-4848-b9cb-3d35a370bd01n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 18 Oct 2021 02:06:07 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="36efeb38f7f9e6792ace336bc43e3b65";
logging-data="24545"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+vcHNe9FV9BTM7BmJrh4AWSRCDXcJDxicxDZUfBEZTmQ=="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.2.0
Cancel-Lock: sha1:UBuDXCJMe0RiQiDm/l8YBzhWPoc=
In-Reply-To: <6382e6f5-e820-4848-b9cb-3d35a370bd01n@googlegroups.com>
X-Antivirus-Status: Clean
Content-Language: en-US
X-Antivirus: Avast (VPS 211017-6, 10/17/2021), Outbound message
 by: Robert A. Brooks - Mon, 18 Oct 2021 02:06 UTC

On 10/17/2021 8:56 PM, Bob Wilson wrote:
> I don't know if this will solve your problem (I'm not familiar with MMK), but
> for MMS we use the .FIRST directive to run a command procedure which, among
> other things, runs a setup command procedure for "tools" (worked fine in the
> IA64 port, haven't tried it yet for x86)

Using the .FIRST directive in MMS works with the IA64-based X86 cross-tools
compilers.

--
-- Rob

Re: cross tools and CLD scope

<skjfgm$1glo$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=18091&group=comp.os.vms#18091

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!a5gLcxX89MYiwaIjYdT+Xg.user.46.165.242.91.POSTED!not-for-mail
From: end...@inter.net (hb)
Newsgroups: comp.os.vms
Subject: Re: cross tools and CLD scope
Date: Mon, 18 Oct 2021 11:41:42 +0200
Organization: Aioe.org NNTP Server
Message-ID: <skjfgm$1glo$1@gioia.aioe.org>
References: <skicqa$g8m$1@dont-email.me>
<616cba03$0$702$14726298@news.sunsite.dk>
<6382e6f5-e820-4848-b9cb-3d35a370bd01n@googlegroups.com>
<skikqf$nv1$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="49848"; posting-host="a5gLcxX89MYiwaIjYdT+Xg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: hb - Mon, 18 Oct 2021 09:41 UTC

On 10/18/21 4:06 AM, Robert A. Brooks wrote:
> On 10/17/2021 8:56 PM, Bob Wilson wrote:
>> I don't know if this will solve your problem (I'm not familiar with
>> MMK), but
>> for MMS we use the .FIRST directive to run a command procedure which,
>> among
>> other things, runs a setup command procedure for "tools" (worked fine
>> in the
>> IA64 port, haven't tried it yet for x86)
>
> Using the .FIRST directive in MMS works with the IA64-based X86
> cross-tools compilers.
>

Yes, command tables are not propagated to spawned subprocesses. This
affects MMS/MMK.

As mentioned, there is a .FIRST for MMS/MMK, you should have the cross
tools setup in the .FIRST. If you don't want to change the existing
makefile, ahem description file, you can concatenate a "first" file with
your existing one: /DESCRIPTION=("DESCRIP+FIRST"). Yes, quoted. This
works for MMS. I can't get that to work for MMK. Here you may need
something like "$ pipe type/noheader descrip.mms+first.mms |
mmk/descr=sys$pipe". For MMS there can be only one first in the
concatenated description. That explains my order of the plus list. The
last one wins. For MMK you can have several, all seem to be executed. If
you use MMS and already have a .FIRST in your DESCRIP.MMS, you may need
to copy the actions from that to the "first" description file.

Re: cross tools and CLD scope

<ee92c7ec-72f2-418a-9942-ab044171ec8fn@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=18097&group=comp.os.vms#18097

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:ac8:5f82:: with SMTP id j2mr30284267qta.75.1634567328084;
Mon, 18 Oct 2021 07:28:48 -0700 (PDT)
X-Received: by 2002:ad4:48d4:: with SMTP id v20mr25714812qvx.42.1634567327924;
Mon, 18 Oct 2021 07:28:47 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Mon, 18 Oct 2021 07:28:47 -0700 (PDT)
In-Reply-To: <skidkv$j1v$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=74.140.8.188; posting-account=CO-_tAoAAACjjs2KLAw3xVKCy6Z_J3VK
NNTP-Posting-Host: 74.140.8.188
References: <skicqa$g8m$1@dont-email.me> <skidkv$j1v$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ee92c7ec-72f2-418a-9942-ab044171ec8fn@googlegroups.com>
Subject: Re: cross tools and CLD scope
From: osuvma...@gmail.com (David Jones)
Injection-Date: Mon, 18 Oct 2021 14:28:48 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 13
 by: David Jones - Mon, 18 Oct 2021 14:28 UTC

On Sunday, October 17, 2021 at 8:03:46 PM UTC-4, Simon Clubley wrote:
> Can you create a custom DCLTABLES for your account (call it CRAIGDCL
> or something similar), and have that as your login DCL command table
> using AUTHORIZE ?

If you want to switch back and forth between native build and cross build,
that doesn't solve anything. x86_tools$sylogin.com does more to your
environment than just modify the command tables (i.e. sets logicals and
DCL symbols).

I had the problem that my build creates an executable that needs to be
run as part of the build. The MMS file had to recognize when I was in the
cross build environment, then selectively undo the changes to the CC and
LINK commands in order to get a native build of just that image.

Re: cross tools and CLD scope

<skk68p$mve$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=18098&group=comp.os.vms#18098

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: craigbe...@nospam.mac.com (Craig A. Berry)
Newsgroups: comp.os.vms
Subject: Re: cross tools and CLD scope
Date: Mon, 18 Oct 2021 11:09:59 -0500
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <skk68p$mve$1@dont-email.me>
References: <skicqa$g8m$1@dont-email.me>
<616cba03$0$702$14726298@news.sunsite.dk>
<6382e6f5-e820-4848-b9cb-3d35a370bd01n@googlegroups.com>
<skikqf$nv1$1@dont-email.me> <skjfgm$1glo$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 18 Oct 2021 16:10:01 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="8017d6b450656f6afc371ac0f9ad9246";
logging-data="23534"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+5nRJotUys1q3pSdQzm/nHqc1drQU7cm0="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.2.0
Cancel-Lock: sha1:5cE+kUOnqJV26cA/FA7sMnYz/DE=
In-Reply-To: <skjfgm$1glo$1@gioia.aioe.org>
Content-Language: en-US
 by: Craig A. Berry - Mon, 18 Oct 2021 16:09 UTC

On 10/18/21 4:41 AM, hb wrote:
> On 10/18/21 4:06 AM, Robert A. Brooks wrote:
>> On 10/17/2021 8:56 PM, Bob Wilson wrote:
>>> I don't know if this will solve your problem (I'm not familiar with
>>> MMK), but
>>> for MMS we use the .FIRST directive to run a command procedure which,
>>> among
>>> other things, runs a setup command procedure for "tools" (worked fine
>>> in the
>>> IA64 port, haven't tried it yet for x86)
>>
>> Using the .FIRST directive in MMS works with the IA64-based X86
>> cross-tools compilers.

Thanks for all the replies. Yes, .FIRST works for simple cases and when
MMS or MMK is the thing spawning the compile command.

> Yes, command tables are not propagated to spawned subprocesses. This
> affects MMS/MMK.

And anything else that does a compile or link in a subprocess.

> As mentioned, there is a .FIRST for MMS/MMK, you should have the cross
> tools setup in the .FIRST. If you don't want to change the existing
> makefile, ahem description file, you can concatenate a "first" file with
> your existing one: /DESCRIPTION=("DESCRIP+FIRST"). Yes, quoted. This
> works for MMS. I can't get that to work for MMK. Here you may need
> something like "$ pipe type/noheader descrip.mms+first.mms |
> mmk/descr=sys$pipe". For MMS there can be only one first in the
> concatenated description. That explains my order of the plus list. The
> last one wins. For MMK you can have several, all seem to be executed. If
> you use MMS and already have a .FIRST in your DESCRIP.MMS, you may need
> to copy the actions from that to the "first" description file.

That's all impressive and scary. Luckily editing .FIRST or the code
that generates it to include the cross tools set-up got me as far as I
can get with that mechanism. Then I was on to cases where code is
generated that needs to be compiled and run natively to probe for
features that will then be used to generate additional code that will
need to be built with the cross tools. It's not going to be pretty.
But the weekend is over and I'm back to doing real work :-(.

Re: cross tools and CLD scope

<3e4d60c3-d686-4738-a1d7-70c716ca8ddan@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=18100&group=comp.os.vms#18100

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:6214:50c:: with SMTP id v12mr26133344qvw.45.1634575863204;
Mon, 18 Oct 2021 09:51:03 -0700 (PDT)
X-Received: by 2002:a37:8887:: with SMTP id k129mr23188960qkd.338.1634575863047;
Mon, 18 Oct 2021 09:51:03 -0700 (PDT)
Path: i2pn2.org!rocksolid2!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Mon, 18 Oct 2021 09:51:02 -0700 (PDT)
In-Reply-To: <skk68p$mve$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=74.140.8.188; posting-account=CO-_tAoAAACjjs2KLAw3xVKCy6Z_J3VK
NNTP-Posting-Host: 74.140.8.188
References: <skicqa$g8m$1@dont-email.me> <616cba03$0$702$14726298@news.sunsite.dk>
<6382e6f5-e820-4848-b9cb-3d35a370bd01n@googlegroups.com> <skikqf$nv1$1@dont-email.me>
<skjfgm$1glo$1@gioia.aioe.org> <skk68p$mve$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3e4d60c3-d686-4738-a1d7-70c716ca8ddan@googlegroups.com>
Subject: Re: cross tools and CLD scope
From: osuvma...@gmail.com (David Jones)
Injection-Date: Mon, 18 Oct 2021 16:51:03 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 38
 by: David Jones - Mon, 18 Oct 2021 16:51 UTC

On Monday, October 18, 2021 at 12:10:04 PM UTC-4, Craig A. Berry wrote:
> That's all impressive and scary. Luckily editing .FIRST or the code
> that generates it to include the cross tools set-up got me as far as I
> can get with that mechanism. Then I was on to cases where code is
> generated that needs to be compiled and run natively to probe for
> features that will then be used to generate additional code that will
> need to be built with the cross tools. It's not going to be pretty.

My solution certainly isn't pretty:
! ! Ensure when in crossbuild mode that generate_options is still native. The
! IA64 image is still built in the [.X86_64] directory so we don't have to change
! references to $(ARD)generate_options.exe in other dependency rules.
! Macros:
! AR_MODE XBUILD or NATIVE
! ARD Sub-directory for architecture-specific targets (e.g. [.IA64]).
! ..if $(AR_MODE) .eq XBUILD
[-.X86_64]generate_options.exe : [.X86_64]generate_options.obj
link_image = f$trnlnm("IA64_LINK","LNM$PROCESS")
deassign IA64_LINK ! undo X86_TOOLS re-definition
link /exec=[-.X86_64]generate_options.exe [-.X86_64]generate_options.obj
define IA64_LINK 'link_image' ! restore X86_TOOL re-definition

[-.X86_64]generate_options.obj : generate_options.c
go_cc = f$extract(1,f$length(cc)-1,cc) ! Change XCC to CC
go_cc $(cflags)/pointer_size=short generate_options.c /object=[-.X86_64]generate_options.obj

..else
$(ARD)generate_options.exe : $(ARD)generate_options.obj
link /exec=$(ARD)generate_options.exe $(ARD)generate_options.obj

$(ARD)generate_options.obj : generate_options.c
cc $(cflags)/pointer_size=short generate_options.c /object=$(ARD)generate_options.obj

..endif

It would be even worse if I had to worry about 64-bit being an option.

Re: cross tools and CLD scope

<skk98n$df8$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=18102&group=comp.os.vms#18102

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: FIRST.L...@vmssoftware.com (Robert A. Brooks)
Newsgroups: comp.os.vms
Subject: Re: cross tools and CLD scope
Date: Mon, 18 Oct 2021 13:01:10 -0400
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <skk98n$df8$1@dont-email.me>
References: <skicqa$g8m$1@dont-email.me>
<616cba03$0$702$14726298@news.sunsite.dk>
<6382e6f5-e820-4848-b9cb-3d35a370bd01n@googlegroups.com>
<skikqf$nv1$1@dont-email.me> <skjfgm$1glo$1@gioia.aioe.org>
<skk68p$mve$1@dont-email.me>
<3e4d60c3-d686-4738-a1d7-70c716ca8ddan@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 18 Oct 2021 17:01:11 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="36efeb38f7f9e6792ace336bc43e3b65";
logging-data="13800"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19IRsN6tl8RCG99Sy7UfFc8OuW9s/0RC8y4qY4LuQd3Gg=="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.2.0
Cancel-Lock: sha1:w98jE/mZVQBtuohybszJVYNtDXk=
In-Reply-To: <3e4d60c3-d686-4738-a1d7-70c716ca8ddan@googlegroups.com>
X-Antivirus-Status: Clean
Content-Language: en-US
X-Antivirus: Avast (VPS 211018-2, 10/18/2021), Outbound message
 by: Robert A. Brooks - Mon, 18 Oct 2021 17:01 UTC

On 10/18/2021 12:51 PM, David Jones wrote:
> On Monday, October 18, 2021 at 12:10:04 PM UTC-4, Craig A. Berry wrote:
>> That's all impressive and scary. Luckily editing .FIRST or the code
>> that generates it to include the cross tools set-up got me as far as I
>> can get with that mechanism. Then I was on to cases where code is
>> generated that needs to be compiled and run natively to probe for
>> features that will then be used to generate additional code that will
>> need to be built with the cross tools. It's not going to be pretty.
>
> My solution certainly isn't pretty:

[...] stuff removed

That seems more complicated than it needs to be

You can remove the cross-build changes this way . . .

@sys$startup:X86_XTOOLS$SYLOGIN.COM "" "" "TRUE"

I also build a few layered products whose bootstrap tools need to run
on the build system, so I'm constantly flipping between native and
cross builds in the context of a build.

--

-- Rob

Re: cross tools and CLD scope

<skkbeh$mj5$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=18104&group=comp.os.vms#18104

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!rocksolid2!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: cross tools and CLD scope
Date: Mon, 18 Oct 2021 17:38:25 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 52
Message-ID: <skkbeh$mj5$2@dont-email.me>
References: <skicqa$g8m$1@dont-email.me> <616cba03$0$702$14726298@news.sunsite.dk> <6382e6f5-e820-4848-b9cb-3d35a370bd01n@googlegroups.com> <skikqf$nv1$1@dont-email.me> <skjfgm$1glo$1@gioia.aioe.org> <skk68p$mve$1@dont-email.me> <3e4d60c3-d686-4738-a1d7-70c716ca8ddan@googlegroups.com> <skk98n$df8$1@dont-email.me>
Injection-Date: Mon, 18 Oct 2021 17:38:25 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="a6a17b515585bce50dbf6016137908fe";
logging-data="23141"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/+A2qtug0t0UnCnZqKjeaNkw1ZNA6Kvyo="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:QiB62h3C9J6R/7BR6+Dz7wDhElY=
 by: Simon Clubley - Mon, 18 Oct 2021 17:38 UTC

On 2021-10-18, Robert A. Brooks <FIRST.LAST@vmssoftware.com> wrote:
> On 10/18/2021 12:51 PM, David Jones wrote:
>> On Monday, October 18, 2021 at 12:10:04 PM UTC-4, Craig A. Berry wrote:
>>> That's all impressive and scary. Luckily editing .FIRST or the code
>>> that generates it to include the cross tools set-up got me as far as I
>>> can get with that mechanism. Then I was on to cases where code is
>>> generated that needs to be compiled and run natively to probe for
>>> features that will then be used to generate additional code that will
>>> need to be built with the cross tools. It's not going to be pretty.
>>
>> My solution certainly isn't pretty:
>
> [...] stuff removed
>
> That seems more complicated than it needs to be
>
> You can remove the cross-build changes this way . . .
>
> @sys$startup:X86_XTOOLS$SYLOGIN.COM "" "" "TRUE"
>
>
> I also build a few layered products whose bootstrap tools need to run
> on the build system, so I'm constantly flipping between native and
> cross builds in the context of a build.
>

Disclaimer: I am more familiar with the gcc approach to building
and using embedded toolchains than I am with the LLVM approach
to building them.

However, I am aware that clang uses target triples to select the
target. Do the VSI cross-compiler toolchains also use target triples
underneath the DCL commands ?

If so, is there any possibility of just invoking the tools directly,
bypassing the DCL commands, and specify the target triple for x86-64
VMS on the command line directly ?

If you could do that, then it may be one way to run both the native
compilers and cross-compilers in one session without having to switch
between them. I've found the following clang documentation for selecting
the target triple:

https://clang.llvm.org/docs/CrossCompilation.html

in case anyone wants to read up about target triples.

Simon.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.

Re: cross tools and CLD scope

<0887dbeb-e346-4fa1-9fdc-9a7641c610fan@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=18105&group=comp.os.vms#18105

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a37:9586:: with SMTP id x128mr24379771qkd.49.1634579629359;
Mon, 18 Oct 2021 10:53:49 -0700 (PDT)
X-Received: by 2002:a37:a882:: with SMTP id r124mr23020193qke.86.1634579629151;
Mon, 18 Oct 2021 10:53:49 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Mon, 18 Oct 2021 10:53:48 -0700 (PDT)
In-Reply-To: <skkbeh$mj5$2@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=47.14.38.130; posting-account=ojMOCgoAAAA7kUURiPLns5DY9KGN5RW5
NNTP-Posting-Host: 47.14.38.130
References: <skicqa$g8m$1@dont-email.me> <616cba03$0$702$14726298@news.sunsite.dk>
<6382e6f5-e820-4848-b9cb-3d35a370bd01n@googlegroups.com> <skikqf$nv1$1@dont-email.me>
<skjfgm$1glo$1@gioia.aioe.org> <skk68p$mve$1@dont-email.me>
<3e4d60c3-d686-4738-a1d7-70c716ca8ddan@googlegroups.com> <skk98n$df8$1@dont-email.me>
<skkbeh$mj5$2@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0887dbeb-e346-4fa1-9fdc-9a7641c610fan@googlegroups.com>
Subject: Re: cross tools and CLD scope
From: bwan...@gmail.com (Bob Wilson)
Injection-Date: Mon, 18 Oct 2021 17:53:49 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 6
 by: Bob Wilson - Mon, 18 Oct 2021 17:53 UTC

re: @sys$startup:X86_XTOOLS$SYLOGIN.COM "" "" "TRUE"

I think that this only DEASSIGNs the logical names (i.e. the CLD changes are still in effect [which may be incompatible with the native/locally-installed stuff]... you may need to do something like SET COMMAND /TABLE=SYS$LIBRARY:DCLTABLES.EXE to get the default command definitions back)

Re: cross tools and CLD scope

<skkgu2$7is$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=18109&group=comp.os.vms#18109

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!rocksolid2!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: craigbe...@nospam.mac.com (Craig A. Berry)
Newsgroups: comp.os.vms
Subject: Re: cross tools and CLD scope
Date: Mon, 18 Oct 2021 14:12:00 -0500
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <skkgu2$7is$1@dont-email.me>
References: <skicqa$g8m$1@dont-email.me>
<616cba03$0$702$14726298@news.sunsite.dk>
<6382e6f5-e820-4848-b9cb-3d35a370bd01n@googlegroups.com>
<skikqf$nv1$1@dont-email.me> <skjfgm$1glo$1@gioia.aioe.org>
<skk68p$mve$1@dont-email.me>
<3e4d60c3-d686-4738-a1d7-70c716ca8ddan@googlegroups.com>
<skk98n$df8$1@dont-email.me> <skkbeh$mj5$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 18 Oct 2021 19:12:02 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="8017d6b450656f6afc371ac0f9ad9246";
logging-data="7772"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ghk69H8dZineuRrrxFDAEaLeKHIcQEeg="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.2.0
Cancel-Lock: sha1:hYoWOK8eaDjXH0qFhFgPjYSgmp8=
In-Reply-To: <skkbeh$mj5$2@dont-email.me>
Content-Language: en-US
 by: Craig A. Berry - Mon, 18 Oct 2021 19:12 UTC

On 10/18/21 12:38 PM, Simon Clubley wrote:
> On 2021-10-18, Robert A. Brooks <FIRST.LAST@vmssoftware.com> wrote:
>> On 10/18/2021 12:51 PM, David Jones wrote:
>>> On Monday, October 18, 2021 at 12:10:04 PM UTC-4, Craig A. Berry wrote:
>>>> That's all impressive and scary. Luckily editing .FIRST or the code
>>>> that generates it to include the cross tools set-up got me as far as I
>>>> can get with that mechanism. Then I was on to cases where code is
>>>> generated that needs to be compiled and run natively to probe for
>>>> features that will then be used to generate additional code that will
>>>> need to be built with the cross tools. It's not going to be pretty.
>>>
>>> My solution certainly isn't pretty:
>>
>> [...] stuff removed
>>
>> That seems more complicated than it needs to be
>>
>> You can remove the cross-build changes this way . . .
>>
>> @sys$startup:X86_XTOOLS$SYLOGIN.COM "" "" "TRUE"
>>
>>
>> I also build a few layered products whose bootstrap tools need to run
>> on the build system, so I'm constantly flipping between native and
>> cross builds in the context of a build.
>>
>
> Disclaimer: I am more familiar with the gcc approach to building
> and using embedded toolchains than I am with the LLVM approach
> to building them.
>
> However, I am aware that clang uses target triples to select the
> target. Do the VSI cross-compiler toolchains also use target triples
> underneath the DCL commands ?
>
> If so, is there any possibility of just invoking the tools directly,
> bypassing the DCL commands, and specify the target triple for x86-64
> VMS on the command line directly ?

The target triples seem very specific to clang and related front ends.
Given that the front ends for all the cross compilers are ports of the
existing VMS front ends and all of them have been made to believe there
is something resembling GEM under the hood even though it's a
GEM-to-LLVM compatibility layer, what you're suggesting sounds highly
improbable.

Re: cross tools and CLD scope

<4f70884a-cae2-4e39-b4a7-5b145172d409n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=18112&group=comp.os.vms#18112

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:ac8:7f82:: with SMTP id z2mr29996484qtj.209.1634587771757;
Mon, 18 Oct 2021 13:09:31 -0700 (PDT)
X-Received: by 2002:a37:9202:: with SMTP id u2mr24349527qkd.454.1634587771500;
Mon, 18 Oct 2021 13:09:31 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.dns-netz.com!news.freedyn.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Mon, 18 Oct 2021 13:09:31 -0700 (PDT)
In-Reply-To: <skk98n$df8$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=74.140.8.188; posting-account=CO-_tAoAAACjjs2KLAw3xVKCy6Z_J3VK
NNTP-Posting-Host: 74.140.8.188
References: <skicqa$g8m$1@dont-email.me> <616cba03$0$702$14726298@news.sunsite.dk>
<6382e6f5-e820-4848-b9cb-3d35a370bd01n@googlegroups.com> <skikqf$nv1$1@dont-email.me>
<skjfgm$1glo$1@gioia.aioe.org> <skk68p$mve$1@dont-email.me>
<3e4d60c3-d686-4738-a1d7-70c716ca8ddan@googlegroups.com> <skk98n$df8$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4f70884a-cae2-4e39-b4a7-5b145172d409n@googlegroups.com>
Subject: Re: cross tools and CLD scope
From: osuvma...@gmail.com (David Jones)
Injection-Date: Mon, 18 Oct 2021 20:09:31 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1675
 by: David Jones - Mon, 18 Oct 2021 20:09 UTC

On Monday, October 18, 2021 at 1:01:13 PM UTC-4, Robert A. Brooks wrote:
> That seems more complicated than it needs to be
>
> You can remove the cross-build changes this way . . .
>
> @sys$startup:X86_XTOOLS$SYLOGIN.COM "" "" "TRUE"
>

That doesn't seem to undo the "CC :== XCC" DCL symbol assignment,
at least on revision X44.24-XG1E.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor