Date: Tue, 21 Oct 2008 06:54:48 GMT From: "Scot W. Hetzel" <swhetzel@gmaill.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/128261: [patch] audio/pulseaudio: -Wmissing-include causeing compile failure Message-ID: <200810210654.m9L6smCZ005399@www.freebsd.org> Resent-Message-ID: <200810210700.m9L705J7093361@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 128261 >Category: ports >Synopsis: [patch] audio/pulseaudio: -Wmissing-include causeing compile failure >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 21 07:00:04 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Scot W. Hetzel >Release: FreeBSD 8.0-CURRENT >Organization: >Environment: FreeBSD hp010 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Mon Oct 20 15:46:45 CDT 2008 root@hp010:/usr/obj/usr/src/8x-zfs/sys/DV8135NR amd64 >Description: While trying to upgrade audio/pulseaudio to latest version, cc would cause: cc1: internal compiler error: Segmentation fault: 11 This error is being caused by -Wmissing-include-dirs. cc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I../src -I../src/modules -I../src/modules/rtp -I../src/modules/gconf -I../src/modules/bluetooth -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -I/usr/local/include -I/usr/local/include -DPA_DLSEARCHPATH=\"/usr/local/lib/pulse-0.9/modules/\" -DPA_DEFAULT_CONFIG_DIR=\"/usr/local/etc/pulse\" -DPA_BINARY=\"/usr/local/bin/pulseaudio\" -DPA_SYSTEM_RUNTIME_PATH=\"/var/run/pulse\" -DPA_SYSTEM_CONFIG_PATH=\"/var/lib/pulse\" -DPA_SYSTEM_STATE_PATH=\"/var/lib/pulse\" -DAO_REQUIRE_CAS -DPULSE_LOCALEDIR=\"/usr/local/share/locale\" -DPA_MACHINE_ID=\"/var/lib/dbus/machine-id\" "-DDEBUG_TRAP=__asm__(\"int \$3\")" -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -O2 -pipe -march=k8 -fno-strict-aliasing -Wall -W -Wextra -pedantic -pipe -Wmissing-include-dirs -Wno-long-long -Wno-overlength-strings -Wconversion -Wundef -Wformat -Wpacked -Wformat-security -Wformat-nonliteral -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wcast-align -Wwrite-strings -Wno-unused-parameter -ffast-math -MT libpulse_mainloop_glib_la-glib-mainloop.lo -MD -MP -MF .deps/libpulse_mainloop_glib_la-glib-mainloop.Tpo -c pulse/glib-mainloop.c -fPIC -DPIC -o .libs/libpulse_mainloop_glib_la-glib-mainloop.o cc1: internal compiler error: Segmentation fault: 11 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. gmake[3]: *** [libpulse_mainloop_glib_la-glib-mainloop.lo] Error 1 gmake[3]: Leaving directory `/usr/obj/usr/ports/audio/pulseaudio/work/pulseaudio-0.9.13/src' gmake[2]: *** [all] Error 2 gmake[2]: Leaving directory `/usr/obj/usr/ports/audio/pulseaudio/work/pulseaudio-0.9.13/src' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/obj/usr/ports/audio/pulseaudio/work/pulseaudio-0.9.13' gmake: *** [all] Error 2 *** Error code 2 Stop in /usr/ports/audio/pulseaudio. *** Error code 1 Stop in /usr/ports/audio/pulseaudio. Initial message to -CURRENT: http://lists.freebsd.org/pipermail/freebsd-current/2008-October/089273.html Suggested patch to contrib/gcclibs/libcpp/errors.c: http://lists.freebsd.org/pipermail/freebsd-current/2008-October/089338.html Confirmation that the patch solves the problem: http://lists.freebsd.org/pipermail/freebsd-current/2008-October/089388.html Message stating that the fix to contrib/gcclibs/libcpp/errors.c can't be applied to the base system gcc until a decision to move to the GPL3 sources is made: http://lists.freebsd.org/pipermail/freebsd-current/2008-October/089390.html >How-To-Repeat: Try to compile audio/pulseaudio or use the following test application: #include <stdlib.h> int main () { ; return 0; } and compile it using: cc -I/nonexistent -lstdc++ -Wmissing-include-dirs test.cpp >Fix: The fix for audio/pulseaudio is to remove -Wmissing-include-dirs from DESIRED_FLAGS in the configure script. Patch attached with submission follows: Index: files/patch-configure =================================================================== RCS file: /home/ncvs/ports/audio/pulseaudio/files/patch-configure,v retrieving revision 1.3 diff -u -r1.3 patch-configure --- files/patch-configure 26 Jul 2008 21:29:53 -0000 1.3 +++ files/patch-configure 13 Oct 2008 13:01:27 -0000 @@ -1,6 +1,15 @@ ---- configure.orig 2008-07-26 15:15:12.000000000 -0400 -+++ configure 2008-07-26 15:15:35.000000000 -0400 -@@ -25321,6 +25321,7 @@ $as_echo_n "checking whether to check fo +--- configure.orig 2008-10-13 07:41:26.000000000 -0500 ++++ configure 2008-10-13 08:00:35.000000000 -0500 +@@ -5470,7 +5470,7 @@ + { (exit 1); exit 1; }; } + fi + +-DESIRED_FLAGS="-Wall -W -Wextra -pedantic -pipe -Wno-long-long -Wvla -Wno-overlength-strings -Wconversion -Wundef -Wformat -Wlogical-op -Wpacked -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wcast-align -Wwrite-strings -Wno-unused-parameter -ffast-math" ++DESIRED_FLAGS="-Wall -W -Wextra -pedantic -pipe -Wno-long-long -Wvla -Wno-overlength-strings -Wconversion -Wundef -Wformat -Wlogical-op -Wpacked -Wformat-security -Wformat-nonliteral -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wcast-align -Wwrite-strings -Wno-unused-parameter -ffast-math" + + for flag in $DESIRED_FLAGS ; do + +@@ -25915,6 +25915,7 @@ check_inconsistencies=yes case "${host_cpu}-${host_os}" in *-darwin*) check_inconsistencies=no ;; @@ -8,7 +17,7 @@ esac if test x"$GCC" != xyes -o "x$check_inconsistencies" != xyes ; then { $as_echo "$as_me:$LINENO: result: no" >&5 -@@ -32654,9 +32655,9 @@ _ACEOF +@@ -35682,9 +35683,9 @@ else @@ -21,7 +30,7 @@ fi -@@ -32664,9 +32665,9 @@ done +@@ -35692,9 +35693,9 @@ # Win32 does not need the lib and breaks horribly if we try to include it >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810210654.m9L6smCZ005399>