All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Build failure on upgrade to 2019.08.1
@ 2019-10-09 21:55 Steve Calfee
  2019-10-09 23:22 ` Arnout Vandecappelle
  0 siblings, 1 reply; 13+ messages in thread
From: Steve Calfee @ 2019-10-09 21:55 UTC (permalink / raw)
  To: buildroot

I built the buildroot toolchain in one BR tree, to use as an external
toolchain in another.

Versions:
calfee at dock-container:~/edi-workspace/buildroot$
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld
--version
GNU ld (GNU Binutils) 2.31.1
Copyright (C) 2018 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
calfee at dock-container:~/edi-workspace/buildroot$
/home/calfee/edi-workspace/buildroot/output/host/bin/arm-buildroot-linux-gnueabi-gcc
--version
arm-buildroot-linux-gnueabi-gcc.br_real (Buildroot
2019.11-git-00838-g196e3d2) 8.3.0

And then in another tree I checked out 2019.08.1, loaded in my old
defconfig and then started a build. Fairly quickly in the build I get
this link failure.

libtool: link: /home/calfee/edi-workspace/buildroot/output/host/bin/arm-buildroot-linux-gnueabi-gcc
-fno-strict-aliasing -fno-common -Wall -Wextra -Wundef -Wwrite-strings
-Wpointer-arith -Wmissing-declarations -Wredundant-decls
-Wno-unused-parameter -Wno-missing-field-initializers -Wformat=2
-Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare
-Wstrict-aliasing -Wshadow -Winline -Wpacked
-Wmissing-format-attribute -Wmissing-noreturn -Winit-self
-Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds
-Wreturn-type -Wswitch-enum -Wswitch-default -Wduplicated-cond
-Wduplicated-branches -Wlogical-op -Wrestrict -Wnull-dereference
-Wdouble-promotion -Wchar-subscripts -Wfloat-equal -Wpointer-sign
-Wno-deprecated-declarations -Wno-cast-function-type -Wno-unused-label
-Wnested-externs -Wmissing-prototypes -Wstrict-prototypes
-Wdeclaration-after-statement -Wimplicit-function-declaration
-Wold-style-definition -Wjump-misses-init -Wno-error=unused-parameter
-Wno-error=missing-field-initializers
-Wno-error=deprecated-declarations -Wno-error=cast-function-type
-Wno-error=unused-label -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -Os -Wl,--no-as-needed -o
dbus-update-activation-environment
dbus-update-activation-environment.o tool-common.o
../dbus/.libs/libdbus-1.so -Wl,-rpath
-Wl,/home/calfee/edi-workspace/buildroot/output/build/dbus-1.12.16/dbus/.libs
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
warning: libpthread.so.0, needed by ../dbus/.libs/libdbus-1.so, not
found (try using -rpath or -rpath-link)

The missing file is in the output tree:
calfee at dock-container:~/edi-workspace/buildroot$ find output/ | grep
libpthread | xargs ls -l
-rwxr-xr-x 1 calfee calfee 148180 Oct  9 17:02
output/host/arm-buildroot-linux-gnueabi/sysroot/lib/libpthread-2.30.so
lrwxrwxrwx 1 calfee calfee     18 Oct  9 17:02
output/host/arm-buildroot-linux-gnueabi/sysroot/lib/libpthread.so.0 ->
libpthread-2.30.so
-rw-r--r-- 1 calfee calfee 347762 Oct  9 17:02
output/host/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libpthread.a
lrwxrwxrwx 1 calfee calfee     25 Oct  9 17:02
output/host/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libpthread.so
-> ../../lib/libpthread.so.0
-rwxr-xr-x 1 calfee calfee 148180 Oct  9 21:37
output/target/lib/libpthread-2.30.so
lrwxrwxrwx 1 calfee calfee     18 Oct  9 21:37
output/target/lib/libpthread.so.0 -> libpthread-2.30.so

So I guess as the failure suggested -rpath is not correct. I assume I
am missing some config option somewhere.

Any suggestions?

Thanks, Steve

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] Build failure on upgrade to 2019.08.1
  2019-10-09 21:55 [Buildroot] Build failure on upgrade to 2019.08.1 Steve Calfee
@ 2019-10-09 23:22 ` Arnout Vandecappelle
  2019-10-10 15:01   ` Steve Calfee
  0 siblings, 1 reply; 13+ messages in thread
From: Arnout Vandecappelle @ 2019-10-09 23:22 UTC (permalink / raw)
  To: buildroot



On 09/10/2019 23:55, Steve Calfee wrote:
> I built the buildroot toolchain in one BR tree, to use as an external
> toolchain in another.

 I assume you use it as a preinstalled external toolchain?


> Versions:
> calfee at dock-container:~/edi-workspace/buildroot$
> /home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld
> --version
> GNU ld (GNU Binutils) 2.31.1
> Copyright (C) 2018 Free Software Foundation, Inc.
> This program is free software; you may redistribute it under the terms of
> the GNU General Public License version 3 or (at your option) a later version.
> This program has absolutely no warranty.
> calfee at dock-container:~/edi-workspace/buildroot$
> /home/calfee/edi-workspace/buildroot/output/host/bin/arm-buildroot-linux-gnueabi-gcc
> --version
> arm-buildroot-linux-gnueabi-gcc.br_real (Buildroot
> 2019.11-git-00838-g196e3d2) 8.3.0
> 
> And then in another tree I checked out 2019.08.1, loaded in my old
> defconfig and then started a build. Fairly quickly in the build I get
> this link failure.
> 
> libtool: link: /home/calfee/edi-workspace/buildroot/output/host/bin/arm-buildroot-linux-gnueabi-gcc
> -fno-strict-aliasing -fno-common -Wall -Wextra -Wundef -Wwrite-strings
> -Wpointer-arith -Wmissing-declarations -Wredundant-decls
> -Wno-unused-parameter -Wno-missing-field-initializers -Wformat=2
> -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare
> -Wstrict-aliasing -Wshadow -Winline -Wpacked
> -Wmissing-format-attribute -Wmissing-noreturn -Winit-self
> -Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds
> -Wreturn-type -Wswitch-enum -Wswitch-default -Wduplicated-cond
> -Wduplicated-branches -Wlogical-op -Wrestrict -Wnull-dereference
> -Wdouble-promotion -Wchar-subscripts -Wfloat-equal -Wpointer-sign
> -Wno-deprecated-declarations -Wno-cast-function-type -Wno-unused-label
> -Wnested-externs -Wmissing-prototypes -Wstrict-prototypes
> -Wdeclaration-after-statement -Wimplicit-function-declaration
> -Wold-style-definition -Wjump-misses-init -Wno-error=unused-parameter
> -Wno-error=missing-field-initializers
> -Wno-error=deprecated-declarations -Wno-error=cast-function-type
> -Wno-error=unused-label -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
> -D_FILE_OFFSET_BITS=64 -Os -Wl,--no-as-needed -o
> dbus-update-activation-environment
> dbus-update-activation-environment.o tool-common.o
> ../dbus/.libs/libdbus-1.so -Wl,-rpath
> -Wl,/home/calfee/edi-workspace/buildroot/output/build/dbus-1.12.16/dbus/.libs
> /home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
> warning: libpthread.so.0, needed by ../dbus/.libs/libdbus-1.so, not
> found (try using -rpath or -rpath-link)

 There's no error here, just a warning... But I guess it is followed by some
undefined pthread symbols.

 It's weird though, since the sysroot/lib directory should be in the toolchain's
standard search path.

 Could you run the link command with an additional -v option so we see the
library search path?

 Regards,
 Arnout

> 
> The missing file is in the output tree:
> calfee at dock-container:~/edi-workspace/buildroot$ find output/ | grep
> libpthread | xargs ls -l
> -rwxr-xr-x 1 calfee calfee 148180 Oct  9 17:02
> output/host/arm-buildroot-linux-gnueabi/sysroot/lib/libpthread-2.30.so
> lrwxrwxrwx 1 calfee calfee     18 Oct  9 17:02
> output/host/arm-buildroot-linux-gnueabi/sysroot/lib/libpthread.so.0 ->
> libpthread-2.30.so
> -rw-r--r-- 1 calfee calfee 347762 Oct  9 17:02
> output/host/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libpthread.a
> lrwxrwxrwx 1 calfee calfee     25 Oct  9 17:02
> output/host/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libpthread.so
> -> ../../lib/libpthread.so.0
> -rwxr-xr-x 1 calfee calfee 148180 Oct  9 21:37
> output/target/lib/libpthread-2.30.so
> lrwxrwxrwx 1 calfee calfee     18 Oct  9 21:37
> output/target/lib/libpthread.so.0 -> libpthread-2.30.so
> 
> So I guess as the failure suggested -rpath is not correct. I assume I
> am missing some config option somewhere.
> 
> Any suggestions?
> 
> Thanks, Steve
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
> 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] Build failure on upgrade to 2019.08.1
  2019-10-09 23:22 ` Arnout Vandecappelle
@ 2019-10-10 15:01   ` Steve Calfee
  2019-10-10 15:41     ` Arnout Vandecappelle
  0 siblings, 1 reply; 13+ messages in thread
From: Steve Calfee @ 2019-10-10 15:01 UTC (permalink / raw)
  To: buildroot

On Wed, Oct 9, 2019 at 4:22 PM Arnout Vandecappelle <arnout@mind.be> wrote:
>
> On 09/10/2019 23:55, Steve Calfee wrote:
> > I built the buildroot toolchain in one BR tree, to use as an external
> > toolchain in another.
>
>  I assume you use it as a preinstalled external toolchain?

Yes, as I have done for several years on many buildroot versions.

> > Versions:
> > calfee at dock-container:~/edi-workspace/buildroot$
> > /home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld
> > --version
> > GNU ld (GNU Binutils) 2.31.1
> > Copyright (C) 2018 Free Software Foundation, Inc.
> > This program is free software; you may redistribute it under the terms of
> > the GNU General Public License version 3 or (at your option) a later version.
> > This program has absolutely no warranty.
> > calfee at dock-container:~/edi-workspace/buildroot$
> > /home/calfee/edi-workspace/buildroot/output/host/bin/arm-buildroot-linux-gnueabi-gcc
> > --version
> > arm-buildroot-linux-gnueabi-gcc.br_real (Buildroot
> > 2019.11-git-00838-g196e3d2) 8.3.0
> >
> > And then in another tree I checked out 2019.08.1, loaded in my old
> > defconfig and then started a build. Fairly quickly in the build I get
> > this link failure.
> >
> > libtool: link: /home/calfee/edi-workspace/buildroot/output/host/bin/arm-buildroot-linux-gnueabi-gcc
> > -fno-strict-aliasing -fno-common -Wall -Wextra -Wundef -Wwrite-strings
> > -Wpointer-arith -Wmissing-declarations -Wredundant-decls
> > -Wno-unused-parameter -Wno-missing-field-initializers -Wformat=2
> > -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare
> > -Wstrict-aliasing -Wshadow -Winline -Wpacked
> > -Wmissing-format-attribute -Wmissing-noreturn -Winit-self
> > -Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds
> > -Wreturn-type -Wswitch-enum -Wswitch-default -Wduplicated-cond
> > -Wduplicated-branches -Wlogical-op -Wrestrict -Wnull-dereference
> > -Wdouble-promotion -Wchar-subscripts -Wfloat-equal -Wpointer-sign
> > -Wno-deprecated-declarations -Wno-cast-function-type -Wno-unused-label
> > -Wnested-externs -Wmissing-prototypes -Wstrict-prototypes
> > -Wdeclaration-after-statement -Wimplicit-function-declaration
> > -Wold-style-definition -Wjump-misses-init -Wno-error=unused-parameter
> > -Wno-error=missing-field-initializers
> > -Wno-error=deprecated-declarations -Wno-error=cast-function-type
> > -Wno-error=unused-label -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
> > -D_FILE_OFFSET_BITS=64 -Os -Wl,--no-as-needed -o
> > dbus-update-activation-environment
> > dbus-update-activation-environment.o tool-common.o
> > ../dbus/.libs/libdbus-1.so -Wl,-rpath
> > -Wl,/home/calfee/edi-workspace/buildroot/output/build/dbus-1.12.16/dbus/.libs
> > /home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
> > warning: libpthread.so.0, needed by ../dbus/.libs/libdbus-1.so, not
> > found (try using -rpath or -rpath-link)
>
>  There's no error here, just a warning... But I guess it is followed by some
> undefined pthread symbols.
>
Yes, about 4 undefined symbols.


>  It's weird though, since the sysroot/lib directory should be in the toolchain's
> standard search path.
>
>  Could you run the link command with an additional -v option so we see the
> library search path?
>
>  Regards,
>  Arnout
>

I really appreciate you trying to help. I cannot see how to add a link
option. I tried "make V=2" but with no effect.

The makefile stuff is pretty complicated. The one in the buildroot
base directory does not have a link command that I can see. I tried
just re-entering the command that was sent to the console with make
V=1, but I don't seem to be in the correct directory to issue that
command.

Could you please describe how to add a -v option to the link command?

Thanks, Steve

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] Build failure on upgrade to 2019.08.1
  2019-10-10 15:01   ` Steve Calfee
@ 2019-10-10 15:41     ` Arnout Vandecappelle
  2019-10-10 16:09       ` Steve Calfee
  0 siblings, 1 reply; 13+ messages in thread
From: Arnout Vandecappelle @ 2019-10-10 15:41 UTC (permalink / raw)
  To: buildroot



On 10/10/2019 17:01, Steve Calfee wrote:
> On Wed, Oct 9, 2019 at 4:22 PM Arnout Vandecappelle <arnout@mind.be> wrote:
>>
>> On 09/10/2019 23:55, Steve Calfee wrote:
>>> I built the buildroot toolchain in one BR tree, to use as an external
>>> toolchain in another.
>>
>>  I assume you use it as a preinstalled external toolchain?
> 
> Yes, as I have done for several years on many buildroot versions.

 I'm asking because the pre-installed external toolchain doesn't get that much
testing. So it is not impossible for it to break.

 However, I just tried a build of dbus with a preinstalled external toolchain
and it completed without a hitch.

[snip]
>>> And then in another tree I checked out 2019.08.1, loaded in my old
>>> defconfig and then started a build.

 BTW, myself, I never start from a defconfig when I update Buildroot; I start
from a full config. That avoids problems when defaults for some options have
changed. Note however that this can't explain your build failure (and even so it
wouldn't be an excuse :-).

>>> Fairly quickly in the build I get
>>> this link failure.
>>>
>>> libtool: link: /home/calfee/edi-workspace/buildroot/output/host/bin/arm-buildroot-linux-gnueabi-gcc
>>> -fno-strict-aliasing -fno-common -Wall -Wextra -Wundef -Wwrite-strings
>>> -Wpointer-arith -Wmissing-declarations -Wredundant-decls
>>> -Wno-unused-parameter -Wno-missing-field-initializers -Wformat=2
>>> -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare
>>> -Wstrict-aliasing -Wshadow -Winline -Wpacked
>>> -Wmissing-format-attribute -Wmissing-noreturn -Winit-self
>>> -Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds
>>> -Wreturn-type -Wswitch-enum -Wswitch-default -Wduplicated-cond
>>> -Wduplicated-branches -Wlogical-op -Wrestrict -Wnull-dereference
>>> -Wdouble-promotion -Wchar-subscripts -Wfloat-equal -Wpointer-sign
>>> -Wno-deprecated-declarations -Wno-cast-function-type -Wno-unused-label
>>> -Wnested-externs -Wmissing-prototypes -Wstrict-prototypes
>>> -Wdeclaration-after-statement -Wimplicit-function-declaration
>>> -Wold-style-definition -Wjump-misses-init -Wno-error=unused-parameter
>>> -Wno-error=missing-field-initializers
>>> -Wno-error=deprecated-declarations -Wno-error=cast-function-type
>>> -Wno-error=unused-label -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
>>> -D_FILE_OFFSET_BITS=64 -Os -Wl,--no-as-needed -o
>>> dbus-update-activation-environment
>>> dbus-update-activation-environment.o tool-common.o
>>> ../dbus/.libs/libdbus-1.so -Wl,-rpath
>>> -Wl,/home/calfee/edi-workspace/buildroot/output/build/dbus-1.12.16/dbus/.libs
>>> /home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
>>> warning: libpthread.so.0, needed by ../dbus/.libs/libdbus-1.so, not
>>> found (try using -rpath or -rpath-link)
>>
>>  There's no error here, just a warning... But I guess it is followed by some
>> undefined pthread symbols.
>>
> Yes, about 4 undefined symbols.
> 
> 
>>  It's weird though, since the sysroot/lib directory should be in the toolchain's
>> standard search path.
>>
>>  Could you run the link command with an additional -v option so we see the
>> library search path?
>>
>>  Regards,
>>  Arnout
>>
> 
> I really appreciate you trying to help. I cannot see how to add a link
> option. I tried "make V=2" but with no effect.
> 
> The makefile stuff is pretty complicated. The one in the buildroot
> base directory does not have a link command that I can see. I tried
> just re-entering the command that was sent to the console with make

 Yes, that's what I meant: enter the `.../arm-buildroot-linux-gnueabi-gcc
-fno-strict-aliasing ...` command with an additional -v...

> V=1, but I don't seem to be in the correct directory to issue that
> command.

 ... from the directory that contains dbus-update-activation-environment.c, i.e.
output/build/dbus-1.12.16/tools/

 You can also also set BR2_DEBUG_WRAPPER=1 in the environment to see the options
that really get passed to gcc.

 Regards,
 Arnout


> 
> Could you please describe how to add a -v option to the link command?
> 
> Thanks, Steve
> 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] Build failure on upgrade to 2019.08.1
  2019-10-10 15:41     ` Arnout Vandecappelle
@ 2019-10-10 16:09       ` Steve Calfee
  2019-10-10 16:16         ` Steve Calfee
  2019-10-11 19:34         ` Arnout Vandecappelle
  0 siblings, 2 replies; 13+ messages in thread
From: Steve Calfee @ 2019-10-10 16:09 UTC (permalink / raw)
  To: buildroot

On Thu, Oct 10, 2019 at 8:41 AM Arnout Vandecappelle <arnout@mind.be> wrote:
> On 10/10/2019 17:01, Steve Calfee wrote:
> > On Wed, Oct 9, 2019 at 4:22 PM Arnout Vandecappelle <arnout@mind.be> wrote:
> >>
> >> On 09/10/2019 23:55, Steve Calfee wrote:
> >>> I built the buildroot toolchain in one BR tree, to use as an external
> >>> toolchain in another.
> >>
> >>  I assume you use it as a preinstalled external toolchain?
> >
> > Yes, as I have done for several years on many buildroot versions.
>
>  I'm asking because the pre-installed external toolchain doesn't get that much
> testing. So it is not impossible for it to break.
>
>  However, I just tried a build of dbus with a preinstalled external toolchain
> and it completed without a hitch.
>
> [snip]
> >>> And then in another tree I checked out 2019.08.1, loaded in my old
> >>> defconfig and then started a build.
>
>  BTW, myself, I never start from a defconfig when I update Buildroot; I start
> from a full config. That avoids problems when defaults for some options have
> changed. Note however that this can't explain your build failure (and even so it
> wouldn't be an excuse :-).
>
The legacy options in menuconfig flags the errors. However if you
cannot find my errors I will start again trying your way.

> >>> Fairly quickly in the build I get
> >>> this link failure.
> >>>
> >>> libtool: link: /home/calfee/edi-workspace/buildroot/output/host/bin/arm-buildroot-linux-gnueabi-gcc
> >>> -fno-strict-aliasing -fno-common -Wall -Wextra -Wundef -Wwrite-strings
> >>> -Wpointer-arith -Wmissing-declarations -Wredundant-decls
> >>> -Wno-unused-parameter -Wno-missing-field-initializers -Wformat=2
> >>> -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare
> >>> -Wstrict-aliasing -Wshadow -Winline -Wpacked
> >>> -Wmissing-format-attribute -Wmissing-noreturn -Winit-self
> >>> -Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds
> >>> -Wreturn-type -Wswitch-enum -Wswitch-default -Wduplicated-cond
> >>> -Wduplicated-branches -Wlogical-op -Wrestrict -Wnull-dereference
> >>> -Wdouble-promotion -Wchar-subscripts -Wfloat-equal -Wpointer-sign
> >>> -Wno-deprecated-declarations -Wno-cast-function-type -Wno-unused-label
> >>> -Wnested-externs -Wmissing-prototypes -Wstrict-prototypes
> >>> -Wdeclaration-after-statement -Wimplicit-function-declaration
> >>> -Wold-style-definition -Wjump-misses-init -Wno-error=unused-parameter
> >>> -Wno-error=missing-field-initializers
> >>> -Wno-error=deprecated-declarations -Wno-error=cast-function-type
> >>> -Wno-error=unused-label -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
> >>> -D_FILE_OFFSET_BITS=64 -Os -Wl,--no-as-needed -o
> >>> dbus-update-activation-environment
> >>> dbus-update-activation-environment.o tool-common.o
> >>> ../dbus/.libs/libdbus-1.so -Wl,-rpath
> >>> -Wl,/home/calfee/edi-workspace/buildroot/output/build/dbus-1.12.16/dbus/.libs
> >>> /home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
> >>> warning: libpthread.so.0, needed by ../dbus/.libs/libdbus-1.so, not
> >>> found (try using -rpath or -rpath-link)
> >>
> >>  There's no error here, just a warning... But I guess it is followed by some
> >> undefined pthread symbols.
> >>
> > Yes, about 4 undefined symbols.
> >
> >
> >>  It's weird though, since the sysroot/lib directory should be in the toolchain's
> >> standard search path.
> >>
> >>  Could you run the link command with an additional -v option so we see the
> >> library search path?
> >>
> >>  Regards,
> >>  Arnout
> >>
> >
> > I really appreciate you trying to help. I cannot see how to add a link
> > option. I tried "make V=2" but with no effect.
> >
> > The makefile stuff is pretty complicated. The one in the buildroot
> > base directory does not have a link command that I can see. I tried
> > just re-entering the command that was sent to the console with make
>
>  Yes, that's what I meant: enter the `.../arm-buildroot-linux-gnueabi-gcc
> -fno-strict-aliasing ...` command with an additional -v...
>
> > V=1, but I don't seem to be in the correct directory to issue that
> > command.
>
>  ... from the directory that contains dbus-update-activation-environment.c, i.e.
> output/build/dbus-1.12.16/tools/
>
>  You can also also set BR2_DEBUG_WRAPPER=1 in the environment to see the options
> that really get passed to gcc.
>
>  Regards,
>  Arnout
>

Your path suggestion helped. I did not realize it was failing in the
.../tools/ directory. My complete console session with this link is in
the output below.

I don't see anything obviously wrong in the output. I hope it is not
one of those "order matters" in the link command.


calfee at dock-container:~/edi-workspace/buildroot/output/build/dbus-1.12.16/tools$
/home/calfee/edi-workspace/buildroot/output/host/bin/arm-buildroot-linux-gnueabi-gcc
-fno-strict-aliasing -fno-common -Wall -Wextra -Wundef -Wwrite-strings
-Wpointer-arith -Wmissing-declarations -Wredundant-decls
-Wno-unused-parameter -Wno-missing-field-initializers -Wformat=2
-Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare
-Wstrict-aliasing -Wshadow -Winline -Wpacked
-Wmissing-format-attribute -Wmissing-noreturn -Winit-self
-Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds
-Wreturn-type -Wswitch-enum -Wswitch-default -Wduplicated-cond
-Wduplicated-branches -Wlogical-op -Wrestrict -Wnull-dereference
-Wdouble-promotion -Wchar-subscripts -Wfloat-equal -Wpointer-sign
-Wno-deprecated-declarations -Wno-cast-function-type -Wno-unused-label
-Wnested-externs -Wmissing-prototypes -Wstrict-prototypes
-Wdeclaration-after-statement -Wimplicit-function-declaration
-Wold-style-definition -Wjump-misses-init -Wno-error=unused-parameter
-Wno-error=missing-field-initializers
-Wno-error=deprecated-declarations -Wno-error=cast-function-type
-Wno-error=unused-label -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -Os -Wl,--no-as-needed -o dbus-monitor
dbus-monitor.o dbus-print-message.o tool-common.o
../dbus/.libs/libdbus-1.so -Wl,-rpath
-Wl,/home/calfee/edi-workspace/buildroot/output/build/dbus-1.12.16/dbus/.libs
-v -v
Toolchain wrapper executing:
'/home/calfee/edi-workspace/buildroot/../toolchain/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc.br_real'
'--sysroot' '/home/calfee/edi-workspace/buildroot/output/host/arm-buildroot-linux-gnueabi/sysroot'
'-mabi=aapcs-linux' '-msoft-float' '-marm' '-mfloat-abi=soft'
'-mcpu=arm926ej-s' '-fno-strict-aliasing' '-fno-common' '-Wall'
'-Wextra' '-Wundef' '-Wwrite-strings' '-Wpointer-arith'
'-Wmissing-declarations' '-Wredundant-decls' '-Wno-unused-parameter'
'-Wno-missing-field-initializers' '-Wformat=2' '-Wcast-align'
'-Wformat-nonliteral' '-Wformat-security' '-Wsign-compare'
'-Wstrict-aliasing' '-Wshadow' '-Winline' '-Wpacked'
'-Wmissing-format-attribute' '-Wmissing-noreturn' '-Winit-self'
'-Wmissing-include-dirs' '-Wunused-but-set-variable' '-Warray-bounds'
'-Wreturn-type' '-Wswitch-enum' '-Wswitch-default' '-Wduplicated-cond'
'-Wduplicated-branches' '-Wlogical-op' '-Wrestrict'
'-Wnull-dereference' '-Wdouble-promotion' '-Wchar-subscripts'
'-Wfloat-equal' '-Wpointer-sign' '-Wno-deprecated-declarations'
'-Wno-cast-function-type' '-Wno-unused-label' '-Wnested-externs'
'-Wmissing-prototypes' '-Wstrict-prototypes'
'-Wdeclaration-after-statement' '-Wimplicit-function-declaration'
'-Wold-style-definition' '-Wjump-misses-init'
'-Wno-error=unused-parameter' '-Wno-error=missing-field-initializers'
'-Wno-error=deprecated-declarations' '-Wno-error=cast-function-type'
'-Wno-error=unused-label' '-D_LARGEFILE_SOURCE'
'-D_LARGEFILE64_SOURCE' '-D_FILE_OFFSET_BITS=64' '-Os'
'-Wl,--no-as-needed' '-o' 'dbus-monitor' 'dbus-monitor.o'
'dbus-print-message.o' 'tool-common.o' '../dbus/.libs/libdbus-1.so'
'-Wl,-rpath' '-Wl,/home/calfee/edi-workspace/buildroot/output/build/dbus-1.12.16/dbus/.libs'
'-v' '-v'
Using built-in specs.
COLLECT_GCC=/home/calfee/edi-workspace/buildroot/../toolchain/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc.br_real
COLLECT_LTO_WRAPPER=/home/calfee/edi-workspace/toolchain/output/host/libexec/gcc/arm-buildroot-linux-gnueabi/8.3.0/lto-wrapper
Target: arm-buildroot-linux-gnueabi
Configured with: ./configure
--prefix=/home/calfee/edi-workspace/toolchain/output/host
--sysconfdir=/home/calfee/edi-workspace/toolchain/output/host/etc
--enable-static --target=arm-buildroot-linux-gnueabi
--with-sysroot=/home/calfee/edi-workspace/toolchain/output/host/arm-buildroot-linux-gnueabi/sysroot
--enable-__cxa_atexit --with-gnu-ld --disable-libssp
--disable-multilib --disable-decimal-float
--with-gmp=/home/calfee/edi-workspace/toolchain/output/host
--with-mpc=/home/calfee/edi-workspace/toolchain/output/host
--with-mpfr=/home/calfee/edi-workspace/toolchain/output/host
--with-pkgversion='Buildroot 2019.11-git-00838-g196e3d2'
--with-bugurl=http://bugs.buildroot.net/ --disable-libquadmath
--enable-tls --enable-threads --without-isl --without-cloog
--with-float=soft --with-abi=aapcs-linux --with-cpu=arm926ej-s
--with-float=soft --with-mode=arm --enable-languages=c,c++
--with-build-time-tools=/home/calfee/edi-workspace/toolchain/output/host/arm-buildroot-linux-gnueabi/bin
--enable-shared --disable-libgomp
Thread model: posix
gcc version 8.3.0 (Buildroot 2019.11-git-00838-g196e3d2)
COMPILER_PATH=/home/calfee/edi-workspace/toolchain/output/host/libexec/gcc/arm-buildroot-linux-gnueabi/8.3.0/:/home/calfee/edi-workspace/toolchain/output/host/libexec/gcc/arm-buildroot-linux-gnueabi/8.3.0/:/home/calfee/edi-workspace/toolchain/output/host/libexec/gcc/arm-buildroot-linux-gnueabi/:/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/:/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/:/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/
LIBRARY_PATH=/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/:/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/lib/:/home/calfee/edi-workspace/buildroot/output/host/arm-buildroot-linux-gnueabi/sysroot/lib/:/home/calfee/edi-workspace/buildroot/output/host/arm-buildroot-linux-gnueabi/sysroot/usr/lib/
COLLECT_GCC_OPTIONS='-mabi=aapcs-linux' '-mfloat-abi=soft' '-marm'
'-mfloat-abi=soft' '-mcpu=arm926ej-s' '-fno-strict-aliasing'
'-fno-common' '-Wall' '-Wextra' '-Wundef' '-Wwrite-strings'
'-Wpointer-arith' '-Wmissing-declarations' '-Wredundant-decls'
'-Wno-unused-parameter' '-Wno-missing-field-initializers' '-Wformat=2'
'-Wcast-align' '-Wformat-nonliteral' '-Wformat-security'
'-Wsign-compare' '-Wstrict-aliasing' '-Wshadow' '-Winline' '-Wpacked'
'-Wsuggest-attribute=format' '-Wsuggest-attribute=noreturn'
'-Winit-self' '-Wmissing-include-dirs' '-Wunused-but-set-variable'
'-Warray-bounds' '-Wreturn-type' '-Wswitch-enum' '-Wswitch-default'
'-Wduplicated-cond' '-Wduplicated-branches' '-Wlogical-op'
'-Wrestrict' '-Wnull-dereference' '-Wdouble-promotion'
'-Wchar-subscripts' '-Wfloat-equal' '-Wpointer-sign'
'-Wno-deprecated-declarations' '-Wno-cast-function-type'
'-Wno-unused-label' '-Wnested-externs' '-Wmissing-prototypes'
'-Wstrict-prototypes' '-Wdeclaration-after-statement'
'-Wimplicit-function-declaration' '-Wold-style-definition'
'-Wjump-misses-init' '-Wno-error=unused-parameter'
'-Wno-error=missing-field-initializers'
'-Wno-error=deprecated-declarations' '-Wno-error=cast-function-type'
'-Wno-error=unused-label' '-D' '_LARGEFILE_SOURCE' '-D'
'_LARGEFILE64_SOURCE' '-D' '_FILE_OFFSET_BITS=64' '-Os' '-o'
'dbus-monitor' '-v' '-v' '-mtls-dialect=gnu' '-march=armv5tej'
 /home/calfee/edi-workspace/toolchain/output/host/libexec/gcc/arm-buildroot-linux-gnueabi/8.3.0/collect2
-plugin /home/calfee/edi-workspace/toolchain/output/host/libexec/gcc/arm-buildroot-linux-gnueabi/8.3.0/liblto_plugin.so
-plugin-opt=/home/calfee/edi-workspace/toolchain/output/host/libexec/gcc/arm-buildroot-linux-gnueabi/8.3.0/lto-wrapper
-plugin-opt=-fresolution=/tmp/cctkHjeE.res
-plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s
-plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc
-plugin-opt=-pass-through=-lgcc_s
--sysroot=/home/calfee/edi-workspace/buildroot/output/host/arm-buildroot-linux-gnueabi/sysroot
--eh-frame-hdr -dynamic-linker /lib/ld-linux.so.3 -X -m
armelf_linux_eabi -o dbus-monitor
/home/calfee/edi-workspace/buildroot/output/host/arm-buildroot-linux-gnueabi/sysroot/usr/lib/crt1.o
/home/calfee/edi-workspace/buildroot/output/host/arm-buildroot-linux-gnueabi/sysroot/usr/lib/crti.o
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/crtbegin.o
-L/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0
-L/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/lib
-L/home/calfee/edi-workspace/buildroot/output/host/arm-buildroot-linux-gnueabi/sysroot/lib
-L/home/calfee/edi-workspace/buildroot/output/host/arm-buildroot-linux-gnueabi/sysroot/usr/lib
--no-as-needed dbus-monitor.o dbus-print-message.o tool-common.o
../dbus/.libs/libdbus-1.so -rpath
/home/calfee/edi-workspace/buildroot/output/build/dbus-1.12.16/dbus/.libs
-lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s
--no-as-needed /home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/crtend.o
/home/calfee/edi-workspace/buildroot/output/host/arm-buildroot-linux-gnueabi/sysroot/usr/lib/crtn.o
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
warning: libpthread.so.0, needed by ../dbus/.libs/libdbus-1.so, not
found (try using -rpath or -rpath-link)
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
../dbus/.libs/libdbus-1.so: undefined reference to
`pthread_mutexattr_init at GLIBC_2.4'
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
../dbus/.libs/libdbus-1.so: undefined reference to
`pthread_mutexattr_destroy at GLIBC_2.4'
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
../dbus/.libs/libdbus-1.so: undefined reference to
`pthread_condattr_setclock at GLIBC_2.4'
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
../dbus/.libs/libdbus-1.so: undefined reference to
`pthread_mutexattr_settype at GLIBC_2.4'
collect2: error: ld returned 1 exit status
calfee at dock-container:~/edi-workspace/buildroot/output/build/dbus-1.12.16/tools$

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] Build failure on upgrade to 2019.08.1
  2019-10-10 16:09       ` Steve Calfee
@ 2019-10-10 16:16         ` Steve Calfee
  2019-10-11 19:34         ` Arnout Vandecappelle
  1 sibling, 0 replies; 13+ messages in thread
From: Steve Calfee @ 2019-10-10 16:16 UTC (permalink / raw)
  To: buildroot

More environment info:

 echo $BR2_DEBUG_WRAPPER
1
calfee at dock-container:~/edi-workspace/buildroot/output/build/dbus-1.12.16/tools$
ls -l /home/calfee/edi-workspace/buildroot/output/host/arm-buildroot-linux-gnueabi/sysroot/usr/lib/
total 11488
-rw-r--r-- 1 calfee calfee     776 Oct  9 17:02 Mcrt1.o
-rw-r--r-- 1 calfee calfee    1976 Oct  9 17:02 Scrt1.o
drwxr-xr-x 2 calfee calfee    4096 Oct  9 17:02 audit
-rw-r--r-- 1 calfee calfee    1984 Oct  9 17:02 crt1.o
-rw-r--r-- 1 calfee calfee    1124 Oct  9 17:02 crti.o
-rw-r--r-- 1 calfee calfee     784 Oct  9 17:02 crtn.o
drwxr-xr-x 2 calfee calfee   12288 Oct  9 17:02 gconv
-rw-r--r-- 1 calfee calfee    2584 Oct  9 17:02 gcrt1.o
-rw-r--r-- 1 calfee calfee    1366 Oct  9 17:02 libBrokenLocale.a
lrwxrwxrwx 1 calfee calfee      30 Oct  9 17:02 libBrokenLocale.so ->
../../lib/libBrokenLocale.so.1
-rw-r--r-- 1 calfee calfee   14208 Oct  9 17:02 libanl.a
lrwxrwxrwx 1 calfee calfee      21 Oct  9 17:02 libanl.so ->
../../lib/libanl.so.1
-rw-r--r-- 1 calfee calfee 3516712 Oct  9 17:02 libc.a
-rw-r--r-- 1 calfee calfee     243 Oct  9 17:02 libc.so
-rw-r--r-- 1 calfee calfee   22862 Oct  9 17:02 libc_nonshared.a
-rw-r--r-- 1 calfee calfee   41504 Oct  9 17:02 libcrypt.a
lrwxrwxrwx 1 calfee calfee      23 Oct  9 17:02 libcrypt.so ->
../../lib/libcrypt.so.1
-rw-r--r-- 1 calfee calfee   10422 Oct  9 17:02 libdl.a
lrwxrwxrwx 1 calfee calfee      20 Oct  9 17:02 libdl.so -> ../../lib/libdl.so.2
-rwxr-xr-x 1 calfee calfee     993 Oct  9 22:18 libexpat.la
lrwxrwxrwx 1 calfee calfee      18 Oct  9 22:18 libexpat.so ->
libexpat.so.1.6.10
lrwxrwxrwx 1 calfee calfee      18 Oct  9 22:18 libexpat.so.1 ->
libexpat.so.1.6.10
-rwxr-xr-x 1 calfee calfee  131644 Oct  9 22:18 libexpat.so.1.6.10
-rw-r--r-- 1 calfee calfee     970 Oct  9 17:02 libg.a
-rw-r--r-- 1 calfee calfee 1099826 Oct  9 17:02 libm.a
lrwxrwxrwx 1 calfee calfee      19 Oct  9 17:02 libm.so -> ../../lib/libm.so.6
-rw-r--r-- 1 calfee calfee    1148 Oct  9 17:02 libmcheck.a
lrwxrwxrwx 1 calfee calfee      28 Oct  9 17:02 libnss_compat.so ->
../../lib/libnss_compat.so.2
lrwxrwxrwx 1 calfee calfee      24 Oct  9 17:02 libnss_db.so ->
../../lib/libnss_db.so.2
lrwxrwxrwx 1 calfee calfee      25 Oct  9 17:02 libnss_dns.so ->
../../lib/libnss_dns.so.2
lrwxrwxrwx 1 calfee calfee      27 Oct  9 17:02 libnss_files.so ->
../../lib/libnss_files.so.2
lrwxrwxrwx 1 calfee calfee      28 Oct  9 17:02 libnss_hesiod.so ->
../../lib/libnss_hesiod.so.2
-rw-r--r-- 1 calfee calfee  347762 Oct  9 17:02 libpthread.a
lrwxrwxrwx 1 calfee calfee      25 Oct  9 17:02 libpthread.so ->
../../lib/libpthread.so.0
-rw-r--r-- 1 calfee calfee   88086 Oct  9 17:02 libresolv.a
lrwxrwxrwx 1 calfee calfee      24 Oct  9 17:02 libresolv.so ->
../../lib/libresolv.so.2
-rw-r--r-- 1 calfee calfee   37406 Oct  9 17:02 librpcsvc.a
-rw-r--r-- 1 calfee calfee   61678 Oct  9 17:02 librt.a
lrwxrwxrwx 1 calfee calfee      20 Oct  9 17:02 librt.so -> ../../lib/librt.so.1
-rw-r--r-- 1 calfee calfee 4583716 Oct  9 17:13 libstdc++.a
lrwxrwxrwx 1 calfee calfee      19 Oct  9 17:13 libstdc++.so ->
libstdc++.so.6.0.25
lrwxrwxrwx 1 calfee calfee      19 Oct  9 17:13 libstdc++.so.6 ->
libstdc++.so.6.0.25
-rwxr-xr-x 1 calfee calfee 1693816 Oct  9 17:13 libstdc++.so.6.0.25
-rw-r--r-- 1 calfee calfee    2492 Oct  9 17:13 libstdc++.so.6.0.25-gdb.py
lrwxrwxrwx 1 calfee calfee      27 Oct  9 17:02 libthread_db.so ->
../../lib/libthread_db.so.1
-rw-r--r-- 1 calfee calfee   10176 Oct  9 17:02 libutil.a
lrwxrwxrwx 1 calfee calfee      22 Oct  9 17:02 libutil.so ->
../../lib/libutil.so.1
drwxr-xr-x 2 calfee calfee    4096 Oct  9 22:18 pkgconfig

And the linker found crt1.o and crti.o

On Thu, Oct 10, 2019 at 9:09 AM Steve Calfee <stevecalfee@gmail.com> wrote:
>
> On Thu, Oct 10, 2019 at 8:41 AM Arnout Vandecappelle <arnout@mind.be> wrote:
> > On 10/10/2019 17:01, Steve Calfee wrote:
> > > On Wed, Oct 9, 2019 at 4:22 PM Arnout Vandecappelle <arnout@mind.be> wrote:
> > >>
> > >> On 09/10/2019 23:55, Steve Calfee wrote:
> > >>> I built the buildroot toolchain in one BR tree, to use as an external
> > >>> toolchain in another.
> > >>
> > >>  I assume you use it as a preinstalled external toolchain?
> > >
> > > Yes, as I have done for several years on many buildroot versions.
> >
> >  I'm asking because the pre-installed external toolchain doesn't get that much
> > testing. So it is not impossible for it to break.
> >
> >  However, I just tried a build of dbus with a preinstalled external toolchain
> > and it completed without a hitch.
> >
> > [snip]
> > >>> And then in another tree I checked out 2019.08.1, loaded in my old
> > >>> defconfig and then started a build.
> >
> >  BTW, myself, I never start from a defconfig when I update Buildroot; I start
> > from a full config. That avoids problems when defaults for some options have
> > changed. Note however that this can't explain your build failure (and even so it
> > wouldn't be an excuse :-).
> >
> The legacy options in menuconfig flags the errors. However if you
> cannot find my errors I will start again trying your way.
>
> > >>> Fairly quickly in the build I get
> > >>> this link failure.
> > >>>
> > >>> libtool: link: /home/calfee/edi-workspace/buildroot/output/host/bin/arm-buildroot-linux-gnueabi-gcc
> > >>> -fno-strict-aliasing -fno-common -Wall -Wextra -Wundef -Wwrite-strings
> > >>> -Wpointer-arith -Wmissing-declarations -Wredundant-decls
> > >>> -Wno-unused-parameter -Wno-missing-field-initializers -Wformat=2
> > >>> -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare
> > >>> -Wstrict-aliasing -Wshadow -Winline -Wpacked
> > >>> -Wmissing-format-attribute -Wmissing-noreturn -Winit-self
> > >>> -Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds
> > >>> -Wreturn-type -Wswitch-enum -Wswitch-default -Wduplicated-cond
> > >>> -Wduplicated-branches -Wlogical-op -Wrestrict -Wnull-dereference
> > >>> -Wdouble-promotion -Wchar-subscripts -Wfloat-equal -Wpointer-sign
> > >>> -Wno-deprecated-declarations -Wno-cast-function-type -Wno-unused-label
> > >>> -Wnested-externs -Wmissing-prototypes -Wstrict-prototypes
> > >>> -Wdeclaration-after-statement -Wimplicit-function-declaration
> > >>> -Wold-style-definition -Wjump-misses-init -Wno-error=unused-parameter
> > >>> -Wno-error=missing-field-initializers
> > >>> -Wno-error=deprecated-declarations -Wno-error=cast-function-type
> > >>> -Wno-error=unused-label -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
> > >>> -D_FILE_OFFSET_BITS=64 -Os -Wl,--no-as-needed -o
> > >>> dbus-update-activation-environment
> > >>> dbus-update-activation-environment.o tool-common.o
> > >>> ../dbus/.libs/libdbus-1.so -Wl,-rpath
> > >>> -Wl,/home/calfee/edi-workspace/buildroot/output/build/dbus-1.12.16/dbus/.libs
> > >>> /home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
> > >>> warning: libpthread.so.0, needed by ../dbus/.libs/libdbus-1.so, not
> > >>> found (try using -rpath or -rpath-link)
> > >>
> > >>  There's no error here, just a warning... But I guess it is followed by some
> > >> undefined pthread symbols.
> > >>
> > > Yes, about 4 undefined symbols.
> > >
> > >
> > >>  It's weird though, since the sysroot/lib directory should be in the toolchain's
> > >> standard search path.
> > >>
> > >>  Could you run the link command with an additional -v option so we see the
> > >> library search path?
> > >>
> > >>  Regards,
> > >>  Arnout
> > >>
> > >
> > > I really appreciate you trying to help. I cannot see how to add a link
> > > option. I tried "make V=2" but with no effect.
> > >
> > > The makefile stuff is pretty complicated. The one in the buildroot
> > > base directory does not have a link command that I can see. I tried
> > > just re-entering the command that was sent to the console with make
> >
> >  Yes, that's what I meant: enter the `.../arm-buildroot-linux-gnueabi-gcc
> > -fno-strict-aliasing ...` command with an additional -v...
> >
> > > V=1, but I don't seem to be in the correct directory to issue that
> > > command.
> >
> >  ... from the directory that contains dbus-update-activation-environment.c, i.e.
> > output/build/dbus-1.12.16/tools/
> >
> >  You can also also set BR2_DEBUG_WRAPPER=1 in the environment to see the options
> > that really get passed to gcc.
> >
> >  Regards,
> >  Arnout
> >
>
> Your path suggestion helped. I did not realize it was failing in the
> .../tools/ directory. My complete console session with this link is in
> the output below.
>
> I don't see anything obviously wrong in the output. I hope it is not
> one of those "order matters" in the link command.
>
>
> calfee at dock-container:~/edi-workspace/buildroot/output/build/dbus-1.12.16/tools$
> /home/calfee/edi-workspace/buildroot/output/host/bin/arm-buildroot-linux-gnueabi-gcc
> -fno-strict-aliasing -fno-common -Wall -Wextra -Wundef -Wwrite-strings
> -Wpointer-arith -Wmissing-declarations -Wredundant-decls
> -Wno-unused-parameter -Wno-missing-field-initializers -Wformat=2
> -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare
> -Wstrict-aliasing -Wshadow -Winline -Wpacked
> -Wmissing-format-attribute -Wmissing-noreturn -Winit-self
> -Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds
> -Wreturn-type -Wswitch-enum -Wswitch-default -Wduplicated-cond
> -Wduplicated-branches -Wlogical-op -Wrestrict -Wnull-dereference
> -Wdouble-promotion -Wchar-subscripts -Wfloat-equal -Wpointer-sign
> -Wno-deprecated-declarations -Wno-cast-function-type -Wno-unused-label
> -Wnested-externs -Wmissing-prototypes -Wstrict-prototypes
> -Wdeclaration-after-statement -Wimplicit-function-declaration
> -Wold-style-definition -Wjump-misses-init -Wno-error=unused-parameter
> -Wno-error=missing-field-initializers
> -Wno-error=deprecated-declarations -Wno-error=cast-function-type
> -Wno-error=unused-label -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
> -D_FILE_OFFSET_BITS=64 -Os -Wl,--no-as-needed -o dbus-monitor
> dbus-monitor.o dbus-print-message.o tool-common.o
> ../dbus/.libs/libdbus-1.so -Wl,-rpath
> -Wl,/home/calfee/edi-workspace/buildroot/output/build/dbus-1.12.16/dbus/.libs
> -v -v
> Toolchain wrapper executing:
> '/home/calfee/edi-workspace/buildroot/../toolchain/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc.br_real'
> '--sysroot' '/home/calfee/edi-workspace/buildroot/output/host/arm-buildroot-linux-gnueabi/sysroot'
> '-mabi=aapcs-linux' '-msoft-float' '-marm' '-mfloat-abi=soft'
> '-mcpu=arm926ej-s' '-fno-strict-aliasing' '-fno-common' '-Wall'
> '-Wextra' '-Wundef' '-Wwrite-strings' '-Wpointer-arith'
> '-Wmissing-declarations' '-Wredundant-decls' '-Wno-unused-parameter'
> '-Wno-missing-field-initializers' '-Wformat=2' '-Wcast-align'
> '-Wformat-nonliteral' '-Wformat-security' '-Wsign-compare'
> '-Wstrict-aliasing' '-Wshadow' '-Winline' '-Wpacked'
> '-Wmissing-format-attribute' '-Wmissing-noreturn' '-Winit-self'
> '-Wmissing-include-dirs' '-Wunused-but-set-variable' '-Warray-bounds'
> '-Wreturn-type' '-Wswitch-enum' '-Wswitch-default' '-Wduplicated-cond'
> '-Wduplicated-branches' '-Wlogical-op' '-Wrestrict'
> '-Wnull-dereference' '-Wdouble-promotion' '-Wchar-subscripts'
> '-Wfloat-equal' '-Wpointer-sign' '-Wno-deprecated-declarations'
> '-Wno-cast-function-type' '-Wno-unused-label' '-Wnested-externs'
> '-Wmissing-prototypes' '-Wstrict-prototypes'
> '-Wdeclaration-after-statement' '-Wimplicit-function-declaration'
> '-Wold-style-definition' '-Wjump-misses-init'
> '-Wno-error=unused-parameter' '-Wno-error=missing-field-initializers'
> '-Wno-error=deprecated-declarations' '-Wno-error=cast-function-type'
> '-Wno-error=unused-label' '-D_LARGEFILE_SOURCE'
> '-D_LARGEFILE64_SOURCE' '-D_FILE_OFFSET_BITS=64' '-Os'
> '-Wl,--no-as-needed' '-o' 'dbus-monitor' 'dbus-monitor.o'
> 'dbus-print-message.o' 'tool-common.o' '../dbus/.libs/libdbus-1.so'
> '-Wl,-rpath' '-Wl,/home/calfee/edi-workspace/buildroot/output/build/dbus-1.12.16/dbus/.libs'
> '-v' '-v'
> Using built-in specs.
> COLLECT_GCC=/home/calfee/edi-workspace/buildroot/../toolchain/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc.br_real
> COLLECT_LTO_WRAPPER=/home/calfee/edi-workspace/toolchain/output/host/libexec/gcc/arm-buildroot-linux-gnueabi/8.3.0/lto-wrapper
> Target: arm-buildroot-linux-gnueabi
> Configured with: ./configure
> --prefix=/home/calfee/edi-workspace/toolchain/output/host
> --sysconfdir=/home/calfee/edi-workspace/toolchain/output/host/etc
> --enable-static --target=arm-buildroot-linux-gnueabi
> --with-sysroot=/home/calfee/edi-workspace/toolchain/output/host/arm-buildroot-linux-gnueabi/sysroot
> --enable-__cxa_atexit --with-gnu-ld --disable-libssp
> --disable-multilib --disable-decimal-float
> --with-gmp=/home/calfee/edi-workspace/toolchain/output/host
> --with-mpc=/home/calfee/edi-workspace/toolchain/output/host
> --with-mpfr=/home/calfee/edi-workspace/toolchain/output/host
> --with-pkgversion='Buildroot 2019.11-git-00838-g196e3d2'
> --with-bugurl=http://bugs.buildroot.net/ --disable-libquadmath
> --enable-tls --enable-threads --without-isl --without-cloog
> --with-float=soft --with-abi=aapcs-linux --with-cpu=arm926ej-s
> --with-float=soft --with-mode=arm --enable-languages=c,c++
> --with-build-time-tools=/home/calfee/edi-workspace/toolchain/output/host/arm-buildroot-linux-gnueabi/bin
> --enable-shared --disable-libgomp
> Thread model: posix
> gcc version 8.3.0 (Buildroot 2019.11-git-00838-g196e3d2)
> COMPILER_PATH=/home/calfee/edi-workspace/toolchain/output/host/libexec/gcc/arm-buildroot-linux-gnueabi/8.3.0/:/home/calfee/edi-workspace/toolchain/output/host/libexec/gcc/arm-buildroot-linux-gnueabi/8.3.0/:/home/calfee/edi-workspace/toolchain/output/host/libexec/gcc/arm-buildroot-linux-gnueabi/:/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/:/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/:/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/
> LIBRARY_PATH=/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/:/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/lib/:/home/calfee/edi-workspace/buildroot/output/host/arm-buildroot-linux-gnueabi/sysroot/lib/:/home/calfee/edi-workspace/buildroot/output/host/arm-buildroot-linux-gnueabi/sysroot/usr/lib/
> COLLECT_GCC_OPTIONS='-mabi=aapcs-linux' '-mfloat-abi=soft' '-marm'
> '-mfloat-abi=soft' '-mcpu=arm926ej-s' '-fno-strict-aliasing'
> '-fno-common' '-Wall' '-Wextra' '-Wundef' '-Wwrite-strings'
> '-Wpointer-arith' '-Wmissing-declarations' '-Wredundant-decls'
> '-Wno-unused-parameter' '-Wno-missing-field-initializers' '-Wformat=2'
> '-Wcast-align' '-Wformat-nonliteral' '-Wformat-security'
> '-Wsign-compare' '-Wstrict-aliasing' '-Wshadow' '-Winline' '-Wpacked'
> '-Wsuggest-attribute=format' '-Wsuggest-attribute=noreturn'
> '-Winit-self' '-Wmissing-include-dirs' '-Wunused-but-set-variable'
> '-Warray-bounds' '-Wreturn-type' '-Wswitch-enum' '-Wswitch-default'
> '-Wduplicated-cond' '-Wduplicated-branches' '-Wlogical-op'
> '-Wrestrict' '-Wnull-dereference' '-Wdouble-promotion'
> '-Wchar-subscripts' '-Wfloat-equal' '-Wpointer-sign'
> '-Wno-deprecated-declarations' '-Wno-cast-function-type'
> '-Wno-unused-label' '-Wnested-externs' '-Wmissing-prototypes'
> '-Wstrict-prototypes' '-Wdeclaration-after-statement'
> '-Wimplicit-function-declaration' '-Wold-style-definition'
> '-Wjump-misses-init' '-Wno-error=unused-parameter'
> '-Wno-error=missing-field-initializers'
> '-Wno-error=deprecated-declarations' '-Wno-error=cast-function-type'
> '-Wno-error=unused-label' '-D' '_LARGEFILE_SOURCE' '-D'
> '_LARGEFILE64_SOURCE' '-D' '_FILE_OFFSET_BITS=64' '-Os' '-o'
> 'dbus-monitor' '-v' '-v' '-mtls-dialect=gnu' '-march=armv5tej'
>  /home/calfee/edi-workspace/toolchain/output/host/libexec/gcc/arm-buildroot-linux-gnueabi/8.3.0/collect2
> -plugin /home/calfee/edi-workspace/toolchain/output/host/libexec/gcc/arm-buildroot-linux-gnueabi/8.3.0/liblto_plugin.so
> -plugin-opt=/home/calfee/edi-workspace/toolchain/output/host/libexec/gcc/arm-buildroot-linux-gnueabi/8.3.0/lto-wrapper
> -plugin-opt=-fresolution=/tmp/cctkHjeE.res
> -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s
> -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc
> -plugin-opt=-pass-through=-lgcc_s
> --sysroot=/home/calfee/edi-workspace/buildroot/output/host/arm-buildroot-linux-gnueabi/sysroot
> --eh-frame-hdr -dynamic-linker /lib/ld-linux.so.3 -X -m
> armelf_linux_eabi -o dbus-monitor
> /home/calfee/edi-workspace/buildroot/output/host/arm-buildroot-linux-gnueabi/sysroot/usr/lib/crt1.o
> /home/calfee/edi-workspace/buildroot/output/host/arm-buildroot-linux-gnueabi/sysroot/usr/lib/crti.o
> /home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/crtbegin.o
> -L/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0
> -L/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/lib
> -L/home/calfee/edi-workspace/buildroot/output/host/arm-buildroot-linux-gnueabi/sysroot/lib
> -L/home/calfee/edi-workspace/buildroot/output/host/arm-buildroot-linux-gnueabi/sysroot/usr/lib
> --no-as-needed dbus-monitor.o dbus-print-message.o tool-common.o
> ../dbus/.libs/libdbus-1.so -rpath
> /home/calfee/edi-workspace/buildroot/output/build/dbus-1.12.16/dbus/.libs
> -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s
> --no-as-needed /home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/crtend.o
> /home/calfee/edi-workspace/buildroot/output/host/arm-buildroot-linux-gnueabi/sysroot/usr/lib/crtn.o
> /home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
> warning: libpthread.so.0, needed by ../dbus/.libs/libdbus-1.so, not
> found (try using -rpath or -rpath-link)
> /home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
> ../dbus/.libs/libdbus-1.so: undefined reference to
> `pthread_mutexattr_init at GLIBC_2.4'
> /home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
> ../dbus/.libs/libdbus-1.so: undefined reference to
> `pthread_mutexattr_destroy at GLIBC_2.4'
> /home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
> ../dbus/.libs/libdbus-1.so: undefined reference to
> `pthread_condattr_setclock at GLIBC_2.4'
> /home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
> ../dbus/.libs/libdbus-1.so: undefined reference to
> `pthread_mutexattr_settype at GLIBC_2.4'
> collect2: error: ld returned 1 exit status
> calfee at dock-container:~/edi-workspace/buildroot/output/build/dbus-1.12.16/tools$

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] Build failure on upgrade to 2019.08.1
  2019-10-10 16:09       ` Steve Calfee
  2019-10-10 16:16         ` Steve Calfee
@ 2019-10-11 19:34         ` Arnout Vandecappelle
  2019-10-11 20:26           ` Steve Calfee
  1 sibling, 1 reply; 13+ messages in thread
From: Arnout Vandecappelle @ 2019-10-11 19:34 UTC (permalink / raw)
  To: buildroot

 Hi Steve,

 I'll continue try to debug remotely but it gets harder and harder :-)

On 10/10/2019 18:09, Steve Calfee wrote:
[snip]
> I don't see anything obviously wrong in the output. I hope it is not
> one of those "order matters" in the link command.

 Order matters generally only applies to static linking.


[snip]
> Toolchain wrapper executing:
> '/home/calfee/edi-workspace/buildroot/../toolchain/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc.br_real'
> '--sysroot' '/home/calfee/edi-workspace/buildroot/output/host/arm-buildroot-linux-gnueabi/sysroot'

 This is what I wanted to double-check. Looks correct.


> gcc version 8.3.0 (Buildroot 2019.11-git-00838-g196e3d2)

 Oh, I hadn't noticed this bit before: you're building the toolchain with
Buildroot master and use it with Buildroot 2019.8.1. Not that it should matter,
but I'll just try that use case now.

[snip]
> -L/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0
> -L/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/lib

 Clutching at straws here, but: is this also the location where you originally
built the toolchain, or did you move it around? I would in fact expect
libpthread.so.0 to be in this directory as well..

> -L/home/calfee/edi-workspace/buildroot/output/host/arm-buildroot-linux-gnueabi/sysroot/lib

 So the directory containing libpthread.so.0 *is* included with -L...

> -L/home/calfee/edi-workspace/buildroot/output/host/arm-buildroot-linux-gnueabi/sysroot/usr/lib
> --no-as-needed dbus-monitor.o dbus-print-message.o tool-common.o
> ../dbus/.libs/libdbus-1.so -rpath

 Maybe this .so file has an RPATH and maybe for some reason the linker uses that
instead of -L for the NEEDED entries?

 Or maybe the fact that a -rpath is specified on the command line overrides the
-L options?

 But in either case, I should be able to reproduce...

 Could you post the defconfig for your toolchain and for the failing config?

 Regards,
 Arnout

> /home/calfee/edi-workspace/buildroot/output/build/dbus-1.12.16/dbus/.libs
> -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s
> --no-as-needed /home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/crtend.o
> /home/calfee/edi-workspace/buildroot/output/host/arm-buildroot-linux-gnueabi/sysroot/usr/lib/crtn.o
> /home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
> warning: libpthread.so.0, needed by ../dbus/.libs/libdbus-1.so, not
> found (try using -rpath or -rpath-link)
> /home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
> ../dbus/.libs/libdbus-1.so: undefined reference to
> `pthread_mutexattr_init at GLIBC_2.4'
> /home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
> ../dbus/.libs/libdbus-1.so: undefined reference to
> `pthread_mutexattr_destroy at GLIBC_2.4'
> /home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
> ../dbus/.libs/libdbus-1.so: undefined reference to
> `pthread_condattr_setclock at GLIBC_2.4'
> /home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
> ../dbus/.libs/libdbus-1.so: undefined reference to
> `pthread_mutexattr_settype at GLIBC_2.4'
> collect2: error: ld returned 1 exit status
> calfee at dock-container:~/edi-workspace/buildroot/output/build/dbus-1.12.16/tools$
> 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] Build failure on upgrade to 2019.08.1
  2019-10-11 19:34         ` Arnout Vandecappelle
@ 2019-10-11 20:26           ` Steve Calfee
  2019-10-12 11:38             ` Arnout Vandecappelle
  0 siblings, 1 reply; 13+ messages in thread
From: Steve Calfee @ 2019-10-11 20:26 UTC (permalink / raw)
  To: buildroot

Hi Arnout,
On Fri, Oct 11, 2019 at 12:34 PM Arnout Vandecappelle <arnout@mind.be> wrote:
>
>  Hi Steve,
>
>  I'll continue try to debug remotely but it gets harder and harder :-)
>
> On 10/10/2019 18:09, Steve Calfee wrote:
> [snip]
> > I don't see anything obviously wrong in the output. I hope it is not
> > one of those "order matters" in the link command.
>
>  Order matters generally only applies to static linking.
>
>
> [snip]
> > Toolchain wrapper executing:
> > '/home/calfee/edi-workspace/buildroot/../toolchain/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc.br_real'
> > '--sysroot' '/home/calfee/edi-workspace/buildroot/output/host/arm-buildroot-linux-gnueabi/sysroot'
>
>  This is what I wanted to double-check. Looks correct.
>
>
> > gcc version 8.3.0 (Buildroot 2019.11-git-00838-g196e3d2)
>
>  Oh, I hadn't noticed this bit before: you're building the toolchain with
> Buildroot master and use it with Buildroot 2019.8.1. Not that it should matter,
> but I'll just try that use case now.
>
> [snip]
> > -L/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0
> > -L/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/lib
>
>  Clutching at straws here, but: is this also the location where you originally
> built the toolchain, or did you move it around? I would in fact expect
> libpthread.so.0 to be in this directory as well..
>
> > -L/home/calfee/edi-workspace/buildroot/output/host/arm-buildroot-linux-gnueabi/sysroot/lib
>
>  So the directory containing libpthread.so.0 *is* included with -L...
>
> > -L/home/calfee/edi-workspace/buildroot/output/host/arm-buildroot-linux-gnueabi/sysroot/usr/lib
> > --no-as-needed dbus-monitor.o dbus-print-message.o tool-common.o
> > ../dbus/.libs/libdbus-1.so -rpath
>
>  Maybe this .so file has an RPATH and maybe for some reason the linker uses that
> instead of -L for the NEEDED entries?
>
>  Or maybe the fact that a -rpath is specified on the command line overrides the
> -L options?
>
>  But in either case, I should be able to reproduce...
>
>  Could you post the defconfig for your toolchain and for the failing config?
>
>  Regards,
>  Arnout
>
> > /home/calfee/edi-workspace/buildroot/output/build/dbus-1.12.16/dbus/.libs
> > -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s
> > --no-as-needed /home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/crtend.o
> > /home/calfee/edi-workspace/buildroot/output/host/arm-buildroot-linux-gnueabi/sysroot/usr/lib/crtn.o
> > /home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
> > warning: libpthread.so.0, needed by ../dbus/.libs/libdbus-1.so, not
> > found (try using -rpath or -rpath-link)
> > /home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
> > ../dbus/.libs/libdbus-1.so: undefined reference to
> > `pthread_mutexattr_init at GLIBC_2.4'
> > /home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
> > ../dbus/.libs/libdbus-1.so: undefined reference to
> > `pthread_mutexattr_destroy at GLIBC_2.4'
> > /home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
> > ../dbus/.libs/libdbus-1.so: undefined reference to
> > `pthread_condattr_setclock at GLIBC_2.4'
> > /home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
> > ../dbus/.libs/libdbus-1.so: undefined reference to
> > `pthread_mutexattr_settype at GLIBC_2.4'
> > collect2: error: ld returned 1 exit status
> > calfee at dock-container:~/edi-workspace/buildroot/output/build/dbus-1.12.16/tools$
> >

Thanks for trying. Here are my two configs:
TOOLCHAIN:
BR2_arm=y
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY=y
BR2_TARGET_OPTIMIZATION="-Os -pipe"
# BR2_TARGET_GENERIC_GETTY is not set
# BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set
BR2_GENERATE_LOCALE="en_US.UTF-8"
BR2_PACKAGE_LIBPTHREAD_STUBS=y
# BR2_TARGET_ROOTFS_TAR is not set
BR2_TARGET_SHEEVAPLUG=y

The last line selects some stuff in my external, just does a define.
BR2_TARGET_SHEEVAPLUG=y

BUILDROOT defconfig
BR2_arm=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
BR2_TOOLCHAIN_EXTERNAL_PATH="$(TOPDIR)/../toolchain/output/host/usr"
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="arm-buildroot-linux-gnueabi"
BR2_TOOLCHAIN_EXTERNAL_GCC_8=y
BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_1=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y
BR2_TOOLCHAIN_EXTERNAL_CXX=y
BR2_TOOLCHAIN_EXTRA_EXTERNAL_LIBS="libpthread.so.0"
BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY=y
BR2_TARGET_GENERIC_HOSTNAME="dockstar"
BR2_TARGET_GENERIC_ISSUE="Welcome to Steve's Dockstar"
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
BR2_ROOTFS_DEVICE_TABLE="$(BR2_EXTERNAL_MY_DOCKSTAR_PATH)/seagatedockstar/device_table.txt"
BR2_ENABLE_LOCALE_WHITELIST="C en_US.utf8 C.UTF-8"
BR2_GENERATE_LOCALE="en_US"
BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_MY_DOCKSTAR_PATH)/seagatedockstar/skeleton"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(BR2_EXTERNAL_MY_DOCKSTAR_PATH)/configs/dockstar_linux_defconfig"
BR2_LINUX_KERNEL_UIMAGE=y
BR2_LINUX_KERNEL_UIMAGE_LOADADDR="0x8000"
BR2_LINUX_KERNEL_DTS_SUPPORT=y
BR2_LINUX_KERNEL_INTREE_DTS_NAME="kirkwood-dockstar"
BR2_LINUX_KERNEL_INSTALL_TARGET=y
BR2_PACKAGE_BUSYBOX_CONFIG="$(BR2_EXTERNAL_MY_DOCKSTAR_PATH)/configs/testbb_defconfig"
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
BR2_PACKAGE_STRACE=y
BR2_PACKAGE_GETTEXT=y
BR2_PACKAGE_TREE=y
BR2_PACKAGE_MTD=y
BR2_PACKAGE_MTD_MKFSUBIFS=y
BR2_PACKAGE_NFS_UTILS=y
BR2_PACKAGE_NFS_UTILS_RPCDEBUG=y
BR2_PACKAGE_SSHFS=y
BR2_PACKAGE_UBOOT_TOOLS=y
BR2_PACKAGE_UBOOT_TOOLS_MKIMAGE=y
BR2_PACKAGE_UBOOT_TOOLS_MKENVIMAGE=y
BR2_PACKAGE_USBMOUNT=y
BR2_PACKAGE_USBUTILS=y
BR2_PACKAGE_PHP=y
BR2_PACKAGE_PHP_SAPI_CGI=y
BR2_PACKAGE_PHP_SAPI_CLI=y
BR2_PACKAGE_PHP_EXT_SIMPLEXML=y
BR2_PACKAGE_PHP_EXT_WDDX=y
BR2_PACKAGE_PHP_EXT_XML=y
BR2_PACKAGE_PHP_EXT_XMLREADER=y
BR2_PACKAGE_PHP_EXT_XMLWRITER=y
BR2_PACKAGE_PHP_EXT_XSL=y
BR2_PACKAGE_PYTHON=y
BR2_PACKAGE_PYTHON_PY_PYC=y
BR2_PACKAGE_PYTHON_UCS4=y
BR2_PACKAGE_PYTHON_PYMYSQL=y
BR2_PACKAGE_PYTHON_PYRATEMP=y
BR2_PACKAGE_PYTHON_REQUESTS=y
BR2_PACKAGE_PYTHON_TORNADO=y
BR2_PACKAGE_MYSQL=y
BR2_PACKAGE_ORACLE_MYSQL_SERVER=y
BR2_PACKAGE_LIBCURL=y
BR2_PACKAGE_CURL=y
BR2_PACKAGE_LIBCURL_VERBOSE=y
BR2_PACKAGE_NSS_MDNS=y
BR2_PACKAGE_ICU=y
BR2_PACKAGE_NCURSES_WCHAR=y
BR2_PACKAGE_AVAHI=y
BR2_PACKAGE_AVAHI_DAEMON=y
BR2_PACKAGE_AVAHI_LIBDNSSD_COMPATIBILITY=y
BR2_PACKAGE_NTP=y
BR2_PACKAGE_RSYNC=y
BR2_PACKAGE_STUNNEL=y
BR2_PACKAGE_TCPDUMP=y
BR2_PACKAGE_BASH=y
BR2_PACKAGE_LESS=y
BR2_PACKAGE_MC=y
BR2_PACKAGE_NANO=y
BR2_TARGET_ROOTFS_UBI=y


Note: I have tried both with and without
BR2_TOOLCHAIN_EXTRA_EXTERNAL_LIBS="libpthread.so.0"
Fails both ways as reported.

Thanks for all your time.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] Build failure on upgrade to 2019.08.1
  2019-10-11 20:26           ` Steve Calfee
@ 2019-10-12 11:38             ` Arnout Vandecappelle
  2019-10-14 21:26               ` Steve Calfee
  0 siblings, 1 reply; 13+ messages in thread
From: Arnout Vandecappelle @ 2019-10-12 11:38 UTC (permalink / raw)
  To: buildroot



On 11/10/2019 22:26, Steve Calfee wrote:
[snip]
> Thanks for trying. Here are my two configs:

 Hm, I still couldn't reproduce with those... I used 'make toolchain' for the
toolchain, and 'make dbus for the full build. And of course I removed all the
sheevaplug and dockstar stuff that I don't have...

 Regards,
 Arnout

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] Build failure on upgrade to 2019.08.1
  2019-10-12 11:38             ` Arnout Vandecappelle
@ 2019-10-14 21:26               ` Steve Calfee
  2019-10-15  7:56                 ` Arnout Vandecappelle
  0 siblings, 1 reply; 13+ messages in thread
From: Steve Calfee @ 2019-10-14 21:26 UTC (permalink / raw)
  To: buildroot

Hi Arnout,

I am still having the build fail in dbus - could you post the two
configs you used successfully?

Steve

On Sat, Oct 12, 2019 at 4:38 AM Arnout Vandecappelle <arnout@mind.be> wrote:
>
>
>
> On 11/10/2019 22:26, Steve Calfee wrote:
> [snip]
> > Thanks for trying. Here are my two configs:
>
>  Hm, I still couldn't reproduce with those... I used 'make toolchain' for the
> toolchain, and 'make dbus for the full build. And of course I removed all the
> sheevaplug and dockstar stuff that I don't have...
>
>  Regards,
>  Arnout

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] Build failure on upgrade to 2019.08.1
  2019-10-14 21:26               ` Steve Calfee
@ 2019-10-15  7:56                 ` Arnout Vandecappelle
  2019-10-15 17:38                   ` Steve Calfee
  0 siblings, 1 reply; 13+ messages in thread
From: Arnout Vandecappelle @ 2019-10-15  7:56 UTC (permalink / raw)
  To: buildroot



On 14/10/2019 23:26, Steve Calfee wrote:
> Hi Arnout,
> 
> I am still having the build fail in dbus - could you post the two
> configs you used successfully?

 Hm, I didn't save those configs so I'm not 100% sure that they're correct, but
here goes:

toolchain defconfig, built on master of a couple of days ago, using 'make toolchain'

BR2_arm=y
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY=y
BR2_TARGET_OPTIMIZATION="-Os -pipe"
# BR2_TARGET_GENERIC_GETTY is not set
# BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set
BR2_GENERATE_LOCALE="en_US.UTF-8"
BR2_PACKAGE_LIBPTHREAD_STUBS=y
BR2_PACKAGE_CLAMAV=y
# BR2_TARGET_ROOTFS_TAR is not set


dbus defconfig, built on 2019.08.x of a couple of days ago, built with `make dbus`.

BR2_arm=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
BR2_TOOLCHAIN_EXTERNAL_PATH="$(TOPDIR)/../buildroot/output/host/usr"
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="arm-buildroot-linux-gnueabi"
BR2_TOOLCHAIN_EXTERNAL_GCC_8=y
BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_1=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y
BR2_TOOLCHAIN_EXTERNAL_CXX=y
BR2_TOOLCHAIN_EXTRA_EXTERNAL_LIBS="libpthread.so.0"
BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY=y
BR2_TARGET_GENERIC_HOSTNAME="dockstar"
BR2_TARGET_GENERIC_ISSUE="Welcome to Steve's Dockstar"
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
BR2_ENABLE_LOCALE_WHITELIST="C en_US.utf8 C.UTF-8"
BR2_GENERATE_LOCALE="en_US"
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
BR2_PACKAGE_STRACE=y
BR2_PACKAGE_GETTEXT=y
BR2_PACKAGE_TREE=y
BR2_PACKAGE_MTD=y
BR2_PACKAGE_MTD_MKFSUBIFS=y
BR2_PACKAGE_NFS_UTILS=y
BR2_PACKAGE_NFS_UTILS_RPCDEBUG=y
BR2_PACKAGE_SSHFS=y
BR2_PACKAGE_UBOOT_TOOLS=y
BR2_PACKAGE_UBOOT_TOOLS_MKIMAGE=y
BR2_PACKAGE_UBOOT_TOOLS_MKENVIMAGE=y
BR2_PACKAGE_USBMOUNT=y
BR2_PACKAGE_USBUTILS=y
BR2_PACKAGE_PHP=y
BR2_PACKAGE_PHP_SAPI_CGI=y
BR2_PACKAGE_PHP_SAPI_CLI=y
BR2_PACKAGE_PHP_EXT_SIMPLEXML=y
BR2_PACKAGE_PHP_EXT_WDDX=y
BR2_PACKAGE_PHP_EXT_XML=y
BR2_PACKAGE_PHP_EXT_XMLREADER=y
BR2_PACKAGE_PHP_EXT_XMLWRITER=y
BR2_PACKAGE_PHP_EXT_XSL=y
BR2_PACKAGE_PYTHON=y
BR2_PACKAGE_PYTHON_PY_PYC=y
BR2_PACKAGE_PYTHON_UCS4=y
BR2_PACKAGE_PYTHON_PYMYSQL=y
BR2_PACKAGE_PYTHON_PYRATEMP=y
BR2_PACKAGE_PYTHON_REQUESTS=y
BR2_PACKAGE_PYTHON_TORNADO=y
BR2_PACKAGE_MYSQL=y
BR2_PACKAGE_ORACLE_MYSQL_SERVER=y
BR2_PACKAGE_LIBCURL=y
BR2_PACKAGE_CURL=y
BR2_PACKAGE_LIBCURL_VERBOSE=y
BR2_PACKAGE_NSS_MDNS=y
BR2_PACKAGE_ICU=y
BR2_PACKAGE_NCURSES_WCHAR=y
BR2_PACKAGE_AVAHI=y
BR2_PACKAGE_AVAHI_DAEMON=y
BR2_PACKAGE_AVAHI_LIBDNSSD_COMPATIBILITY=y
BR2_PACKAGE_NTP=y
BR2_PACKAGE_RSYNC=y
BR2_PACKAGE_STUNNEL=y
BR2_PACKAGE_TCPDUMP=y
BR2_PACKAGE_BASH=y
BR2_PACKAGE_LESS=y
BR2_PACKAGE_MC=y
BR2_PACKAGE_NANO=y
BR2_TARGET_ROOTFS_UBI=y




 Regards,
 Arnout

> 
> Steve
> 
> On Sat, Oct 12, 2019 at 4:38 AM Arnout Vandecappelle <arnout@mind.be> wrote:
>>
>>
>>
>> On 11/10/2019 22:26, Steve Calfee wrote:
>> [snip]
>>> Thanks for trying. Here are my two configs:
>>
>>  Hm, I still couldn't reproduce with those... I used 'make toolchain' for the
>> toolchain, and 'make dbus for the full build. And of course I removed all the
>> sheevaplug and dockstar stuff that I don't have...
>>
>>  Regards,
>>  Arnout

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] Build failure on upgrade to 2019.08.1
  2019-10-15  7:56                 ` Arnout Vandecappelle
@ 2019-10-15 17:38                   ` Steve Calfee
  2019-10-15 23:19                     ` Steve Calfee
  0 siblings, 1 reply; 13+ messages in thread
From: Steve Calfee @ 2019-10-15 17:38 UTC (permalink / raw)
  To: buildroot

Hi Arnout,

Still failing in the same way. I am running ubuntu 16.04.6 LTS.

I checked out the same versions as you and built as you said explicitly.

<quote>
built on master of a couple of days ago, using 'make toolchain'
built on 2019.08.x of a couple of days ago, built with `make dbus`.
</quote>

This is very confusing. Maybe something is missing or wrong in my host
environment?

Steve


On Tue, Oct 15, 2019 at 12:56 AM Arnout Vandecappelle <arnout@mind.be> wrote:
>
>
>
> On 14/10/2019 23:26, Steve Calfee wrote:
> > Hi Arnout,
> >
> > I am still having the build fail in dbus - could you post the two
> > configs you used successfully?
>
>  Hm, I didn't save those configs so I'm not 100% sure that they're correct, but
> here goes:
>
> toolchain defconfig, built on master of a couple of days ago, using 'make toolchain'
>
> BR2_arm=y
> BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
> BR2_TOOLCHAIN_BUILDROOT_CXX=y
> BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY=y
> BR2_TARGET_OPTIMIZATION="-Os -pipe"
> # BR2_TARGET_GENERIC_GETTY is not set
> # BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set
> BR2_GENERATE_LOCALE="en_US.UTF-8"
> BR2_PACKAGE_LIBPTHREAD_STUBS=y
> BR2_PACKAGE_CLAMAV=y
> # BR2_TARGET_ROOTFS_TAR is not set
>

My toolchain defconfig:
BR2_arm=y
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY=y
BR2_TARGET_OPTIMIZATION="-Os -pipe"
BR2_GENERATE_LOCALE="en_US.UTF-8"
BR2_PACKAGE_LIBTOOL=y
BR2_PACKAGE_OPENSSL=y
BR2_PACKAGE_LIBPTHREAD_STUBS=y

>
> dbus defconfig, built on 2019.08.x of a couple of days ago, built with `make dbus`.
>
> BR2_arm=y
> BR2_TOOLCHAIN_EXTERNAL=y
> BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
> BR2_TOOLCHAIN_EXTERNAL_PATH="$(TOPDIR)/../buildroot/output/host/usr"
> BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="arm-buildroot-linux-gnueabi"
> BR2_TOOLCHAIN_EXTERNAL_GCC_8=y
> BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_1=y
> BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y
> BR2_TOOLCHAIN_EXTERNAL_CXX=y
> BR2_TOOLCHAIN_EXTRA_EXTERNAL_LIBS="libpthread.so.0"
> BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY=y
> BR2_TARGET_GENERIC_HOSTNAME="dockstar"
> BR2_TARGET_GENERIC_ISSUE="Welcome to Steve's Dockstar"
> BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
> BR2_ENABLE_LOCALE_WHITELIST="C en_US.utf8 C.UTF-8"
> BR2_GENERATE_LOCALE="en_US"
> BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
> BR2_PACKAGE_STRACE=y
> BR2_PACKAGE_GETTEXT=y
> BR2_PACKAGE_TREE=y
> BR2_PACKAGE_MTD=y
> BR2_PACKAGE_MTD_MKFSUBIFS=y
> BR2_PACKAGE_NFS_UTILS=y
> BR2_PACKAGE_NFS_UTILS_RPCDEBUG=y
> BR2_PACKAGE_SSHFS=y
> BR2_PACKAGE_UBOOT_TOOLS=y
> BR2_PACKAGE_UBOOT_TOOLS_MKIMAGE=y
> BR2_PACKAGE_UBOOT_TOOLS_MKENVIMAGE=y
> BR2_PACKAGE_USBMOUNT=y
> BR2_PACKAGE_USBUTILS=y
> BR2_PACKAGE_PHP=y
> BR2_PACKAGE_PHP_SAPI_CGI=y
> BR2_PACKAGE_PHP_SAPI_CLI=y
> BR2_PACKAGE_PHP_EXT_SIMPLEXML=y
> BR2_PACKAGE_PHP_EXT_WDDX=y
> BR2_PACKAGE_PHP_EXT_XML=y
> BR2_PACKAGE_PHP_EXT_XMLREADER=y
> BR2_PACKAGE_PHP_EXT_XMLWRITER=y
> BR2_PACKAGE_PHP_EXT_XSL=y
> BR2_PACKAGE_PYTHON=y
> BR2_PACKAGE_PYTHON_PY_PYC=y
> BR2_PACKAGE_PYTHON_UCS4=y
> BR2_PACKAGE_PYTHON_PYMYSQL=y
> BR2_PACKAGE_PYTHON_PYRATEMP=y
> BR2_PACKAGE_PYTHON_REQUESTS=y
> BR2_PACKAGE_PYTHON_TORNADO=y
> BR2_PACKAGE_MYSQL=y
> BR2_PACKAGE_ORACLE_MYSQL_SERVER=y
> BR2_PACKAGE_LIBCURL=y
> BR2_PACKAGE_CURL=y
> BR2_PACKAGE_LIBCURL_VERBOSE=y
> BR2_PACKAGE_NSS_MDNS=y
> BR2_PACKAGE_ICU=y
> BR2_PACKAGE_NCURSES_WCHAR=y
> BR2_PACKAGE_AVAHI=y
> BR2_PACKAGE_AVAHI_DAEMON=y
> BR2_PACKAGE_AVAHI_LIBDNSSD_COMPATIBILITY=y
> BR2_PACKAGE_NTP=y
> BR2_PACKAGE_RSYNC=y
> BR2_PACKAGE_STUNNEL=y
> BR2_PACKAGE_TCPDUMP=y
> BR2_PACKAGE_BASH=y
> BR2_PACKAGE_LESS=y
> BR2_PACKAGE_MC=y
> BR2_PACKAGE_NANO=y
> BR2_TARGET_ROOTFS_UBI=y
>
My extremely minimized app defconfig:

BR2_arm=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
BR2_TOOLCHAIN_EXTERNAL_PATH="$(TOPDIR)/../toolchain/output/host/usr"
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="arm-buildroot-linux-gnueabi"
BR2_TOOLCHAIN_EXTERNAL_GCC_8=y
BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_1=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y
BR2_TOOLCHAIN_EXTERNAL_CXX=y
BR2_TOOLCHAIN_EXTRA_EXTERNAL_LIBS="libpthread.so.0"
BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY=y
BR2_TARGET_GENERIC_HOSTNAME="dockstar"
BR2_TARGET_GENERIC_ISSUE="Welcome to Steve's Dockstar"
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
BR2_ENABLE_LOCALE_WHITELIST="C en_US.utf8 C.UTF-8"
BR2_GENERATE_LOCALE="en_US"
BR2_PACKAGE_DBUS=y
BR2_PACKAGE_DBUS_GLIB=y

From my app buildroot dir, I verify libpthread exists - I guess
installed from the toolchain buildroot:

calfee at trillium:~/edi-workspace/buildroot$ find output/ | grep
libpthread | xargs ls -l
-rwxr-xr-x 1 calfee calfee 148180 Oct 15 09:54
output/host/arm-buildroot-linux-gnueabi/sysroot/lib/libpthread-2.30.so
lrwxrwxrwx 1 calfee calfee     18 Oct 15 09:54
output/host/arm-buildroot-linux-gnueabi/sysroot/lib/libpthread.so.0 ->
libpthread-2.30.so
-rw-r--r-- 1 calfee calfee 347762 Oct 15 09:54
output/host/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libpthread.a
lrwxrwxrwx 1 calfee calfee     25 Oct 15 09:54
output/host/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libpthread.so
-> ../../lib/libpthread.so.0
-rwxr-xr-x 1 calfee calfee 148180 Oct 15 10:18
output/target/lib/libpthread-2.30.so
lrwxrwxrwx 1 calfee calfee     18 Oct 15 10:18
output/target/lib/libpthread.so.0 -> libpthread-2.30.so

From the 1019.8.x branch I did make clean; make dbus. Here is the failure:

  CCLD     dbus-update-activation-environment
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
warning: libpthread.so.0, needed by ../dbus/.libs/libdbus-1.so, not
found (try using -rpath or -rpath-link)
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
../dbus/.libs/libdbus-1.so: undefined reference to
`pthread_mutexattr_init at GLIBC_2.4'
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
../dbus/.libs/libdbus-1.so: undefined reference to
`pthread_mutexattr_destroy at GLIBC_2.4'
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
../dbus/.libs/libdbus-1.so: undefined reference to
`pthread_condattr_setclock at GLIBC_2.4'
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
../dbus/.libs/libdbus-1.so: undefined reference to
`pthread_mutexattr_settype at GLIBC_2.4'
collect2: error: ld returned 1 exit status
Makefile:727: recipe for target 'dbus-launch' failed
make[4]: *** [dbus-launch] Error 1
make[4]: *** Waiting for unfinished jobs....
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
warning: libpthread.so.0, needed by ../dbus/.libs/libdbus-1.so, not
found (try using -rpath or -rpath-link)
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
../dbus/.libs/libdbus-1.so: undefined reference to
`pthread_mutexattr_init at GLIBC_2.4'
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
../dbus/.libs/libdbus-1.so: undefined reference to
`pthread_mutexattr_destroy at GLIBC_2.4'
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
../dbus/.libs/libdbus-1.so: undefined reference to
`pthread_condattr_setclock at GLIBC_2.4'
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
../dbus/.libs/libdbus-1.so: undefined reference to
`pthread_mutexattr_settype at GLIBC_2.4'
collect2: error: ld returned 1 exit status
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
warning: libpthread.so.0, needed by ../dbus/.libs/libdbus-1.so, not
found (try using -rpath or -rpath-link)
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
../dbus/.libs/libdbus-1.so: undefined reference to
`pthread_mutexattr_init at GLIBC_2.4'
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
../dbus/.libs/libdbus-1.so: undefined referenceMakefile:731: recipe
for target 'dbus-monitor' failed
 tomake[4]: *** [dbus-monitor] Error 1
 `pthread_mutexattr_destroy at GLIBC_2.4'
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
../dbus/.libs/libdbus-1.so: undefined reference to
`pthread_condattr_setclock at GLIBC_2.4'
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
../dbus/.libs/libdbus-1.so: undefined reference to
`pthread_mutexattr_settype at GLIBC_2.4'
collect2: error: ld returned 1 exit status
Makefile:739: recipe for target 'dbus-send' failed
make[4]: *** [dbus-send] Error 1
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
warning: libpthread.so.0, needed by ../dbus/.libs/libdbus-1.so, not
found (try using -rpath or -rpath-link)
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
../dbus/.libs/libdbus-1.so: undefined reference to
`pthread_mutexattr_init at GLIBC_2.4'
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
../dbus/.libs/libdbus-1.so: undefined reference to
`pthread_mutexattr_destroy at GLIBC_2.4'
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
../dbus/.libs/libdbus-1.so: undefined reference to
`pthread_condattr_setclock at GLIBC_2.4'
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
../dbus/.libs/libdbus-1.so: undefined reference to
`pthread_mutexattr_settype at GLIBC_2.4'
collect2: error: ld returned 1 exit status
Makefile:743: recipe for target 'dbus-test-tool' failed
make[4]: *** [dbus-test-tool] Error 1
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
warning: libpthread.so.0, needed by ../dbus/.libs/libdbus-1.so, not
found (try using -rpath or -rpath-link)
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
../dbus/.libs/libdbus-1.so: undefined reference to
`pthread_mutexattr_init at GLIBC_2.4'
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
../dbus/.libs/libdbus-1.so: undefined reference to
`pthread_mutexattr_destroy at GLIBC_2.4'
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
../dbus/.libs/libdbus-1.so: undefined reference to
`pthread_condattr_setclock at GLIBC_2.4'
/home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
../dbus/.libs/libdbus-1.so: undefined reference to
`pthread_mutexattr_settype at GLIBC_2.4'
collect2: error: ld returned 1 exit status
Makefile:747: recipe for target 'dbus-update-activation-environment' failed
make[4]: *** [dbus-update-activation-environment] Error 1
Makefile:706: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
Makefile:573: recipe for target 'all' failed
make[2]: *** [all] Error 2
package/pkg-generic.mk:238: recipe for target
'/home/calfee/edi-workspace/buildroot/output/build/dbus-1.12.16/.stamp_built'
failed
make[1]: *** [/home/calfee/edi-workspace/buildroot/output/build/dbus-1.12.16/.stamp_built]
Error 2
Makefile:84: recipe for target '_all' failed
make: *** [_all] Error 2

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] Build failure on upgrade to 2019.08.1
  2019-10-15 17:38                   ` Steve Calfee
@ 2019-10-15 23:19                     ` Steve Calfee
  0 siblings, 0 replies; 13+ messages in thread
From: Steve Calfee @ 2019-10-15 23:19 UTC (permalink / raw)
  To: buildroot

On Tue, Oct 15, 2019 at 10:38 AM Steve Calfee <stevecalfee@gmail.com> wrote:
>
> Hi Arnout,
>
> Still failing in the same way. I am running ubuntu 16.04.6 LTS.
>
> I checked out the same versions as you and built as you said explicitly.
>
> <quote>
> built on master of a couple of days ago, using 'make toolchain'
> built on 2019.08.x of a couple of days ago, built with `make dbus`.
> </quote>
>
> This is very confusing. Maybe something is missing or wrong in my host
> environment?
>
> Steve
>
>
<snip>
> From the 1019.8.x branch I did make clean; make dbus. Here is the failure:
>
>   CCLD     dbus-update-activation-environment
> /home/calfee/edi-workspace/toolchain/output/host/lib/gcc/arm-buildroot-linux-gnueabi/8.3.0/../../../../arm-buildroot-linux-gnueabi/bin/ld:
> warning: libpthread.so.0, needed by ../dbus/.libs/libdbus-1.so, not
> found (try using -rpath or -rpath-link)
<snip>

I don't understand why a .so is being used in a link?

In any case, if I change my defconfig to use the pre-built code
sourcery tool chain it no longer fails. So something is wrong with my
toolchain?

Here is a snip from the successful build:
  CCLD     dbus-update-activation-environment
  CCLD     dbus-cleanup-sockets
  CCLD     dbus-run-session
  CCLD     dbus-uuidgen
Making all in test
Making all in .
  CC       test-utils.lo
  GEN      uninstalled-config-local
  GEN      data/valid-config-files/session.conf
  GEN      data/valid-config-files-system/system.conf
  GEN      copy-config-local
-- No need to copy test data as srcdir = builddir
  CCLD     libdbus-testutils.la
Making all in name-test
make[5]: Nothing to be done for 'all'.
Making all in doc
make[4]: Nothing to be done for 'all'.
>>> dbus 1.12.10 Installing to staging directory
PATH="/home/calfee/edi-workspace/buildroot/output/host/bin:/home/calfee/edi-workspace/buildroot/output/host/sbin:/home/calfee/.cargo/bin:/home/calfee/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/microchip/xc32/v1.34/bin:/opt/microchip/xc16/v1.24/bin:/home/calfee/ti/ccs6/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin:/opt/microchip/xc32/v1.34/bin:/opt/microchip/xc16/v1.24/bin:/home/calfee/ti/ccs6/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin"
 /usr/bin/make -j5
DESTDIR=/home/calfee/edi-workspace/buildroot/output/host/arm-buildroot-linux-gnueabi/sysroot
install -C /home/calfee/edi-workspace/buildroot/output/build/dbus-1.12.10/
Making install in dbus

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2019-10-15 23:19 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-09 21:55 [Buildroot] Build failure on upgrade to 2019.08.1 Steve Calfee
2019-10-09 23:22 ` Arnout Vandecappelle
2019-10-10 15:01   ` Steve Calfee
2019-10-10 15:41     ` Arnout Vandecappelle
2019-10-10 16:09       ` Steve Calfee
2019-10-10 16:16         ` Steve Calfee
2019-10-11 19:34         ` Arnout Vandecappelle
2019-10-11 20:26           ` Steve Calfee
2019-10-12 11:38             ` Arnout Vandecappelle
2019-10-14 21:26               ` Steve Calfee
2019-10-15  7:56                 ` Arnout Vandecappelle
2019-10-15 17:38                   ` Steve Calfee
2019-10-15 23:19                     ` Steve Calfee

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.