Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#16594 closed defect (fixed)

sdcc 2.8.0 does not compile on 10.5

Reported by: michaelld (Michael Dickens) Owned by: macports-tickets@…
Priority: High Milestone:
Component: ports Version: 1.6.0
Keywords: sdcc Cc: michaelld (Michael Dickens)
Port: sdcc

Description

The default C preprocessor ('/usr/bin/cpp-4.0') is not parsing files correctly; the error (as reported by "port install sdcc") is:

/usr/bin/cpp-4.0 -I/opt/local/include -I./.. -I.. -I. -I../.. -I./../../support/Util -I. -MM gen.c main.c peep.c ralloc.c rtrack.c >Makefile.dep
cpp-4.0: too many input files
gnumake[2]: *** No rule to make target `Makefile.dep', needed by `dep'.  Stop.
gnumake[1]: *** [mcs51/port.a] Error 2
gnumake: *** [sdcc-cc] Error 2

Changing the SDCC Portfile with the addition of:

configure.cpp  /usr/bin/gcc-4.0 -E

allows SDCC 2.8.0 to be installed correctly on OSX 10.5 (at least for me). I have also heard of this issue from others. - MLD

Attachments (1)

sdcc_280_Portfile.patch (247 bytes) - added by michaelld (Michael Dickens) 16 years ago.
SDCC 2.8.0 Portfile patch to correct build errors

Download all attachments as: .zip

Change History (3)

Changed 16 years ago by michaelld (Michael Dickens)

Attachment: sdcc_280_Portfile.patch added

SDCC 2.8.0 Portfile patch to correct build errors

comment:1 Changed 16 years ago by tobypeterson

Resolution: fixed
Status: newclosed

fixed in 40070

comment:2 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.