[Bug 218400] some ports build error on system headers

[email protected]
Newsgroups gmane.os.freebsd.devel.threading
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218400

            Bug ID: 218400
           Summary: some ports build error on system headers
           Product: Base System
           Version: 11.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: threads
          Assignee: [email protected]
          Reporter: [email protected]

cd /usr/ports/x11-toolkits/gtk30
make
...
libtool: link: (cd ".libs" && rm -f "libgdk-3.so.0" && ln -s
"libgdk-3.so.0.1800.8" "libgdk-3.so.0")
libtool: link: (cd ".libs" && rm -f "libgdk-3.so" && ln -s
"libgdk-3.so.0.1800.8" "libgdk-3.so")
libtool: link: ( cd ".libs" && rm -f "libgdk-3.la" && ln -s "../libgdk-3.la"
"libgdk-3.la" )
CPPFLAGS="-I/usr/local/include -fno-omit-frame-pointer -I/usr/local/include
-D_THREAD_SAFE -pthread " CFLAGS="-O2 -msse2 -msse3 -mssse3 -msse4.1 -pipe 
-fstack-protector -fno-strict-aliasing -Wall" LDFLAGS="-fstack-protector"
CC="cc" PKG_CONFIG="pkgconf" DLLTOOL="false" CC="cc"
/usr/local/bin/g-ir-scanner  --add-include-path=../gdk --warn-all
--namespace=Gdk --nsversion=3.0 --libtool="/bin/sh ../libtool" 
--include=Gio-2.0 --include=GdkPixbuf-2.0 --include=Pango-1.0
--include=cairo-1.0 --pkg-export=gdk-3.0  --library=libgdk-3.la
--c-include="gdk/gdk.h" --cflags-begin -DG_LOG_DOMAIN=\"Gdk\" -DGDK_COMPILATION
-I.. -I../gdk -I.. -DG_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS
-DGLIB_MIN_REQUIRED_VERSION=GLIB_VERSION_2_44
-DGLIB_MAX_ALLOWED_VERSION=GLIB_VERSION_2_46 -I/usr/local/include/pango-1.0
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/include -I/usr/local/include/cairo -I/usr/local/include/pixman-1
-I/usr/local/include/freetype2 -I/usr/local/include/libpng16
-I/usr/local/include/libdrm -pthread -D_THREAD_SAFE -pthread -D_THREAD_SAFE
-pthread -D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread -D_THREAD_SAFE
-pthread -D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread -D_THREAD_SAFE
-pthread -D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread -D_THREAD_SAFE
-pthread -D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread -D_THREAD_SAFE
-pthread -D_THREAD_SAFE -pthread -I/usr/local/include/harfbuzz
-I/usr/local/include/gdk-pixbuf-2.0 -pthread -D_THREAD_SAFE -pthread
-D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread
-D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread
-D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread
-D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread
-D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread
-D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread
-D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread
-D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread
-D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread
-D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread
-D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread
-D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread
-I/usr/local/include/gio-unix-2.0/ -pthread -D_THREAD_SAFE -pthread
-D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread
-D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread
-D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread
-D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread
-D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread -D_THREAD_SAFE -pthread
-D_THREAD_SAFE -pthread    --cflags-end  gdk.h gdk-autocleanup.h
gdkapplaunchcontext.h gdkcairo.h gdkcursor.h gdkdevice.h gdkdevicemanager.h
gdkdisplay.h gdkdisplaymanager.h gdkdnd.h gdkevents.h gdkframetimings.h
gdkglcontext.h gdkkeys.h gdkkeysyms.h gdkmain.h gdkpango.h gdkframeclock.h
gdkpixbuf.h gdkprivate.h gdkproperty.h gdkrectangle.h gdkrgba.h gdkscreen.h
gdkselection.h gdktestutils.h gdkthreads.h gdktypes.h gdkvisual.h gdkwindow.h
deprecated/gdkcolor.h deprecated/gdkcolor.c gdk-private.c gdk.c
gdkapplaunchcontext.c gdkcairo.c gdkcursor.c gdkdeprecated.c gdkdevice.c
gdkdevicemanager.c gdkdisplay.c gdkdisplaymanager.c gdkdnd.c gdkevents.c
gdkframetimings.c gdkgl.c gdkglcontext.c gdkglobals.c gdkkeys.c gdkkeyuni.c
gdkoffscreenwindow.c gdkframeclock.c gdkframeclockidle.c gdkpango.c
gdkpixbuf-drawable.c gdkproperty.c gdkrectangle.c gdkrgba.c gdkscreen.c
gdkselection.c gdkvisual.c gdkwindow.c gdkwindowimpl.c gdkenumtypes.c
gdkenumtypes.h libgdk-3.la Makefile --output Gdk-3.0.gir
/usr/include/signal.h:90: syntax error, unexpected RESTRICT, expecting ')' or
',' in 'int sigwait(const sigset_t * _Nonnull restrict,' at 'restrict'
/usr/include/signal.h:91: syntax error, unexpected ')', expecting identifier or
'(' or '*' or ';' in '     int * _Nonnull restrict);' at ')'
/usr/include/signal.h:110: syntax error, unexpected identifier, expecting ')'
in 'void (* _Nullable sigset(int, void (* _Nullable)(int)))(int);' at 'sigset'
/usr/include/signal.h:110: syntax error, unexpected ')', expecting ',' or ';'
in 'void (* _Nullable sigset(int, void (* _Nullable)(int)))(int);' at ')'
/usr/include/pthread.h:154: syntax error, unexpected RESTRICT, expecting ')' or
',' in '      const pthread_attr_t * _Nonnull restrict,' at 'restrict'
/usr/include/pthread.h:155: syntax error, unexpected ',', expecting identifier
or '(' or '*' or ';' in '      void ** _Nonnull restrict,' at ','
/usr/include/pthread.h:156: syntax error, unexpected ')', expecting identifier
or '(' or '*' or ';' in '      size_t * _Nonnull restrict);' at ')'
/usr/include/pthread.h:210: syntax error, unexpected identifier, expecting ')'
or ',' in '      pthread_mutex_t * _Nonnull __mutex,' at '__mutex'
/usr/include/pthread.h:211: syntax error, unexpected ')', expecting ',' or ';'
in '      const struct timespec * _Nonnull)' at ')'
/usr/include/pthread.h:214: syntax error, unexpected identifier, expecting ')'
or ',' in '      pthread_mutex_t * _Nonnull __mutex)' at '__mutex'
/usr/include/pthread.h:236: syntax error, unexpected identifier, expecting ')'
or ',' in 'int pthread_mutex_consistent(pthread_mutex_t * _Nonnull __mutex)' at
'__mutex'
/usr/include/pthread.h:238: syntax error, unexpected identifier, expecting ')'
or ',' in 'int pthread_mutex_destroy(pthread_mutex_t * _Nonnull __mutex)' at
'__mutex'
/usr/include/pthread.h:240: syntax error, unexpected identifier, expecting ')'
or ',' in 'int pthread_mutex_init(pthread_mutex_t * _Nonnull __mutex,' at
'__mutex'
/usr/include/pthread.h:241: syntax error, unexpected ')', expecting identifier
or '(' in '      const pthread_mutexattr_t *)' at ')'
/usr/include/pthread.h:243: syntax error, unexpected identifier, expecting ')'
or ',' in 'int pthread_mutex_lock(pthread_mutex_t * _Nonnull __mutex)' at
'__mutex'
/usr/include/pthread.h:245: syntax error, unexpected identifier, expecting ')'
or ',' in 'int pthread_mutex_trylock(pthread_mutex_t * _Nonnull __mutex)' at
'__mutex'
/usr/include/pthread.h:247: syntax error, unexpected identifier, expecting ')'
or ',' in 'int pthread_mutex_timedlock(pthread_mutex_t * _Nonnull __mutex,' at
'__mutex'
/usr/include/pthread.h:248: syntax error, unexpected ')', expecting ',' or ';'
in '      const struct timespec * _Nonnull)' at ')'
/usr/include/pthread.h:250: syntax error, unexpected identifier, expecting ')'
or ',' in 'int pthread_mutex_unlock(pthread_mutex_t * _Nonnull __mutex)' at
'__mutex'
/usr/include/pthread.h:254: syntax error, unexpected identifier, expecting ')'
or ',' in 'int pthread_rwlock_destroy(pthread_rwlock_t * _Nonnull __rwlock)' at
'__rwlock'
/usr/include/pthread.h:256: syntax error, unexpected identifier, expecting ')'
or ',' in 'int pthread_rwlock_init(pthread_rwlock_t * _Nonnull __rwlock,' at
'__rwlock'
/usr/include/pthread.h:257: syntax error, unexpected ')', expecting identifier
or '(' in '      const pthread_rwlockattr_t *)' at ')'
/usr/include/pthread.h:259: syntax error, unexpected identifier, expecting ')'
or ',' in 'int pthread_rwlock_rdlock(pthread_rwlock_t * _Nonnull __rwlock)' at
'__rwlock'
/usr/include/pthread.h:261: syntax error, unexpected identifier, expecting ')'
or ',' in 'int pthread_rwlock_timedrdlock(pthread_rwlock_t * _Nonnull
__rwlock,' at '__rwlock'
/usr/include/pthread.h:262: syntax error, unexpected ')', expecting ',' or ';'
in '      const struct timespec * _Nonnull)' at ')'
/usr/include/pthread.h:264: syntax error, unexpected identifier, expecting ')'
or ',' in 'int pthread_rwlock_timedwrlock(pthread_rwlock_t * _Nonnull
__rwlock,' at '__rwlock'
/usr/include/pthread.h:265: syntax error, unexpected ')', expecting ',' or ';'
in '      const struct timespec * _Nonnull)' at ')'
/usr/include/pthread.h:267: syntax error, unexpected identifier, expecting ')'
or ',' in 'int pthread_rwlock_tryrdlock(pthread_rwlock_t * _Nonnull __rwlock)'
at '__rwlock'
/usr/include/pthread.h:269: syntax error, unexpected identifier, expecting ')'
or ',' in 'int pthread_rwlock_trywrlock(pthread_rwlock_t * _Nonnull __rwlock)'
at '__rwlock'
/usr/include/pthread.h:271: syntax error, unexpected identifier, expecting ')'
or ',' in 'int pthread_rwlock_unlock(pthread_rwlock_t * _Nonnull __rwlock)' at
'__rwlock'
/usr/include/pthread.h:273: syntax error, unexpected identifier, expecting ')'
or ',' in 'int pthread_rwlock_wrlock(pthread_rwlock_t * _Nonnull __rwlock)' at
'__rwlock'
/usr/include/pthread.h:288: syntax error, unexpected identifier, expecting ')'
or ',' in 'int pthread_spin_init(pthread_spinlock_t * _Nonnull __spin, int)' at
'__spin'
/usr/include/pthread.h:290: syntax error, unexpected identifier, expecting ')'
or ',' in 'int pthread_spin_destroy(pthread_spinlock_t * _Nonnull __spin)' at
'__spin'
/usr/include/pthread.h:292: syntax error, unexpected identifier, expecting ')'
or ',' in 'int pthread_spin_lock(pthread_spinlock_t * _Nonnull __spin)' at
'__spin'
/usr/include/pthread.h:294: syntax error, unexpected identifier, expecting ')'
or ',' in 'int pthread_spin_trylock(pthread_spinlock_t * _Nonnull __spin)' at
'__spin'
/usr/include/pthread.h:296: syntax error, unexpected identifier, expecting ')'
or ',' in 'int pthread_spin_unlock(pthread_spinlock_t * _Nonnull __spin)' at
'__spin'
/usr/include/pthread.h:318: syntax error, unexpected RESTRICT, expecting ')' or
',' in '      pthread_mutexattr_t * _Nonnull restrict,' at 'restrict'
/usr/include/pthread.h:319: syntax error, unexpected ')', expecting identifier
or '(' or '*' or ';' in '      int * _Nonnull restrict);' at ')'
/usr/include/stdio.h:128: syntax error, unexpected identifier, expecting ')' in
' int (* _Nullable _close)(void *);' at '_close'
/usr/include/stdio.h:129: syntax error, unexpected identifier, expecting ')' in
' int (* _Nullable _read)(void *, char *, int);' at '_read'
/usr/include/stdio.h:130: syntax error, unexpected identifier, expecting ')' in
' fpos_t (* _Nullable _seek)(void *, fpos_t, int);' at '_seek'
/usr/include/stdio.h:131: syntax error, unexpected identifier, expecting ')' in
' int (* _Nullable _write)(void *, const char *, int);' at '_write'
/usr/include/stdio.h:131: syntax error, unexpected ',', expecting identifier or
'(' in ' int (* _Nullable _write)(void *, const char *, int);' at ','
/usr/include/stdio.h:155: syntax error, unexpected '}' in '};' at '}'
g-ir-scanner: link: /bin/sh ../libtool --mode=link --tag=CC cc -o
/tmp/ports/usr/ports/x11-toolkits/gtk30/work/gtk+-3.18.8/gdk/tmp-introspectqOQzTu/Gdk-3.0
-export-dynamic -I/usr/local/include -fno-omit-frame-pointer
-I/usr/local/include -D_THREAD_SAFE -pthread -O2 -msse2 -msse3 -mssse3 -msse4.1
-pipe -fstack-protector -fno-strict-aliasing -Wall -fstack-protector
tmp-introspectqOQzTu/tmp/ports/usr/ports/x11-toolkits/gtk30/work/gtk+-3.18.8/gdk/tmp-introspectqOQzTu/Gdk-3.0.o
-L. libgdk-3.la -L/usr/local/lib -lgio-2.0 -lgobject-2.0 -Wl,--export-dynamic
-lgmodule-2.0 -pthread -lglib-2.0 -lintl
...


build doe not fail, but some applications crash in different cases.
Crashes starts not so long in few different locations.

-pthread -D_THREAD_SAFE should not repeat many times, and somthing fail on
RESTRICT keyword.
I see few different ports that generates same output on build.
I suspect this happen after upgrade system and system llvm to 4.0.

If I m right then some/many ports may be affected.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-threads
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.