From nobody Mon Jun 14 23:26:51 2021 X-Original-To: freebsd-ppc@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 AD98B11D7F88 for ; Mon, 14 Jun 2021 23:27:00 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic303-25.consmr.mail.gq1.yahoo.com (sonic303-25.consmr.mail.gq1.yahoo.com [98.137.64.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4G3nfD2C4xz3RHr for ; Mon, 14 Jun 2021 23:27:00 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1623713218; bh=6zYI8mtDbXYrM3vtG7WoFRFTHuu8thUMfNLCSfdQGVk=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=Qo7rvvIRuCurg+BkAXsfbDcAptsxPXZBlKp4nlmgswHS5sJdu+R7VK9o8wqFjvfzTqtPJqL99WsKgt8+Y6NTKcud92j+ojSFbLVSF0NYFvvYS3ngsZ9vuRBSAStvRWU1iIPWMtsXhxKlYBTDoO2H6z1ecXN4FmDcmbNQoAy6waTrfch2/jRzE2XQdNz3XB5vykBWL4Y+qSLjdPDsnNnPw4X2uaxlQxCux1SQSpKiherHKu1eah6DMci7wP1Ee/zGQGfqAYUcntXdeqX9kk49cf0gVqzCb9PqSYdI7J/Aw4uvqw+CfQndz+VOh6z2ZQA25FPCCsIgJsru53uOA0Zc1w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1623713218; bh=+D2XbbGe2J4rFYZjBJh6sK08TbsKkhJLQDjeRo+5hpY=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=a/i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xSVD7y3SHb7903UXd0Ii5b5xLDJl5nzy8 zliDrVW_FQfYeuEqwoXdVASG9o9UTTHRJApPf8JvaGZ7Pl.1D.8xqa_oQlilxveQgG04i8_sf02m uFaC8Z7M8aZLl_TcU51bsOo6fcASbFh0HxgFX5PByI.qb09PP8HrBCZ_fmetmIzNb0eyugrDubm0 8Zn2mZWue5FeZ2J48EBmf5r40NtHvvsTTJzgpb903iJEt3lI179CentFWn062ZaitcH2.SgipDCo 4lDAbI7RPaxOPignNC4G4_4ltJkxv5QXxWB3ayG5vsymTpgWBaZBYP2dIsrCzpe7ivReUAqvmj1u w_lk8mIucT4b2FYwzrm53L0tR7mmB_.lgvS6BJODFcgJRD33uARJma0FDNj6F2Ggmyns6BGoA1Np 0iQi88GQ2GBPN7qEG1nUrgXqNAw5Ze.DZCkpauV3sWNG9ZsfX4CBDbUWHbewKpqmQwGkLG0W19sG mGRh6Im0D5ETC_9O57VqRmOJtYYxJEK.6cx0JLliq2fIFsMClrni5FaHDdBvjc3x8dFMdtyVEMPd 6ln6dGm1fD2LOTCtraaYBNQarvWpdDVpsczP86BopUUcjFiA87FltTpCDnjEVJjI4GBfrGvzaGZ9 gwaIVyWPCfEks9hS.cJOo8wkYIVCXN.kfruktrIAF8NTpKj4uEbT9ph.OKiCMXqR.7o4s32WCtyj b1quSBTxAlhZIT.lFxg-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.gq1.yahoo.com with HTTP; Mon, 14 Jun 2021 23:26:58 +0000 Received: by kubenode508.mail-prod1.omega.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 044def0b2cc39c0e49f6b750a03f1f3d; Mon, 14 Jun 2021 23:26:53 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Porting FreeBSD to the PowerPC List-Archive: https://lists.freebsd.org/archives/freebsd-ppc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ppc@freebsd.org X-BeenThere: freebsd-ppc@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Subject: Re: compiling error In-Reply-To: <77ae252f-a06e-07e0-8d8f-d8ec87d2689e@datazap.net> Date: Mon, 14 Jun 2021 16:26:51 -0700 Cc: freebsd-ppc@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <531AC187-0031-4273-879C-516C5284396D@yahoo.com> References: <77ae252f-a06e-07e0-8d8f-d8ec87d2689e@datazap.net> To: al@familysafeinternet.com X-Mailer: Apple Mail (2.3654.100.0.2.22) X-Rspamd-Queue-Id: 4G3nfD2C4xz3RHr X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] Reply-To: marklmi@yahoo.com From: Mark Millard via freebsd-ppc X-Original-From: Mark Millard X-ThisMailContainsUnwantedMimeParts: N On 2021-Jun-14, at 15:05, al at familysafeinternet.com wrote: > I hope that someone can help me. I broke my install of FreeBSD and I = went back to my G3 and tried to compile a new kernel so that I would not = need the serial console anymore, but even if I try to compile the old = kernel it still stops with: >=20 > -------------------------------------------------------------- > >>> stage 3.1: building everything > -------------------------------------------------------------- > cd /usr/obj/usr/src/powerpc.powerpc64/sys/AMIGAX5000; = MACHINE_ARCH=3Dpowerpc64 MACHINE=3Dpowerpc CPUTYPE=3D CC=3D"cc = --sysroot=3D/usr/obj/usr/src/powerpc.powerpc64/tmp = -B/usr/obj/usr/src/powerpc.powerpc64/tmp/usr/bin" CXX=3D"c++ = --sysroot=3D/usr/obj/usr/src/powerpc.powerpc64/tmp = -B/usr/obj/usr/src/powerpc.powerpc64/tmp/usr/bin" CPP=3D"cpp = --sysroot=3D/usr/obj/usr/src/powerpc.powerpc64/tmp = -B/usr/obj/usr/src/powerpc.powerpc64/tmp/usr/bin" AS=3D"as" AR=3D"ar" = LD=3D"ld" LLVM_LINK=3D"" NM=3Dnm OBJCOPY=3D"objcopy" RANLIB=3Dranlib = STRINGS=3D SIZE=3D"size" INSTALL=3D"sh /usr/src/tools/install.sh" = PATH=3D/usr/obj/usr/src/powerpc.powerpc64/tmp/usr/sbin:/usr/obj/usr/src/po= werpc.powerpc64/tmp/usr/bin:/usr/obj/usr/src/powerpc.powerpc64/tmp/legacy/= usr/sbin:/usr/obj/usr/src/powerpc.powerpc64/tmp/legacy/usr/bin:/usr/obj/us= r/src/powerpc.powerpc64/tmp/legacy/bin::/sbin:/bin:/usr/sbin:/usr/bin = make -m /usr/src/share/mk KERNEL=3Dkernel all -DNO_MODULES_OBJ > machine -> /usr/src/sys/powerpc/include > cc --sysroot=3D/usr/obj/usr/src/powerpc.powerpc64/tmp = -B/usr/obj/usr/src/powerpc.powerpc64/tmp/usr/bin -c -O -pipe -g = -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include = -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS = -include opt_global.h -msoft-float -fPIC -fno-omit-frame-pointer -MD = -MF.depend.genoffset.o -MTgenoffset.o -mno-altivec -msoft-float = -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall = -Wredundant-decls -Wnested-externs -Wstrict-prototypes = -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef = -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs = -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-uninitialized = -Wno-format-zero-length -fms-extensions -finline-limit=3D15000 --param = inline-unit-growth=3D100 --param large-function-growth=3D1000 = -fms-extensions -Wa,-many -mcall-aixdesc -std=3Diso9899:1999 = /usr/src/sys/kern/genoffset.c > /usr/src/sys/kern/genoffset.c:1: error: -fPIC and -mcall-aixdesc are = incompatible > *** Error code 1 >=20 > Stop. > make[2]: stopped in /usr/obj/usr/src/powerpc.powerpc64/sys/AMIGAX5000 > *** Error code 1 >=20 > Stop. > make[1]: stopped in /usr/src > *** Error code 1 >=20 > Stop. > make: stopped in /usr/src >=20 > I am using source from before we switched to clang. >=20 > The issue is with the offset, but I don't know why it is suddenly a = problem, because it compiled before. Any thoughts? >=20 You make no mention of what svn or git branch and version of the FreeBSD source is being compiled, no output from svnlite or git indicating such. You do not show anything like the "uname -apKU" output for the context doing the build. Looks to me like ${MACHINE_CPUARCH} =3D=3D "powerpc" got -fPIC in sys/conf/kmod.mk in svn path=3D/head/; revision=3D356114=20 at 2019-12-27 04:07:51 +0000. -mcall-aixdesc is older then that if I understand right. But a G3 means 32-bit powerpc is doing the build while you are targeting something under: /usr/obj/usr/src/powerpc.powerpc64/ So it is a form of cross-build (not even a self-hosted limiting condition one: one that produces incompatible code). You give no details of how you set up the cross-build. My guess is the cross-build attempt is using compiler option combinations that would work in a native powerpc64 environment but not with the 32-bit powerpc toolchain that is in use. Or: the build might have mixed the 32-bit context options and the powerpc64 context options by having some tests that incorrectly tests host context vs. target context for choosing options. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)