[MacPorts] #38008: avr-gcc application
#38008: avr-gcc application ---------------------------+-------------------------------- Reporter: wcontello@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: avr-gcc 4.7.2 | Port: avr-gcc ---------------------------+-------------------------------- 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) -- Ticket URL: <https://trac.macports.org/ticket/38008> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38008: avr-gcc application --------------------------+-------------------- Reporter: wcontello@… | Owner: g5pw@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: avr-gcc | --------------------------+-------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => g5pw@… * cc: wcontello@… (removed) * keywords: avr-gcc 4.7.2 => Old description:
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)
New description: 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) -- -- Ticket URL: <https://trac.macports.org/ticket/38008#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38008: avr-gcc application --------------------------+-------------------- Reporter: wcontello@… | Owner: g5pw@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: avr-gcc | --------------------------+-------------------- Comment (by 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. -- Ticket URL: <https://trac.macports.org/ticket/38008#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38008: avr-gcc application --------------------------+-------------------- Reporter: wcontello@… | Owner: g5pw@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: avr-gcc | --------------------------+-------------------- Comment (by wcontello@…): Replying to [comment:3 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.
-- Ticket URL: <https://trac.macports.org/ticket/38008#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38008: avr-gcc application --------------------------+-------------------- Reporter: wcontello@… | Owner: g5pw@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: wontfix | Keywords: Port: avr-gcc | --------------------------+-------------------- Changes (by g5pw@…): * status: new => closed * resolution: => wontfix Comment: 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. -- Ticket URL: <https://trac.macports.org/ticket/38008#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts