Skip site navigation (1)Skip section navigation (2)
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>

index | next in thread | previous in thread | raw e-mail

Thanks advice.


I try to build on this options at two week before head source. I have as follow error...

--------------------------------------------------------------
>>> stage 4.2: building libraries
--------------------------------------------------------------
cd /storage/home/hiroki/freebsd;  MAKEOBJDIRPREFIX=/storage/home/hiroki/obj//sto
rage/home/hiroki/zrouter/tmp//arm.arm  MACHINE_ARCH=arm  MACHINE=arm  CPUTYPE=ar
mv4 GROFF_BIN_PATH=/storage/home/hiroki/obj//storage/home/hiroki/zrouter/tmp//ar
m.arm/storage/home/hiroki/freebsd/tmp/legacy/usr/bin  GROFF_FONT_PATH=/storage/h
ome/hiroki/obj//storage/home/hiroki/zrouter/tmp//arm.arm/storage/home/hiroki/fre
ebsd/tmp/legacy/usr/share/groff_font  GROFF_TMAC_PATH=/storage/home/hiroki/obj//
storage/home/hiroki/zrouter/tmp//arm.arm/storage/home/hiroki/freebsd/tmp/legacy/
usr/share/tmac CC="cc " CXX="c++  "  CPP="cpp "  AS="as" AR="ar" LD="ld" NM=nm  
OBJDUMP=objdump OBJCOPY="objcopy"  RANLIB=ranlib STRINGS=  SIZE="size"  INSTALL=
"sh /storage/home/hiroki/freebsd/tools/install.sh"  PATH=/storage/home/hiroki/ob
j//storage/home/hiroki/zrouter/tmp//arm.arm/storage/home/hiroki/freebsd/tmp/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//storage/
home/hiroki/zrouter/tmp//arm.arm/storage/home/hiroki/freebsd/tmp/legacy/bin:/sto
rage/home/hiroki/obj//storage/home/hiroki/zrouter/tmp//arm.arm/storage/home/hiro
ki/freebsd/tmp/usr/sbin:/storage/home/hiroki/obj//storage/home/hiroki/zrouter/tm
p//arm.arm/storage/home/hiroki/freebsd/tmp/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin
 /storage/home/hiroki/obj//storage/home/hiroki/zrouter/tmp//storage/home/hiroki/
freebsd/make.amd64/bmake  -f Makefile.inc1 DESTDIR=/storage/home/hiroki/obj//sto
rage/home/hiroki/zrouter/tmp//arm.arm/storage/home/hiroki/freebsd/tmp -DNO_FSCHG
 MK_HTML=no -DNO_LINT MK_MAN=no  MK_PROFILE=no MK_TESTS=no MK_TESTS_SUPPORT=yes 
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
===> 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=
hidden -march=armv4  -MD  -MF.depend.ssp-local.o -MTssp-local.o -std=gnu99    -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

Stop.
bmake[5]: stopped in /storage/home/hiroki/freebsd/gnu/lib/libssp/libssp_nonshare
d
*** Error code 1

Stop.
bmake[4]: stopped in /storage/home/hiroki/freebsd
*** Error code 1

Stop.
bmake[3]: stopped in /storage/home/hiroki/freebsd
*** Error code 1

Stop.
bmake[2]: stopped in /storage/home/hiroki/freebsd
*** Error code 1

Stop.
make[1]: stopped in /storage/home/hiroki/freebsd
*** Error code 1

Stop.
make: stopped in /storage/home/hiroki/zrouter



----- Original Message -----
>From: Warner Losh <imp@bsdimp.com>
>To: Mori Hiroki <yamori813@yahoo.co.jp> 
>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?
> 
>You should be able to get the build with
>WITH_GCC_BOOTSTRAP=YES WITH_GCC=YES WITHOUT_CLANG_BOOTSTRAP=YES and
>WITHOUT_CLANG=YES
>
>There's also supposed to be a command line arg to clang to keep it
>from using bx instructions. So that's messed up.
>
>But if the compiler-rt stuff, which I haven't looked at, has a naked
>bx instruction, we'll need an ifdef.
>
>Warner
>
>On Sun, Jul 3, 2016 at 6:46 PM, Mori Hiroki <yamori813@yahoo.co.jp> wrote:
>> Hi.
>>
>> I make support Eventtimer and FDT and INTRNG to cns11xx code.
>>
>> This is almost done. But hang up at init. I think it's a interrupt issue.
>>
>> https://gist.github.com/yamori813/ae047a28a825aac255e436fd8ccaf785
>>
>>
>> https://github.com/yamori813/freebsd/tree/zrouter/sys/arm/cavium/cns11xx
>>
>>
>> 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.
>>
>> Because of clang use bx instruction. bx instruction not support arm4.
>>
>> How do I change to gcc from clang?
>>
>> I found bx instruction at
>>
>> contrib/compiler-rt/lib/builtins/arm/
>>
>> It must be changed bx to mov instruction.
>>
>> Regards.
>>
>> 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"
>
>
>
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 150623;
 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;
 d100.net; s 130820;
 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ěDHE-RSA-AES128-SHA bits8/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=armv4 isn’t 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:
> 
> Thanks advice.
> 
> 
> I try to build on this options at two week before head source. I have as follow error...
> 
> --------------------------------------------------------------
>>>> stage 4.2: building libraries
> --------------------------------------------------------------
> cd /storage/home/hiroki/freebsd;  MAKEOBJDIRPREFIX=/storage/home/hiroki/obj//sto
> rage/home/hiroki/zrouter/tmp//arm.arm  MACHINE_ARCH=arm  MACHINE=arm  CPUTYPE=ar
> mv4 GROFF_BIN_PATH=/storage/home/hiroki/obj//storage/home/hiroki/zrouter/tmp//ar
> m.arm/storage/home/hiroki/freebsd/tmp/legacy/usr/bin  GROFF_FONT_PATH=/storage/h
> ome/hiroki/obj//storage/home/hiroki/zrouter/tmp//arm.arm/storage/home/hiroki/fre
> ebsd/tmp/legacy/usr/share/groff_font  GROFF_TMAC_PATH=/storage/home/hiroki/obj//
> storage/home/hiroki/zrouter/tmp//arm.arm/storage/home/hiroki/freebsd/tmp/legacy/
> usr/share/tmac CC="cc " CXX="c++  "  CPP="cpp "  AS="as" AR="ar" LD="ld" NM=nm  
> OBJDUMP=objdump OBJCOPY="objcopy"  RANLIB=ranlib STRINGS=  SIZE="size"  INSTALL=
> "sh /storage/home/hiroki/freebsd/tools/install.sh"  PATH=/storage/home/hiroki/ob
> j//storage/home/hiroki/zrouter/tmp//arm.arm/storage/home/hiroki/freebsd/tmp/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//storage/
> home/hiroki/zrouter/tmp//arm.arm/storage/home/hiroki/freebsd/tmp/legacy/bin:/sto
> rage/home/hiroki/obj//storage/home/hiroki/zrouter/tmp//arm.arm/storage/home/hiro
> ki/freebsd/tmp/usr/sbin:/storage/home/hiroki/obj//storage/home/hiroki/zrouter/tm
> p//arm.arm/storage/home/hiroki/freebsd/tmp/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin
>  /storage/home/hiroki/obj//storage/home/hiroki/zrouter/tmp//storage/home/hiroki/
> freebsd/make.amd64/bmake  -f Makefile.inc1 DESTDIR=/storage/home/hiroki/obj//sto
> rage/home/hiroki/zrouter/tmp//arm.arm/storage/home/hiroki/freebsd/tmp -DNO_FSCHG
>  MK_HTML=no -DNO_LINT MK_MAN=no  MK_PROFILE=no MK_TESTS=no MK_TESTS_SUPPORT=yes 
> 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
> ===> 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=
> hidden -march=armv4  -MD  -MF.depend.ssp-local.o -MTssp-local.o -std=gnu99    -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
> 
> Stop.
> bmake[5]: stopped in /storage/home/hiroki/freebsd/gnu/lib/libssp/libssp_nonshare
> d
> *** Error code 1
> 
> Stop.
> bmake[4]: stopped in /storage/home/hiroki/freebsd
> *** Error code 1
> 
> Stop.
> bmake[3]: stopped in /storage/home/hiroki/freebsd
> *** Error code 1
> 
> Stop.
> bmake[2]: stopped in /storage/home/hiroki/freebsd
> *** Error code 1
> 
> Stop.
> make[1]: stopped in /storage/home/hiroki/freebsd
> *** Error code 1
> 
> Stop.
> make: stopped in /storage/home/hiroki/zrouter
> 
> 
> 
> ----- Original Message -----
>> From: Warner Losh <imp@bsdimp.com>
>> To: Mori Hiroki <yamori813@yahoo.co.jp> 
>> 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?
>> 
>> You should be able to get the build with
>> WITH_GCC_BOOTSTRAP=YES WITH_GCC=YES WITHOUT_CLANG_BOOTSTRAP=YES and
>> WITHOUT_CLANG=YES
>> 
>> There's also supposed to be a command line arg to clang to keep it
>> from using bx instructions. So that's messed up.
>> 
>> But if the compiler-rt stuff, which I haven't looked at, has a naked
>> bx instruction, we'll need an ifdef.
>> 
>> Warner
>> 
>> On Sun, Jul 3, 2016 at 6:46 PM, Mori Hiroki <yamori813@yahoo.co.jp> wrote:
>>> Hi.
>>> 
>>> I make support Eventtimer and FDT and INTRNG to cns11xx code.
>>> 
>>> This is almost done. But hang up at init. I think it's a interrupt issue.
>>> 
>>> https://gist.github.com/yamori813/ae047a28a825aac255e436fd8ccaf785
>>> 
>>> 
>>> https://github.com/yamori813/freebsd/tree/zrouter/sys/arm/cavium/cns11xx
>>> 
>>> 
>>> 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.
>>> 
>>> Because of clang use bx instruction. bx instruction not support arm4.
>>> 
>>> How do I change to gcc from clang?
>>> 
>>> I found bx instruction at
>>> 
>>> contrib/compiler-rt/lib/builtins/arm/
>>> 
>>> It must be changed bx to mov instruction.
>>> 
>>> Regards.
>>> 
>>> 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"
>> 
>> 
>> 
> _______________________________________________
> 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"



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?560642.1770.qm>