Date: Sun, 10 Jul 2016 01:39:42 +0900 (JST) From: Mori Hiroki <yamori813@yahoo.co.jp> To: "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org> Subject: Re: How to change gcc from clang at build kernel and world? Message-ID: <560642.1770.qm@web101715.mail.ssk.yahoo.co.jp> In-Reply-To: <CANCZdfry1ETOL23wG--Q3-yBZAwFRHpm8kMMunwV6-SCc8D5LA@mail.gmail.com> References: <800231.77121.qm@web101710.mail.ssk.yahoo.co.jp> <CANCZdfry1ETOL23wG--Q3-yBZAwFRHpm8kMMunwV6-SCc8D5LA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Thanks advice.=0A=0A=0AI try to build on this options at two week before he= ad source. I have as follow error...=0A=0A---------------------------------= -----------------------------=0A>>> stage 4.2: building libraries=0A-------= -------------------------------------------------------=0Acd /storage/home/= hiroki/freebsd;=A0 MAKEOBJDIRPREFIX=3D/storage/home/hiroki/obj//sto=0Arage/= home/hiroki/zrouter/tmp//arm.arm=A0 MACHINE_ARCH=3Darm=A0 MACHINE=3Darm=A0 = CPUTYPE=3Dar=0Amv4 GROFF_BIN_PATH=3D/storage/home/hiroki/obj//storage/home/= hiroki/zrouter/tmp//ar=0Am.arm/storage/home/hiroki/freebsd/tmp/legacy/usr/b= in=A0 GROFF_FONT_PATH=3D/storage/h=0Aome/hiroki/obj//storage/home/hiroki/zr= outer/tmp//arm.arm/storage/home/hiroki/fre=0Aebsd/tmp/legacy/usr/share/grof= f_font=A0 GROFF_TMAC_PATH=3D/storage/home/hiroki/obj//=0Astorage/home/hirok= i/zrouter/tmp//arm.arm/storage/home/hiroki/freebsd/tmp/legacy/=0Ausr/share/= tmac CC=3D"cc " CXX=3D"c++=A0 "=A0 CPP=3D"cpp "=A0 AS=3D"as" AR=3D"ar" LD= =3D"ld" NM=3Dnm =A0=0AOBJDUMP=3Dobjdump OBJCOPY=3D"objcopy"=A0 RANLIB=3Dran= lib STRINGS=3D=A0 SIZE=3D"size"=A0 INSTALL=3D=0A"sh /storage/home/hiroki/fr= eebsd/tools/install.sh"=A0 PATH=3D/storage/home/hiroki/ob=0Aj//storage/home= /hiroki/zrouter/tmp//arm.arm/storage/home/hiroki/freebsd/tmp/lega=0Acy/usr/= sbin:/storage/home/hiroki/obj//storage/home/hiroki/zrouter/tmp//arm.arm/s= =0Atorage/home/hiroki/freebsd/tmp/legacy/usr/bin:/storage/home/hiroki/obj//= storage/=0Ahome/hiroki/zrouter/tmp//arm.arm/storage/home/hiroki/freebsd/tmp= /legacy/bin:/sto=0Arage/home/hiroki/obj//storage/home/hiroki/zrouter/tmp//a= rm.arm/storage/home/hiro=0Aki/freebsd/tmp/usr/sbin:/storage/home/hiroki/obj= //storage/home/hiroki/zrouter/tm=0Ap//arm.arm/storage/home/hiroki/freebsd/t= mp/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin=0A=A0/storage/home/hiroki/obj//sto= rage/home/hiroki/zrouter/tmp//storage/home/hiroki/=0Afreebsd/make.amd64/bma= ke=A0 -f Makefile.inc1 DESTDIR=3D/storage/home/hiroki/obj//sto=0Arage/home/= hiroki/zrouter/tmp//arm.arm/storage/home/hiroki/freebsd/tmp -DNO_FSCHG=0A= =A0MK_HTML=3Dno -DNO_LINT MK_MAN=3Dno=A0 MK_PROFILE=3Dno MK_TESTS=3Dno MK_T= ESTS_SUPPORT=3Dyes=A0=0Alibraries=0Acd /storage/home/hiroki/freebsd;=A0 /st= orage/home/hiroki/obj//storage/home/hiroki/=0Azrouter/tmp//storage/home/hir= oki/freebsd/make.amd64/bmake -f Makefile.inc1 _prer=0Aeq_libs;=A0 /storage/= home/hiroki/obj//storage/home/hiroki/zrouter/tmp//storage/hom=0Ae/hiroki/fr= eebsd/make.amd64/bmake -f Makefile.inc1 _startup_libs;=A0 /storage/home=0A/= hiroki/obj//storage/home/hiroki/zrouter/tmp//storage/home/hiroki/freebsd/ma= ke.a=0Amd64/bmake -f Makefile.inc1 _prebuild_libs;=A0 /storage/home/hiroki/= obj//storage/h=0Aome/hiroki/zrouter/tmp//storage/home/hiroki/freebsd/make.a= md64/bmake -f Makefile=0A.inc1 _generic_libs=0A=3D=3D=3D> gnu/lib/libssp/li= bssp_nonshared (obj,all,install)=0Acc =A0 -O -pipe -DHAVE_CONFIG_H -I/stora= ge/home/hiroki/freebsd/gnu/lib/libssp/libs=0Asp_nonshared/..=A0 -I/storage/= home/hiroki/freebsd/gnu/lib/libssp/libssp_nonshared/=0A../../../../contrib/= gcclibs/libssp=A0 -I/storage/home/hiroki/freebsd/gnu/lib/libss=0Ap/libssp_n= onshared/../../../../contrib/gcclibs/include -fPIC -DPIC -fvisibility=3D=0A= hidden -march=3Darmv4=A0 -MD=A0 -MF.depend.ssp-local.o -MTssp-local.o -std= =3Dgnu99=A0 =A0 -Q=0Aunused-arguments=A0 -c /storage/home/hiroki/freebsd/gn= u/lib/libssp/libssp_nonshare=0Ad/../../../../contrib/gcclibs/libssp/ssp-loc= al.c -o ssp-local.o=0Aerror: unknown target CPU 'armv4'=0A*** Error code 1= =0A=0AStop.=0Abmake[5]: stopped in /storage/home/hiroki/freebsd/gnu/lib/lib= ssp/libssp_nonshare=0Ad=0A*** Error code 1=0A=0AStop.=0Abmake[4]: stopped i= n /storage/home/hiroki/freebsd=0A*** Error code 1=0A=0AStop.=0Abmake[3]: st= opped in /storage/home/hiroki/freebsd=0A*** Error code 1=0A=0AStop.=0Abmake= [2]: stopped in /storage/home/hiroki/freebsd=0A*** Error code 1=0A=0AStop.= =0Amake[1]: stopped in /storage/home/hiroki/freebsd=0A*** Error code 1=0A= =0AStop.=0Amake: stopped in /storage/home/hiroki/zrouter=0A=0A=0A=0A----- O= riginal Message -----=0A>From: Warner Losh <imp@bsdimp.com>=0A>To: Mori Hir= oki <yamori813@yahoo.co.jp> =0A>Cc: "freebsd-arm@freebsd.org" <freebsd-arm@= freebsd.org>=0A>Date: 2016/7/5, Tue 00:31=0A>Subject: Re: How to change gcc= from clang at build kernel and world?=0A> =0A>You should be able to get th= e build with=0A>WITH_GCC_BOOTSTRAP=3DYES WITH_GCC=3DYES WITHOUT_CLANG_BOOTS= TRAP=3DYES and=0A>WITHOUT_CLANG=3DYES=0A>=0A>There's also supposed to be a = command line arg to clang to keep it=0A>from using bx instructions. So that= 's messed up.=0A>=0A>But if the compiler-rt stuff, which I haven't looked a= t, has a naked=0A>bx instruction, we'll need an ifdef.=0A>=0A>Warner=0A>=0A= >On Sun, Jul 3, 2016 at 6:46 PM, Mori Hiroki <yamori813@yahoo.co.jp> wrote:= =0A>> Hi.=0A>>=0A>> I make support Eventtimer and FDT and INTRNG to cns11xx= code.=0A>>=0A>> This is almost done. But hang up at init. I think it's a i= nterrupt issue.=0A>>=0A>> https://gist.github.com/yamori813/ae047a28a825aac= 255e436fd8ccaf785=0A>>=0A>>=0A>> https://github.com/yamori813/freebsd/tree/= zrouter/sys/arm/cavium/cns11xx=0A>>=0A>>=0A>> cns11xx is arm4(not arm4t).= =A0 arm build on head is change to use clang=0A>> several month ago. I want= use gcc at buildworld and buildkernel.=0A>>=0A>> Because of clang use bx i= nstruction. bx instruction not support arm4.=0A>>=0A>> How do I change to g= cc from clang?=0A>>=0A>> I found bx instruction at=0A>>=0A>> contrib/compil= er-rt/lib/builtins/arm/=0A>>=0A>> It must be changed bx to mov instruction.= =0A>>=0A>> Regards.=0A>>=0A>> Hiroki Mori=0A>> ____________________________= ___________________=0A>> freebsd-arm@freebsd.org mailing list=0A>> https://= lists.freebsd.org/mailman/listinfo/freebsd-arm=0A>> To unsubscribe, send an= y mail to "freebsd-arm-unsubscribe@freebsd.org"=0A>=0A>=0A> From owner-freebsd-arm@freebsd.org Sat Jul 9 20:16:27 2016 Return-Path: <owner-freebsd-arm@freebsd.org> Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E9CC3B76396 for <freebsd-arm@mailman.ysv.freebsd.org>; Sat, 9 Jul 2016 20:16:27 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-pa0-x229.google.com (mail-pa0-x229.google.com [IPv6:2607:f8b0:400e:c03::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B8F4011F2 for <freebsd-arm@freebsd.org>; Sat, 9 Jul 2016 20:16:27 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-pa0-x229.google.com with SMTP id fi15so9189134pac.1 for <freebsd-arm@freebsd.org>; Sat, 09 Jul 2016 13:16:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Ldkj9IKO3g7Z6KxFpUkz3xVQIZxAZFoGyWyusxro7XY=; b=bo9LLM6v0ynpqHaJMwUqwmDvmU8UVADBUBQKdj8jolx6RBoUgt65UriLEuf9/3RkPY +w8AANPyeeapyjEIqIpLtU7gS3/jhAJten5f84/GIeds58kn7EdSOGEMujzaGrl+Tvai cmtaWczA5k4/+7YvaIRv+IuL1A7PKodBiP+OcR0sAqyegkalt3vqUzJe1pe0SJ2sl8KX v8A1L5PVXb6QsH0XPdWzY6d3t3VB6DulXT6SGJTngb07EVJEsmJXfyoZSYlYlGavAMMu rN2x/KpFb69CB5s8yfIbD8ZHnk5SoecE3Do2rCPjoufVUAwG26ML2E5FGzerHlAmL4j9 5K8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Ldkj9IKO3g7Z6KxFpUkz3xVQIZxAZFoGyWyusxro7XY=; b=jvOx9hO+pXAVQbFOa6y+qF7Ky5ZXfR0w1r/HUwgnTRy1bDoT00fJaVpJD1RweJA6NX CcLAFZVv5sSQw6Ca/ZZCrkG67CzesK9rTxwu7FOA7ipUfDnk9Ionn1OH49zbs+JxZO1R rxg4liQkSa8WY9tbrFYSLbe9ukrTXuY2VKyc6G+fYpO7JQUIWtHIM+Xr9wJXPooWhbQc o1VaYzFmolzKry0V4I/egxT6fE0q+kzruwwTROqvztJQCczxJW++v7bmdJcgskJl3H2V sn16GMMaCrSEYT1qcmw9CpufBSM/VM2LlptOo7gymV/f64TFJbHFmycYhSZ7AkEiXuoR uUPg== X-Gm-Message-State: ALyK8tL2v2NGuswtSAOtIVBJvaWLIUZs+L8Upag2JgtGkQAVNWdX3lA1HQjMTYz+qqkO4Q== X-Received: by 10.66.173.38 with SMTP id bh6mr21476008pac.116.1468095387002; Sat, 09 Jul 2016 13:16:27 -0700 (PDT) Received: from [100.127.69.34] ([69.53.245.200]) by smtp.gmail.com with ESMTPSA id p129sm5743193pfb.73.2016.07.09.13.16.25 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 09 Jul 2016 13:16:25 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: How to change gcc from clang at build kernel and world? From: Warner Losh <wlosh@bsdimp.com> In-Reply-To: <560642.1770.qm@web101715.mail.ssk.yahoo.co.jp> Date: Sat, 9 Jul 2016 14:16:24 -0600 Cc: "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org> Content-Transfer-Encoding: quoted-printable Message-Id: <0394A92E-E820-4774-9472-49E22228749C@bsdimp.com> References: <800231.77121.qm@web101710.mail.ssk.yahoo.co.jp> <CANCZdfry1ETOL23wG--Q3-yBZAwFRHpm8kMMunwV6-SCc8D5LA@mail.gmail.com> <560642.1770.qm@web101715.mail.ssk.yahoo.co.jp> To: Mori Hiroki <yamori813@yahoo.co.jp> X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Porting FreeBSD to ARM processors." <freebsd-arm.freebsd.org> List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-arm>, <mailto:freebsd-arm-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-arm/> List-Post: <mailto:freebsd-arm@freebsd.org> List-Help: <mailto:freebsd-arm-request@freebsd.org?subject=help> List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-arm>, <mailto:freebsd-arm-request@freebsd.org?subject=subscribe> X-List-Received-Date: Sat, 09 Jul 2016 20:16:28 -0000 CPUTYPE=3Darmv4 isn=E2=80=99t going to work. Remove that line from your = make.conf. Warner > On Jul 9, 2016, at 10:39 AM, Mori Hiroki <yamori813@yahoo.co.jp> = wrote: >=20 > Thanks advice. >=20 >=20 > I try to build on this options at two week before head source. I have = as follow error... >=20 > -------------------------------------------------------------- >>>> stage 4.2: building libraries > -------------------------------------------------------------- > cd /storage/home/hiroki/freebsd; = MAKEOBJDIRPREFIX=3D/storage/home/hiroki/obj//sto > rage/home/hiroki/zrouter/tmp//arm.arm MACHINE_ARCH=3Darm MACHINE=3Darm= CPUTYPE=3Dar > mv4 = GROFF_BIN_PATH=3D/storage/home/hiroki/obj//storage/home/hiroki/zrouter/tmp= //ar > m.arm/storage/home/hiroki/freebsd/tmp/legacy/usr/bin = GROFF_FONT_PATH=3D/storage/h > = ome/hiroki/obj//storage/home/hiroki/zrouter/tmp//arm.arm/storage/home/hiro= ki/fre > ebsd/tmp/legacy/usr/share/groff_font = GROFF_TMAC_PATH=3D/storage/home/hiroki/obj// > = storage/home/hiroki/zrouter/tmp//arm.arm/storage/home/hiroki/freebsd/tmp/l= egacy/ > usr/share/tmac CC=3D"cc " CXX=3D"c++ " CPP=3D"cpp " AS=3D"as" = AR=3D"ar" LD=3D"ld" NM=3Dnm =20 > OBJDUMP=3Dobjdump OBJCOPY=3D"objcopy" RANLIB=3Dranlib STRINGS=3D = SIZE=3D"size" INSTALL=3D > "sh /storage/home/hiroki/freebsd/tools/install.sh" = PATH=3D/storage/home/hiroki/ob > = j//storage/home/hiroki/zrouter/tmp//arm.arm/storage/home/hiroki/freebsd/tm= p/lega > = cy/usr/sbin:/storage/home/hiroki/obj//storage/home/hiroki/zrouter/tmp//arm= .arm/s > = torage/home/hiroki/freebsd/tmp/legacy/usr/bin:/storage/home/hiroki/obj//st= orage/ > = home/hiroki/zrouter/tmp//arm.arm/storage/home/hiroki/freebsd/tmp/legacy/bi= n:/sto > = rage/home/hiroki/obj//storage/home/hiroki/zrouter/tmp//arm.arm/storage/hom= e/hiro > = ki/freebsd/tmp/usr/sbin:/storage/home/hiroki/obj//storage/home/hiroki/zrou= ter/tm > = p//arm.arm/storage/home/hiroki/freebsd/tmp/usr/bin:/sbin:/bin:/usr/sbin:/u= sr/bin > = /storage/home/hiroki/obj//storage/home/hiroki/zrouter/tmp//storage/home/hi= roki/ > freebsd/make.amd64/bmake -f Makefile.inc1 = DESTDIR=3D/storage/home/hiroki/obj//sto > rage/home/hiroki/zrouter/tmp//arm.arm/storage/home/hiroki/freebsd/tmp = -DNO_FSCHG > MK_HTML=3Dno -DNO_LINT MK_MAN=3Dno MK_PROFILE=3Dno MK_TESTS=3Dno = MK_TESTS_SUPPORT=3Dyes=20 > libraries > cd /storage/home/hiroki/freebsd; = /storage/home/hiroki/obj//storage/home/hiroki/ > zrouter/tmp//storage/home/hiroki/freebsd/make.amd64/bmake -f = Makefile.inc1 _prer > eq_libs; = /storage/home/hiroki/obj//storage/home/hiroki/zrouter/tmp//storage/hom > e/hiroki/freebsd/make.amd64/bmake -f Makefile.inc1 _startup_libs; = /storage/home > = /hiroki/obj//storage/home/hiroki/zrouter/tmp//storage/home/hiroki/freebsd/= make.a > md64/bmake -f Makefile.inc1 _prebuild_libs; = /storage/home/hiroki/obj//storage/h > ome/hiroki/zrouter/tmp//storage/home/hiroki/freebsd/make.amd64/bmake = -f Makefile > .inc1 _generic_libs > =3D=3D=3D> gnu/lib/libssp/libssp_nonshared (obj,all,install) > cc -O -pipe -DHAVE_CONFIG_H = -I/storage/home/hiroki/freebsd/gnu/lib/libssp/libs > sp_nonshared/.. = -I/storage/home/hiroki/freebsd/gnu/lib/libssp/libssp_nonshared/ > ../../../../contrib/gcclibs/libssp = -I/storage/home/hiroki/freebsd/gnu/lib/libss > p/libssp_nonshared/../../../../contrib/gcclibs/include -fPIC -DPIC = -fvisibility=3D > hidden -march=3Darmv4 -MD -MF.depend.ssp-local.o -MTssp-local.o = -std=3Dgnu99 -Q > unused-arguments -c = /storage/home/hiroki/freebsd/gnu/lib/libssp/libssp_nonshare > d/../../../../contrib/gcclibs/libssp/ssp-local.c -o ssp-local.o > error: unknown target CPU 'armv4' > *** Error code 1 >=20 > Stop. > bmake[5]: stopped in = /storage/home/hiroki/freebsd/gnu/lib/libssp/libssp_nonshare > d > *** Error code 1 >=20 > Stop. > bmake[4]: stopped in /storage/home/hiroki/freebsd > *** Error code 1 >=20 > Stop. > bmake[3]: stopped in /storage/home/hiroki/freebsd > *** Error code 1 >=20 > Stop. > bmake[2]: stopped in /storage/home/hiroki/freebsd > *** Error code 1 >=20 > Stop. > make[1]: stopped in /storage/home/hiroki/freebsd > *** Error code 1 >=20 > Stop. > make: stopped in /storage/home/hiroki/zrouter >=20 >=20 >=20 > ----- Original Message ----- >> From: Warner Losh <imp@bsdimp.com> >> To: Mori Hiroki <yamori813@yahoo.co.jp>=20 >> Cc: "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org> >> Date: 2016/7/5, Tue 00:31 >> Subject: Re: How to change gcc from clang at build kernel and world? >>=20 >> You should be able to get the build with >> WITH_GCC_BOOTSTRAP=3DYES WITH_GCC=3DYES WITHOUT_CLANG_BOOTSTRAP=3DYES = and >> WITHOUT_CLANG=3DYES >>=20 >> There's also supposed to be a command line arg to clang to keep it >> from using bx instructions. So that's messed up. >>=20 >> But if the compiler-rt stuff, which I haven't looked at, has a naked >> bx instruction, we'll need an ifdef. >>=20 >> Warner >>=20 >> On Sun, Jul 3, 2016 at 6:46 PM, Mori Hiroki <yamori813@yahoo.co.jp> = wrote: >>> Hi. >>>=20 >>> I make support Eventtimer and FDT and INTRNG to cns11xx code. >>>=20 >>> This is almost done. But hang up at init. I think it's a interrupt = issue. >>>=20 >>> https://gist.github.com/yamori813/ae047a28a825aac255e436fd8ccaf785 >>>=20 >>>=20 >>> = https://github.com/yamori813/freebsd/tree/zrouter/sys/arm/cavium/cns11xx >>>=20 >>>=20 >>> cns11xx is arm4(not arm4t). arm build on head is change to use = clang >>> several month ago. I want use gcc at buildworld and buildkernel. >>>=20 >>> Because of clang use bx instruction. bx instruction not support = arm4. >>>=20 >>> How do I change to gcc from clang? >>>=20 >>> I found bx instruction at >>>=20 >>> contrib/compiler-rt/lib/builtins/arm/ >>>=20 >>> It must be changed bx to mov instruction. >>>=20 >>> Regards. >>>=20 >>> Hiroki Mori >>> _______________________________________________ >>> freebsd-arm@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-arm >>> To unsubscribe, send any mail to = "freebsd-arm-unsubscribe@freebsd.org" >>=20 >>=20 >>=20 > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?560642.1770.qm>