{"action":"created","issue":{"url":"https://api.github.com/repos/ARM-software/tf-issues/issues/401","repository_url":"https://api.github.com/repos/ARM-software/tf-issues","labels_url":"https://api.github.com/repos/ARM-software/tf-issues/issues/401/labels{/name}","comments_url":"https://api.github.com/repos/ARM-software/tf-issues/issues/401/comments","events_url":"https://api.github.com/repos/ARM-software/tf-issues/issues/401/events","html_url":"https://github.com/ARM-software/tf-issues/issues/401","id":160120050,"number":401,"title":"Compiler issue?","user":{"login":"jforissier","id":8288195,"avatar_url":"https://avatars.githubusercontent.com/u/8288195?v=3","gravatar_id":"","url":"https://api.github.com/users/jforissier","html_url":"https://github.com/jforissier","followers_url":"https://api.github.com/users/jforissier/followers","following_url":"https://api.github.com/users/jforissier/following{/other_user}","gists_url":"https://api.github.com/users/jforissier/gists{/gist_id}","starred_url":"https://api.github.com/users/jforissier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jforissier/subscriptions","organizations_url":"https://api.github.com/users/jforissier/orgs","repos_url":"https://api.github.com/users/jforissier/repos","events_url":"https://api.github.com/users/jforissier/events{/privacy}","received_events_url":"https://api.github.com/users/jforissier/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ARM-software/tf-issues/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-14T08:02:34Z","updated_at":"2016-06-16T08:50:27Z","closed_at":null,"body":"Current master (https://github.com/ARM-software/arm-trusted-firmware/commit/ae43c9493d2c6a2a878f3cee0c240c69fe88f130) fails to build with the cross-compiler that comes with Ubuntu 16.04:\r\n\r\n```\r\n$ export CROSS_COMPILE=aarch64-linux-gnu-\r\n$ ${CROSS_COMPILE}gcc --version | head -1\r\naarch64-linux-gnu-gcc (Ubuntu/Linaro 5.3.1-14ubuntu2) 5.3.1 20160413\r\n$ make bl1\r\n[...]\r\nbl1/aarch64/bl1_exceptions.S: Assembler messages:\r\nbl1/aarch64/bl1_exceptions.S:53: Error: non-constant expression in \".if\" statement\r\n```\r\n\r\nBut, with an older Linaro cross-compiler:\r\n```\r\n$ export CROSS_COMPILE=/some/path/to/aarch64-linux-gnu-\r\n$ ${CROSS_COMPILE}gcc --version | head -1\r\naarch64-linux-gnu-gcc (crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09) 4.9.2 20140904 (prerelease)\r\n$ make bl1\r\n[...]\r\nBuilt build/fvp/release/bl1.bin successfully\r\n```\r\n\r\nHow to fix this? Should I report to GCC?"},"comment":{"url":"https://api.github.com/repos/ARM-software/tf-issues/issues/comments/226425901","html_url":"https://github.com/ARM-software/tf-issues/issues/401#issuecomment-226425901","issue_url":"https://api.github.com/repos/ARM-software/tf-issues/issues/401","id":226425901,"user":{"login":"jforissier","id":8288195,"avatar_url":"https://avatars.githubusercontent.com/u/8288195?v=3","gravatar_id":"","url":"https://api.github.com/users/jforissier","html_url":"https://github.com/jforissier","followers_url":"https://api.github.com/users/jforissier/followers","following_url":"https://api.github.com/users/jforissier/following{/other_user}","gists_url":"https://api.github.com/users/jforissier/gists{/gist_id}","starred_url":"https://api.github.com/users/jforissier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jforissier/subscriptions","organizations_url":"https://api.github.com/users/jforissier/orgs","repos_url":"https://api.github.com/users/jforissier/repos","events_url":"https://api.github.com/users/jforissier/events{/privacy}","received_events_url":"https://api.github.com/users/jforissier/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T08:50:27Z","updated_at":"2016-06-16T08:50:27Z","body":"FYI, confirmed to be a compiler bug [1]. One workaround is to remove the fill value in the alignment directives (i.e., '.align x' instead of '.align x, 0'). Not sure it is acceptable (I suppose the compiler will inserts nops in this case).\r\n\r\n[1] https://lists.linaro.org/pipermail/linaro-toolchain/2016-June/005771.html"}}
{"actor":{"display_login":"jforissier"}}