gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] Bernd's CheckFunc Fix


From: Bernd Zeimetz
Subject: Re: [gpsd-dev] Bernd's CheckFunc Fix
Date: Fri, 6 Jan 2017 23:08:36 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0


On 01/04/2017 02:56 AM, Fred Wright wrote:
> I just did in the interests of expediency, but as yet there's no evidence
> that anyone other than Bernd sees the problem that the extra 50 lines of
> code are trying to fix.

... right now it fails to build while including compiler.h.

Please, test stuff in Debian unstable.
Or maybe in the latest not-yet-released fedora.


I might be able to hack a script to mirror the repository on github so
I can use travis-ci to build it on every commit....
Sounds like its necessary :(

I won't touch scons anymore, I've wasted too much time of my life
to fix this mess.

scons: Reading SConscript files ...
Checking if compiler accepts -pthread... yes
Checking whether the C++ compiler works... yes
Checking pkg-config for ncurses... yes
Checking pkg-config for tinfo... yes
Checking pkg-config for libusb-1.0... yes
Checking for C library librt... yes
Checking pkg-config for dbus-1... yes
Checking pkg-config for bluez... yes
Checking for C type in_port_t... yes
Checking whether SUN_LEN is declared... yes
Checking for C header file linux/can.h... yes
You have kernel CANbus available.
Checking if compiler is C11... yes
Checking if compiler supplies __STDC_NO_ATOMICS__... no
Checking for C header file stdatomic.h... yes
Checking if compiler supplies __ORDER_BIG_ENDIAN__... yes
Checking if compiler supplies __ORDER_LITTLE_ENDIAN__... yes
Checking if compiler supplies __BYTE_ORDER__... yes
Your compiler has built-in endianness support.
Checking for C function daemon()... yes
Checking for C function strlcpy()... no
Checking for C function strlcat()... no
Checking for C function clock_gettime()... yes
Checking for C function strptime()... yes
Checking for C function gmtime_r()... yes
Checking for C header file sys/timepps.h... yes
Checking if sys/ioctl.h supplies TIOCMIWAIT... yes
Checking for C library libbluetooth... yes
Checking for C library libdbus-1... yes
Checking that xsltproc can make man pages... yes
Checking pkg-config for QtNetwork... yes
Checking if compiler accepts -Wextra... yes
Checking if compiler accepts -Wall... yes
Checking if compiler accepts -Wno-uninitialized... yes
Checking if compiler accepts -Wno-missing-field-initializers... yes
Checking if compiler accepts -Wcast-align... yes
Checking if compiler accepts -Wmissing-declarations... yes
Checking if compiler accepts -Wmissing-prototypes... yes
Checking if compiler accepts -Wstrict-prototypes... yes
Checking if compiler accepts -Wpointer-arith... yes
Checking if compiler accepts -Wreturn-type... yes
Checking whether python program exists.../usr/bin/python
Obtaining Python exe path... /usr/bin/python
Obtaining Python lib dir... /usr/lib/python2.7/dist-packages
Obtaining Python config vars... ok
All configuration flags are defaulted.
scons: done reading SConscript files.
scons: Building targets ...
rm -f ais_json.i && /usr/bin/python jsongen.py --ais --target=parser > 
ais_json.i && chmod a-w ais_json.i
Creating 'gpsd_config.h'
gcc -o ais_json.os -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 
-pthread -fPIC -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include ais_json.c
gcc -o bits.os -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 
-pthread -fPIC -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include bits.c
gcc -o clock_gettime.os -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 
-pthread -fPIC -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include clock_gettime.c
gcc -o daemon.os -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 
-pthread -fPIC -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include daemon.c
gcc -o gpsutils.os -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 
-pthread -fPIC -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include gpsutils.c
gcc -o gpsdclient.os -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 
-pthread -fPIC -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include gpsdclient.c
Creating 'gpsd.h'
rm -f gps_maskdump.c && /usr/bin/python maskaudit.py -c . > gps_maskdump.c && 
chmod a-w gps_maskdump.c
gcc -o gps_maskdump.os -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 
-pthread -fPIC -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include gps_maskdump.c
gcc -o hex.os -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 
-pthread -fPIC -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include hex.c
gcc -o json.os -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 
-pthread -fPIC -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include json.c
gcc -o libgps_core.os -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 
-pthread -fPIC -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include libgps_core.c
gcc -o libgps_dbus.os -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 
-pthread -fPIC -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include libgps_dbus.c
gcc -o libgps_json.os -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 
-pthread -fPIC -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include libgps_json.c
gcc -o libgps_shm.os -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 
-pthread -fPIC -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include libgps_shm.c
gcc -o libgps_sock.os -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 
-pthread -fPIC -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include libgps_sock.c
gcc -o netlib.os -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 
-pthread -fPIC -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include netlib.c
gcc -o ntpshmread.os -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 
-pthread -fPIC -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include ntpshmread.c
gcc -o rtcm2_json.os -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 
-pthread -fPIC -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include rtcm2_json.c
gcc -o rtcm3_json.os -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 
-pthread -fPIC -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include rtcm3_json.c
gcc -o shared_json.os -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 
-pthread -fPIC -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include shared_json.c
gcc -o strl.os -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 
-pthread -fPIC -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include strl.c
g++ -o libgpsmm.os -c -O2 -pthread -fPIC -DHAVE_SYS_TIMEPPS_H=1 
-I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include 
libgpsmm.cpp
g++ -o libgps.so.23.0.0 -pthread -shared -Wl,-Bsymbolic 
-Wl,-soname=libgps.so.23 ais_json.os bits.os clock_gettime.os daemon.os 
gpsutils.os gpsdclient.os gps_maskdump.os hex.os json.os libgps_core.os 
libgps_dbus.os libgps_json.os libgps_shm.os libgps_sock.os netlib.os 
ntpshmread.os rtcm2_json.os rtcm3_json.os shared_json.os strl.os libgpsmm.os 
-L. -lrt -ldbus-1 -lbluetooth -ldbus-1 -lrt
Create symlinks for: 'libgps.so.23.0.0': 'libgps.so.23'->'libgps.so.23.0.0', 
'libgps.so'->'libgps.so.23.0.0'
gcc -o qt-ais_json.os -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wpointer-arith -Wreturn-type -O2 -pthread -fPIC -DHAVE_SYS_TIMEPPS_H=1 
-DUSE_QT -DQT_SHARED -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/qt4 
-I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtCore ais_json.c
g++ -o qt-bits.os -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wpointer-arith -Wreturn-type -O2 -pthread -fPIC -DHAVE_SYS_TIMEPPS_H=1 
-DUSE_QT -DQT_SHARED -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/qt4 
-I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtCore bits.c
g++ -o qt-clock_gettime.os -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wpointer-arith -Wreturn-type -O2 -pthread -fPIC -DHAVE_SYS_TIMEPPS_H=1 
-DUSE_QT -DQT_SHARED -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/qt4 
-I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtCore clock_gettime.c
In file included from clock_gettime.c:10:0:
compiler.h: In function 'void memory_barrier()':
compiler.h:93:25: error: 'memory_order_seq_cst' was not declared in this scope
     atomic_thread_fence(memory_order_seq_cst);
                         ^~~~~~~~~~~~~~~~~~~~
compiler.h:93:25: note: suggested alternative:
In file included from /usr/include/c++/6/atomic:41:0,
                 from compiler.h:75,
                 from clock_gettime.c:10:
/usr/include/c++/6/bits/atomic_base.h:62:7: note:   'memory_order_seq_cst'
       memory_order_seq_cst
       ^~~~~~~~~~~~~~~~~~~~
In file included from clock_gettime.c:10:0:
compiler.h:93:45: error: 'atomic_thread_fence' was not declared in this scope
     atomic_thread_fence(memory_order_seq_cst);
                                             ^
compiler.h:93:45: note: suggested alternative:
In file included from /usr/include/c++/6/atomic:41:0,
                 from compiler.h:75,
                 from clock_gettime.c:10:
/usr/include/c++/6/bits/atomic_base.h:101:3: note:   'std::atomic_thread_fence'
   atomic_thread_fence(memory_order __m) noexcept
   ^~~~~~~~~~~~~~~~~~~
scons: *** [qt-clock_gettime.os] Error 1
scons: building terminated because of errors.
scons  10.93s user 0.88s system 92% cpu 12.745 total




config.log is attached.



-- 
 Bernd Zeimetz                            Debian GNU/Linux Developer
 http://bzed.de                                http://www.debian.org
 GPG Fingerprint: ECA1 E3F2 8E11 2432 D485  DD95 EB36 171A 6FF9 435F

Attachment: config.log
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]