linux-next: build failure after merge of the fsinfo tree
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
@@ -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
Quoted 39 lines · Stephen Rothwell
Hi all,
After merging the fsinfo tree, today's linux-next build (
x86_64allmodconfig) 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.aI 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_fsinfofor now:From: Stephen Rothwell <[email protected]>
Date: Tue, 12 May 2020 19:49:33 +1000
Subject: [PATCH] disable building fo test-fsinfo for nowSigned-off-by Stephen Rothwell <[email protected]>--- samples/vfs/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)samples/vfs/Makefile +1
-2@@ -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
@@ -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
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
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
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
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