Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

building Sonic throws error #2507

Closed
bsbsrkg opened this issue Jan 6, 2019 · 2 comments
Closed

building Sonic throws error #2507

bsbsrkg opened this issue Jan 6, 2019 · 2 comments
Assignees

Comments

@bsbsrkg
Copy link

bsbsrkg commented Jan 6, 2019

Hi,
I'm compiling Sonic 201803 branch for Marvell platform. But getting the below issue.

++++++++++++++++++++++++++++++++++
ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
man: error while loading shared libraries: libmandb-2.7.0.2.so: cannot open shared object file
ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
man: error while loading shared libraries: libmandb-2.7.0.2.so: cannot open shared object file
dh_installman: man --recode UTF-8 ./initramfs.conf.5 > initramfs.conf.5.new returned exit code 127
debian/rules:4: recipe for target 'binary' failed
make[2]: *** [binary] Error 127
make[2]: Leaving directory '/sonic/src/initramfs-tools/initramfs-tools'
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
Makefile:8: recipe for target '/sonic/target/debs/initramfs-tools_0.120_all.deb' failed
make[1]: *** [/sonic/target/debs/initramfs-tools_0.120_all.deb] Error 2
make[1]: Leaving directory '/sonic/src/initramfs-tools'
[ FAIL LOG END ] [ target/debs/initramfs-tools_0.120_all.deb ]
slave.mk:191: recipe for target 'target/debs/initramfs-tools_0.120_all.deb' failed
make: *** [target/debs/initramfs-tools_0.120_all.deb] Error 1
Makefile:81: recipe for target 'all' failed
make: *** [all] Error 2
+++++++++++++++++++++++++++

@lguohan lguohan transferred this issue from sonic-net/SONiC Jan 31, 2019
@lguohan lguohan self-assigned this Jan 31, 2019
@lguohan
Copy link
Collaborator

lguohan commented Feb 7, 2019

if you are using ubuntu 18.04, can you change the storage driver to overlayfs. besides, there is also a fix be9f3ad

@lguohan lguohan closed this as completed Feb 28, 2019
@lguohan
Copy link
Collaborator

lguohan commented Feb 3, 2020

the root cause of issue is moby/moby#38420

temp workaround is here:

sudo apparmor_parser -R /etc/apparmor.d/usr.bin.man

@sonic-net sonic-net locked as resolved and limited conversation to collaborators Feb 3, 2020
@sonic-net sonic-net unlocked this conversation Jun 29, 2020
@sonic-net sonic-net locked and limited conversation to collaborators Jun 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants