New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #16594 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

sdcc 2.8.0 does not compile on 10.5

Reported by: mlk@… Owned by: macports-tickets@…
Priority: High Milestone:
Component: ports Version: 1.6.0
Keywords: sdcc Cc: mlk@…
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

sdcc_280_Portfile.patch (247 bytes) - added by mlk@… 5 years ago.
SDCC 2.8.0 Portfile patch to correct build errors

Change History

Changed 5 years ago by mlk@…

SDCC 2.8.0 Portfile patch to correct build errors

comment:1 Changed 5 years ago by toby@…

  • Status changed from new to closed
  • Resolution set to fixed

fixed in 40070

comment:2 Changed 4 years ago by anonymous

  • Milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.