Bug 202681 - with CONFIG_BPFILTER_UMH=y kernel build fails
Summary: with CONFIG_BPFILTER_UMH=y kernel build fails
Status: NEW
Alias: None
Product: Networking
Classification: Unclassified
Component: Netfilter/Iptables (show other bugs)
Hardware: x86-64 Linux
: P1 normal
Assignee: networking_netfilter-iptables@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-25 22:38 UTC by Ronald
Modified: 2019-03-21 20:02 UTC (History)
2 users (show)

See Also:
Kernel Version: 5.0.0-rc8
Subsystem:
Regression: No
Bisected commit-id:


Attachments
defconfig (18.82 KB, text/plain)
2019-02-25 22:38 UTC, Ronald
Details
buildlog.txt (102.09 KB, text/plain)
2019-02-25 22:40 UTC, Ronald
Details
devel libraries install (1.66 KB, text/plain)
2019-03-18 21:42 UTC, Ronald
Details

Description Ronald 2019-02-25 22:38:59 UTC
Created attachment 281349 [details]
defconfig

since 5.0.0-rc7 (tested no one else before) I see with CONFIG_BPFILTER_UMH=y

after

make all -j8 >> buildlog.txt

this:

/usr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
make[2]: *** [scripts/Makefile.host:99: net/bpfilter/bpfilter_umh] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [scripts/Makefile.build:492: net/bpfilter] Error 2
make: *** [Makefile:1043: net] Error 2
make: *** Waiting for unfinished jobs....



attached defconfig, buildlog.txt
Comment 1 Ronald 2019-02-25 22:40:50 UTC
Created attachment 281351 [details]
buildlog.txt
Comment 2 Ronald 2019-02-25 22:49:40 UTC
the box is Fedora 29 with gcc version 8.2.1 20181215 (Red Hat 8.2.1-6) (GCC)
Comment 3 Michal Rostecki 2019-03-18 10:42:53 UTC
I cannot reproduce this error in the bpf tree (both with CONFIG_BPFILTER_UMH=m and CONFIG_BPFILTER_UMH=y). And the error:

/usr/bin/ld: cannot find -lc

looks like you cannot link against libc. Please make sure you have a needed devel package installed.
Comment 4 Ronald 2019-03-18 21:41:42 UTC
@Michal thanks for support.

Randy Dunlap mentioned this some days ago, so I think the error is on my side, but where ?

Today I setup a virtual box with Fedora 29 (full updated) and with the attached devel libraries and hit the same error.


any hints to investigate further
Comment 5 Ronald 2019-03-18 21:42:41 UTC
Created attachment 281897 [details]
devel libraries install

devel libraries install
Comment 6 Michal Rostecki 2019-03-19 08:28:46 UTC
@Ronald: could you also post your .config?
Comment 7 Michal Rostecki 2019-03-19 08:29:24 UTC
@Ronald: sorry, I realized that you posted it already, nevermind.
Comment 8 Ronald 2019-03-19 09:05:20 UTC
maybe a hint:

I generate my .config this way:  make KCONFIG_ALLCONFIG=defconfig alldefconfig
Comment 9 Ronald 2019-03-21 20:02:33 UTC
sudo dnf install glibc-static

fixed it !

close this bug ?

Note You need to log in before you can comment on or make changes to this bug.