You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/04/19 01:44:58 UTC

[GitHub] [incubator-mxnet] larroy edited a comment on issue #14631: Fix build_ccache_wrappers:

larroy edited a comment on issue #14631: Fix build_ccache_wrappers:
URL: https://github.com/apache/incubator-mxnet/pull/14631#issuecomment-484741851
 
 
   We don't want to write in /usr/local/bin because then the script requires root privileges.
   
   Here is an example of what I'm trying to explain to you, what I fixed, and that links in /usr/local/bin are not necessary.
   
   
   ```
   piotr@ip-172-31-27-211:0:~/mxnet_master ((ff04de0a7...))+$ docker \          
   >         run \                                                            
   >         --cap-add \                                                      
   >         SYS_PTRACE \                                                     
   >         --rm \                                                     
   >         --shm-size=500m \                                            
   >         -v \                                                       
   >         /home/piotr/mxnet_master:/work/mxnet \                       
   >         -v \                                                        
   >         /home/piotr/mxnet_master/build:/work/build \                                   
   >         -v \
   >         /home/piotr/.ccache:/work/ccache \
   >         -u \
   >         1001:1002 \
   >         -e \
   >         CCACHE_MAXSIZE=500G \
   >         -e \
   >         CCACHE_TEMPDIR=/tmp/ccache \
   >         -e \
   >         CCACHE_DIR=/work/ccache \
   >         -e \
   >         CCACHE_LOGFILE=/tmp/ccache.log \
   >         -ti \
   >         mxnetci/build.ubuntu_cpu
   jenkins_slave@9c9d63f274c2:/work/mxnet$ /work/runtime_functions.sh build_ccache_wrappers
   + NOSE_COVERAGE_ARGUMENTS='--with-coverage --cover-inclusive --cover-xml --cover-branches --cover-package=mxnet'
   + NOSE_TIMER_ARGUMENTS='--with-timer --timer-ok 1 --timer-warning 15 --timer-filter warning,error'
   + CI_CUDA_COMPUTE_CAPABILITIES='-gencode=arch=compute_52,code=sm_52 -gencode=arch=compute_70,code=sm_70'
   + CI_CMAKE_CUDA_ARCH_BIN=52,70
   + set +x
   + '[' -z ']'
   + echo 'No $CC set, defaulting to gcc'
   No $CC set, defaulting to gcc
   + export CC=gcc
   + CC=gcc
   + '[' -z ']'
   + echo 'No $CXX set, defaulting to g++'
   No $CXX set, defaulting to g++
   + export CXX=g++
   + CXX=g++
   + mkdir /tmp/ccache-redirects
   + export PATH=/tmp/ccache-redirects:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
   + ln -s ccache /tmp/ccache-redirects/gcc
   + ln -s ccache /tmp/ccache-redirects/gcc-8
   + ln -s ccache /tmp/ccache-redirects/g++
   + ln -s ccache /tmp/ccache-redirects/g++-8
   + ln -s ccache /tmp/ccache-redirects/nvcc
   + ln -s ccache /tmp/ccache-redirects/clang++-3.9
   + ln -s ccache /tmp/ccache-redirects/clang-3.9
   + ln -s ccache /tmp/ccache-redirects/clang++-5.0
   + ln -s ccache /tmp/ccache-redirects/clang-5.0
   + ln -s ccache /tmp/ccache-redirects/clang++-6.0
   + ln -s ccache /tmp/ccache-redirects/clang-6.0
   + ln -s ccache /usr/local/bin/gcc
   + ln -s ccache /usr/local/bin/gcc-8
   + ln -s ccache /usr/local/bin/g++
   + ln -s ccache /usr/local/bin/g++-8
   + ln -s ccache /usr/local/bin/nvcc
   + ln -s ccache /usr/local/bin/clang++-3.9
   + ln -s ccache /usr/local/bin/clang-3.9
   + ln -s ccache /usr/local/bin/clang++-5.0
   + ln -s ccache /usr/local/bin/clang-5.0
   + ln -s ccache /usr/local/bin/clang++-6.0
   + ln -s ccache /usr/local/bin/clang-6.0
   + export NVCC=ccache
   + NVCC=ccache
   jenkins_slave@9c9d63f274c2:/work/mxnet$ ls -l /tmp/ccache-redirects/
   total 0
   lrwxrwxrwx 1 jenkins_slave jenkins_slave 6 Apr 19 01:40 clang++-3.9 -> ccache
   lrwxrwxrwx 1 jenkins_slave jenkins_slave 6 Apr 19 01:40 clang++-5.0 -> ccache
   lrwxrwxrwx 1 jenkins_slave jenkins_slave 6 Apr 19 01:40 clang++-6.0 -> ccache
   lrwxrwxrwx 1 jenkins_slave jenkins_slave 6 Apr 19 01:40 clang-3.9 -> ccache
   lrwxrwxrwx 1 jenkins_slave jenkins_slave 6 Apr 19 01:40 clang-5.0 -> ccache
   lrwxrwxrwx 1 jenkins_slave jenkins_slave 6 Apr 19 01:40 clang-6.0 -> ccache
   lrwxrwxrwx 1 jenkins_slave jenkins_slave 6 Apr 19 01:40 g++ -> ccache
   lrwxrwxrwx 1 jenkins_slave jenkins_slave 6 Apr 19 01:40 g++-8 -> ccache
   lrwxrwxrwx 1 jenkins_slave jenkins_slave 6 Apr 19 01:40 gcc -> ccache
   lrwxrwxrwx 1 jenkins_slave jenkins_slave 6 Apr 19 01:40 gcc-8 -> ccache
   lrwxrwxrwx 1 jenkins_slave jenkins_slave 6 Apr 19 01:40 nvcc -> ccache
   jenkins_slave@9c9d63f274c2:/work/mxnet$ /work/runtime_functions.sh build_ccache_wrappers2^C
   jenkins_slave@9c9d63f274c2:/work/mxnet$ test -e /tmp/ccache-redirects/g++
   jenkins_slave@9c9d63f274c2:/work/mxnet$ test -e /tmp/ccache-redirects/g++ ^C
   jenkins_slave@9c9d63f274c2:/work/mxnet$ man test
   jenkins_slave@9c9d63f274c2:/work/mxnet$ test -e /tmp/ccache-redirects/g++
   jenkins_slave@9c9d63f274c2:/work/mxnet$ test -e /tmp/ccache-redirects/g++ && echo "marco is right"
   jenkins_slave@9c9d63f274c2:/work/mxnet$ rm /tmp/ccache-redirects/g++
   jenkins_slave@9c9d63f274c2:/work/mxnet$ ln -s `which ccache` /tmp/ccache-redirects/g++
   jenkins_slave@9c9d63f274c2:/work/mxnet$ test -e /tmp/ccache-redirects/g++ && echo "pedro is right"
   pedro is right
   jenkins_slave@9c9d63f274c2:/work/mxnet$ 
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services