All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Khem Raj" <raj.khem@gmail.com>
To: Martin Jansa <martin.jansa@gmail.com>
Cc: Sean Nyekjaer <sean@geanix.com>,
	Nicolas Dechesne <nicolas.dechesne@linaro.org>,
	 openembedded-devel <openembedded-devel@lists.openembedded.org>,
	 Alistair Francis <alistair23@gmail.com>
Subject: Re: [oe] [meta-oe] [PATCH] gpsd: fix build on aarch64
Date: Sun, 17 May 2020 12:40:10 -0700	[thread overview]
Message-ID: <CAMKF1soMYApEWGqSnNakWjva1BxdhfvmCKMFJuR9yAd15EMvvQ@mail.gmail.com> (raw)
In-Reply-To: <CA+chaQfAJuh+8u8rz9ToPAjbhbe5MTh7jNSc4CF9_g4Wkm6hfw@mail.gmail.com>

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

  reply	other threads:[~2020-05-17 19:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2020-05-15 15:46     ` Adrian Bunk
2020-05-17 14:07       ` Sean Nyekjaer
2020-05-15 15:32 ` Alistair Francis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMKF1soMYApEWGqSnNakWjva1BxdhfvmCKMFJuR9yAd15EMvvQ@mail.gmail.com \
    --to=raj.khem@gmail.com \
    --cc=alistair23@gmail.com \
    --cc=martin.jansa@gmail.com \
    --cc=nicolas.dechesne@linaro.org \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=sean@geanix.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.