Opened 12 years ago

Closed 12 years ago

#38008 closed defect (wontfix)

avr-gcc application

Reported by: wcontello Owned by: g5pw (Aljaž Srebrnič)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc:
Port: avr-gcc

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I cannot see how to file a report with the application maintainer: it appears a 16 bit compare tries to use a register that the compiler expected to be 0 but is not. When I compile a set of source using version 4.5.1 I get code that works but when I use 4.7.2 the code does not work. I am attaching a zip file which contains:

  • a MakeFile for building the avr hex and elf files along with the commands I use to get the resulting files
  • a pdf where I have tried to highlight the offending lines
  • a main.c file you can compile using the make file to build the avr target or build for your native platform (I'm on a Mac OS X machine so I have a __APPLE__ preprocessor which you may need to change)
  • a Problem.txt file that details what I was trying to do (The LED does in one direction and never turns around)

Attachments (1)

CompilerBugDemo.zip (76.8 KB) - added by wcontello 12 years ago.
supporting files to demonstrate problem

Download all attachments as: .zip

Change History (6)

Changed 12 years ago by wcontello

Attachment: CompilerBugDemo.zip added

supporting files to demonstrate problem

comment:1 Changed 12 years ago by wcontello

Cc: wcontello@… added

Cc Me!

g5pw@…

Last edited 12 years ago by wcontello (previous) (diff)

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: wcontello@… removed
Description: modified (diff)
Keywords: avr-gcc 4.7.2 removed
Owner: changed from macports-tickets@… to g5pw@…

comment:3 Changed 12 years ago by g5pw (Aljaž Srebrnič)

I'll try to look into it, but this is probably a bug in the compiler, so I'll forward your test case to the compiler authors.

comment:4 in reply to:  3 Changed 12 years ago by wcontello

Replying to g5pw@…:

I'll try to look into it, but this is probably a bug in the compiler, so I'll forward your test case to the compiler authors.

In the mean time can you back the mac ports compiler back to a previous version? This way mac port users will have a working compiler and not have to point their make files to a different compiler. Is there any way I can start helping you? I would like to learn.

comment:5 Changed 12 years ago by g5pw (Aljaž Srebrnič)

Resolution: wontfix
Status: newclosed

So, problem was reported upstream in the mailing list, see http://gcc.gnu.org/ml/gcc/2013-02/msg00276.html. I can't back track avr-gcc to a previous version, but chances are, that you still have the older version installed, try running a

port installed avr-gcc

and see if you have the older (4.5.1) version still installed. you can then run

port activate avr-gcc @4.5.1_0

or something like that, and you'll have the older compiler activated.

In the mean time, we'll wait for the upstream fix.

Note: See TracTickets for help on using tickets.