xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* unable to compile android-hikey-linaro-4.1
@ 2016-07-18 18:23 Kamenee Arumugam
  2016-07-19  8:29 ` Wei Liu
  2016-07-19  8:42 ` Julien Grall
  0 siblings, 2 replies; 3+ messages in thread
From: Kamenee Arumugam @ 2016-07-18 18:23 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1906 bytes --]

Hi All,

I am referring to this wiki page (http://wiki.xen.org/wiki/HiKey) to setup
xen in hikey. I am currently facing problem in building linux (
android-hikey-linaro-4.1
<https://github.com/96boards/linux/tree/android-hikey-linaro-4.1> ),but I
am getting compile error as below:


kamenee@kamenee-Lenovo-Z51-70:~/hikey-build/linux$ make ARCH=arm64
CROSS_COMPILE=aarch64-linux-gnu- -j4
Makefile:660: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG:
-fstack-protector-strong not supported by compiler
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/bin2c
  CHK     include/generated/utsrelease.h
  HOSTCC  scripts/dtc/dtc.o
  HOSTCC  scripts/dtc/flattree.o
  HOSTCC  scripts/genksyms/genksyms.o
  CC      kernel/bounds.s
aarch64-linux-gnu-gcc: error: unrecognized command line option
‘-fstack-protector-strong’
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
  CC      scripts/mod/empty.o
aarch64-linux-gnu-gcc: error: unrecognized command line option
‘-fstack-protector-strong’
make[2]: *** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
  HOSTCC  scripts/genksyms/parse.tab.o
  HOSTCC  scripts/dtc/fstree.o
  HOSTCC  scripts/genksyms/lex.lex.o
  HOSTCC  scripts/dtc/data.o
  HOSTCC  scripts/dtc/livetree.o
  HOSTCC  scripts/dtc/treesource.o
  HOSTCC  scripts/dtc/srcpos.o
  HOSTCC  scripts/dtc/checks.o
  HOSTLD  scripts/genksyms/genksyms
  HOSTCC  scripts/dtc/util.o
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  HOSTLD  scripts/dtc/dtc
make: *** [scripts] Error 2


I am using gcc version 4.8 here. Does any one know how to solve this or
should I use specific linux repo ?

Thanks,
Kamenee

[-- Attachment #1.2: Type: text/html, Size: 2300 bytes --]

[-- Attachment #2: Type: text/plain, Size: 127 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: unable to compile android-hikey-linaro-4.1
  2016-07-18 18:23 unable to compile android-hikey-linaro-4.1 Kamenee Arumugam
@ 2016-07-19  8:29 ` Wei Liu
  2016-07-19  8:42 ` Julien Grall
  1 sibling, 0 replies; 3+ messages in thread
From: Wei Liu @ 2016-07-19  8:29 UTC (permalink / raw)
  To: Kamenee Arumugam; +Cc: xen-devel, Wei Liu

On Mon, Jul 18, 2016 at 02:23:54PM -0400, Kamenee Arumugam wrote:
> Hi All,
> 
> I am referring to this wiki page (http://wiki.xen.org/wiki/HiKey) to setup
> xen in hikey. I am currently facing problem in building linux (
> android-hikey-linaro-4.1
> <https://github.com/96boards/linux/tree/android-hikey-linaro-4.1> ),but I
> am getting compile error as below:
> 
> 
> kamenee@kamenee-Lenovo-Z51-70:~/hikey-build/linux$ make ARCH=arm64
> CROSS_COMPILE=aarch64-linux-gnu- -j4
> Makefile:660: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG:
> -fstack-protector-strong not supported by compiler
[...]j
> aarch64-linux-gnu-gcc: error: unrecognized command line option
> ‘-fstack-protector-strong’
[...]
> aarch64-linux-gnu-gcc: error: unrecognized command line option
> ‘-fstack-protector-strong’
[...]
> I am using gcc version 4.8 here. Does any one know how to solve this or
> should I use specific linux repo ?
> 

The issue is clear: your compiler doesn't support that option.

The example config file [0] on the wiki page has 

CONFIG_HAVE_CC_STACKPROTECTOR=y
# CONFIG_CC_STACKPROTECTOR is not set
CONFIG_CC_STACKPROTECTOR_NONE=y
# CONFIG_CC_STACKPROTECTOR_REGULAR is not set
# CONFIG_CC_STACKPROTECTOR_STRONG is not set

so I guess you should give that a try.

Wei.

[0] http://xenbits.xen.org/people/sstabellini/config-hikey

> Thanks,
> Kamenee

> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> https://lists.xen.org/xen-devel


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: unable to compile android-hikey-linaro-4.1
  2016-07-18 18:23 unable to compile android-hikey-linaro-4.1 Kamenee Arumugam
  2016-07-19  8:29 ` Wei Liu
@ 2016-07-19  8:42 ` Julien Grall
  1 sibling, 0 replies; 3+ messages in thread
From: Julien Grall @ 2016-07-19  8:42 UTC (permalink / raw)
  To: Kamenee Arumugam, xen-devel, Stefano Stabellini



On 18/07/2016 19:23, Kamenee Arumugam wrote:
>
> Hi All,

Hello,

> I am referring to this wiki page (http://wiki.xen.org/wiki/HiKey) to
> setup xen in hikey. I am currently facing problem in building linux (
> android-hikey-linaro-4.1
> <https://github.com/96boards/linux/tree/android-hikey-linaro-4.1> ),but
> I am getting compile error as below:
>
>
> kamenee@kamenee-Lenovo-Z51-70:~/hikey-build/linux$ make ARCH=arm64
> CROSS_COMPILE=aarch64-linux-gnu- -j4
> Makefile:660: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG:
> -fstack-protector-strong not supported by compiler

Based on the description in the Kconfig (CC_STACKPROTECTOR_STRONG) is 
only supported by gcc version 4.9 or above, or a distribution gcc with 
the feature backported.

>   CHK     include/config/kernel.release
>   CHK     include/generated/uapi/linux/version.h
>   HOSTCC  scripts/basic/fixdep
>   HOSTCC  scripts/basic/bin2c
>   CHK     include/generated/utsrelease.h
>   HOSTCC  scripts/dtc/dtc.o
>   HOSTCC  scripts/dtc/flattree.o
>   HOSTCC  scripts/genksyms/genksyms.o
>   CC      kernel/bounds.s
> aarch64-linux-gnu-gcc: error: unrecognized command line option
> ‘-fstack-protector-strong’
> make[1]: *** [kernel/bounds.s] Error 1
> make: *** [prepare0] Error 2
> make: *** Waiting for unfinished jobs....
>   CC      scripts/mod/empty.o
> aarch64-linux-gnu-gcc: error: unrecognized command line option
> ‘-fstack-protector-strong’
> make[2]: *** [scripts/mod/empty.o] Error 1
> make[1]: *** [scripts/mod] Error 2
> make[1]: *** Waiting for unfinished jobs....
>   HOSTCC  scripts/genksyms/parse.tab.o
>   HOSTCC  scripts/dtc/fstree.o
>   HOSTCC  scripts/genksyms/lex.lex.o
>   HOSTCC  scripts/dtc/data.o
>   HOSTCC  scripts/dtc/livetree.o
>   HOSTCC  scripts/dtc/treesource.o
>   HOSTCC  scripts/dtc/srcpos.o
>   HOSTCC  scripts/dtc/checks.o
>   HOSTLD  scripts/genksyms/genksyms
>   HOSTCC  scripts/dtc/util.o
>   HOSTCC  scripts/dtc/dtc-lexer.lex.o
>   HOSTCC  scripts/dtc/dtc-parser.tab.o
>   HOSTLD  scripts/dtc/dtc
> make: *** [scripts] Error 2
>
>
> I am using gcc version 4.8 here. Does any one know how to solve this or
> should I use specific linux repo ?

By either selecting a different stack protector mode or upgrading your 
compiler to at least gcc 4.9.

Regards,

-- 
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-07-19  8:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-18 18:23 unable to compile android-hikey-linaro-4.1 Kamenee Arumugam
2016-07-19  8:29 ` Wei Liu
2016-07-19  8:42 ` Julien Grall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).