Closed dpgeorge closed 8 years ago
Hi Damien, I see the following commit in the mainline that does the same thing according to its changelog: https://github.com/crosstool-ng/crosstool-ng/commit/5a5fcbe148acf35372ecac145816c3515e6b8839 I'll add it to the xtensa-1.22.x branch.
I see the following commit in the mainline that does the same thing according to its changelog
Yes that does look correct (but I did not test it).
Right now I am applying my own patch, but having it fixed in this repo would be the best option, thanks!
Fixed with commit ecfc19a597d7
Great, thanks!
Could you provide a pull request to the official crosstool-ng stream? I stumbled upon this issue when compiling gcc 4.9.3 to be used with the Raspbian distro. It seems that this issue is not fixed upstream.
Thank you.
@ClaymorePT The patch to fix this comes from upstream crosstool-ng. They have it applied to gcc 5.3.0 and would just need to apply the same thing to 4.9.3.
Ok. Thank you for the info.
On 2 June 2016 at 16:48, Damien George notifications@github.com wrote:
@ClaymorePT https://github.com/ClaymorePT The patch to fix this comes from upstream crosstool-ng. They have it applied to gcc 5.3.0 and would just need to apply the same thing to 4.9.3.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jcmvbkbc/crosstool-NG/issues/24#issuecomment-223333952, or mute the thread https://github.com/notifications/unsubscribe/AHTtITjAecqqwlLzhm4hTH8fhCaKw7kdks5qHvszgaJpZM4IkFrv .
Carlos Miguel Ferreira Researcher at Telecommunications Institute Aveiro - Portugal Work E-mail - cmf@av.it.pt Skype & GTalk -> carlosmf.pt@gmail.com LinkedIn -> http://www.linkedin.com/in/carlosmferreira
Building the toolchain using gcc 6.1.1 fails. The failure is in .build/src/gcc-4.8.5/gcc/cp/cfns.h. The issue is that the declaration of libc_name_p does not match the definition of this function. The discrepancy is how the inline attribute is given. It seems that this only manifests as an error using a recent version of gcc as the host compiler (v5 used to work for me but v6 now fails).
This patch seems to fix the problem:
(Probably cfns.gperf should also be updated in a similar way.)
The issue looks like it was first discovered here: https://gcc.gnu.org/ml/gcc-patches/2015-08/msg00375.html but in a different context.
I don't know if this can/should be fixed in this repo or further upstream?