Author Topic: GCC Compiler for AVR autodetect problem  (Read 5963 times)

Offline Longin

  • Single posting newcomer
  • *
  • Posts: 3
GCC Compiler for AVR autodetect problem
« 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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6509
    • My Best Post
Re: GCC Compiler for AVR autodetect problem
« Reply #1 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: GCC Compiler for AVR autodetect problem
« Reply #2 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.

Offline Longin

  • Single posting newcomer
  • *
  • Posts: 3
Re: GCC Compiler for AVR autodetect problem
« Reply #3 on: August 29, 2014, 09:54:59 pm »
So should i report this "bug" to development team somehow?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6509
    • My Best Post
Re: GCC Compiler for AVR autodetect problem
« Reply #4 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11716
    • Travis build status
Re: GCC Compiler for AVR autodetect problem
« Reply #5 on: August 30, 2014, 03:27:28 am »
It is better to test this yourself and the report it on sf.net.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]