gpsd-users
[Top][All Lists]
Advanced

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

[cross compiling gpsd for ARM] packet.c x86_64-linux-gnu-gcc: not found


From: Eddie Sutton
Subject: [cross compiling gpsd for ARM] packet.c x86_64-linux-gnu-gcc: not found ?
Date: Wed, 22 Apr 2020 02:41:50 +0000

 At the start, it looks like everything is building fine using arm-poky-linux-gnueabi-gcc to target embedded Linux on ARM.

The second time it starts to build packet.c ( building packet_ffi_extension? ), the build switches to the host's native compiler x86_64-linux-gnu-gcc which while installed in the build host, cannot be found in the cross build environment.

I cannot undersatnd why the build switches to using the host's native compiler x86_64-linux-gnu-gcc instead of continuing to use arm-poky-linux-gnueabi-gcc.  I did not see any obvious work-arounds in the SConstruct file.

Any tips or suggestions are much appreciated.

-Ed



bitbake gpsd

DEBUG: Executing shell function do_compile
scons: Reading SConscript files ...
This system is: linux2
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 for C library librt... yes
Checking for C library libthr... no
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 header file arpa/inet.h... yes
Checking for C header file netdb.h... yes
Checking for C header file netinet/in.h... yes
Checking for C header file netinet/ip.h... yes
Checking for C header file sys/socket.h... yes
Checking for C header file sys/un.h... yes
Checking for C header file syslog.h... yes
Checking for C header file termios.h... yes
Checking for C header file winsock2.h... no
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 function inet_ntop()... yes
Checking for C function fcntl()... yes
Checking for C function fork()... 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
Build of man and HTML documentation is disabled.
Checking pkg-config for Qt5Network... yes
Checking if compiler accepts -Wall... yes
Checking if compiler accepts -Wcast-align... yes
Checking if compiler accepts -Wextra... yes
Checking if compiler accepts -Wimplicit-fallthrough... yes
Checking if compiler accepts -Wmissing-declarations... yes
Checking if compiler accepts -Wmissing-prototypes... yes
Checking if compiler accepts -Wno-missing-field-initializers... yes
Checking if compiler accepts -Wno-uninitialized... yes
Checking if compiler accepts -Wpointer-arith... yes
Checking if compiler accepts -Wreturn-type... yes
Checking if compiler accepts -Wstrict-prototypes... yes
Checking if compiler accepts -Wvla... yes
Checking whether python program exists.../home/edward/Documents/projects/hddme_image/build-apalis-imx6/tmp/hosttools/python
Obtaining Python exe path... /home/edward/Documents/projects/hddme_image/build-apalis-imx6/tmp/hosttools/python
Obtaining Python lib dir... /usr/lib/python2.7/dist-packages
Obtaining Python config vars... ok
Altered configuration variables:
usb = False (default True): libusb support for USB devices
manbuild = False (default True): build help in man and HTML formats
nostrip = True (default False): don't symbol-strip binaries at link time
prefix = /usr (default /usr/local): installation directory prefix
qt_versioned = 5 (default ): version for versioned Qt
sysroot = /home/edward/Documents/projects/hddme_image/build-apalis-imx6/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/gpsd/3.19-r0/recipe-sysroot (default ): cross-development system root
libdir = /usr/lib (default lib): system libraries
WARNING: Python module pycairo not found.
    xgps and xgpsspeed will not be installed
Part of the website build requires asciidoc, not installed.
scons: done reading SConscript files.
scons: Building targets ...
rm -f ais_json.i && /home/edward/Documents/projects/hddme_image/build-apalis-imx6/tmp/hosttools/python jsongen.py --ais --target=parser > ais_json.i && chmod a-w ais_json.i
Creating 'gpsd_config.h'
Creating 'revision.h'
rm -f packet_names.h && sed -e '/^ *\([A-Z][A-Z0-9_]*\),/s// "\1",/' < packet_states.h > packet_names.h && chmod a-w packet_names.h
timebase_h(["timebase.h"], ["leapseconds.cache"])
Creating 'gps-3.19.egg-info'
substituter(["gpsd.php"], ["gpsd.php.in"])
substituter(["libgps.pc"], ["libgps.pc.in"])
chmod -w gpsd.php
chmod -w libgps.pc
substituter(["gpsd.rules"], ["gpsd.rules.in"])
chmod -w gpsd.rules

arm-poky-linux-gnueabi-gcc -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/edward/Documents/projects/hddme_image/build-apalis-imx6/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/gpsd/3.19-r0/recipe-sysroot -o timebase.o -c -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/edward/Documents/projects/hddme_image/build-apalis-imx6/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/gpsd/3.19-r0=/usr/src/debug/gpsd/3.19-r0 -fdebug-prefix-map=/home/edward/Documents/projects/hddme_image/build-apalis-imx6/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/gpsd/3.19-r0/recipe-sysroot= -fdebug-prefix-map=/home/edward/Documents/projects/hddme_image/build-apalis-imx6/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/gpsd/3.19-r0/recipe-sysroot-native= --sysroot=/home/edward/Documents/projects/hddme_image/build-apalis-imx6/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/gpsd/3.19-r0/recipe-sysroot -pthread -Wall -Wcast-align -Wextra -Wimplicit-fallthrough -Wmissing-declarations -Wmissing-prototypes -Wno-missing-field-initializers -Wno-uninitialized -Wpointer-arith -Wreturn-type -Wstrict-prototypes -Wvla -O2 -pthread -I/home/edward/Documents/projects/hddme_image/build-apalis-imx6/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/gpsd/3.19-r0/recipe-sysroot/usr/include/dbus-1.0 -I/home/edward/Documents/projects/hddme_image/build-apalis-imx6/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/gpsd/3.19-r0/recipe-sysroot/usr/lib/dbus-1.0/include timebase.c

arm-poky-linux-gnueabi-gcc -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/edward/Documents/projects/hddme_image/build-apalis-imx6/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/gpsd/3.19-r0/recipe-sysroot -o packet.o -c -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/edward/Documents/projects/hddme_image/build-apalis-imx6/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/gpsd/3.19-r0=/usr/src/debug/gpsd/3.19-r0 -fdebug-prefix-map=/home/edward/Documents/projects/hddme_image/build-apalis-imx6/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/gpsd/3.19-r0/recipe-sysroot= -fdebug-prefix-map=/home/edward/Documents/projects/hddme_image/build-apalis-imx6/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/gpsd/3.19-r0/recipe-sysroot-native= --sysroot=/home/edward/Documents/projects/hddme_image/build-apalis-imx6/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/gpsd/3.19-r0/recipe-sysroot -pthread -Wall -Wcast-align -Wextra -Wimplicit-fallthrough -Wmissing-declarations -Wmissing-prototypes -Wno-missing-field-initializers -Wno-uninitialized -Wpointer-arith -Wreturn-type -Wstrict-prototypes -Wvla -O2 -pthread -I/home/edward/Documents/projects/hddme_image/build-apalis-imx6/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/gpsd/3.19-r0/recipe-sysroot/usr/include/dbus-1.0 -I/home/edward/Documents/projects/hddme_image/build-apalis-imx6/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/gpsd/3.19-r0/recipe-sysroot/usr/lib/dbus-1.0/include packet.c

x86_64-linux-gnu-gcc -pthread -o packet-py_2_7_17_final_0.so -c -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -I/home/edward/Documents/projects/hddme_image/build-apalis-imx6/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/gpsd/3.19-r0/recipe-sysroot/usr/include/usr/include/python2.7 packet.c

sh: 1: x86_64-linux-gnu-gcc: not found


reply via email to

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