Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#60710 closed defect (fixed)

xxhashlib @0.7.3_2 does not build with gcc-4.2 because cc1: error: unrecognized command line option "-Wvla"

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version:
Keywords: leopard Cc: mps@…
Port: xxhashlib

Description

Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_devel_xxhash/xxhashlib/work/xxhash-0.7.3" && /usr/bin/make -w all CC="/usr/bin/gcc-4.2" CXX="/usr/bin/g++-4.2" OBJC="/usr/bin/gcc-4.2" OBJCXX="/usr/bin/g++-4.2" INSTALL="/usr/bin/install -c" 
DEBUG: system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_devel_xxhash/xxhashlib/work/xxhash-0.7.3" && /usr/bin/make -w all CC="/usr/bin/gcc-4.2" CXX="/usr/bin/g++-4.2" OBJC="/usr/bin/gcc-4.2" OBJCXX="/usr/bin/g++-4.2" INSTALL="/usr/bin/install -c" 
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_devel_xxhash/xxhashlib/work/Cyan4973-xxHash-d408e9b'
/usr/bin/gcc-4.2 -Os -arch ppc -Wall -Wextra -Wconversion -Wcast-qual -Wcast-align -Wshadow -Wstrict-aliasing=1 -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes -Wundef -Wpointer-arith -Wformat-security -Wvla -Wformat=2 -Winit-self -Wfloat-equal -Wwrite-strings -Wredundant-decls -Wstrict-overflow=2 -I/opt/local/include  -c xxhash.c -o xxhash.o
cc1: error: unrecognized command line option "-Wvla"
make: *** [xxhash.o] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_devel_xxhash/xxhashlib/work/Cyan4973-xxHash-d408e9b'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_devel_xxhash/xxhashlib/work/xxhash-0.7.3" && /usr/bin/make -w all CC="/usr/bin/gcc-4.2" CXX="/usr/bin/g++-4.2" OBJC="/usr/bin/gcc-4.2" OBJCXX="/usr/bin/g++-4.2" INSTALL="/usr/bin/install -c" 
Exit code: 2
Error: Failed to build xxhashlib: command execution failed

Attachments (2)

main.log (8.9 KB) - added by ballapete (Peter "Pete" Dyballa) 4 years ago.
Main.log from PPC Leopard
Makefile.patch (613 bytes) - added by ballapete (Peter "Pete" Dyballa) 4 years ago.
Patch to remove '-Wvla'

Download all attachments as: .zip

Change History (7)

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

Attachment: main.log added

Main.log from PPC Leopard

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

This patch removes the faulty -Wvla option from Makefile.

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

Attachment: Makefile.patch added

Patch to remove '-Wvla'

comment:2 Changed 4 years ago by Schamschula (Marius Schamschula)

Owner: set to Schamschula
Resolution: fixed
Status: newclosed

In e836eb789e8c26c06deb4085eeb96d60840697ff/macports-ports (master):

xxhash: fix Leopard build issue

Closes: #60710

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

The same failure happens on PPC Tiger, Mac OS X 10.4.11. And it has the same cure.

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

also happens any time gcc-4.2 (at least) tries to build this on any system. Ideally we might test for that compiler I guess. Web says gcc-4.8 accepts this, not sure where cutoff is between them.

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

Summary: xxhashlib @0.7.3_2 does not build on PPC Leopard, Mac OS X 10.5.8., because cc1: error: unrecognized command line option "-Wvla"xxhashlib @0.7.3_2 does not build with gcc-4.2 because cc1: error: unrecognized command line option "-Wvla"
Note: See TracTickets for help on using tickets.