Code::Blocks Forums

User forums => Embedded development => Topic started by: Longin on August 28, 2014, 09:09:05 pm

Title: GCC Compiler for AVR autodetect problem
Post by: Longin on August 28, 2014, 09:09:05 pm
When you let C::B detect for toolchain it adds paths for avr/include and avr/lib into search directories.
IsnĀ“t it bad for cross-compilation for mcu? Cause with this settings there are messing linking libraries cause of undefined referencies etc
If paths are blank everything works fine.
This happens for last WinAVR package (20100110) or AVR toolchain from Atmel
Title: Re: GCC Compiler for AVR autodetect problem
Post by: stahta01 on August 28, 2014, 10:48:28 pm
I agree, I think a freeze/unfreeze Compiler settings button might be one way to fix the issue.
Having an disable auto-detect would be another way to fix the issue.

Tim S.
Title: Re: GCC Compiler for AVR autodetect problem
Post by: scarphin on August 29, 2014, 05:56:26 pm
Inclusion of 'avr/lib' is dangerous for avr-gcc as it points the linker to the wrong library file. There has been a problem reported before and I thought it was removed after that. In case it isn't, auto inclusion of 'avr/lib' for avr-gcc should be removed as avr-gcc finds the correct library file by some mechanism implemented in source code.
Title: Re: GCC Compiler for AVR autodetect problem
Post by: Longin on August 29, 2014, 09:54:59 pm
So should i report this "bug" to development team somehow?
Title: Re: GCC Compiler for AVR autodetect problem
Post by: stahta01 on August 30, 2014, 01:37:44 am
So should i report this "bug" to development team somehow?

Only if the problem is in the last release of 13.12.
And, it is nice to verify the problem is still in the most resent nightly build.

I would suggest asking in the nightly thread about whether this bug is fixed; and if not report on to the sf.net site.
Link is on the CB Wiki page.

Tim S.
Title: Re: GCC Compiler for AVR autodetect problem
Post by: oBFusCATed on August 30, 2014, 03:27:28 am
It is better to test this yourself and the report it on sf.net.