On 14 June 2016 at 14:07, Jérôme Forissier jerome.forissier@linaro.org wrote:
Hi,
I've stumbled across an assembler error message that I don't understand.
bl1/aarch64/bl1_exceptions.S: Assembler messages: bl1/aarch64/bl1_exceptions.S:53: Error: non-constant expression in ".if" statement
It occurs when building ARM Trusted Firmware with aarch64-linux-gnu-gcc that ships with Ubuntu 16.04. It does _not_ occur with an older Linaro toolchain. More details in [1].
The .align directives in the vector_base and vector_entry macros _do_ make a difference. Are they the cause of the problem? Would you recommend writing the code differently? Or is it a compiler bug?
Hi Jerome,
Can you try with more recent Linaro releases (5.x)?
I've tried with our 5.3-2016.02, and compilation worked.
I tried 2 older revisions on our development branch and it worked too.
Christophe
Thanks,
Jerome _______________________________________________ linaro-toolchain mailing list linaro-toolchain@lists.linaro.org https://lists.linaro.org/mailman/listinfo/linaro-toolchain