Compilation failed because of segmentation fault

Go To Last Post
10 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello,

 

I have an issue while compiling a Static Lib with Atmel Studio.

When I launch the compilation I get the following error:

 

recipe for target failed

Segmentation fault

I have to launch several time the compilation, and sometime, I do not know why, it works...

Any idea what could cause this issue?

 

My environment in "About Atmel Studio":

- Atmel Studio 7.0.1645

- Atmel Kits 7.0.105

- OS: Microsoft Windows NT 6.1.7601 Service Pack 1

 

Compilation of other application/lib are working properly

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Suggest you search - there's a lot of threads about this already - presumably this was a C++ project?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I will continue to search... I found lot of thread talking about Seg Fault during execution, not compilation...

And yes it is a C++ project! :-)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yeah the suggestion seems to be that the C++ compiler has some condition that leads to a seg-fault. Sadly no one seems able to provide a simple/cut-down test case to let the developers investigate it. There's a lot of arm waving but not much other action to irradiate the issue.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

AntoineC wrote:
I found lot of thread talking about Seg Fault during execution

Eh??

 

AVRs don't do segmentation - so can't have segmentation faults during execution!

 

When clawson suggested searching, your focus should probably be in this forum.

 

https://www.avrfreaks.net/search...

 

 

EDIT

 

Note that you can limit a standard Google search to a particular site by including, eg, "site:avrfreaks.net" in your search

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Wed. Jun 13, 2018 - 09:12 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

awneil wrote:
so can't have segmentation faults during execution!
Surely he means execution of the compiler?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:
Surely he means execution of the compiler?

 

But AntoineC wrote:
thread talking about Seg Fault during execution, not compilation...

hence my confusion!

 

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Intersting - could he be using AS7 for ARM not AVR perhaps? An ARM that has MMU so can seg fault.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Perhaps.

 

OP clarification needed ...

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

https://www.avrfreaks.net/forum/avr-gcc-microchip-crashes-segementation-fault#comment-2485931

IIRC from earlier in that thread it's -fno-virtualize and reduce the number of cores in parallel compilation.

 

"Dare to be naïve." - Buckminster Fuller