Ticket #10858 (closed defect: fixed)
BUG: sdcc-2.7 runtime errors on Mac Intel /w Xcode 2.3 & 2.4
| Reported by: | mdickens@… | Owned by: | yeled@… |
|---|---|---|---|
| Priority: | High | Milestone: | Port Bugs |
| Component: | ports | Version: | 1.3.2 |
| Keywords: | sdcc, xcode | Cc: | mdickens@…, markd@… |
| Port: | sdcc |
Description
I am a MacOS maintainer for the GNU Radio (GR) project. As Apple has moved to Intel-Macs, a number of us in the GR community are excited because GR is optimized for Intel processors and those new computers have better USB 2.0 support (as per Apple's USB list). With this move, we've found that some early Intel models (MacBook Pro and Mini) worked fine with GR with minimal changes to the code. But recent models (MacBook, iMac, Pro) wouldn't work with the USB-based hardware. GR and DarwinPorts (and the ports themselves) have continued to function properly on PPC-based Macs.
I've spend a considerable amount of time tracking down this issue, and it seems to come down to XCode (gcc) not compiling SDCC "correctly", and thus SDCC not producing "good" FPGA code. I've tried SDCC from both DarwinPorts as well as from source (with no patches and the minimal code changes needed for compilation; no configure flags), with XCode 2.3 and 2.4, with no luck. I haven't tried with 2.2.1 (though others have, with mixed results).
Mid-last summer (around July 12), I did an successful install on a MacBook Pro - and luckily kept a tarball of that around. That particular combination of computer, OSX version (not sure), XCode (2.2.1 or 2.3) and SDCC (2.4.0) magically worked, and thus I'm distributing the pre-compiled binaries instead of the source for Intel-Mac GR users - since there isn't any other reliable way to get SDCC installed and working that I've been able to determine.
From my use of SDCC on Intel-Macs, it's clear that neither SDCC 2.4 or 2.6 fully function on that platform. It -does- function properly on PPC-Macs (at least: PowerBook G4, Dual G4, Dual G5). The only explanation I can find (since otherwise my shell environment is identical and the OS installs are all up to date and the same for all of these computers) is that XCode for Intel is causing SDCC to malfunction.
Hence I'm not sure if it's an SDCC issue or an XCode issue; I do know that I don't have time to look further and I'm happy with the work-around for now.
Thanks in advance for working on this. - MLD

