Opened 10 years ago

Closed 10 years ago

#44712 closed defect (fixed)

mspdebug @0.22_1: build fails with GNU Make 3.80

Reported by: lars.haulin@… Owned by: g5pw (Aljaž Srebrnič)
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: mspdebug

Description

Building fails under OS X 10.4 with Xcode 2.5 with the following log message:

:debug:build Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_mspdebug/mspdebug/work/mspdebug-0.22" && /usr/bin/make -j2 -w all CC="/opt/local/bin/gcc-apple-4.2 -arch i386" 
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_mspdebug/mspdebug/work/mspdebug-0.22'
:info:build Makefile:67: Extraneous text after `else' directive
:info:build Makefile:70: *** only one `else' per conditional.  Stop.
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_mspdebug/mspdebug/work/mspdebug-0.22'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_mspdebug/mspdebug/work/mspdebug-0.22" && /usr/bin/make -j2 -w all CC="/opt/local/bin/gcc-apple-4.2 -arch i386" 
:info:build Exit code: 2
:error:build org.macports.build for port mspdebug returned: command execution failed

This have to do with the the older version of Make that comes with Xcode 2.5; repeated else conditionals were first introduced in GNU Make Version 3.81

$ /usr/bin/make -v
GNU Make 3.80

I got this to compile by rewriting the if-statement. It would be nice if the port compiled without problems, even on an ancient system like this. :)

Suggested fix of Makefile, lines 67 and following, else ifneq:

    ifneq ($(filter $(UNAME_S),OpenBSD),)
   OS_LIBS =
    else
       ifneq ($(filter $(UNAME_S),FreeBSD),)
   OS_CFLAGS = -pthread
   OS_LIBS = -lpthread
       else
   OS_LIBS = -lpthread -ldl
       endif
    endif

Change History (2)

comment:1 Changed 10 years ago by larryv (Lawrence Velázquez)

Cc: ryandesign@… added
Owner: changed from macports-tickets@… to g5pw@…
Port: mspdebug added
Priority: LowNormal
Summary: mspdebug @0.22_1 Old Xcode -build failure - suggested fixmspdebug @0.22_1: build fails with GNU Make 3.80

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

Resolution: fixed
Status: newclosed

Rather than signing ourselves up for forever maintaining a patch to the Makefile, let's just use a compatible version of make. Fixed in r125531.

Note: See TracTickets for help on using tickets.