#64779 closed defect (fixed)
FLAC @1.3.4 fails to build on Leopard (both for ppc32 and ppc64)
Reported by: | barracuda156 | Owned by: | evanmiller (Evan Miller) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.1 |
Keywords: | powerpc, leopard, ppc64 | Cc: | |
Port: | flac |
Description
libtool: compile: /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I../.. -I../.. -I./include -I../../include -I/opt/local/include -D_FORTIFY_SOURCE=2 -DFLAC__USE_VISIBILITY_ATTR -faltivec -I/opt/local/include -pipe -Os -std=gnu89 -arch ppc64 -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wnested-externs -Wshadow -Wundef -Wmissing-declarations -Winline -Wdeclaration-after-statement -fvisibility=hidden -fgnu89-inline -msse2 -fstack-protector-strong -MT cpu.lo -MD -MP -MF .deps/cpu.Tpo -c cpu.c -fno-common -DPIC -o .libs/cpu.o cc1: error: unrecognized command line option "-fstack-protector-strong" cc1: error: unrecognized command line option "-fstack-protector-strong" cc1: error: unrecognized command line option "-fstack-protector-strong" cc1: error: unrecognized command line option "-fstack-protector-strong" make[4]: *** [bitwriter.lo] Error 1 make[4]: *** Waiting for unfinished jobs.... make[4]: *** [bitmath.lo] Error 1 make[4]: *** [bitreader.lo] Error 1 make[4]: *** [cpu.lo] Error 1 make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_flac/flac/work/flac-1.3.4/src/libFLAC' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_flac/flac/work/flac-1.3.4/src/libFLAC' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_flac/flac/work/flac-1.3.4/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_flac/flac/work/flac-1.3.4' make: *** [all] Error 2 make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_flac/flac/work/flac-1.3.4' Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_flac/flac/work/flac-1.3.4" && /usr/bin/make -j4 -w all OBJ_FORMAT=macho Exit code: 2 Error: Failed to build flac: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_flac/flac/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: Processing of port flac failed
Attachments (3)
Change History (9)
Changed 3 years ago by barracuda156
comment:1 Changed 3 years ago by barracuda156
Changed 3 years ago by barracuda156
Attachment: | main_ppc32_Leo.log added |
---|
Changed 3 years ago by barracuda156
Attachment: | config_ppc32_Leo.log added |
---|
comment:2 Changed 3 years ago by barracuda156
Summary: | FLAC @1.3.4 fails to build for ppc64 on Leopard → FLAC @1.3.4 fails to build on Leopard (both for ppc32 and ppc64) |
---|
comment:3 follow-up: 4 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
config.log says:
configure:22275: checking if /usr/bin/gcc-4.2 supports stack smash protection configure:22293: /usr/bin/gcc-4.2 -o conftest -fstack-protector-strong -I/opt/local/include -D_FORTIFY_SOURCE=2 -DFLAC__USE_VISIBILITY_ATTR -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c >&5 cc1: error: unrecognized command line option "-fstack-protector-strong" configure:22293: $? = 1 ... configure:22299: result: no
configure:22313: checking if /usr/bin/g++-4.2 supports stack smash protection configure:22331: /usr/bin/g++-4.2 -o conftest -pipe -Os -arch ppc -Wall -Wextra -Wcast-align -Wshadow -Wwrite-strings -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Wsign-promo -Wundef -Weffc++ -fvisibility=hidden -I/opt/local/include -D_FORTIFY_SOURCE=2 -DFLAC__USE_VISIBILITY_ATTR -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.cpp >&5 conftest.cpp:45:1: warning: "__STDC_NO_VLA__" redefined conftest.cpp:44:1: warning: this is the location of the previous definition configure:22331: $? = 0 configure:22333: result: yes
main.log says:
:info:configure checking if /usr/bin/gcc-4.2 supports stack smash protection... no :info:configure checking if /usr/bin/g++-4.2 supports stack smash protection... yes
:info:configure Stack protector : ........................ yes
So the build has decided to use the stack protector flag with your C compiler even though the configure script determined that your C compiler doesn't support it. This is clearly an upstream bug that should be reported to the flac developers for them to fix.
comment:4 Changed 3 years ago by barracuda156
Replying to ryandesign:
So the build has decided to use the stack protector flag with your C compiler even though the configure script determined that your C compiler doesn't support it. This is clearly an upstream bug that should be reported to the flac developers for them to fix.
Thank you! I will do that.
UPD. Opened ticket here: https://github.com/xiph/flac/issues/303
comment:5 Changed 3 years ago by evanmiller (Evan Miller)
Owner: | set to evanmiller |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:6 Changed 3 years ago by evanmiller (Evan Miller)
Note: See
TracTickets for help on using
tickets.
In fact it fails even for ppc: