[Bug 737030] New: Build error with clang on OSX
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Sat Sep 20 09:39:56 PDT 2014
https://bugzilla.gnome.org/show_bug.cgi?id=737030
GStreamer | common | git
Summary: Build error with clang on OSX
Classification: Platform
Product: GStreamer
Version: git
OS/Version: Mac OS
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: common
AssignedTo: gstreamer-bugs at lists.freedesktop.org
ReportedBy: n770galaxy at gmail.com
QAContact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
I'm experiencing build errors in OSX like the following:
$ make V=1
/usr/bin/perl ./extract.pl testrtpool.c
../../../docs/manual/advanced-threads.xml
Extracting testrtpool.c block a from ../../../docs/manual/advanced-threads.xml
Extracting testrtpool.c block b from ../../../docs/manual/advanced-threads.xml
Extracting testrtpool.c block c from ../../../docs/manual/advanced-threads.xml
Writing testrtpool.c block a
Writing testrtpool.c block b
Writing testrtpool.c block c
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-am
gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../libs -I../../..
-I../../../libs -I../../.. -D_REENTRANT
-I/usr/local/Cellar/glib/2.40.0_1/include/glib-2.0
-I/usr/local/Cellar/glib/2.40.0_1/lib/glib-2.0/include
-I/usr/local/opt/gettext/include -DG_THREADS_MANDATORY -DG_DISABLE_DEPRECATED
-Wall -Wdeclaration-after-statement -Wvla -Wpointer-arith
-Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef
-Wwrite-strings -Wformat-nonliteral -Wformat-security -Wold-style-definition
-Winit-self -Wmissing-include-dirs -Waddress -Waggregate-return -Wno-multichar
-Wnested-externs -g -DGST_DISABLE_DEPRECATED -Werror -D_THREAD_SAFE -pthread
-g -O2 -MT testrtpool-testrtpool.o -MD -MP -MF .deps/testrtpool-testrtpool.Tpo
-c -o testrtpool-testrtpool.o `test -f 'testrtpool.c' || echo './'`testrtpool.c
mv -f .deps/testrtpool-testrtpool.Tpo .deps/testrtpool-testrtpool.Po
/bin/sh ../../../libtool --tag=CC --mode=link gcc -I../../../libs -I../../..
-I../../../libs -I../../.. -D_REENTRANT
-I/usr/local/Cellar/glib/2.40.0_1/include/glib-2.0
-I/usr/local/Cellar/glib/2.40.0_1/lib/glib-2.0/include
-I/usr/local/opt/gettext/include -DG_THREADS_MANDATORY -DG_DISABLE_DEPRECATED
-Wall -Wdeclaration-after-statement -Wvla -Wpointer-arith
-Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef
-Wwrite-strings -Wformat-nonliteral -Wformat-security -Wold-style-definition
-Winit-self -Wmissing-include-dirs -Waddress -Waggregate-return -Wno-multichar
-Wnested-externs -g -DGST_DISABLE_DEPRECATED -Werror -D_THREAD_SAFE -pthread
-g -O2 -o testrtpool testrtpool-testrtpool.o ../../../gst/libgstreamer-1.0.la
-L/usr/local/Cellar/glib/2.40.0_1/lib -L/usr/local/opt/gettext/lib
-lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -ldl
libtool: link: gcc -I../../../libs -I../../.. -I../../../libs -I../../..
-D_REENTRANT -I/usr/local/Cellar/glib/2.40.0_1/include/glib-2.0
-I/usr/local/Cellar/glib/2.40.0_1/lib/glib-2.0/include
-I/usr/local/opt/gettext/include -DG_THREADS_MANDATORY -DG_DISABLE_DEPRECATED
-Wall -Wdeclaration-after-statement -Wvla -Wpointer-arith
-Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef
-Wwrite-strings -Wformat-nonliteral -Wformat-security -Wold-style-definition
-Winit-self -Wmissing-include-dirs -Waddress -Waggregate-return -Wno-multichar
-Wnested-externs -g -DGST_DISABLE_DEPRECATED -Werror -D_THREAD_SAFE -pthread -g
-O2 -o .libs/testrtpool testrtpool-testrtpool.o
../../../gst/.libs/libgstreamer-1.0.dylib -L/usr/local/Cellar/glib/2.40.0_1/lib
-L/usr/local/opt/gettext/lib -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -ldl
-pthread
clang: error: argument unused during compilation: '-pthread'
clang: error: argument unused during compilation: '-pthread'
make[1]: *** [testrtpool] Error 1
make: *** [all] Error 2
I've tried to fix myself but I couldn't come up with the right fix.
Seems that the root cause is at darwin case in
http://cgit.freedesktop.org/gstreamer/gstreamer/tree/m4/ax_pthread.m4 which add
'-pthread'.
Some related info at http://savannah.gnu.org/patch/?8186 and
http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=history;f=m4/ax_pthread.m4
Maybe just our committed macro has to be updated.
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list