Opened 4 months ago

Last modified 3 months ago

#69282 reopened defect

jdupes @1.27.3 does not build on PPC Tiger, Mac OS X 10.4.11, because cc1 does not understand option "-std=gnu11"

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.9.1
Keywords: ppc tiger Cc:
Port: jdupes

Description

gmake: 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/jdupes-1.27.3'
hint: if ../libjodycode is built but jdupes won't run, try doing 'make static_jc'
/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_jdupes/jdupes/work/compwrap/cc/opt/local/bin/gcc-apple-4.2 -Os -arch ppc -Wall -Wwrite-strings -Wcast-align -Wstrict-aliasing -Wstrict-prototypes -Wpointer-arith -Wundef -Wshadow -Wfloat-equal -Waggregate-return -Wcast-qual -Wswitch-default -Wswitch-enum -Wunreachable-code -Wformat=2 -std=gnu11 -D_FILE_OFFSET_BITS=64 -fstrict-aliasing -pipe -DNO_ATIME -DNDEBUG -Wextra -Wstrict-overflow=5 -Winit-self -Wl,-stack_size -Wl,0x1000000 -DNO_CLONEFILE=1 -DENABLE_DEDUPE  -I/opt/local/include  -c -o hashdb.o hashdb.c
cc1: error: unrecognized command line option "-std=gnu11"
gmake: *** [<builtin>: hashdb.o] Error 1
gmake: 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/jdupes-1.27.3'
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.27.3" && /opt/local/bin/gmake -w all CC="/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_jdupes/jdupes/work/compwrap/cc/opt/local/bin/gcc-apple-4.2" CXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_jdupes/jdupes/work/compwrap/cxx/opt/local/bin/g++-apple-4.2" OBJC="/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_jdupes/jdupes/work/compwrap/objc/opt/local/bin/gcc-apple-4.2" OBJCXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_jdupes/jdupes/work/compwrap/objcxx/opt/local/bin/g++-apple-4.2" INSTALL="/usr/bin/install -c" 
Exit code: 2
Error: Failed to build jdupes: command execution failed

Attachments (1)

main.log (17.5 KB) - added by ballapete (Peter "Pete" Dyballa) 4 months ago.
Main.log from PPC TRiger, Mac OS X 10.4.11

Download all attachments as: .zip

Change History (4)

Changed 4 months ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

Main.log from PPC TRiger, Mac OS X 10.4.11

comment:1 Changed 4 months ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In 438a6937c81fd87db1fada16027ca024d8e0b2bf/macports-ports (master):

jdupes: Requires C11

Closes: #69282

comment:2 Changed 3 months ago by ballapete (Peter "Pete" Dyballa)

Resolution: fixed
Status: closedreopened

There is more work needed. I tried in the meantime to build jdupes configure.compiler=macports-gcc-7 and ran into this failure:

/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_jdupes/jdupes/work/compwrap/cc/opt/local/bin/gcc-mp-7 -Os -arch ppc -Wall -Wwrite-strings -Wcast-align -Wstrict-aliasing -Wstrict-prototypes -Wpointer-arith -Wundef -Wshadow -Wfloat-equal -Waggregate-return -Wcast-qual -Wswitch-default -Wswitch-enum -Wunreachable-code -Wformat=2 -std=gnu11 -D_FILE_OFFSET_BITS=64 -fstrict-aliasing -pipe -DNO_ATIME -DNDEBUG -Wextra -Wstrict-overflow=5 -Winit-self -Wl,-stack_size -Wl,0x1000000 -DNO_CLONEFILE=1 -DENABLE_DEDUPE  -I/opt/local/include  -c -o act_linkfiles.o act_linkfiles.c
act_linkfiles.c:31:12: fatal error: copyfile.h: No such file or directory
   #include <copyfile.h>
            ^~~~~~~~~~~~
compilation terminated.
gmake: *** [<builtin>: act_linkfiles.o] Error 1
gmake: 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/jdupes-1.27.3'

So legacy support is needed for Tiger (Leopard and later have this file).

comment:3 Changed 3 months ago by ballapete (Peter "Pete" Dyballa)

With line

PortGroup           legacysupport 1.1

before line

PortGroup           makefile 1.0

build jdupes configure.compiler=macports-gcc-7 was successful.

Note: See TracTickets for help on using tickets.