Skip to contentSkip to conversation

New: host-libcap failed to build

Buildroot bugzilla at busybox.net 1 participant 18 messages Nov 5, 2020 – Nov 15, 2020

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=13296

Bug ID: 13296
Summary: host-libcap failed to build
Product: buildroot
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: major
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: ian_ormshaw at waters.com
CC: buildroot at uclibc.org
Target Milestone: ---

On Fedora 33 2020.11-rc1 host-libcap 2.45 Building fails with error:

make -C ../progs tcapsh-static
gcc -fPIC -I/home/ian/build/hiwire-linux-19e60402-x86_64/buildroot/build/host-libcap-2.45/progs/../libcap/include/uapi -I/home/ian/build/hiwire-linux-19e60402-x86_64/buildroot/build/host-libcap-2.45/progs/../libcap/include
-O2 -I/home/ian/build/hiwire-linux-19e60402-x86_64/buildroot/host/include
-Dlinux -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align
-Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g
-Dlinux -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align
-Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g
-Dlinux -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align
-Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g
-Dlinux -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align
-Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g
-o tcapsh-static capsh.c -L/home/ian/build/hiwire-linux-19e60402-x86_64/buildroot/build/host-libcap-2.45/progs/../libcap -lcap -L/home/ian/build/hiwire-linux-19e60402-x86_64/buildroot/host/lib -Wl,-rpath,/home/ian/build/hiwire-linux-19e60402-x86_64/buildroot/host/lib -L/home/ian/build/hiwire-linux-19e60402-x86_64/buildroot/build/host-libcap-2.45/libcap -L/home/ian/build/hiwire-linux-19e60402-x86_64/buildroot/build/host-libcap-2.45/tests/../libcap -L/home/ian/build/hiwire-linux-19e60402-x86_64/buildroot/build/host-libcap-2.45/tests/../libcap -L/home/ian/build/hiwire-linux-19e60402-x86_64/buildroot/build/host-libcap-2.45/progs/../libcap --static
/usr/bin/ld: cannot find -lc

gcc (GCC) 10.2.1 20201016 (Red Hat 10.2.1-6)

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#4 lore raw

[Buildroot] [Bug 13296] host-libcap failed to build

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=13296

--- Comment #3 from Thomas Petazzoni <[email protected]> --- (In reply to Heiko Thiery from comment #1)
Do you need to pass both DYNAMIC=something *and* SHARED=something ? This seems a bit redundant. According to what you did in 8d38eb052e7006b6e74e9453351d7f245144481e, it seems that DYNAMIC has gone away, and SHARED is the new variable to use ?

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#6 lore raw

[Buildroot] [Bug 13296] host-libcap failed to build

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=13296

--- Comment #5 from Heiko Thiery <[email protected]> --- Your're right. That is not needed anymore. It was just a quick shot to get a feetback. I added an updated version of the patch that removes the DYNAMIC arguments.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#8 lore raw

[Buildroot] [Bug 13296] host-libcap failed to build

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=13296

--- Comment #7 from Dr I J Ormshaw <[email protected]> ---
I am still seeing the same error, with either version of the patch after doing the following:

1) Deleting my build directory.
2) Checking out the source from tag 2020.11-rc1
3) In the where the source is checked out applying the patch with:
patch -p1 -i <path to
patch>/0001-package-libcap-fix-building-on-host-package.patch
4) Copying my config file to the build directoty
5) Building buildroot

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#12 lore raw

[Buildroot] [Bug 13296] host-libcap failed to build

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=13296

Heiko Thiery <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

   Attachment #8631|0                           |1
        is obsolete|                            |
   Attachment #8636|0                           |1
        is obsolete|                            |
                 CC|                            |heiko.thiery at gmail.com

--- Comment #11 from Heiko Thiery <[email protected]> --- Created attachment 8656
--> https://bugs.busybox.net/attachment.cgi?id=8656&action=edit
third iteration of the patch

I added a patch for libcap that should prevent adding the --static flag. Please give it a try.

I also started a request to the libcap maintainer get feedback if this is the correct way.

Thank you

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#16 lore raw

[Buildroot] [Bug 13296] host-libcap failed to build

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=13296

--- Comment #15 from Dr I J Ormshaw <[email protected]> --- tested-by:
Reverting the previous patch
Testing that the build then failed. it did.
Added the attached patch (0000-kernel.org-bug-210135.patch) to
<GLOBAL_PATCHES>/libcap/2.54
Cleaning the build area
Rebuilding

Result:
host-libcap once again build.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#17 lore raw

[Buildroot] [Bug 13296] host-libcap failed to build

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=13296

Heiko Thiery <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #16 from Heiko Thiery <[email protected]> --- fixed with 7540fbe877d48d75113338430ce3304a00a82cb1

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.