From nobody Thu May 18 18:16:10 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QMdTK6rD1z4Brp4 for ; Thu, 18 May 2023 18:16:21 +0000 (UTC) (envelope-from rivers@dignus.com) Received: from dignus.com (adsl-065-013-223-202.sip.rdu.bellsouth.net [65.13.223.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "office.dignus.com", Issuer "office.dignus.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QMdTJ6jpmz3GS0 for ; Thu, 18 May 2023 18:16:20 +0000 (UTC) (envelope-from rivers@dignus.com) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of rivers@dignus.com designates 65.13.223.202 as permitted sender) smtp.mailfrom=rivers@dignus.com; dmarc=none Received: from office.dignus.com (localhost [127.0.0.1]) by dignus.com (8.16.1/8.16.1) with ESMTPS id 34IIGArQ024383 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 18 May 2023 14:16:10 -0400 (EDT) (envelope-from rivers@office.dignus.com) X-Authentication-Warning: office.dignus.com: Host localhost [127.0.0.1] claimed to be office.dignus.com Received: (from rivers@localhost) by office.dignus.com (8.16.1/8.16.1/Submit) id 34IIGA8P024382; Thu, 18 May 2023 14:16:10 -0400 (EDT) (envelope-from rivers) Date: Thu, 18 May 2023 14:16:10 -0400 (EDT) From: Thomas David Rivers Message-Id: <202305181816.34IIGA8P024382@office.dignus.com> To: freebsd-arm@freebsd.org, rivers@dignus.com Subject: 32-bit executables on aarch64? X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on office.dignus.com X-Spamd-Result: default: False [0.20 / 15.00]; HFILTER_HOSTNAME_4(2.50)[adsl-065-013-223-202.sip.rdu.bellsouth.net]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+ip4:65.13.223.202]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; R_DKIM_NA(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; ASN(0.00)[asn:7018, ipnet:65.13.220.0/22, country:US]; FREEFALL_USER(0.00)[rivers]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_NONE(0.00)[]; HAS_XAW(0.00)[]; DMARC_NA(0.00)[dignus.com]; MIME_TRACE(0.00)[0:+] X-Rspamd-Queue-Id: 4QMdTJ6jpmz3GS0 X-Spamd-Bar: / X-ThisMailContainsUnwantedMimeParts: N List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Tried the following with a small "hello world" program on FreeBSD freebsd 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC arm64 # cc -m32 hello.c To get these errors: ld: error: /tmp/hello-1eb3b8.o is incompatible with /usr/lib/crt1.o cc: error: linker command failed with exit code 1 (use -v to see invocation) Is building a 32-bit program not supported on 13.2 arm64? man cc gave me the CLANG doc... which didn't even mention "m32"; so perhaps I just need a different set of options? I tried -arch arm but I still got 64-bit code. Also, I tried several other -arch options and didn't see a difference, even with -arch x86, I still got Aarch64 code. - Many thanks! - - Dave Rivers - -- rivers@dignus.com Work: (919) 676-0847 Get your mainframe programming tools at http://www.dignus.com