renesas-rcar / arm-trusted-firmware

arm-trusted-firmware
Other
25 stars 39 forks source link

Build failing While doing ATF build #7

Open nexgenkannan opened 5 years ago

nexgenkannan commented 5 years ago

make CROSS_COMPILE=aarch64-linux-gnu- PLAT=rcar LSI=H3 Including services/spd/opteed/opteed.mk Building rcar AS common/aarch64/early_exceptions.S common/aarch64/early_exceptions.S: Assembler messages: common/aarch64/early_exceptions.S:27: Error: non-constant expression in ".if" statement common/aarch64/early_exceptions.S:33: Error: non-constant expression in ".if" statement common/aarch64/early_exceptions.S:39: Error: non-constant expression in ".if" statement common/aarch64/early_exceptions.S:45: Error: non-constant expression in ".if" statement common/aarch64/early_exceptions.S:55: Error: non-constant expression in ".if" statement common/aarch64/early_exceptions.S:61: Error: non-constant expression in ".if" statement common/aarch64/early_exceptions.S:67: Error: non-constant expression in ".if" statement common/aarch64/early_exceptions.S:73: Error: non-constant expression in ".if" statement common/aarch64/early_exceptions.S:83: Error: non-constant expression in ".if" statement common/aarch64/early_exceptions.S:89: Error: non-constant expression in ".if" statement common/aarch64/early_exceptions.S:95: Error: non-constant expression in ".if" statement common/aarch64/early_exceptions.S:101: Error: non-constant expression in ".if" statement common/aarch64/early_exceptions.S:111: Error: non-constant expression in ".if" statement common/aarch64/early_exceptions.S:117: Error: non-constant expression in ".if" statement common/aarch64/early_exceptions.S:123: Error: non-constant expression in ".if" statement common/aarch64/early_exceptions.S:129: Error: non-constant expression in ".if" statement Makefile:546: recipe for target 'build/rcar/release/bl2/early_exceptions.o' failed make: *** [build/rcar/release/bl2/early_exceptions.o] Error 1

HirokiNegishi commented 5 years ago

Hello @nexgenkannan

We use aarch64-poky-linux-gcc (GCC) 7.3.0.

$ /opt/poky/2.4.3/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc --version aarch64-poky-linux-gcc (GCC) 7.3.0 $ make distclean $ make bl2 bl31 dummytool CROSS_COMPILE=/opt/poky/2.4.3/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux- PLAT=rcar LSI=H3

Could you please check your gcc version?

Regards, Negishi build_log.txt

AlexeiFedorov commented 5 years ago

What's your compilation error?

Alexei


From: HirokiNegishi notifications@github.com Sent: 12 November 2018 10:55:44 To: renesas-rcar/arm-trusted-firmware Cc: Subscribed Subject: Re: [renesas-rcar/arm-trusted-firmware] Build failing While doing ATF build (#7)

Hello,

We use aarch64-poky-linux-gcc (GCC) 7.3.0.

$ /opt/poky/2.4.3/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc --version aarch64-poky-linux-gcc (GCC) 7.3.0 $ make distclean $ make bl2 bl31 dummytool CROSS_COMPILE=/opt/poky/2.4.3/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux- PLAT=rcar LSI=H3

Could you please check your gcc version?

Regards,

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/renesas-rcar/arm-trusted-firmware/issues/7#issuecomment-437838080, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKd5n1H43gyBssCnF67Q0qZYwDv8PWjbks5uuVOwgaJpZM4Wt-eU.

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

AlexeiFedorov commented 5 years ago

No errors with GCC 8.2:

aarch64-elf-gcc.exe --version aarch64-elf-gcc.exe (GNU Toolchain for the A-profile Architecture 8.2-2018-08 (arm-rel-8.23)) 8.2.1 20180802 Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

jkleve commented 5 years ago

possibly related

https://www.xilinx.com/support/answers/68564.html

AlexeiFedorov commented 5 years ago

@jkleve Thanks for the link provided!