Bug 20674 - Nios2: Assembler messages with toolchains based on binutils 2.26 and gcc 5.4
Summary: Nios2: Assembler messages with toolchains based on binutils 2.26 and gcc 5.4
Status: UNCONFIRMED
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.26
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-08 11:24 UTC by romain.naour
Modified: 2016-10-08 11:24 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description romain.naour 2016-10-08 11:24:25 UTC
Hi,

The new nios2 toolchain used by Buildroot autobuilders doesn't work due to the binutils-gcc version being used (binutils 2.26.1 and gcc 5.4).

/tmp/ccexKnYo.s: Assembler messages:
/tmp/ccexKnYo.s:1789: Error: r31 cannot be used with jmp; use ret instead

I've build some nios2 toolchains and it appear that gcc5 require binutils <=
2.25.x on this platform.
If gcc6 is used with binutils 2.26.1, the affected package build fine.

I'm not sure, but do you think this issue may be related to the new Nios2 Gen2 support in Binutils 2.26 and Gcc 6?

Best regards,
Romain

[1] http://lists.busybox.net/pipermail/buildroot/2016-September/172932.html
[2] http://autobuild.buildroot.net/results/1fe/1febefa6fa03e107bf3c834c5f759b2ed7ef7dbe/build-end.log