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

Build failure with https://github.com/Azure/sonic-utilities/commit/da3934ec0b06d5a7f49785a62f13a798695f6509 #438

Closed
jipanyang opened this issue Jan 21, 2019 · 4 comments

Comments

@jipanyang
Copy link
Contributor

Description
build failure with latest sonic-utilities, it looks the problem was introduced with #426


jipan@vs_test:~/upstream/sonic-buildimage/src/sonic-utilities$ git log
commit 2f4a3b62262d73781fc3baef0662c4e02df25433 (HEAD -> master, origin/master, origin/HEAD)
Author: Travis Van Duyn <travis.vanduyn@gmail.com>
Date:   Wed Jan 16 16:55:09 2019 -0800

    add show route-map and show ip prefix-list commands (#429)

commit f7d46ed83dd381af270b1592d42d3238393e41fd
Author: Ying Xie <yxieca@users.noreply.github.com>
Date:   Wed Jan 16 15:03:57 2019 -0800

    Revert "[reboot] stop docker service before rebooting (#423)" (#434)
    
    This reverts commit 220e269e8334a89db5a2f931dea90e238feae7cc.

commit da3934ec0b06d5a7f49785a62f13a798695f6509
Author: Wataru Ishida <5915117+ishidawataru@users.noreply.github.com>
Date:   Thu Jan 10 18:09:19 2019 -0800

    avoid using pkg_resources for faster command execution (#426)
    
    Signed-off-by: Wataru Ishida <ishida@nel-america.com>

jipan@vs_test:~/upstream/sonic-buildimage$ make target/docker-sonic-vs.gz
+++ --- Making target/docker-sonic-vs.gz --- +++
BLDENV=stretch make -f Makefile.work stretch
make[1]: Entering directory '/home/jipan/upstream/sonic-buildimage'
SONiC Build System

Build Configuration
"CONFIGURED_PLATFORM"             : "vs"
"SONIC_CONFIG_PRINT_DEPENDENCIES" : ""
"SONIC_BUILD_JOBS"                : "1"
"SONIC_CONFIG_MAKE_JOBS"          : "8"
"USERNAME"                        : "admin"
"PASSWORD"                        : "YourPaSsWoRd"
"ENABLE_DHCP_GRAPH_SERVICE"       : ""
"SHUTDOWN_BGP_ON_START"           : ""
"ENABLE_PFCWD_ON_START"           : ""
"INSTALL_DEBUG_TOOLS"             : ""
"ROUTING_STACK"                   : "quagga"
"ENABLE_SYNCD_RPC"                : ""
"ENABLE_ORGANIZATION_EXTENSIONS"  : "y"
"HTTP_PROXY"                      : ""
"HTTPS_PROXY"                     : ""
"ENABLE_SYSTEM_TELEMETRY"         : ""
"SONIC_DEBUGGING_ON"              : ""
"SONIC_PROFILING_ON"              : ""
"KERNEL_PROCURE_METHOD"           : "build"
"BUILD_TIMESTAMP"                 : "20190121.222940"

make: Nothing to be done for 'stretch'.
make[1]: Leaving directory '/home/jipan/upstream/sonic-buildimage'
make -f Makefile.work target/docker-sonic-vs.gz
make[1]: Entering directory '/home/jipan/upstream/sonic-buildimage'
SONiC Build System

Build Configuration
"CONFIGURED_PLATFORM"             : "vs"
"SONIC_CONFIG_PRINT_DEPENDENCIES" : ""
"SONIC_BUILD_JOBS"                : "1"
"SONIC_CONFIG_MAKE_JOBS"          : "8"
"USERNAME"                        : "admin"
"PASSWORD"                        : "YourPaSsWoRd"
"ENABLE_DHCP_GRAPH_SERVICE"       : ""
"SHUTDOWN_BGP_ON_START"           : ""
"ENABLE_PFCWD_ON_START"           : ""
"INSTALL_DEBUG_TOOLS"             : ""
"ROUTING_STACK"                   : "quagga"
"ENABLE_SYNCD_RPC"                : ""
"ENABLE_ORGANIZATION_EXTENSIONS"  : "y"
"HTTP_PROXY"                      : ""
"HTTPS_PROXY"                     : ""
"ENABLE_SYSTEM_TELEMETRY"         : ""
"SONIC_DEBUGGING_ON"              : ""
"SONIC_PROFILING_ON"              : ""
"KERNEL_PROCURE_METHOD"           : "build"
"BUILD_TIMESTAMP"                 : "20190121.222943"

[ FAIL LOG START ] [ target/debs/python-sonic-utilities_1.2-1_all.deb ]
/sonic/src/sonic-utilities /sonic
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/test-easy-install-18352.write-test'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /usr/local/lib/python2.7/dist-packages/

Perhaps your account does not have write access to this directory?  If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account.  If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

For information on other options, you may wish to consult the
documentation at:

  https://pythonhosted.org/setuptools/easy_install.html

Please make the appropriate changes for your system and try again.

[  FAIL LOG END  ] [ target/debs/python-sonic-utilities_1.2-1_all.deb ]
slave.mk:315: recipe for target 'target/debs/python-sonic-utilities_1.2-1_all.deb' failed
make: *** [target/debs/python-sonic-utilities_1.2-1_all.deb] Error 1
Makefile.work:127: recipe for target 'target/docker-sonic-vs.gz' failed
make[1]: *** [target/docker-sonic-vs.gz] Error 2
make[1]: Leaving directory '/home/jipan/upstream/sonic-buildimage'
Makefile:6: recipe for target 'target/docker-sonic-vs.gz' failed
make: *** [target/docker-sonic-vs.gz] Error 2
jipan@vs_test:~/upstream/sonic-buildimage$ 
jipan@vs_test:~/upstream/sonic-buildimage$ git log
commit cacff75df5964d724ab0180e97a26a5a4e30aef1 (HEAD -> master, origin/master, origin/HEAD)
Author: padmanarayana <Padmanabhan_N@dell.com>
Date:   Fri Jan 18 01:57:06 2019 -0800

    [devices]: Make the get_transceiver_change_event's epoll blocking S6100/Z9100 (#2459)

Steps to reproduce the issue
1.
2.
3.

Describe the results you received

Describe the results you expected

Additional information you deem important (e.g. issue happens only occasionally)

Output of show version

(paste your output here)
@ishidawataru
Copy link
Contributor

I reproduced the error.

#426

With this PR, setup.py tries to install fastentrypoints if it is not installed.
This requires the access to /usr/local/lib/python2.7/dist-packages.

@ishidawataru
Copy link
Contributor

@jipanyang Adding fastentrypoints here will fix the issue.

Should I open a PR for it?

@jipanyang
Copy link
Contributor Author

@ishidawataru Yes, I think we need a PR to fix it. thanks!

ishidawataru pushed a commit to ishidawataru/sonic-buildimage that referenced this issue Jan 23, 2019
lguohan pushed a commit to sonic-net/sonic-buildimage that referenced this issue Jan 24, 2019
@jipanyang
Copy link
Contributor Author

fixed.

yxieca pushed a commit to sonic-net/sonic-buildimage that referenced this issue Feb 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants