Skip to contentSkip to conversation

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

PATCH Stephen Rothwell 3 participants 5 messages May 12, 2020 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

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

/usr/lib/gcc-cross/x86_64-linux-gnu/9/../../../../x86_64-linux-gnu/bin/ld: cannot find /usr/lib/x86_64-linux-gnu/libm-2.30.a /usr/lib/gcc-cross/x86_64-linux-gnu/9/../../../../x86_64-linux-gnu/bin/ld: cannot find /usr/lib/x86_64-linux-gnu/libmvec.a

I don't know if this is a quirk of the build system or Debian's cross compiler setup. Both those files exist in /usr/x86_64-linux-gnu/lib/.

Masahiro, any thoughts?

I have disabled the building of test_fsinfo for now:

From: Stephen Rothwell <[email protected]>
Date: Tue, 12 May 2020 19:49:33 +1000
Subject: [PATCH] disable building fo test-fsinfo for now

---
 samples/vfs/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
samples/vfs/Makefile +1 -1
index f5bc5dfdf045..97e54c8be358 100644
@@ -1,5 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0-only
-userprogs := test-fsinfo test-fsmount test-mntinfo test-statx
+userprogs := test-fsmount test-mntinfo test-statx
 always-y := $(userprogs)
 
 userccflags += -I usr/include
Signature · 5 lines
2.26.2

-- 
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 39 lines · Stephen Rothwell

Hi all,

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

/usr/lib/gcc-cross/x86_64-linux-gnu/9/../../../../x86_64-linux-gnu/bin/ld: cannot find /usr/lib/x86_64-linux-gnu/libm-2.30.a /usr/lib/gcc-cross/x86_64-linux-gnu/9/../../../../x86_64-linux-gnu/bin/ld: cannot find /usr/lib/x86_64-linux-gnu/libmvec.a

I don't know if this is a quirk of the build system or Debian's cross compiler setup. Both those files exist in /usr/x86_64-linux-gnu/lib/.

Masahiro, any thoughts?

I have disabled the building of test_fsinfo for now:

From: Stephen Rothwell <[email protected]>
Date: Tue, 12 May 2020 19:49:33 +1000
Subject: [PATCH] disable building fo test-fsinfo for now

---
 samples/vfs/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
samples/vfs/Makefile +1 -2
index f5bc5dfdf045..97e54c8be358 100644
@@ -1,5 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0-only
-userprogs := test-fsinfo test-fsmount test-mntinfo test-statx
+userprogs := test-fsmount test-mntinfo test-statx
 always-y := $(userprogs)
 
 userccflags += -I usr/include
--

2.26.2

Quoted 3 lines

--
Cheers,
Stephen Rothwell

I also failed to build it, but the error message
was different.

The following worked for me at least.
(Ubuntu 20.04).

samples/vfs/Makefile +3 -2
index 97e54c8be358..539fb3a56af3 100644
@@ -1,7 +1,8 @@
 # SPDX-License-Identifier: GPL-2.0-only
-userprogs := test-fsmount test-mntinfo test-statx
+userprogs := test-fsinfo test-fsmount test-mntinfo test-statx
 always-y := $(userprogs)
 
 userccflags += -I usr/include
 
-test-fsinfo-userldflags += -static -lm
+test-fsinfo-userldflags := -static
+test-fsinfo-userldlibs := -lm

David,

BTW, why is '-static' needed here?

--
Best Regards
Masahiro Yamada

#2 lore raw

Hi Masahiro,

Quoted 12 lines · On Tue, 12 May 2020 23:00:13 +0900 Masahiro Yamada <[email protected]> wrote:

I also failed to build it, but the error message
was different.

The following worked for me at least.
(Ubuntu 20.04).

samples/vfs/Makefile +0 -0
index 97e54c8be358..539fb3a56af3 100644

samples/vfs/Makefile line 8

Quoted 10 lines
samples/vfs/Makefile +3 -2
@@ -1,7 +1,8 @@
 # SPDX-License-Identifier: GPL-2.0-only
-userprogs := test-fsmount test-mntinfo test-statx
+userprogs := test-fsinfo test-fsmount test-mntinfo test-statx
 always-y := $(userprogs)
 
 userccflags += -I usr/include
 
-test-fsinfo-userldflags += -static -lm
+test-fsinfo-userldflags := -static
+test-fsinfo-userldlibs := -lm

Thanks, I will change the merge resolution to that.

Signature · 2 lines
Cheers,
Stephen Rothwell
#3 lore raw
In reply to Masahiro Yamada
Quoted 1 line · Masahiro Yamada

BTW, why is '-static' needed here?

Sorry, that was a leftover. I've been building it on one version of Fedora and running it on my test machine - which is a couple of versions behind. I really need to do an update. Anyway, I've removed it and -lm.

David

#4 lore raw
In reply to Stephen Rothwell
Quoted 2 lines · Stephen Rothwell

/usr/lib/gcc-cross/x86_64-linux-gnu/9/../../../../x86_64-linux-gnu/bin/ld: cannot find /usr/lib/x86_64-linux-gnu/libm-2.30.a /usr/lib/gcc-cross/x86_64-linux-gnu/9/../../../../x86_64-linux-gnu/bin/ld: cannot find /usr/lib/x86_64-linux-gnu/libmvec.a

I'll remove my use of the pow() function to calculate the timestamp granularities and just print the raw mantissa and exponent. That way I don't need -lm at all.

David