* [oe] [meta-oe] [PATCH] gpsd: fix build on aarch64
@ 2020-05-15 12:14 Sean Nyekjaer
2020-05-15 12:24 ` Nicolas Dechesne
2020-05-15 15:32 ` Alistair Francis
0 siblings, 2 replies; 10+ messages in thread
From: Sean Nyekjaer @ 2020-05-15 12:14 UTC (permalink / raw)
To: openembedded-devel; +Cc: Sean Nyekjaer, alistair23
Explicitly add ${CC} as linker, for it to understand -Wl option.
Signed-off-by: Sean Nyekjaer <sean@geanix.com>
---
Alistair please check in your setup :)
meta-oe/recipes-navigation/gpsd/gpsd_3.20.bb | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.20.bb b/meta-oe/recipes-navigation/gpsd/gpsd_3.20.bb
index 0914f7ec2..5463c8231 100644
--- a/meta-oe/recipes-navigation/gpsd/gpsd_3.20.bb
+++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.20.bb
@@ -35,6 +35,7 @@ EXTRA_OESCONS = " \
systemd='${SYSTEMD_OESCONS}' \
libdir='${libdir}' \
manbuild='false' \
+ LINK='${CC}' \
${PACKAGECONFIG_CONFARGS} \
"
# this cannot be used, because then chrpath is not found and only static lib is built
@@ -44,6 +45,7 @@ do_compile_prepend() {
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}"
export PKG_CONFIG="PKG_CONFIG_SYSROOT_DIR=\"${PKG_CONFIG_SYSROOT_DIR}\" pkg-config"
export STAGING_PREFIX="${STAGING_DIR_HOST}/${prefix}"
+ export LD="${CC}"
export LINKFLAGS="${LDFLAGS}"
}
@@ -51,6 +53,7 @@ do_install() {
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}"
export PKG_CONFIG="PKG_CONFIG_SYSROOT_DIR=\"${PKG_CONFIG_SYSROOT_DIR}\" pkg-config"
export STAGING_PREFIX="${STAGING_DIR_HOST}/${prefix}"
+ export LD="${CC}"
export LINKFLAGS="${LDFLAGS}"
export DESTDIR="${D}"
--
2.26.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [oe] [meta-oe] [PATCH] gpsd: fix build on aarch64
2020-05-15 12:14 [oe] [meta-oe] [PATCH] gpsd: fix build on aarch64 Sean Nyekjaer
@ 2020-05-15 12:24 ` Nicolas Dechesne
2020-05-15 15:07 ` Martin Jansa
2020-05-15 15:32 ` Alistair Francis
1 sibling, 1 reply; 10+ messages in thread
From: Nicolas Dechesne @ 2020-05-15 12:24 UTC (permalink / raw)
To: Sean Nyekjaer; +Cc: openembedded-devel, alistair23
[-- Attachment #1: Type: text/plain, Size: 1748 bytes --]
On Fri, May 15, 2020 at 2:14 PM Sean Nyekjaer <sean@geanix.com> wrote:
> Explicitly add ${CC} as linker, for it to understand -Wl option.
>
> Signed-off-by: Sean Nyekjaer <sean@geanix.com>
> ---
>
> Alistair please check in your setup :)
>
I had found the same error on dragonboard/arm64. This patch fixes the build
problem. Note that I have only done build test, not run time.
thanks!
>
> meta-oe/recipes-navigation/gpsd/gpsd_3.20.bb | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.20.bb
> b/meta-oe/recipes-navigation/gpsd/gpsd_3.20.bb
> index 0914f7ec2..5463c8231 100644
> --- a/meta-oe/recipes-navigation/gpsd/gpsd_3.20.bb
> +++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.20.bb
> @@ -35,6 +35,7 @@ EXTRA_OESCONS = " \
> systemd='${SYSTEMD_OESCONS}' \
> libdir='${libdir}' \
> manbuild='false' \
> + LINK='${CC}' \
> ${PACKAGECONFIG_CONFARGS} \
> "
> # this cannot be used, because then chrpath is not found and only static
> lib is built
> @@ -44,6 +45,7 @@ do_compile_prepend() {
> export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}"
> export
> PKG_CONFIG="PKG_CONFIG_SYSROOT_DIR=\"${PKG_CONFIG_SYSROOT_DIR}\" pkg-config"
> export STAGING_PREFIX="${STAGING_DIR_HOST}/${prefix}"
> + export LD="${CC}"
> export LINKFLAGS="${LDFLAGS}"
> }
>
> @@ -51,6 +53,7 @@ do_install() {
> export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}"
> export
> PKG_CONFIG="PKG_CONFIG_SYSROOT_DIR=\"${PKG_CONFIG_SYSROOT_DIR}\" pkg-config"
> export STAGING_PREFIX="${STAGING_DIR_HOST}/${prefix}"
> + export LD="${CC}"
> export LINKFLAGS="${LDFLAGS}"
>
> export DESTDIR="${D}"
> --
> 2.26.2
>
>
>
[-- Attachment #2: Type: text/html, Size: 2911 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [oe] [meta-oe] [PATCH] gpsd: fix build on aarch64
2020-05-15 12:24 ` Nicolas Dechesne
@ 2020-05-15 15:07 ` Martin Jansa
2020-05-15 15:22 ` Khem Raj
2020-05-15 15:46 ` Adrian Bunk
0 siblings, 2 replies; 10+ messages in thread
From: Martin Jansa @ 2020-05-15 15:07 UTC (permalink / raw)
To: Nicolas Dechesne; +Cc: Sean Nyekjaer, openembedded-devel, Alistair Francis
[-- Attachment #1: Type: text/plain, Size: 2204 bytes --]
I was seeing this issue also on arm (raspberrypi4), so it's not specific to
aarch64 as subject says.
With this fix I'm still seeing build failure:
| ppsthread.c:1281: error: undefined reference to 'pthread_create'
going back to 3.19 fixes both issues (so it's not caused by my setup).
On Fri, May 15, 2020 at 2:24 PM Nicolas Dechesne <
nicolas.dechesne@linaro.org> wrote:
>
>
> On Fri, May 15, 2020 at 2:14 PM Sean Nyekjaer <sean@geanix.com> wrote:
>
>> Explicitly add ${CC} as linker, for it to understand -Wl option.
>>
>> Signed-off-by: Sean Nyekjaer <sean@geanix.com>
>> ---
>>
>> Alistair please check in your setup :)
>>
>
> I had found the same error on dragonboard/arm64. This patch fixes the
> build problem. Note that I have only done build test, not run time.
> thanks!
>
>
>>
>> meta-oe/recipes-navigation/gpsd/gpsd_3.20.bb | 3 +++
>> 1 file changed, 3 insertions(+)
>>
>> diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.20.bb
>> b/meta-oe/recipes-navigation/gpsd/gpsd_3.20.bb
>> index 0914f7ec2..5463c8231 100644
>> --- a/meta-oe/recipes-navigation/gpsd/gpsd_3.20.bb
>> +++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.20.bb
>> @@ -35,6 +35,7 @@ EXTRA_OESCONS = " \
>> systemd='${SYSTEMD_OESCONS}' \
>> libdir='${libdir}' \
>> manbuild='false' \
>> + LINK='${CC}' \
>> ${PACKAGECONFIG_CONFARGS} \
>> "
>> # this cannot be used, because then chrpath is not found and only static
>> lib is built
>> @@ -44,6 +45,7 @@ do_compile_prepend() {
>> export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}"
>> export
>> PKG_CONFIG="PKG_CONFIG_SYSROOT_DIR=\"${PKG_CONFIG_SYSROOT_DIR}\" pkg-config"
>> export STAGING_PREFIX="${STAGING_DIR_HOST}/${prefix}"
>> + export LD="${CC}"
>> export LINKFLAGS="${LDFLAGS}"
>> }
>>
>> @@ -51,6 +53,7 @@ do_install() {
>> export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}"
>> export
>> PKG_CONFIG="PKG_CONFIG_SYSROOT_DIR=\"${PKG_CONFIG_SYSROOT_DIR}\" pkg-config"
>> export STAGING_PREFIX="${STAGING_DIR_HOST}/${prefix}"
>> + export LD="${CC}"
>> export LINKFLAGS="${LDFLAGS}"
>>
>> export DESTDIR="${D}"
>> --
>> 2.26.2
>>
>>
>>
>
[-- Attachment #2: Type: text/html, Size: 3678 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [oe] [meta-oe] [PATCH] gpsd: fix build on aarch64
2020-05-15 15:07 ` Martin Jansa
@ 2020-05-15 15:22 ` Khem Raj
2020-05-17 14:13 ` Sean Nyekjaer
2020-05-15 15:46 ` Adrian Bunk
1 sibling, 1 reply; 10+ messages in thread
From: Khem Raj @ 2020-05-15 15:22 UTC (permalink / raw)
To: Martin Jansa, Nicolas Dechesne
Cc: Sean Nyekjaer, openembedded-devel, Alistair Francis
On 5/15/20 8:07 AM, Martin Jansa wrote:
> I was seeing this issue also on arm (raspberrypi4), so it's not specific
> to aarch64 as subject says.
>
> With this fix I'm still seeing build failure:
> | ppsthread.c:1281: error: undefined reference to 'pthread_create'
>
Perhaps also set LDFLAGS = "-pthread"
> going back to 3.19 fixes both issues (so it's not caused by my setup).
>
> On Fri, May 15, 2020 at 2:24 PM Nicolas Dechesne
> <nicolas.dechesne@linaro.org <mailto:nicolas.dechesne@linaro.org>> wrote:
>
>
>
> On Fri, May 15, 2020 at 2:14 PM Sean Nyekjaer <sean@geanix.com
> <mailto:sean@geanix.com>> wrote:
>
> Explicitly add ${CC} as linker, for it to understand -Wl option.
>
> Signed-off-by: Sean Nyekjaer <sean@geanix.com
> <mailto:sean@geanix.com>>
> ---
>
> Alistair please check in your setup :)
>
>
> I had found the same error on dragonboard/arm64. This patch fixes
> the build problem. Note that I have only done build test, not run time.
> thanks!
>
>
> meta-oe/recipes-navigation/gpsd/gpsd_3.20.bb
> <http://gpsd_3.20.bb> | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.20.bb
> <http://gpsd_3.20.bb>
> b/meta-oe/recipes-navigation/gpsd/gpsd_3.20.bb <http://gpsd_3.20.bb>
> index 0914f7ec2..5463c8231 100644
> --- a/meta-oe/recipes-navigation/gpsd/gpsd_3.20.bb
> <http://gpsd_3.20.bb>
> +++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.20.bb
> <http://gpsd_3.20.bb>
> @@ -35,6 +35,7 @@ EXTRA_OESCONS = " \
> systemd='${SYSTEMD_OESCONS}' \
> libdir='${libdir}' \
> manbuild='false' \
> + LINK='${CC}' \
> ${PACKAGECONFIG_CONFARGS} \
> "
> # this cannot be used, because then chrpath is not found and
> only static lib is built
> @@ -44,6 +45,7 @@ do_compile_prepend() {
> export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}"
> export
> PKG_CONFIG="PKG_CONFIG_SYSROOT_DIR=\"${PKG_CONFIG_SYSROOT_DIR}\"
> pkg-config"
> export STAGING_PREFIX="${STAGING_DIR_HOST}/${prefix}"
> + export LD="${CC}"
> export LINKFLAGS="${LDFLAGS}"
> }
>
> @@ -51,6 +53,7 @@ do_install() {
> export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}"
> export
> PKG_CONFIG="PKG_CONFIG_SYSROOT_DIR=\"${PKG_CONFIG_SYSROOT_DIR}\"
> pkg-config"
> export STAGING_PREFIX="${STAGING_DIR_HOST}/${prefix}"
> + export LD="${CC}"
> export LINKFLAGS="${LDFLAGS}"
>
> export DESTDIR="${D}"
> --
> 2.26.2
>
>
>
>
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [oe] [meta-oe] [PATCH] gpsd: fix build on aarch64
2020-05-15 12:14 [oe] [meta-oe] [PATCH] gpsd: fix build on aarch64 Sean Nyekjaer
2020-05-15 12:24 ` Nicolas Dechesne
@ 2020-05-15 15:32 ` Alistair Francis
1 sibling, 0 replies; 10+ messages in thread
From: Alistair Francis @ 2020-05-15 15:32 UTC (permalink / raw)
To: Sean Nyekjaer; +Cc: openembeded-devel
On Fri, May 15, 2020 at 5:14 AM Sean Nyekjaer <sean@geanix.com> wrote:
>
> Explicitly add ${CC} as linker, for it to understand -Wl option.
>
> Signed-off-by: Sean Nyekjaer <sean@geanix.com>
> ---
>
> Alistair please check in your setup :)
Thanks! This fixes the build for me.
Alistair
>
> meta-oe/recipes-navigation/gpsd/gpsd_3.20.bb | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.20.bb b/meta-oe/recipes-navigation/gpsd/gpsd_3.20.bb
> index 0914f7ec2..5463c8231 100644
> --- a/meta-oe/recipes-navigation/gpsd/gpsd_3.20.bb
> +++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.20.bb
> @@ -35,6 +35,7 @@ EXTRA_OESCONS = " \
> systemd='${SYSTEMD_OESCONS}' \
> libdir='${libdir}' \
> manbuild='false' \
> + LINK='${CC}' \
> ${PACKAGECONFIG_CONFARGS} \
> "
> # this cannot be used, because then chrpath is not found and only static lib is built
> @@ -44,6 +45,7 @@ do_compile_prepend() {
> export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}"
> export PKG_CONFIG="PKG_CONFIG_SYSROOT_DIR=\"${PKG_CONFIG_SYSROOT_DIR}\" pkg-config"
> export STAGING_PREFIX="${STAGING_DIR_HOST}/${prefix}"
> + export LD="${CC}"
> export LINKFLAGS="${LDFLAGS}"
> }
>
> @@ -51,6 +53,7 @@ do_install() {
> export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}"
> export PKG_CONFIG="PKG_CONFIG_SYSROOT_DIR=\"${PKG_CONFIG_SYSROOT_DIR}\" pkg-config"
> export STAGING_PREFIX="${STAGING_DIR_HOST}/${prefix}"
> + export LD="${CC}"
> export LINKFLAGS="${LDFLAGS}"
>
> export DESTDIR="${D}"
> --
> 2.26.2
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [oe] [meta-oe] [PATCH] gpsd: fix build on aarch64
2020-05-15 15:07 ` Martin Jansa
2020-05-15 15:22 ` Khem Raj
@ 2020-05-15 15:46 ` Adrian Bunk
2020-05-17 14:07 ` Sean Nyekjaer
1 sibling, 1 reply; 10+ messages in thread
From: Adrian Bunk @ 2020-05-15 15:46 UTC (permalink / raw)
To: Martin Jansa
Cc: Nicolas Dechesne, Sean Nyekjaer, openembedded-devel, Alistair Francis
On Fri, May 15, 2020 at 05:07:37PM +0200, Martin Jansa wrote:
> I was seeing this issue also on arm (raspberrypi4), so it's not specific to
> aarch64 as subject says.
>
> With this fix I'm still seeing build failure:
> | ppsthread.c:1281: error: undefined reference to 'pthread_create'
>
> going back to 3.19 fixes both issues (so it's not caused by my setup).
>...
The root cause of all these problems is likely:
...
DEBUG: Executing shell function do_compile
scons: Reading SConscript files ...
This system is: linux
Checking whether the C compiler works... no
ERROR: CC doesn't work
Checking if compiler accepts -pthread... no
...
cu
Adrian
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [oe] [meta-oe] [PATCH] gpsd: fix build on aarch64
2020-05-15 15:46 ` Adrian Bunk
@ 2020-05-17 14:07 ` Sean Nyekjaer
0 siblings, 0 replies; 10+ messages in thread
From: Sean Nyekjaer @ 2020-05-17 14:07 UTC (permalink / raw)
To: Adrian Bunk, Martin Jansa
Cc: Nicolas Dechesne, openembedded-devel, Alistair Francis
On 15/05/2020 17.46, Adrian Bunk wrote:
> On Fri, May 15, 2020 at 05:07:37PM +0200, Martin Jansa wrote:
>> I was seeing this issue also on arm (raspberrypi4), so it's not specific to
>> aarch64 as subject says.
>>
>> With this fix I'm still seeing build failure:
>> | ppsthread.c:1281: error: undefined reference to 'pthread_create'
>>
>> going back to 3.19 fixes both issues (so it's not caused by my setup).
>> ...
>
> The root cause of all these problems is likely:
>
> ...
> DEBUG: Executing shell function do_compile
> scons: Reading SConscript files ...
> This system is: linux
> Checking whether the C compiler works... no
> ERROR: CC doesn't work
> Checking if compiler accepts -pthread... no
> ...
I have tested both with a aarch64 and cortexa7t2hf build.
Both of them show:
Checking whether the C compiler works... yes
/Sean
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [oe] [meta-oe] [PATCH] gpsd: fix build on aarch64
2020-05-15 15:22 ` Khem Raj
@ 2020-05-17 14:13 ` Sean Nyekjaer
2020-05-17 18:56 ` Martin Jansa
0 siblings, 1 reply; 10+ messages in thread
From: Sean Nyekjaer @ 2020-05-17 14:13 UTC (permalink / raw)
To: Khem Raj, Martin Jansa, Nicolas Dechesne
Cc: openembedded-devel, Alistair Francis
On 15/05/2020 17.22, Khem Raj wrote:
>
>
> On 5/15/20 8:07 AM, Martin Jansa wrote:
>> I was seeing this issue also on arm (raspberrypi4), so it's not
>> specific to aarch64 as subject says.
>>
>> With this fix I'm still seeing build failure:
>> | ppsthread.c:1281: error: undefined reference to 'pthread_create'
>>
>
> Perhaps also set LDFLAGS = "-pthread"
>
Seems fine in my builds:
arm-oe-linux-gnueabi-gcc -mthumb -mfpu=neon -mfloat-abi=hard
-mcpu=cortex-a7
--sysroot=/home/sean/development/cc/yoctobuild/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot
-o ppsthread.o -c
--sysroot=/home/sean/development/cc/yoctobuild/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/gpsd/3.20-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 -pipe -g
-feliminate-unused-debug-types
-fmacro-prefix-map=/home/sean/development/cc/yoctobuild/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/gpsd/3.20-r0=/usr/src/debug/gpsd/3.20-r0
-fdebug-prefix-map=/home/sean/development/cc/yoctobuild/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/gpsd/3.20-r0=/usr/src/debug/gpsd/3.20-r0
-fdebug-prefix-map=/home/sean/development/cc/yoctobuild/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot=
-fdebug-prefix-map=/home/sean/development/cc/yoctobuild/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot-native=
-fvisibility-inlines-hidden -O2 -pthread
-I/home/sean/development/cc/yoctobuild/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot/usr/include/dbus-1.0
-I/home/sean/development/cc/yoctobuild/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot/usr/lib/dbus-1.0/include
-I/home/sean/development/cc/yoctobuild/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot/usr/include/libusb-1.0
ppsthread.c
and
aarch64-oe-linux-gcc -march=armv8-a+crc
--sysroot=/home/sean/development/cc/yoctobuild/tmp-glibc/work/aarch64-oe-linux/gpsd/3.20-r0/recipe-sysroot
-o ppsthread.o -c
--sysroot=/home/sean/development/cc/yoctobuild/tmp-glibc/work/aarch64-oe-linux/gpsd/3.20-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 -pipe -g
-feliminate-unused-debug-types
-fmacro-prefix-map=/home/sean/development/cc/yoctobuild/tmp-glibc/work/aarch64-oe-linux/gpsd/3.20-r0=/usr/src/debug/gpsd/3.20-r0
-fdebug-prefix-map=/home/sean/development/cc/yoctobuild/tmp-glibc/work/aarch64-oe-linux/gpsd/3.20-r0=/usr/src/debug/gpsd/3.20-r0
-fdebug-prefix-map=/home/sean/development/cc/yoctobuild/tmp-glibc/work/aarch64-oe-linux/gpsd/3.20-r0/recipe-sysroot=
-fdebug-prefix-map=/home/sean/development/cc/yoctobuild/tmp-glibc/work/aarch64-oe-linux/gpsd/3.20-r0/recipe-sysroot-native=
-fvisibility-inlines-hidden -O2 -pthread
-I/home/sean/development/cc/yoctobuild/tmp-glibc/work/aarch64-oe-linux/gpsd/3.20-r0/recipe-sysroot/usr/include/dbus-1.0
-I/home/sean/development/cc/yoctobuild/tmp-glibc/work/aarch64-oe-linux/gpsd/3.20-r0/recipe-sysroot/usr/lib/dbus-1.0/include
-I/home/sean/development/cc/yoctobuild/tmp-glibc/work/aarch64-oe-linux/gpsd/3.20-r0/recipe-sysroot/usr/include/libusb-1.0
ppsthread.c
By now, Scons is my favorite build system :-D
/Sean
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [oe] [meta-oe] [PATCH] gpsd: fix build on aarch64
2020-05-17 14:13 ` Sean Nyekjaer
@ 2020-05-17 18:56 ` Martin Jansa
2020-05-17 19:40 ` Khem Raj
0 siblings, 1 reply; 10+ messages in thread
From: Martin Jansa @ 2020-05-17 18:56 UTC (permalink / raw)
To: Sean Nyekjaer
Cc: Khem Raj, Nicolas Dechesne, openembedded-devel, Alistair Francis
[-- Attachment #1: Type: text/plain, Size: 10659 bytes --]
It looks like an issue when re-configuring in the same WORKDIR.
Looking at config.log in failing build I see:
file
BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/gpsd-3.20/SConstruct,line
669:
Configure(confdir = .sconf_temp)
scons: Configure: Checking whether the C compiler works...
scons: Configure: ".sconf_temp/conftest_0.c" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_0.c <-
| |
| |int main(void)
| |{
| | return 0;
| |}
| |
|
arm-webos-linux-gnueabi-gcc -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard
-mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat
-Wformat-security -Werror=format-security -Werror=return-type
--sysroot=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot
-o .sconf_temp/conftest_0.o -c
--sysroot=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot
-O2 -pipe -g -feliminate-unused-debug-types
-fmacro-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0=/usr/src/debug/gpsd/3.20-r0
-fdebug-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0=/usr/src/debug/gpsd/3.20-r0
-fdebug-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot=
-fdebug-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot-native=
-fvisibility-inlines-hidden -fstack-protector-strong -O2
.sconf_temp/conftest_0.c
arm-webos-linux-gnueabi-gcc: error: .sconf_temp/conftest_0.c: No such file
or directory
arm-webos-linux-gnueabi-gcc: fatal error: no input files
compilation terminated.
scons: Configure: no
scons: Configure: Checking if compiler accepts -pthread...
scons: Configure: ".sconf_temp/conftest_1.c" is up to date.
scons: Configure: The original builder output was:
|.sconf_temp/conftest_1.c <-
| |
| | int main(int argc, char **argv) {
| | (void) argc; (void) argv;
| | return 0;
| | }
| |
|
arm-webos-linux-gnueabi-gcc -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard
-mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat
-Wformat-security -Werror=format-security -Werror=return-type
--sysroot=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot
-o .sconf_temp/conftest_1.o -c
--sysroot=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot
-pthread -O2 -pipe -g -feliminate-unused-debug-types
-fmacro-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0=/usr/src/debug/gpsd/3.20-r0
-fdebug-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0=/usr/src/debug/gpsd/3.20-r0
-fdebug-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot=
-fdebug-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot-native=
-fvisibility-inlines-hidden -fstack-protector-strong -O2
.sconf_temp/conftest_1.c
arm-webos-linux-gnueabi-gcc: error: .sconf_temp/conftest_1.c: No such file
or directory
arm-webos-linux-gnueabi-gcc: fatal error: no input files
compilation terminated.
scons: Configure: no
If I clean it first with:
bitbake -c cleansstate gpsd; bitbake -c compile gpsd
then config.log looks OK and gpsd builds OK
file
BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/gpsd-3.20/SConstruct,line
669:
Configure(confdir = .sconf_temp)
scons: Configure: Checking whether the C compiler works...
.sconf_temp/conftest_0.c <-
|
|int main(void)
|{
| return 0;
|}
|
arm-webos-linux-gnueabi-gcc -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard
-mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat
-Wformat-security -Werror=format-security -Werror=return-type
--sysroot=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot
-o .sconf_temp/conftest_0.o -c
--sysroot=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot
-O2 -pipe -g -feliminate-unused-debug-types
-fmacro-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0=/usr/src/debug/gpsd/3.20-r0
-fdebug-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0=/usr/src/debug/gpsd/3.20-r0
-fdebug-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot=
-fdebug-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot-native=
-fvisibility-inlines-hidden -fstack-protector-strong -O2
.sconf_temp/conftest_0.c
cc1: warning: command-line option '-fvisibility-inlines-hidden' is valid
for C++/ObjC++ but not for C
scons: Configure: yes
scons: Configure: Checking if compiler accepts -pthread...
.sconf_temp/conftest_1.c <-
|
| int main(int argc, char **argv) {
| (void) argc; (void) argv;
| return 0;
| }
|
arm-webos-linux-gnueabi-gcc -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard
-mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat
-Wformat-security -Werror=format-security -Werror=return-type
--sysroot=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot
-o .sconf_temp/conftest_1.o -c
--sysroot=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot
-pthread -O2 -pipe -g -feliminate-unused-debug-types
-fmacro-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0=/usr/src/debug/gpsd/3.20-r0
-fdebug-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0=/usr/src/debug/gpsd/3.20-r0
-fdebug-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot=
-fdebug-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot-native=
-fvisibility-inlines-hidden -fstack-protector-strong -O2
.sconf_temp/conftest_1.c
cc1: warning: command-line option '-fvisibility-inlines-hidden' is valid
for C++/ObjC++ but not for C
arm-webos-linux-gnueabi-gcc -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard
-mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat
-Wformat-security -Werror=format-security -Werror=return-type
--sysroot=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot
-o .sconf_temp/conftest_1 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
-Wl,-z,relro,-z,now
--sysroot=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot
.sconf_temp/conftest_1.o -L.
-LBUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot/usr/lib
scons: Configure: yes
On Sun, May 17, 2020 at 4:13 PM Sean Nyekjaer <sean@geanix.com> wrote:
>
>
> On 15/05/2020 17.22, Khem Raj wrote:
> >
> >
> > On 5/15/20 8:07 AM, Martin Jansa wrote:
> >> I was seeing this issue also on arm (raspberrypi4), so it's not
> >> specific to aarch64 as subject says.
> >>
> >> With this fix I'm still seeing build failure:
> >> | ppsthread.c:1281: error: undefined reference to 'pthread_create'
> >>
> >
> > Perhaps also set LDFLAGS = "-pthread"
> >
>
> Seems fine in my builds:
>
> arm-oe-linux-gnueabi-gcc -mthumb -mfpu=neon -mfloat-abi=hard
> -mcpu=cortex-a7
> --sysroot=/home/sean/development/cc/yoctobuild/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot
>
> -o ppsthread.o -c
> --sysroot=/home/sean/development/cc/yoctobuild/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/gpsd/3.20-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 -pipe -g
> -feliminate-unused-debug-types
> -fmacro-prefix-map=/home/sean/development/cc/yoctobuild/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/gpsd/3.20-r0=/usr/src/debug/gpsd/3.20-r0
>
> -fdebug-prefix-map=/home/sean/development/cc/yoctobuild/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/gpsd/3.20-r0=/usr/src/debug/gpsd/3.20-r0
>
> -fdebug-prefix-map=/home/sean/development/cc/yoctobuild/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot=
>
> -fdebug-prefix-map=/home/sean/development/cc/yoctobuild/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot-native=
>
> -fvisibility-inlines-hidden -O2 -pthread
> -I/home/sean/development/cc/yoctobuild/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot/usr/include/dbus-1.0
>
> -I/home/sean/development/cc/yoctobuild/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot/usr/lib/dbus-1.0/include
>
> -I/home/sean/development/cc/yoctobuild/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot/usr/include/libusb-1.0
>
> ppsthread.c
>
> and
>
> aarch64-oe-linux-gcc -march=armv8-a+crc
> --sysroot=/home/sean/development/cc/yoctobuild/tmp-glibc/work/aarch64-oe-linux/gpsd/3.20-r0/recipe-sysroot
>
> -o ppsthread.o -c
> --sysroot=/home/sean/development/cc/yoctobuild/tmp-glibc/work/aarch64-oe-linux/gpsd/3.20-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 -pipe -g
> -feliminate-unused-debug-types
> -fmacro-prefix-map=/home/sean/development/cc/yoctobuild/tmp-glibc/work/aarch64-oe-linux/gpsd/3.20-r0=/usr/src/debug/gpsd/3.20-r0
>
> -fdebug-prefix-map=/home/sean/development/cc/yoctobuild/tmp-glibc/work/aarch64-oe-linux/gpsd/3.20-r0=/usr/src/debug/gpsd/3.20-r0
>
> -fdebug-prefix-map=/home/sean/development/cc/yoctobuild/tmp-glibc/work/aarch64-oe-linux/gpsd/3.20-r0/recipe-sysroot=
>
> -fdebug-prefix-map=/home/sean/development/cc/yoctobuild/tmp-glibc/work/aarch64-oe-linux/gpsd/3.20-r0/recipe-sysroot-native=
>
> -fvisibility-inlines-hidden -O2 -pthread
> -I/home/sean/development/cc/yoctobuild/tmp-glibc/work/aarch64-oe-linux/gpsd/3.20-r0/recipe-sysroot/usr/include/dbus-1.0
>
> -I/home/sean/development/cc/yoctobuild/tmp-glibc/work/aarch64-oe-linux/gpsd/3.20-r0/recipe-sysroot/usr/lib/dbus-1.0/include
>
> -I/home/sean/development/cc/yoctobuild/tmp-glibc/work/aarch64-oe-linux/gpsd/3.20-r0/recipe-sysroot/usr/include/libusb-1.0
>
> ppsthread.c
>
> By now, Scons is my favorite build system :-D
>
> /Sean
>
[-- Attachment #2: Type: text/html, Size: 11440 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [oe] [meta-oe] [PATCH] gpsd: fix build on aarch64
2020-05-17 18:56 ` Martin Jansa
@ 2020-05-17 19:40 ` Khem Raj
0 siblings, 0 replies; 10+ messages in thread
From: Khem Raj @ 2020-05-17 19:40 UTC (permalink / raw)
To: Martin Jansa
Cc: Sean Nyekjaer, Nicolas Dechesne, openembedded-devel, Alistair Francis
On Sun, May 17, 2020 at 11:56 AM Martin Jansa <martin.jansa@gmail.com> wrote:
>
> It looks like an issue when re-configuring in the same WORKDIR.
>
Mark it CLEANBROKEN = "1"
> Looking at config.log in failing build I see:
> file BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/gpsd-3.20/SConstruct,line 669:
> Configure(confdir = .sconf_temp)
> scons: Configure: Checking whether the C compiler works...
> scons: Configure: ".sconf_temp/conftest_0.c" is up to date.
> scons: Configure: The original builder output was:
> |.sconf_temp/conftest_0.c <-
> | |
> | |int main(void)
> | |{
> | | return 0;
> | |}
> | |
> |
> arm-webos-linux-gnueabi-gcc -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Werror=return-type --sysroot=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot -o .sconf_temp/conftest_0.o -c --sysroot=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0=/usr/src/debug/gpsd/3.20-r0 -fdebug-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0=/usr/src/debug/gpsd/3.20-r0 -fdebug-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot= -fdebug-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot-native= -fvisibility-inlines-hidden -fstack-protector-strong -O2 .sconf_temp/conftest_0.c
> arm-webos-linux-gnueabi-gcc: error: .sconf_temp/conftest_0.c: No such file or directory
> arm-webos-linux-gnueabi-gcc: fatal error: no input files
> compilation terminated.
> scons: Configure: no
>
> scons: Configure: Checking if compiler accepts -pthread...
> scons: Configure: ".sconf_temp/conftest_1.c" is up to date.
> scons: Configure: The original builder output was:
> |.sconf_temp/conftest_1.c <-
> | |
> | | int main(int argc, char **argv) {
> | | (void) argc; (void) argv;
> | | return 0;
> | | }
> | |
> |
> arm-webos-linux-gnueabi-gcc -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Werror=return-type --sysroot=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot -o .sconf_temp/conftest_1.o -c --sysroot=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot -pthread -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0=/usr/src/debug/gpsd/3.20-r0 -fdebug-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0=/usr/src/debug/gpsd/3.20-r0 -fdebug-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot= -fdebug-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot-native= -fvisibility-inlines-hidden -fstack-protector-strong -O2 .sconf_temp/conftest_1.c
> arm-webos-linux-gnueabi-gcc: error: .sconf_temp/conftest_1.c: No such file or directory
> arm-webos-linux-gnueabi-gcc: fatal error: no input files
> compilation terminated.
> scons: Configure: no
>
> If I clean it first with:
> bitbake -c cleansstate gpsd; bitbake -c compile gpsd
> then config.log looks OK and gpsd builds OK
>
> file BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/gpsd-3.20/SConstruct,line 669:
> Configure(confdir = .sconf_temp)
> scons: Configure: Checking whether the C compiler works...
> .sconf_temp/conftest_0.c <-
> |
> |int main(void)
> |{
> | return 0;
> |}
> |
> arm-webos-linux-gnueabi-gcc -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Werror=return-type --sysroot=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot -o .sconf_temp/conftest_0.o -c --sysroot=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0=/usr/src/debug/gpsd/3.20-r0 -fdebug-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0=/usr/src/debug/gpsd/3.20-r0 -fdebug-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot= -fdebug-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot-native= -fvisibility-inlines-hidden -fstack-protector-strong -O2 .sconf_temp/conftest_0.c
> cc1: warning: command-line option '-fvisibility-inlines-hidden' is valid for C++/ObjC++ but not for C
> scons: Configure: yes
>
> scons: Configure: Checking if compiler accepts -pthread...
> .sconf_temp/conftest_1.c <-
> |
> | int main(int argc, char **argv) {
> | (void) argc; (void) argv;
> | return 0;
> | }
> |
> arm-webos-linux-gnueabi-gcc -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Werror=return-type --sysroot=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot -o .sconf_temp/conftest_1.o -c --sysroot=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot -pthread -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0=/usr/src/debug/gpsd/3.20-r0 -fdebug-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0=/usr/src/debug/gpsd/3.20-r0 -fdebug-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot= -fdebug-prefix-map=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot-native= -fvisibility-inlines-hidden -fstack-protector-strong -O2 .sconf_temp/conftest_1.c
> cc1: warning: command-line option '-fvisibility-inlines-hidden' is valid for C++/ObjC++ but not for C
> arm-webos-linux-gnueabi-gcc -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Werror=return-type --sysroot=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot -o .sconf_temp/conftest_1 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-z,relro,-z,now --sysroot=BUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot .sconf_temp/conftest_1.o -L. -LBUILD/tmp-glibc/work/raspberrypi4-webos-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot/usr/lib
> scons: Configure: yes
>
> On Sun, May 17, 2020 at 4:13 PM Sean Nyekjaer <sean@geanix.com> wrote:
>>
>>
>>
>> On 15/05/2020 17.22, Khem Raj wrote:
>> >
>> >
>> > On 5/15/20 8:07 AM, Martin Jansa wrote:
>> >> I was seeing this issue also on arm (raspberrypi4), so it's not
>> >> specific to aarch64 as subject says.
>> >>
>> >> With this fix I'm still seeing build failure:
>> >> | ppsthread.c:1281: error: undefined reference to 'pthread_create'
>> >>
>> >
>> > Perhaps also set LDFLAGS = "-pthread"
>> >
>>
>> Seems fine in my builds:
>>
>> arm-oe-linux-gnueabi-gcc -mthumb -mfpu=neon -mfloat-abi=hard
>> -mcpu=cortex-a7
>> --sysroot=/home/sean/development/cc/yoctobuild/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot
>> -o ppsthread.o -c
>> --sysroot=/home/sean/development/cc/yoctobuild/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/gpsd/3.20-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 -pipe -g
>> -feliminate-unused-debug-types
>> -fmacro-prefix-map=/home/sean/development/cc/yoctobuild/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/gpsd/3.20-r0=/usr/src/debug/gpsd/3.20-r0
>> -fdebug-prefix-map=/home/sean/development/cc/yoctobuild/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/gpsd/3.20-r0=/usr/src/debug/gpsd/3.20-r0
>> -fdebug-prefix-map=/home/sean/development/cc/yoctobuild/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot=
>> -fdebug-prefix-map=/home/sean/development/cc/yoctobuild/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot-native=
>> -fvisibility-inlines-hidden -O2 -pthread
>> -I/home/sean/development/cc/yoctobuild/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot/usr/include/dbus-1.0
>> -I/home/sean/development/cc/yoctobuild/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot/usr/lib/dbus-1.0/include
>> -I/home/sean/development/cc/yoctobuild/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/gpsd/3.20-r0/recipe-sysroot/usr/include/libusb-1.0
>> ppsthread.c
>>
>> and
>>
>> aarch64-oe-linux-gcc -march=armv8-a+crc
>> --sysroot=/home/sean/development/cc/yoctobuild/tmp-glibc/work/aarch64-oe-linux/gpsd/3.20-r0/recipe-sysroot
>> -o ppsthread.o -c
>> --sysroot=/home/sean/development/cc/yoctobuild/tmp-glibc/work/aarch64-oe-linux/gpsd/3.20-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 -pipe -g
>> -feliminate-unused-debug-types
>> -fmacro-prefix-map=/home/sean/development/cc/yoctobuild/tmp-glibc/work/aarch64-oe-linux/gpsd/3.20-r0=/usr/src/debug/gpsd/3.20-r0
>> -fdebug-prefix-map=/home/sean/development/cc/yoctobuild/tmp-glibc/work/aarch64-oe-linux/gpsd/3.20-r0=/usr/src/debug/gpsd/3.20-r0
>> -fdebug-prefix-map=/home/sean/development/cc/yoctobuild/tmp-glibc/work/aarch64-oe-linux/gpsd/3.20-r0/recipe-sysroot=
>> -fdebug-prefix-map=/home/sean/development/cc/yoctobuild/tmp-glibc/work/aarch64-oe-linux/gpsd/3.20-r0/recipe-sysroot-native=
>> -fvisibility-inlines-hidden -O2 -pthread
>> -I/home/sean/development/cc/yoctobuild/tmp-glibc/work/aarch64-oe-linux/gpsd/3.20-r0/recipe-sysroot/usr/include/dbus-1.0
>> -I/home/sean/development/cc/yoctobuild/tmp-glibc/work/aarch64-oe-linux/gpsd/3.20-r0/recipe-sysroot/usr/lib/dbus-1.0/include
>> -I/home/sean/development/cc/yoctobuild/tmp-glibc/work/aarch64-oe-linux/gpsd/3.20-r0/recipe-sysroot/usr/include/libusb-1.0
>> ppsthread.c
>>
>> By now, Scons is my favorite build system :-D
>>
>> /Sean
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2020-05-17 19:40 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-15 12:14 [oe] [meta-oe] [PATCH] gpsd: fix build on aarch64 Sean Nyekjaer
2020-05-15 12:24 ` Nicolas Dechesne
2020-05-15 15:07 ` Martin Jansa
2020-05-15 15:22 ` Khem Raj
2020-05-17 14:13 ` Sean Nyekjaer
2020-05-17 18:56 ` Martin Jansa
2020-05-17 19:40 ` Khem Raj
2020-05-15 15:46 ` Adrian Bunk
2020-05-17 14:07 ` Sean Nyekjaer
2020-05-15 15:32 ` Alistair Francis
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.