Bug 202681

Summary: with CONFIG_BPFILTER_UMH=y kernel build fails
Product: Networking Reporter: Ronald (rwarsow)
Component: Netfilter/IptablesAssignee: networking_netfilter-iptables (networking_netfilter-iptables)
Status: NEW ---    
Severity: normal CC: mrostecki, rwarsow
Priority: P1    
Hardware: x86-64   
OS: Linux   
Kernel Version: 5.0.0-rc8 Subsystem:
Regression: No Bisected commit-id:
Attachments: defconfig
buildlog.txt
devel libraries install

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 ?