Opened 2 years ago

Closed 2 years ago

#66274 closed defect (fixed)

jdupes @1.21.0 does not build on PPC Tiger, Mac OS X 10.4.11, because Makefile seems to need a more up-to-date make

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: kencu (Ken)
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: tiger ppc Cc: calvin@…
Port: jdupes

Description

Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_jdupes/jdupes/work/jdupes-1.21.0" && /usr/bin/make -j1 -w all PREFIX=/opt/local CC="/opt/local/bin/gcc-apple-4.2 -arch ppc" 
DEBUG: system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_jdupes/jdupes/work/jdupes-1.21.0" && /usr/bin/make -j1 -w all PREFIX=/opt/local CC="/opt/local/bin/gcc-apple-4.2 -arch ppc" 
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_jdupes/jdupes/work/jbruchon-jdupes-7b3688a'
Makefile:122: Extraneous text after `else' directive
Makefile:124: *** only one `else' per conditional.  Stop.
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_jdupes/jdupes/work/jbruchon-jdupes-7b3688a'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_jdupes/jdupes/work/jdupes-1.21.0" && /usr/bin/make -j1 -w all PREFIX=/opt/local CC="/opt/local/bin/gcc-apple-4.2 -arch ppc" 
Exit code: 2
Error: Failed to build jdupes: command execution failed

The lines in question are:

  118	# Stack size limit can be too small for deep directory trees, so set to 16 MiB
  119	# The ld syntax for Windows is the same for both Cygwin and MinGW
  120	ifeq ($(OS), Windows_NT)
  121	COMPILER_OPTIONS += -Wl,--stack=16777216
  122	else ifeq ($(UNAME_S), Darwin)
  123	COMPILER_OPTIONS += -Wl,-stack_size -Wl,0x1000000
  124	else
  125	COMPILER_OPTIONS += -Wl,-z,stack-size=16777216
  126	endif

Attachments (1)

main.log (9.8 KB) - added by ballapete (Peter "Pete" Dyballa) 2 years ago.
Main.log from PPC Tiger, Mac OS X 10.4.11

Download all attachments as: .zip

Change History (5)

Changed 2 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

Main.log from PPC Tiger, Mac OS X 10.4.11

comment:1 Changed 2 years ago by ballapete (Peter "Pete" Dyballa)

Using build.cmd=gmake this port builds.

comment:2 Changed 2 years ago by cardi (calvin ardi)

Thanks for the report!

What version of make is on Mac OS X 10.4.11?

I think the fix here is to check the OS version, and if it's lower than some version (TBD), add the gmake dependency and modify the build.cmd command as mentioned above.

If there's a better way, please let me know.

comment:3 in reply to:  2 Changed 2 years ago by ballapete (Peter "Pete" Dyballa)

Replying to cardi:

Thanks for the report!

What version of make is on Mac OS X 10.4.11?

3.80. /usr/bin/make is a sym-link to /usr/bin/gnumake. Similarly on Leopard, which probably has a similar ancient version. (I'd have to reboot, which might happen next month.)

comment:4 Changed 2 years ago by kencu (Ken)

Owner: set to kencu
Resolution: fixed
Status: newclosed

In dbffcd4651c2575fde245c750589eea74ea20321/macports-ports (master):

jdupes: use a newer make command on Tiger

closes: #66274

Note: See TracTickets for help on using tickets.