Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failing While doing ATF build #7

Open
nexgenkannan opened this issue Sep 18, 2018 · 5 comments
Open

Build failing While doing ATF build #7

nexgenkannan opened this issue Sep 18, 2018 · 5 comments

Comments

@nexgenkannan
Copy link

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
Copy link

HirokiNegishi commented Nov 12, 2018

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
Copy link
Contributor

AlexeiFedorov commented Nov 12, 2018 via email

@AlexeiFedorov
Copy link
Contributor

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
Copy link

jkleve commented Dec 12, 2018

possibly related

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

@AlexeiFedorov
Copy link
Contributor

@jkleve
Thanks for the link provided!

omihalac added a commit to omihalac/arm-trusted-firmware that referenced this issue Feb 4, 2019
…OMIHALAC/arm-trusted-firmware:patf-staging-rcar3-update-1018-rev2 to master

* commit 'a7ab178efc9caa09445aa35605e1251f0058a478': (567 commits)
  Revert "Add RCAR_BKUP_ENABLE flag"
  Revert "plat: rcar: ddr: Control DDR_BACKUPMODE via RCAR_BKUP_ENABLE"
  zynqmp:pm: Added APIs for xilsecure linux support
  zynqmp: pm: Add support for setting suspend-to-RAM mode
  Added ZYNQMP_WARM_RESTART flag
  rcar: scif: Rename console_finalize() to console_flush()
  Revert "Added ZYNQMP_WARM_RESTART flag"
  Revert "zynqmp: pm: Add support for setting suspend-to-RAM mode"
  Revert "zynqmp:pm: Added APIs for xilsecure linux support"
  Revert "plat: rcar: rom_api: Add API addresses for V3M derivative"
  Revert "Fix build errors flagged due to GCC 6.2"
  Revert "Resolve build errors flagged by GCC 6.2"
  Update IPL and Secure Monitor Rev1.0.18 rev2
  Updates user guide following out of box testing.
  Release v1.4: Update minor version number to 4
  Release v1.4: update change-log.rst
  Migrate to Linaro release 17.04
  Update readme for v1.4 release
  Update Foundation, AEM and Cortex Models versions
  Remove Markdown documentation
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants