From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam08olkn20801.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e8d::801]) by sourceware.org (Postfix) with ESMTPS id 5BA6E3858020 for ; Sun, 4 Jul 2021 22:54:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5BA6E3858020 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SE6DLHANvAzX0T1fk8/z/LbjYUqSziQmfWqqOdbPeoX+pNzrQDVEz9Q7p3lmE5Od3uQDOkTT5b33SBPprbaC2JTMBW6E2hnu5f8Fr4cOEFW/PA/o6sUnvSHZpmFceYvysn/E8TxPKJO+krCJZsIuBpJ9gVMIMujctJ/AIzdfYkhSGVQx/qh08Hu7QIrF5KI525eK48VMplJc0/MGW4Kj6kg7BMDgxQECgCNnLTXfFsVkAfK4keZTPojC7gK/5LqvS0BzK/06J1o8gC+T90Ja3HeePCKMK/l/yccJFA1hjKGZG8djtD6MQ+k8SMkAseycqpP443VK/MQIPY+mztpRmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dVQTB8J3XNigolTjlERcsda3DT2UEeqcuhckGR0uvCU=; b=XdeudJ0OzeeVgYxdPMqEq1DGmhjBc4Qbqcgrjpf8OLSpn5Xxlz+vD3oxJ3uoAyfC1MVKepPhfjGAPWyzzxzXJaM1IQFHd4YCOli03fX3Cilrrffyc6WQqFYMo+Y7igJtEUBRSnU5HCloLSu+pdcnZ7DCHu0IlOcFWCvzYEbGfSbfynuJGfMfnXcTOdUF3elsaatkGLRaT4Q6fua3w4Rpw6A+7WZUItXNMdvlW4drXVEqbSA/5rdybfC7sscCitcyxamE090Fqekmf1RDgTzUsqJnEQhSConzRrL5QB6/4uFv3SplUiM9k7JlV5gpjPWmDkHiAmdzfnnC/m/v09RQCQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from MWHPR1401MB1951.namprd14.prod.outlook.com (2603:10b6:301:51::14) by MWHPR1401MB1950.namprd14.prod.outlook.com (2603:10b6:301:58::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.24; Sun, 4 Jul 2021 22:54:44 +0000 Received: from MWHPR1401MB1951.namprd14.prod.outlook.com ([fe80::adc0:8922:4de7:e7b7]) by MWHPR1401MB1951.namprd14.prod.outlook.com ([fe80::adc0:8922:4de7:e7b7%9]) with mapi id 15.20.4287.033; Sun, 4 Jul 2021 22:54:44 +0000 From: Jay K To: "libffi-discuss@sourceware.org" CC: Larkin Nickle Subject: Libffi on Tru64? Thread-Topic: Libffi on Tru64? Thread-Index: AQHXcKaMBkOf9aTbuEO/Kb46Cs3cVw== Date: Sun, 4 Jul 2021 22:54:44 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-tmn: [VWKr0kjqlEsiVCoo3JApCtTRcIpjZVKo0fEhOSQXy0WbpnHtO78Y4FAgJJiSRrB5] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 71635b8e-c802-4386-8d2b-08d93f3eb751 x-ms-traffictypediagnostic: MWHPR1401MB1950: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: w9h0JSIzHg/gD7U5LGY/1I++1Ke+eJNsQeiUJLhvzqZURNcGb2EWQzTZx9G3wVuoul0Mc6QmZ1V2GWYg6Ht2JTPih2dP1e9IKLEZmP/Dg4rk53SAqEJFR6q9J+I7Q4L5Cr4ddZ7N4HBcnTG++Nh/no7oD0ZpQYRgiqpBANNCvh0wP9qvw2Jc18udR9or96yuUNJ9KLDs9vvDIIoQDknDTgnYx/h5Ut+a7XuIj86RM7xQNPJZsGczrKCyF7rLMenROV6ol81arQ2mN0EjBInQx307TsnWxuilL1P9IfmDrNwNFopx+1KoGUabf0aEpBD5NUtZ3JSgj42N/A1OPPp+S7/pQUKRrmLEp/s0L7HScW9tWhJhJgoMSbEUXil5Vpt213ENQw1ec0GPr09580U3zkEgy7j7KBeqiY3cMjpNWu9zdFV5+eLkh2WwksCyjp+3 x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: aXWIbuHNuVP9U7Rxpi/NMuX1jl2fBAxerHSKjWDGwJHkx3Ws6eZSwXRTWSUPoPE7u8KpGMpfNZThbKiEW5xpBwvSyaH6KVad67JjNPhXAA6IOsHne5OTWjE2sbFmCnosUov6N6QHNSRgCf8zddAzqS9ohT9G0/msCn99FCOIprCW193ZgrpOSM1uE4js5CCxdo0t3OQN4okRD3xUx1t7ow== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-3174-20-msonline-outlook-32894.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MWHPR1401MB1951.namprd14.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 71635b8e-c802-4386-8d2b-08d93f3eb751 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jul 2021 22:54:44.5353 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1401MB1950 X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libffi-discuss@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libffi-discuss mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jul 2021 22:54:46 -0000 Hi. I've built "a lot" of "GNU" software quite recently for Tru64 / OSF/1.= =0A= Mostly current but not all.=0A= gcc (3.4.6, 4.7.4) gdb (6.4) sed m4 autoconf make tar gettext tcl diff gawk= bzip2 grep etc.=0A= =0A= libffi is giving me a bit more pause now.=0A= =0A= When I tried with native cc, I saw the following problems:=0A= =0A= inline asm=0A= It appears native cc does have a reasonable inline asm feature.=0A= =A0Basically each instruction is modeled as a function, taking params in a0= , a1, etc., =0A= =A0and returning in v0, but compiler can rename. There is an intrinsic=0A= =A0for each return type.=0A= =0A= I can likely make easy patches, under #if __GNU__=0A= =0A= pointer math on void*.=0A= =A0I suggest cast to char* first.=0A= =A0I can provide patches for that later too.=0A= =0A= But anyway I tried with gcc instead.=0A= There I also have problems.=0A= In 2014 osf.S got ".macro". This seems to be not a thing with native as. It= errors.=0A= =0A= libtool: compile: =A0gcc -DHAVE_CONFIG_H -I. -I/usr/users/jay/s/libffi-3.3 = -I. -I/usr/users/jay/s/libffi-3.3/include -Iinclude -I/usr/users/jay/s/libf= fi-3.3/src -I. -I/usr/users/jay/s/libffi-3.3/include -Iinclude -I/usr/users= /jay/s/libffi-3.3/src -MT src/alpha/osf.lo -MD -MP -MF src/alpha/.deps/osf.= Tpo -c /usr/users/jay/s/libffi-3.3/src/alpha/osf.S =A0-DPIC -o src/alpha/.l= ibs/osf.o=0A= =A0as0: Error: /usr/users/jay/s/libffi-3.3/src/alpha/osf.S, line 37: undefi= ned assembler operation: .macro=0A= =0A= GNU as is not supported. Perhaps we should fix that.=0A= =0A= So I went back to before the 2014 commit that added .macro.=0A= I installed autoconf, automake.=0A= That fails with:=0A= =0A= libtool: compile: =A0gcc -DHAVE_CONFIG_H -I. -I/usr/users/jay/s/libffi -I. = -I/usr/users/jay/s/libffi/include -Iinclude -I/usr/users/jay/s/libffi/src -= I. -I/usr/users/jay/s/libffi/include -Iinclude -I/usr/users/jay/s/libffi/sr= c -MT src/alpha/osf.lo -MD -MP -MF src/alpha/.deps/osf.Tpo -c /usr/users/ja= y/s/libffi/src/alpha/osf.S =A0-DPIC -o src/alpha/.libs/osf.o=0A= /usr/users/jay/s/libffi/src/alpha/osf.S:298:2: error: #error "osf.S out of = sync with ffi.h"=0A= =0A= I'll look more later. Perhaps it was an obvious brief breakage..=0A= =0A= Thank you for any tips.=0A= =A0- Jay=