Skip to contentSkip to conversation

linux-next: build failure after merge of the net-next tree

DISCUSSION Stephen Rothwell 2 participants 5 messages May 29, 2018 – Jun 6, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the net-next tree, today's linux-next build (x86_64 allmodconfig) failed like this:

x86_64-linux-ld: unknown architecture of input file `net/bpfilter/bpfilter_umh.o' is incompatible with i386:x86-64 output

Caused by commit

d2ba09c17a06 ("net: add skeleton of bpfilter kernel module")

In my builds, the host is PowerPC 64 LE ...

I have reverted that commit along with

61a552eb487f ("bpfilter: fix build dependency")
13405468f49d ("bpfilter: don't pass O_CREAT when opening console for debug")

for today.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

Hi all,

Quoted 10 lines · On Tue, 29 May 2018 13:25:48 +1000 Stephen Rothwell <[email protected]>…

After merging the net-next tree, today's linux-next build (x86_64 allmodconfig) failed like this:

x86_64-linux-ld: unknown architecture of input file `net/bpfilter/bpfilter_umh.o' is incompatible with i386:x86-64 output

Caused by commit

d2ba09c17a06 ("net: add skeleton of bpfilter kernel module")

Quoted 8 lines

In my builds, the host is PowerPC 64 LE ...

I have reverted that commit along with

61a552eb487f ("bpfilter: fix build dependency")
13405468f49d ("bpfilter: don't pass O_CREAT when opening console for debug")

for today.

I am still getting this failure (well, at least yesterday I did).

Signature · 2 lines
Cheers,
Stephen Rothwell
#2 lore raw

Hi all,

Quoted 14 lines · On Thu, 31 May 2018 07:38:55 +1000 Stephen Rothwell <[email protected]>…
Quoted 12 lines · On Tue, 29 May 2018 13:25:48 +1000 Stephen Rothwell <[email protected]>…

After merging the net-next tree, today's linux-next build (x86_64 allmodconfig) failed like this:

x86_64-linux-ld: unknown architecture of input file `net/bpfilter/bpfilter_umh.o' is incompatible with i386:x86-64 output

Caused by commit

d2ba09c17a06 ("net: add skeleton of bpfilter kernel module")

In my builds, the host is PowerPC 64 LE ...

Quoted 8 lines
Quoted 6 lines

I have reverted that commit along with

61a552eb487f ("bpfilter: fix build dependency")
13405468f49d ("bpfilter: don't pass O_CREAT when opening console for debug")

for today.

I am still getting this failure (well, at least yesterday I did).

Still happened today. My guess is that bpfilter_umh needs to be built with the kernel compiler (not the host compiler - since ir is meant to run on the some machine as the kernel, right?) but will require the kernel architecture libc etc

I replaced the reverts above with the following:

From: Stephen Rothwell <[email protected]>
Date: Fri, 1 Jun 2018 13:33:28 +1000
Subject: [PATCH] net: bpfilter: mark as BROKEN for now

This does not build in a cross compile environment

---
 net/bpfilter/Kconfig | 1 +
 1 file changed, 1 insertion(+)
net/bpfilter/Kconfig +1 -0
index a948b072c28f..ea4be72fdf6e 100644
@@ -2,6 +2,7 @@ menuconfig BPFILTER
 	bool "BPF based packet filtering framework (BPFILTER)"
 	default n
 	depends on NET && BPF && INET
+	depends on BROKEN
 	help
 	  This builds experimental bpfilter framework that is aiming to
 	  provide netfilter compatible functionality via BPF
Signature · 5 lines
2.17.0

-- 
Cheers,
Stephen Rothwell
#3 lore raw
Quoted 50 lines · Stephen Rothwell

Hi all,

Quoted 14 lines · On Thu, 31 May 2018 07:38:55 +1000 Stephen Rothwell <[email protected]>…
Quoted 12 lines · On Tue, 29 May 2018 13:25:48 +1000 Stephen Rothwell <[email protected]>…

After merging the net-next tree, today's linux-next build (x86_64 allmodconfig) failed like this:

x86_64-linux-ld: unknown architecture of input file `net/bpfilter/bpfilter_umh.o' is incompatible with i386:x86-64 output

Caused by commit

d2ba09c17a06 ("net: add skeleton of bpfilter kernel module")

In my builds, the host is PowerPC 64 LE ...

Quoted 8 lines
Quoted 6 lines

I have reverted that commit along with

61a552eb487f ("bpfilter: fix build dependency")
13405468f49d ("bpfilter: don't pass O_CREAT when opening console for debug")

for today.

I am still getting this failure (well, at least yesterday I did).

Still happened today. My guess is that bpfilter_umh needs to be built with the kernel compiler (not the host compiler - since ir is meant to run on the some machine as the kernel, right?) but will require the kernel architecture libc etc

I replaced the reverts above with the following:

From: Stephen Rothwell <[email protected]>
Date: Fri, 1 Jun 2018 13:33:28 +1000
Subject: [PATCH] net: bpfilter: mark as BROKEN for now

This does not build in a cross compile environment

---
 net/bpfilter/Kconfig | 1 +
 1 file changed, 1 insertion(+)
net/bpfilter/Kconfig +0 -0
index a948b072c28f..ea4be72fdf6e 100644

net/bpfilter/Kconfig menuconfig BPFILTER · line 5

Quoted 4 lines
net/bpfilter/Kconfig +1 -0
@@ -2,6 +2,7 @@ menuconfig BPFILTER
 	bool "BPF based packet filtering framework (BPFILTER)"
 	default n
 	depends on NET && BPF && INET
+	depends on BROKEN

yeah. that's another option.
Sorry for delay. networking folks are traveling to netconf. The issue is being discussed here:
https://patchwork.ozlabs.org/patch/921597/

Currently we're thinking how to add a check that hostcc's arch is equal to cross-cc target arch and ideally equal to arch of the host where it will be run.

#4 lore raw

Hi all,

Quoted 32 lines · On Fri, 1 Jun 2018 04:52:45 -0400 Alexei Starovoitov…
Quoted 21 lines · Stephen Rothwell
Quoted 19 lines · On Thu, 31 May 2018 07:38:55 +1000 Stephen Rothwell <[email protected]>…
Quoted 17 lines · On Tue, 29 May 2018 13:25:48 +1000 Stephen Rothwell <[email protected]>…

After merging the net-next tree, today's linux-next build (x86_64 allmodconfig) failed like this:

x86_64-linux-ld: unknown architecture of input file `net/bpfilter/bpfilter_umh.o' is incompatible with i386:x86-64 output

Caused by commit

d2ba09c17a06 ("net: add skeleton of bpfilter kernel module")

In my builds, the host is PowerPC 64 LE ...

I have reverted that commit along with

61a552eb487f ("bpfilter: fix build dependency")
13405468f49d ("bpfilter: don't pass O_CREAT when opening console for debug")

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

for today.

I am still getting this failure (well, at least yesterday I did).

Still happened today. My guess is that bpfilter_umh needs to be built with the kernel compiler (not the host compiler - since ir is meant to run on the some machine as the kernel, right?) but will require the kernel architecture libc etc

Quoted 7 lines

Sorry for delay. networking folks are traveling to netconf. The issue is being discussed here:
https://patchwork.ozlabs.org/patch/921597/

Currently we're thinking how to add a check that hostcc's arch is equal to cross-cc target arch and ideally equal to arch of the host where it will be run.

Looks like this is fixed in today's tree by not building bpfilter when CC cannot link against user libraries. Unfortunately this means that it will never be built by my infrastructure (since all my compilers are minimal cross compilers) :-(

I may look into getting a different set of compilers (or doing my PowerPC builds natively).

Signature · 2 lines
Cheers,
Stephen Rothwell