Fail to build Linux with O= in master
Hello,
I have tried to build the latest master and got the following error:
42sh> make O=~/works/linux-build/aarch64-4k -C ~/works/linux
make: Entering directory '/home/julgra01/works/linux'
Makefile:135: *** failed to create output directory "~/works/linux-build/aarch64-4k". Stop.
make: Leaving directory '/home/julgra01/works/linux'
The bisector found the commit 8e9b466 "kbuild: use $(abspath ...) instead of $(shell cd ... && /bin/pwd)".
Looking at the code, it seems that it is because the code is now using $(realpath ...). Indeed when I replace ~ by $HOME the kernel is now built.
I am not a Makefile expert, so I would appreciate if anyone could suggest a patch for this.
Regards,
Signature · 1 line
Julien Grall
2017-09-30 8:59 GMT+09:00 Julien Grall <[email protected]>:
Quoted 12 lines
Hello,
I have tried to build the latest master and got the following error:
42sh> make O=~/works/linux-build/aarch64-4k -C ~/works/linux
make: Entering directory '/home/julgra01/works/linux'
Makefile:135: *** failed to create output directory "~/works/linux-build/aarch64-4k". Stop.
make: Leaving directory '/home/julgra01/works/linux'The bisector found the commit 8e9b466 "kbuild: use $(abspath ...) instead of $(shell cd ... &&
/bin/pwd)".
Quoted 7 lines
Looking at the code, it seems that it is because the code is now using $(realpath ...). Indeed when I replace ~ by $HOME the kernel is now built.
I am not a
Makefileexpert, so I would appreciate if anyone could suggest a patch for this.
Thanks for the report.
Which shell are you using?
I use bash and I have no problem.
If I try dash, indeed, it fails.
I will take a look.
Signature · 2 lines
Best Regards Masahiro Yamada
Hello,
Quoted 17 lines · Masahiro Yamada
2017-09-30 8:59 GMT+09:00 Julien Grall <[email protected]>:
Quoted 16 lines
Hello,
I have tried to build the latest master and got the following error:
42sh> make O=~/works/linux-build/aarch64-4k -C ~/works/linux
make: Entering directory '/home/julgra01/works/linux'
Makefile:135: *** failed to create output directory "~/works/linux-build/aarch64-4k". Stop.
make: Leaving directory '/home/julgra01/works/linux'The bisector found the commit 8e9b466 "kbuild: use $(abspath ...) instead of $(shell cd ... &&
/bin/pwd)".Looking at the code, it seems that it is because the code is now using $(realpath ...). Indeed when I replace ~ by $HOME the kernel is now built.
Quoted 7 lines
Quoted 3 lines
I am not a
Makefileexpert, so I would appreciate if anyone could suggest a patch for this.Thanks for the report.
Which shell are you using?
I am using dash.
Quoted 5 lines
I use bash and I have no problem.
If I try dash, indeed, it fails.I will take a look.
Thank you!
Cheers,
Signature · 1 line
Julien Grall