Date: Sun, 10 Jul 2016 07:37:29 +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: <469038.47417.qm@web101706.mail.ssk.yahoo.co.jp> In-Reply-To: <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> <0394A92E-E820-4774-9472-49E22228749C@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Thanks reply.=0A=0AI still have error.=0A=0A=0AI have question. Is armv4(cn= s11xx) support on 11R ?=0A=0A----------------------------------------------= ----------------=0A>>> stage 4.2: building libraries=0A--------------------= ------------------------------------------=0Acd /storage/home/hiroki/freebs= d;=C2=A0 MAKEOBJDIRPREFIX=3D/storage/home/hiroki/obj//sto=0Arage/home/hirok= i/zrouter/tmp//arm.arm=C2=A0 MACHINE_ARCH=3Darm=C2=A0 MACHINE=3Darm=C2=A0 C= PUTYPE=3D G=0AROFF_BIN_PATH=3D/storage/home/hiroki/obj//storage/home/hiroki= /zrouter/tmp//arm.arm=0A/storage/home/hiroki/freebsd/tmp/legacy/usr/bin=C2= =A0 GROFF_FONT_PATH=3D/storage/home/h=0Airoki/obj//storage/home/hiroki/zrou= ter/tmp//arm.arm/storage/home/hiroki/freebsd/=0Atmp/legacy/usr/share/groff_= font=C2=A0 GROFF_TMAC_PATH=3D/storage/home/hiroki/obj//stora=0Age/home/hiro= ki/zrouter/tmp//arm.arm/storage/home/hiroki/freebsd/tmp/legacy/usr/s=0Ahare= /tmac CC=3D"cc " CXX=3D"c++=C2=A0 "=C2=A0 CPP=3D"cpp "=C2=A0 AS=3D"as" AR= =3D"ar" LD=3D"ld" NM=3Dnm=C2=A0 OBJDU=0AMP=3Dobjdump OBJCOPY=3D"objcopy"=C2= =A0 RANLIB=3Dranlib STRINGS=3D=C2=A0 SIZE=3D"size"=C2=A0 INSTALL=3D"sh /=0A= storage/home/hiroki/freebsd/tools/install.sh"=C2=A0 PATH=3D/storage/home/hi= roki/obj//st=0Aorage/home/hiroki/zrouter/tmp//arm.arm/storage/home/hiroki/f= reebsd/tmp/legacy/us=0Ar/sbin:/storage/home/hiroki/obj//storage/home/hiroki= /zrouter/tmp//arm.arm/storag=0Ae/home/hiroki/freebsd/tmp/legacy/usr/bin:/st= orage/home/hiroki/obj//storage/home/=0Ahiroki/zrouter/tmp//arm.arm/storage/= home/hiroki/freebsd/tmp/legacy/bin:/storage/=0Ahome/hiroki/obj//storage/hom= e/hiroki/zrouter/tmp//arm.arm/storage/home/hiroki/fr=0Aeebsd/tmp/usr/sbin:/= storage/home/hiroki/obj//storage/home/hiroki/zrouter/tmp//ar=0Am.arm/storag= e/home/hiroki/freebsd/tmp/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin /sto=0Arage= /home/hiroki/obj//storage/home/hiroki/zrouter/tmp//storage/home/hiroki/free= b=0Asd/make.amd64/bmake=C2=A0 -f Makefile.inc1 DESTDIR=3D/storage/home/hiro= ki/obj//storage/=0Ahome/hiroki/zrouter/tmp//arm.arm/storage/home/hiroki/fre= ebsd/tmp -DNO_FSCHG MK_H=0ATML=3Dno -DNO_LINT MK_MAN=3Dno=C2=A0 MK_PROFILE= =3Dno MK_TESTS=3Dno MK_TESTS_SUPPORT=3Dyes libra=0Aries=0Acd /storage/home/= hiroki/freebsd;=C2=A0 /storage/home/hiroki/obj//storage/home/hiroki/=0Azrou= ter/tmp//storage/home/hiroki/freebsd/make.amd64/bmake -f Makefile.inc1 _pre= r=0Aeq_libs;=C2=A0 /storage/home/hiroki/obj//storage/home/hiroki/zrouter/tm= p//storage/hom=0Ae/hiroki/freebsd/make.amd64/bmake -f Makefile.inc1 _startu= p_libs;=C2=A0 /storage/home=0A/hiroki/obj//storage/home/hiroki/zrouter/tmp/= /storage/home/hiroki/freebsd/make.a=0Amd64/bmake -f Makefile.inc1 _prebuild= _libs;=C2=A0 /storage/home/hiroki/obj//storage/h=0Aome/hiroki/zrouter/tmp//= storage/home/hiroki/freebsd/make.amd64/bmake -f Makefile=0A.inc1 _generic_l= ibs=0A=3D=3D=3D> gnu/lib/libssp/libssp_nonshared (obj,all,install)=0Acc =C2= =A0 -O -pipe -DHAVE_CONFIG_H -I/storage/home/hiroki/freebsd/gnu/lib/libssp/= libs=0Asp_nonshared/..=C2=A0 -I/storage/home/hiroki/freebsd/gnu/lib/libssp/= libssp_nonshared/=0A../../../../contrib/gcclibs/libssp=C2=A0 -I/storage/hom= e/hiroki/freebsd/gnu/lib/libss=0Ap/libssp_nonshared/../../../../contrib/gcc= libs/include -fPIC -DPIC -fvisibility=3D=0Ahidden =C2=A0 -MD=C2=A0 -MF.depe= nd.ssp-local.o -MTssp-local.o -std=3Dgnu99=C2=A0 =C2=A0 -Qunused-argum=0Aen= ts=C2=A0 -c /storage/home/hiroki/freebsd/gnu/lib/libssp/libssp_nonshared/..= /../../.=0A./contrib/gcclibs/libssp/ssp-local.c -o ssp-local.o=0Abuilding s= tatic ssp_nonshared library=0Aar -crD libssp_nonshared.a `NM=3D'nm' NMFLAGS= =3D'' lorder ssp-local.o=C2=A0 | tsort -q`=C2=A0=0Aranlib -D libssp_nonshar= ed.a=0Ash /storage/home/hiroki/freebsd/tools/install.sh=C2=A0 -C -o root -g= wheel -m 444 =C2=A0 l=0Aibssp_nonshared.a /storage/home/hiroki/obj//storag= e/home/hiroki/zrouter/tmp//arm=0A.arm/storage/home/hiroki/freebsd/tmp/usr/l= ib/=0A=3D=3D=3D> gnu/lib/libgcc (obj,all,install)=0ATARGET_CPU_DEFAULT=3D""= =C2=A0 HEADERS=3D"options.h dbxelf.h elfos-undef.h elfos.h freebsd=0A-nativ= e.h freebsd-spec.h freebsd.h arm/elf.h arm/aout.h arm/bpabi.h arm/freebsd.= =0Ah arm/arm.h defaults.h"=C2=A0 DEFINES=3D""=C2=A0 /bin/sh /storage/home/h= iroki/freebsd/gnu/li=0Ab/libgcc/../../../contrib/gcc/mkconfig.sh tm.h=0Aech= o '#define EXTRA_MODES_FILE "arm/arm-modes.def"' >> tm.h=0ATARGET_CPU_DEFAU= LT=3D""=C2=A0 HEADERS=3D"auto-host.h ansidecl.h"=C2=A0 DEFINES=3D"USED_FOR_= TARGE=0AT"=C2=A0 /bin/sh /storage/home/hiroki/freebsd/gnu/lib/libgcc/../../= ../contrib/gcc/mkc=0Aonfig.sh tconfig.h=0ALC_ALL=3DC awk -f /storage/home/h= iroki/freebsd/gnu/lib/libgcc/../../../contrib/gcc=0A/opt-gather.awk /storag= e/home/hiroki/freebsd/gnu/lib/libgcc/../../../contrib/gcc=0A/c.opt /storage= /home/hiroki/freebsd/gnu/lib/libgcc/../../../contrib/gcc/common.o=0Apt /sto= rage/home/hiroki/freebsd/gnu/lib/libgcc/../../../contrib/gcc/config/arm/a= =0Arm.opt > optionlist=0ALC_ALL=3DC awk -f /storage/home/hiroki/freebsd/gnu= /lib/libgcc/../../../contrib/gcc=0A/opt-functions.awk=C2=A0 -f /storage/hom= e/hiroki/freebsd/gnu/lib/libgcc/../../../cont=0Arib/gcc/opth-gen.awk=C2=A0 = < optionlist > options.h=0Aln -sf /storage/home/hiroki/freebsd/gnu/lib/libg= cc/../../../contrib/gcc/gthr-pos=0Aix.h gthr-default.h=0Aln -sf /storage/ho= me/hiroki/freebsd/gnu/lib/libgcc/../../../contrib/gcc/config/a=0Arm/unwind-= arm.h unwind.h=0Acc=C2=A0 -c -O -pipe =C2=A0 -DTARGET_ARM_EABI -DIN_GCC -DI= N_LIBGCC2 -D__GCC_FLOAT_NOT_NEED=0AED=C2=A0 -DHAVE_GTHR_DEFAULT=C2=A0 -I/st= orage/home/hiroki/freebsd/gnu/lib/libgcc/../../../=0Acontrib/gcclibs/includ= e=C2=A0 -I/storage/home/hiroki/freebsd/gnu/lib/libgcc/../../../=0Acontrib/g= cc/config -I/storage/home/hiroki/freebsd/gnu/lib/libgcc/../../../contri=0Ab= /gcc -I.=C2=A0 -I/storage/home/hiroki/freebsd/gnu/lib/libgcc/../../usr.bin/= cc/cc_too=0Als -Dinhibit_libc -fno-inline -std=3Dgnu99=C2=A0 =C2=A0 -fheino= us-gnu-extensions -Qunused-ar=0Aguments=C2=A0 -fvisibility=3Dhidden -DHIDE_= EXPORTS -fPIC -fexceptions -D__GLIBC__=3D3 -DE=0AlfW=3D__ElfN -o unwind-arm= .o /storage/home/hiroki/freebsd/gnu/lib/libgcc/../../../=0Acontrib/gcc/conf= ig/arm/unwind-arm.c=0Acc -O -pipe =C2=A0 -DTARGET_ARM_EABI -DIN_GCC -DIN_LI= BGCC2 -D__GCC_FLOAT_NOT_NEEDED =C2=A0=0A-DHAVE_GTHR_DEFAULT=C2=A0 -I/storag= e/home/hiroki/freebsd/gnu/lib/libgcc/../../../cont=0Arib/gcclibs/include=C2= =A0 -I/storage/home/hiroki/freebsd/gnu/lib/libgcc/../../../cont=0Arib/gcc/c= onfig -I/storage/home/hiroki/freebsd/gnu/lib/libgcc/../../../contrib/gc=0Ac= -I.=C2=A0 -I/storage/home/hiroki/freebsd/gnu/lib/libgcc/../../usr.bin/cc/c= c_tools -=0ADinhibit_libc -fno-inline -std=3Dgnu99=C2=A0 =C2=A0 -fheinous-g= nu-extensions -Qunused-argume=0Ants=C2=A0 =C2=A0 -c /storage/home/hiroki/fr= eebsd/gnu/lib/libgcc/../../../contrib/gcc/confi=0Ag/arm/libunwind.S -o libu= nwind.o=0A/storage/home/hiroki/freebsd/gnu/lib/libgcc/../../../contrib/gcc/= config/arm/libu=0Anwind.S:29:10: fatal error:=C2=A0=0A=C2=A0 =C2=A0 =C2=A0 = 'machine/acle-compat.h' file not found=0A#include <machine/acle-compat.h>= =0A=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 ^=0A1 error generated.=0A*** Error cod= e 1=0A=0AStop.=0Abmake[5]: stopped in /storage/home/hiroki/freebsd/gnu/lib/= libgcc=0A*** Error code 1=0A=0AStop.=0Abmake[4]: stopped in /storage/home/h= iroki/freebsd=0A*** Error code 1=0A=0A=0A=0A----- Original Message -----=0A= >From: Warner Losh <wlosh@bsdimp.com>=0A>To: Mori Hiroki <yamori813@yahoo.c= o.jp> =0A>Cc: "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>=0A>Date: = 2016/7/10, Sun 05:16=0A>Subject: Re: How to change gcc from clang at build = kernel and world?=0A> =0A>CPUTYPE=3Darmv4 isn=E2=80=99t going to work. Remo= ve that line from your make.conf.=0A>=0A>Warner=0A>=0A>> On Jul 9, 2016, at= 10:39 AM, Mori Hiroki <yamori813@yahoo.co.jp> wrote:=0A>> =0A>> Thanks adv= ice.=0A>> =0A>> =0A>> I try to build on this options at two week before hea= d source. I have as follow error...=0A>> =0A>> ----------------------------= ----------------------------------=0A>>>>> stage 4.2: building libraries=0A= >> --------------------------------------------------------------=0A>> cd /= storage/home/hiroki/freebsd;=C2=A0 MAKEOBJDIRPREFIX=3D/storage/home/hiroki/= obj//sto=0A>> rage/home/hiroki/zrouter/tmp//arm.arm=C2=A0 MACHINE_ARCH=3Dar= m=C2=A0 MACHINE=3Darm=C2=A0 CPUTYPE=3Dar=0A>> mv4 GROFF_BIN_PATH=3D/storage= /home/hiroki/obj//storage/home/hiroki/zrouter/tmp//ar=0A>> m.arm/storage/ho= me/hiroki/freebsd/tmp/legacy/usr/bin=C2=A0 GROFF_FONT_PATH=3D/storage/h=0A>= > ome/hiroki/obj//storage/home/hiroki/zrouter/tmp//arm.arm/storage/home/hir= oki/fre=0A>> ebsd/tmp/legacy/usr/share/groff_font=C2=A0 GROFF_TMAC_PATH=3D/= storage/home/hiroki/obj//=0A>> storage/home/hiroki/zrouter/tmp//arm.arm/sto= rage/home/hiroki/freebsd/tmp/legacy/=0A>> usr/share/tmac CC=3D"cc " CXX=3D"= c++=C2=A0 "=C2=A0 CPP=3D"cpp "=C2=A0 AS=3D"as" AR=3D"ar" LD=3D"ld" NM=3Dnm= =C2=A0 =0A>> OBJDUMP=3Dobjdump OBJCOPY=3D"objcopy"=C2=A0 RANLIB=3Dranlib ST= RINGS=3D=C2=A0 SIZE=3D"size"=C2=A0 INSTALL=3D=0A>> "sh /storage/home/hiroki= /freebsd/tools/install.sh"=C2=A0 PATH=3D/storage/home/hiroki/ob=0A>> j//sto= rage/home/hiroki/zrouter/tmp//arm.arm/storage/home/hiroki/freebsd/tmp/lega= =0A>> cy/usr/sbin:/storage/home/hiroki/obj//storage/home/hiroki/zrouter/tmp= //arm.arm/s=0A>> torage/home/hiroki/freebsd/tmp/legacy/usr/bin:/storage/hom= e/hiroki/obj//storage/=0A>> home/hiroki/zrouter/tmp//arm.arm/storage/home/h= iroki/freebsd/tmp/legacy/bin:/sto=0A>> rage/home/hiroki/obj//storage/home/h= iroki/zrouter/tmp//arm.arm/storage/home/hiro=0A>> ki/freebsd/tmp/usr/sbin:/= storage/home/hiroki/obj//storage/home/hiroki/zrouter/tm=0A>> p//arm.arm/sto= rage/home/hiroki/freebsd/tmp/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin=0A>>=C2= =A0 /storage/home/hiroki/obj//storage/home/hiroki/zrouter/tmp//storage/home= /hiroki/=0A>> freebsd/make.amd64/bmake=C2=A0 -f Makefile.inc1 DESTDIR=3D/st= orage/home/hiroki/obj//sto=0A>> rage/home/hiroki/zrouter/tmp//arm.arm/stora= ge/home/hiroki/freebsd/tmp -DNO_FSCHG=0A>>=C2=A0 MK_HTML=3Dno -DNO_LINT MK_= MAN=3Dno=C2=A0 MK_PROFILE=3Dno MK_TESTS=3Dno MK_TESTS_SUPPORT=3Dyes =0A>> l= ibraries=0A>> cd /storage/home/hiroki/freebsd;=C2=A0 /storage/home/hiroki/o= bj//storage/home/hiroki/=0A>> zrouter/tmp//storage/home/hiroki/freebsd/make= .amd64/bmake -f Makefile.inc1 _prer=0A>> eq_libs;=C2=A0 /storage/home/hirok= i/obj//storage/home/hiroki/zrouter/tmp//storage/hom=0A>> e/hiroki/freebsd/m= ake.amd64/bmake -f Makefile.inc1 _startup_libs;=C2=A0 /storage/home=0A>> /h= iroki/obj//storage/home/hiroki/zrouter/tmp//storage/home/hiroki/freebsd/mak= e.a=0A>> md64/bmake -f Makefile.inc1 _prebuild_libs;=C2=A0 /storage/home/hi= roki/obj//storage/h=0A>> ome/hiroki/zrouter/tmp//storage/home/hiroki/freebs= d/make.amd64/bmake -f Makefile=0A>> .inc1 _generic_libs=0A>> =3D=3D=3D> gnu= /lib/libssp/libssp_nonshared (obj,all,install)=0A>> cc=C2=A0 -O -pipe -DHA= VE_CONFIG_H -I/storage/home/hiroki/freebsd/gnu/lib/libssp/libs=0A>> sp_nons= hared/..=C2=A0 -I/storage/home/hiroki/freebsd/gnu/lib/libssp/libssp_nonshar= ed/=0A>> ../../../../contrib/gcclibs/libssp=C2=A0 -I/storage/home/hiroki/fr= eebsd/gnu/lib/libss=0A>> p/libssp_nonshared/../../../../contrib/gcclibs/inc= lude -fPIC -DPIC -fvisibility=3D=0A>> hidden -march=3Darmv4=C2=A0 -MD=C2=A0= -MF.depend.ssp-local.o -MTssp-local.o -std=3Dgnu99=C2=A0 =C2=A0 -Q=0A>> un= used-arguments=C2=A0 -c /storage/home/hiroki/freebsd/gnu/lib/libssp/libssp_= nonshare=0A>> d/../../../../contrib/gcclibs/libssp/ssp-local.c -o ssp-local= .o=0A>> error: unknown target CPU 'armv4'=0A>> *** Error code 1=0A>> =0A>> = Stop.=0A>> bmake[5]: stopped in /storage/home/hiroki/freebsd/gnu/lib/libssp= /libssp_nonshare=0A>> d=0A>> *** Error code 1=0A>> =0A>> Stop.=0A>> bmake[4= ]: stopped in /storage/home/hiroki/freebsd=0A>> *** Error code 1=0A>> =0A>>= Stop.=0A>> bmake[3]: stopped in /storage/home/hiroki/freebsd=0A>> *** Erro= r code 1=0A>> =0A>> Stop.=0A>> bmake[2]: stopped in /storage/home/hiroki/fr= eebsd=0A>> *** Error code 1=0A>> =0A>> Stop.=0A>> make[1]: stopped in /stor= age/home/hiroki/freebsd=0A>> *** Error code 1=0A>> =0A>> Stop.=0A>> make: s= topped in /storage/home/hiroki/zrouter=0A>> =0A>> =0A>> =0A>> ----- Origina= l Message -----=0A>>> From: Warner Losh <imp@bsdimp.com>=0A>>> To: Mori Hir= oki <yamori813@yahoo.co.jp> =0A>>> Cc: "freebsd-arm@freebsd.org" <freebsd-a= rm@freebsd.org>=0A>>> Date: 2016/7/5, Tue 00:31=0A>>> Subject: Re: How to c= hange gcc from clang at build kernel and world?=0A>>> =0A>>> You should be = able to get the build with=0A>>> WITH_GCC_BOOTSTRAP=3DYES WITH_GCC=3DYES WI= THOUT_CLANG_BOOTSTRAP=3DYES and=0A>>> WITHOUT_CLANG=3DYES=0A>>> =0A>>> Ther= e's also supposed to be a command line arg to clang to keep it=0A>>> from u= sing bx instructions. So that's messed up.=0A>>> =0A>>> But if the compiler= -rt stuff, which I haven't looked at, 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 interrupt issu= e.=0A>>>> =0A>>>> https://gist.github.com/yamori813/ae047a28a825aac255e436f= d8ccaf785=0A>>>> =0A>>>> =0A>>>> https://github.com/yamori813/freebsd/tree/= zrouter/sys/arm/cavium/cns11xx=0A>>>> =0A>>>> =0A>>>> cns11xx is arm4(not a= rm4t).=C2=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 o= f clang use bx instruction. bx instruction not support arm4.=0A>>>> =0A>>>>= How do I change to gcc from clang?=0A>>>> =0A>>>> I found bx instruction a= t=0A>>>> =0A>>>> contrib/compiler-rt/lib/builtins/arm/=0A>>>> =0A>>>> It mu= st 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/mailm= an/listinfo/freebsd-arm=0A>>>> To unsubscribe, send any mail to "freebsd-ar= m-unsubscribe@freebsd.org"=0A>>> =0A>>> =0A>>> =0A>> ______________________= _________________________=0A>> freebsd-arm@freebsd.org mailing list=0A>> ht= tps://lists.freebsd.org/mailman/listinfo/freebsd-arm=0A>> To unsubscribe, s= end any mail to "freebsd-arm-unsubscribe@freebsd.org"=0A>=0A>=0A>=0A>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?469038.47417.qm>