I compiled the source code from CentOS Linux release 6.2 (Final).
find -name stddef.h
./usr/lib/gcc/x86_64-redhat-linux/3.4.6/include/stddef.h
./usr/lib/gcc/x86_64-redhat-linux/5.3.0/include/stddef.h
./usr/lib/gcc/i686-redhat-linux/4.4.4/include/stddef.h
./usr/local/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include/stddef.h
./usr/local/gcc-5.3.0/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/include/stddef.h
./usr/include/linux/stddef.h
Can you give me the output of echo | gcc -E -xc++ - -v?
ไฝฟ็จๅ
ๅปบ specsใ
COLLECT_GCC=gcc
็ฎๆ ๏ผx86_64-unknown-linux-gnu
้
็ฝฎไธบ๏ผ../configure --prefix=/usr/local/gcc-5.3.0 --enable-checking=release --enable-languages=c,c++,fortran,go --disable-multilib
็บฟ็จๆจกๅ๏ผposix
gcc ็ๆฌ 5.3.0 (GCC)
COLLECT_GCC_OPTIONS='-E' '-v' '-mtune=generic' '-march=x86-64'
/usr/local/gcc-5.3.0/libexec/gcc/x86_64-unknown-linux-gnu/5.3.0/cc1plus -E -quiet -v -D_GNU_SOURCE - -mtune=generic -march=x86-64
ๅฟฝ็ฅไธๅญๅจ็็ฎๅฝโ/usr/local/gcc-5.3.0/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../x86_64-unknown-linux-gnu/includeโ
/usr/local/gcc-5.3.0/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../include/c++/5.3.0
/usr/local/gcc-5.3.0/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../include/c++/5.3.0/x86_64-unknown-linux-gnu
/usr/local/gcc-5.3.0/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../include/c++/5.3.0/backward
/usr/local/gcc-5.3.0/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/include
/usr/local/include
/usr/local/gcc-5.3.0/include
/usr/local/gcc-5.3.0/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/include-fixed
/usr/include
ๆ็ดขๅ่กจ็ปๆใ
COMPILER_PATH=/usr/local/gcc-5.3.0/libexec/gcc/x86_64-unknown-linux-gnu/5.3.0/:/usr/local/gcc-5.3.0/libexec/gcc/x86_64-unknown-linux-gnu/5.3.0/:/usr/local/gcc-5.3.0/libexec/gcc/x86_64-unknown-linux-gnu/:/usr/local/gcc-5.3.0/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/:/usr/local/gcc-5.3.0/lib/gcc/x86_64-unknown-linux-gnu/
LIBRARY_PATH=/usr/local/gcc-5.3.0/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/:/usr/local/gcc-5.3.0/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/local/gcc-5.3.0/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-E' '-v' '-mtune=generic' '-march=x86-64'
Did you get that error when running ./compile.sh?
Yes.
Can you share the full output of the bootstrap?
Ok after looking at the code I know what's wrong. We expect the OS to be in english, let's try to fix it.
That's great. When is it going to be finished?
I sent a change for review should be out later today or tomorrow at most.
Thanks. I hope it works.
By the way, are bazel and blaze the same trunk or separated?
It is the same trunk, but we have less native rules in Bazel and also some
code for integration with Google environment have been removed.
On Thu, Apr 28, 2016 at 10:30 AM is03wlei [email protected] wrote:
Thanks. I hope it works.
By the way, are bazel and blaze the same trunk or separated?โ
You are receiving this because you were assigned.Reply to this email directly or view it on GitHub
https://github.com/bazelbuild/bazel/issues/1204#issuecomment-215351514
Oh already pushed :) Can you retry?
Thanks.
But unfortunately. Still the same error.
:(
Can you replace https://github.com/bazelbuild/bazel/blob/c6da03408969facade49f500fcdaaebf4e3ccfc5/tools/cpp/cc_configure.bzl#L141 two lines by:
cxx_inc = [repository_ctx.path(_cxx_inc_convert(p))
for p in inc_dirs.split("\n")]
print(cxx_inc)
return cxx_inc
And paste the full output?
[32mINFO[0m: You can skip this first step by providing a path to the bazel binary as second argument:
[32mINFO[0m: ./compile.sh compile /path/to/bazel
๐ Building Bazel from scratch......
๐ Building Bazel with Bazel.
.[35mWARNING: [0m/tmp/bazel.SO4Mp953/out/external/bazel_tools/WORKSPACE:1: Workspace name in /tmp/bazel.SO4Mp953/out/external/bazel_tools/WORKSPACE (@io_bazel) does not match the name given in the repository's definition (@bazel_tools); this will cause a build error in future versions.
[32mINFO: [0mLoading package: src
[1A[K[32mINFO: [0mLoading...
[1A[K[32mINFO: [0mLoading package: src/main/tools
[1A[K[32mINFO: [0mLoading package: @bazel_tools//tools/genrule
[1A[K[32mINFO: [0mLoading package: src/java_tools/buildjar/java/com/google/devtools/build/\
buildjar/jarhelper
[1A[K
[1A[K[32mINFO: [0mLoading package: src/main/java/com/google/devtools/common/options
[1A[K[32mINFO: [0mLoading package: src/java_tools/junitrunner/java/com/google/testing/juni\
t/runner/model
[1A[K
[1A[K[32mINFO: [0mLoading package: tools/build_defs/docker
[1A[K[32mINFO: [0mLoading package: src/java_tools/junitrunner/java/com/google/testing/juni\
t/runner/util
[1A[K
[1A[K[32mINFO: [0mLoading package: src/java_tools/junitrunner/java/com/google/testing/juni\
t/runner/sharding/api
[1A[K
[1A[K[32mINFO: [0mLoading package: src/java_tools/singlejar/java/com/google/devtools/build\
/zip
[1A[K
[1A[K[32mINFO: [0mLoading package: src/java_tools/buildjar/java/com/google/devtools/build/\
buildjar
[1A[K
[1A[K[32mINFO: [0mLoading package: tools/cpp/test
[1A[K[32mINFO: [0mLoading package: third_party/java/buck-ios-support
[1A[K[32mINFO: [0mLoading package: third_party/py/gflags
[1A[K[32mINFO: [0mLoading package: third_party/iossim
[1A[K[32mINFO: [0mLoading package: tools/objc/memleaks
[1A[K[32mINFO: [0mLoading package: third_party/ijar/test
[1A[K[32mINFO: [0mLoading package: third_party/boringssl
[1A[K[32mINFO: [0mLoading package: src/main/java/com/google/devtools/build/lib/sandbox
[1A[K[32mINFO: [0mLoading package: src/main/java/com/google/devtools/build/lib/rules/cpp
[1A[K[32mINFO: [0mLoading package: src/main/java/com/google/devtools/build/lib/rules/objc
[1A[K[32mINFO: [0mLoading package: src/main/java/com/google/devtools/build/lib/rules/apple\
/cpp
[1A[K
[1A[K[32mINFO: [0mLoading package: src/main/java/com/google/devtools/build/docgen
[1A[K[35mWARNING: [0m/tmp/bazel.SO4Mp953/out/external/bazel_tools/tools/cpp/cc_configure.bzl:143:3: [/usr/local/gcc-5.3.0/include/c++/5.3.0, /usr/local/gcc-5.3.0/include/c++/5.3.0/x86_64-unknown-linux-gnu, /usr/local/gcc-5.3.0/include/c++/5.3.0/backward, /usr/local/gcc-5.3.0/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/include, /usr/local/include, /usr/local/gcc-5.3.0/include, /usr/local/gcc-5.3.0/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/include-fixed, /usr/include].
[32mINFO: [0mLoading package: @local_config_cc//
[1A[K[32mINFO: [0mLoading complete. Analyzing...
[1A[K[35mWARNING: [0m/data/xiaoju/bazel/src/main/native/BUILD:46:16: in includes attribute of cc_binary rule //src/main/native:libunix.so: '.' resolves to 'src/main/native' not in 'third_party'. This will be an error in the future.
[35mWARNING: [0m/data/xiaoju/bazel/src/main/protobuf/BUILD:37:1: in includes attribute of cc_library rule //src/main/protobuf:command_server_cc_proto: '.' resolves to 'src/main/protobuf' not in 'third_party'. This will be an error in the future. Since this rule was created by the macro 'cc_grpc_library', the error might have been caused by the macro implementation in /data/xiaoju/bazel/tools/build_rules/genproto.bzl:104:18.
[32mINFO: [0mFound 1 target...
[32mINFO: [0mBuilding...
[1A[K[32m[0 / 21] [0mBazelWorkspaceStatusAction stable-status.txt
[1A[K[32m[1 / 49] [0mWriting file src/main/cpp/util/libmd5.a-2.params
[1A[K[32m[13 / 108] [0mWriting file src/main/java/com/google/devtools/build/lib/libos_util\
.jar-2.params
[1A[K
[1A[K[32m[25 / 162] [0mWriting file src/main/java/com/google/devtools/build/lib/libutil.ja\
r-2.params
[1A[K
[1A[K[31m[1mERROR: [0m/data/xiaoju/bazel/src/main/tools/BUILD:11:1: C++ compilation of rule '//src/main/tools:process-tools' failed: gcc failed: error executing command
(cd /tmp/bazel.SO4Mp953/out/bazel && \
exec env - \
PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/jdk1.8.0_65/bin://usr/local/jdk1.8.0_65//bin:/usr/local/python2.7/bin:/home/xiaoju/php//bin:/data/xiaoju/bin:/usr/local/jdk1.8.0_65/bin \
/usr/local/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wl,-z,-relro,-z,now -B/usr/local/bin -B/usr/bin -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -iquote . -iquote bazel-out/local-fastbuild/genfiles -iquote external/bazel_tools -iquote bazel-out/local-fastbuild/genfiles/external/bazel_tools -isystem external/bazel_tools/tools/cpp/gcc3 '-std=c99' -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' '-frandom-seed=bazel-out/local-fastbuild/bin/src/main/tools/_objs/process-tools/src/main/tools/process-tools.pic.o' -MD -MF bazel-out/local-fastbuild/bin/src/main/tools/_objs/process-tools/src/main/tools/process-tools.pic.d -fPIC -c src/main/tools/process-tools.c -o bazel-out/local-fastbuild/bin/src/main/tools/_objs/process-tools/src/main/tools/process-tools.pic.o): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
In file included from src/main/tools/process-tools.c:17:0:
/usr/include/unistd.h:227:20: fatal error: stddef.h: No such file or directory
compilation terminated.
[32mINFO: [0mBuilding complete.
[1A[KTarget //src:bazel failed to build
[32mINFO: [0mElapsed time: 4.680s, Critical Path: 0.46s
Building output/bazel
(edited for formatting)
So it detects the following C++ include:
/usr/local/gcc-5.3.0/include/c++/5.3.0
/usr/local/gcc-5.3.0/include/c++/5.3.0/x86_64-unknown-linux-gnu
/usr/local/gcc-5.3.0/include/c++/5.3.0/backward
/usr/local/gcc-5.3.0/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/include
/usr/local/include
/usr/local/gcc-5.3.0/include
/usr/local/gcc-5.3.0/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/include-fixed
/usr/include
So there is /usr/local/gcc-5.3.0/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/include which contains stddef.h
At least we got the detection part right.
What doesexport shows?
declare -x CLASSPATH=".:/usr/local/jdk1.8.0_65//lib"
declare -x CVS_RSH="ssh"
declare -x G_BROKEN_FILENAMES="1"
declare -x HISTCONTROL="ignoredups"
declare -x HISTSIZE="3000"
declare -x HOME="/data/xiaoju"
declare -x HOSTNAME="anti03.qq.diditaxi.com"
declare -x JAVA_HOME="/usr/local/jdk1.8.0_65/"
declare -x JRE_HOME="/usr/local/jdk1.8.0_65//jre"
declare -x LANG="zh_CN.utf-8"
declare -x LC_ALL="zh_CN.utf-8"
declare -x LESSOPEN="|/usr/bin/lesspipe.sh %s"
declare -x LOGNAME="xiaoju"
declare -x LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:_.tar=01;31:_.tgz=01;31:_.arj=01;31:_.taz=01;31:_.lzh=01;31:_.lzma=01;31:_.tlz=01;31:_.txz=01;31:_.zip=01;31:_.z=01;31:_.Z=01;31:_.dz=01;31:_.gz=01;31:_.lz=01;31:_.xz=01;31:_.bz2=01;31:_.tbz=01;31:_.tbz2=01;31:_.bz=01;31:_.tz=01;31:_.deb=01;31:_.rpm=01;31:_.jar=01;31:_.rar=01;31:_.ace=01;31:_.zoo=01;31:_.cpio=01;31:_.7z=01;31:_.rz=01;31:_.jpg=01;35:_.jpeg=01;35:_.gif=01;35:_.bmp=01;35:_.pbm=01;35:_.pgm=01;35:_.ppm=01;35:_.tga=01;35:_.xbm=01;35:_.xpm=01;35:_.tif=01;35:_.tiff=01;35:_.png=01;35:_.svg=01;35:_.svgz=01;35:_.mng=01;35:_.pcx=01;35:_.mov=01;35:_.mpg=01;35:_.mpeg=01;35:_.m2v=01;35:_.mkv=01;35:_.ogm=01;35:_.mp4=01;35:_.m4v=01;35:_.mp4v=01;35:_.vob=01;35:_.qt=01;35:_.nuv=01;35:_.wmv=01;35:_.asf=01;35:_.rm=01;35:_.rmvb=01;35:_.flc=01;35:_.avi=01;35:_.fli=01;35:_.flv=01;35:_.gl=01;35:_.dl=01;35:_.xcf=01;35:_.xwd=01;35:_.yuv=01;35:_.cgm=01;35:_.emf=01;35:_.axv=01;35:_.anx=01;35:_.ogv=01;35:_.ogx=01;35:_.aac=01;36:_.au=01;36:_.flac=01;36:_.mid=01;36:_.midi=01;36:_.mka=01;36:_.mp3=01;36:_.mpc=01;36:_.ogg=01;36:_.ra=01;36:_.wav=01;36:_.axa=01;36:_.oga=01;36:_.spx=01;36:_.xspf=01;36:"
declare -x MAIL="/var/spool/mail/xiaoju"
declare -x OLDPWD="/data/xiaoju/anti_spam"
declare -x PATH="/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/jdk1.8.0_65/bin://usr/local/jdk1.8.0_65//bin:/usr/local/python2.7/bin:/home/xiaoju/php//bin:/data/xiaoju/bin"
declare -x PS1="[\e]2;\u@\h\a][\e[01;36m]\u[\e[01;35m]@[\e[01;32m]\h[\e[00m]:[\e[01;34m]\w\$[\e[00m] "
declare -x PWD="/data/xiaoju/anti_spam/anti_spam_driverscore"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x SSH_CLIENT="10.123.127.13 56724 36000"
declare -x SSH_CONNECTION="10.123.127.13 56724 10.231.146.167 36000"
declare -x SSH_TTY="/dev/pts/25"
declare -x TERM="linux"
declare -x TST_HACK_BASH_SESSION_ID="33128544675947"
declare -x USER="xiaoju"
Can you try to do /usr/local/bin/gcc -c -o /tmp/process-tools.o src/main/tools/process-tools.c -iquote . -Wall -Wl,-z,-relro,-z,now?
Ooops also add -std=c99
nothing printed.
/usr/local/bin/gcc -c -o /tmp/process-tools.o src/main/tools/process-tools.c -iquote . -Wall -Wl,-z,-relro,-z,-std=c99
So /tmp/process-tools.o should exists, meaning that it does find the header. (note there should be a space before -std=c99 but that's not really important).
/usr/local/bin/gcc -c -o /tmp/process-tools.o src/main/tools/process-tools.c -iquote . -Wall -Wl,-z,-relro,-z -std=c99
Yes. /tmp/process-tools.o exists.
Let's try a bit more complex: /usr/local/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wl,-z,-relro,-z,now -B/usr/local/bin -B/usr/bin -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -iquote . -iquote bazel-out/local-fastbuild/genfiles -iquote external/bazel_tools -iquote bazel-out/local-fastbuild/genfiles/external/bazel_tools -isystem external/bazel_tools/tools/cpp/gcc3 '-std=c99' -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined -fPIC -c src/main/tools/process-tools.c -o /tmp/bazel.o
/usr/local/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wl,-z,-relro,-z,now -B/usr/local/bin -B/usr/bin -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -iquote . -iquote bazel-out/local-fastbuild/genfiles -iquote external/bazel_tools -iquote bazel-out/local-fastbuild/genfiles/external/bazel_tools -isystem external/bazel_tools/tools/cpp/gcc3 '-std=c99' -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined -fPIC -c src/main/tools/process-tools.c -o /tmp/bazel.o
In file included from src/main/tools/process-tools.c:17:0:
/usr/include/unistd.h:227:20: ่ดๅฝ้่ฏฏ๏ผstddef.h๏ผๆฒกๆ้ฃไธชๆไปถๆ็ฎๅฝ
็ผ่ฏไธญๆญใ
still couldn't find stddef.h
Ok so one of the option make your stddef.h unfindable.
Let's try to find out which, can you run the following command and tell me which one fails:
/usr/local/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wl,-z,-relro,-z,now -B/usr/local/bin -B/usr/bin -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer '-std=c99' -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined -fPIC -c src/main/tools/process-tools.c -o /tmp/bazel.o
/usr/local/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wl,-z,-relro,-z,now -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer '-std=c99' -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined -fPIC -c src/main/tools/process-tools.c -o /tmp/bazel.o
/usr/local/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wl,-z,-relro,-z,now '-std=c99' -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined -fPIC -c src/main/tools/process-tools.c -o /tmp/bazel.o
/usr/local/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wl,-z,-relro,-z,now '-std=c99' -no-canonical-prefixes -Wno-builtin-macro-redefined -fPIC -c src/main/tools/process-tools.c -o /tmp/bazel.o
/usr/local/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wl,-z,-relro,-z,now '-std=c99' -Wno-builtin-macro-redefined -fPIC -c src/main/tools/process-tools.c -o /tmp/bazel.o
/usr/local/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wl,-z,-relro,-z,now '-std=c99' -fPIC -c src/main/tools/process-tools.c -o /tmp/bazel.o
/usr/local/bin/gcc -fstack-protector -Wall -Wl,-z,-relro,-z,now '-std=c99' -fPIC -c src/main/tools/process-tools.c -o /tmp/bazel.o
These guys failed:
/usr/local/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wl,-z,-relro,-z,now -B/usr/local/bin -B/usr/bin -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer '-std=c99' -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined -fPIC -c src/main/tools/process-tools.c -o /tmp/bazel.o
/usr/local/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wl,-z,-relro,-z,now -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer '-std=c99' -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined -fPIC -c src/main/tools/process-tools.c -o /tmp/bazel.o
/usr/local/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wl,-z,-relro,-z,now '-std=c99' -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined -fPIC -c src/main/tools/process-tools.c -o /tmp/bazel.o
/usr/local/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wl,-z,-relro,-z,now '-std=c99' -no-canonical-prefixes -Wno-builtin-macro-redefined -fPIC -c src/main/tools/process-tools.c -o /tmp/bazel.o
The last three commands succeeded.
Ok the problem seems to be with the -no-canonical-prefixes I will ask @ulfjack who added that flag if we can remove it.
A workaround should be just to remove https://github.com/bazelbuild/bazel/blob/master/tools/cpp/cc_configure.bzl#L183 and https://github.com/bazelbuild/bazel/blob/master/tools/cpp/cc_configure.bzl#L203
line 183-184 should looks like:
] + _add_option_if_supported(repository_ctx, cc, "-Wl,-no-as-needed") + (
After removal.
After removing these two lines, it compiles successfully.
Thanks very much.
\o/
:( Just saw your last message. Probably LD_LIBRARY_PATH is not set correctly?
When could you fix -no-canonical-prefixes problem?
The change is under review right now should be out later today.
Wait I though you were hitting another issue. or did I saw incorrectly?
Did you mean the GLIBC issue?
That was because I ran the previously installed binary.
I should ran the compiled one.
Oh nice!
Who's supposed to close the issue? You or me?
I will close it when the change is in the repo
I was in London office last year. Do you hire new employees?
Google is constantly hiring see https://google.com/jobs.
I think the issue still exists.
Oh sorry, we decided not to include that patch and too look for a better one because that one might break on some other system. We need some more information though to reproduce on our system
Can you do the following:
b=/usr/local/gcc-5.3.0/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/include; while [ "$b" != "/" ]; do ls -l "$b"; b=$(dirname $b); done
And gives the output?
ๆป็จ้ 1924
-rw-r--r-- 1 root root 2891 3ๆ 22 18:07 adxintrin.h
-rw-r--r-- 1 root root 3216 3ๆ 22 18:07 ammintrin.h
-rw-r--r-- 1 root root 57350 3ๆ 22 18:07 avx2intrin.h
-rw-r--r-- 1 root root 91535 3ๆ 22 18:07 avx512bwintrin.h
-rw-r--r-- 1 root root 5822 3ๆ 22 18:07 avx512cdintrin.h
-rw-r--r-- 1 root root 72707 3ๆ 22 18:07 avx512dqintrin.h
-rw-r--r-- 1 root root 12965 3ๆ 22 18:07 avx512erintrin.h
-rw-r--r-- 1 root root 420690 3ๆ 22 18:07 avx512fintrin.h
-rw-r--r-- 1 root root 3432 3ๆ 22 18:07 avx512ifmaintrin.h
-rw-r--r-- 1 root root 5389 3ๆ 22 18:07 avx512ifmavlintrin.h
-rw-r--r-- 1 root root 8106 3ๆ 22 18:07 avx512pfintrin.h
-rw-r--r-- 1 root root 4929 3ๆ 22 18:07 avx512vbmiintrin.h
-rw-r--r-- 1 root root 8380 3ๆ 22 18:07 avx512vbmivlintrin.h
-rw-r--r-- 1 root root 142328 3ๆ 22 18:07 avx512vlbwintrin.h
-rw-r--r-- 1 root root 61352 3ๆ 22 18:07 avx512vldqintrin.h
-rw-r--r-- 1 root root 423224 3ๆ 22 18:07 avx512vlintrin.h
-rw-r--r-- 1 root root 48892 3ๆ 22 18:07 avxintrin.h
-rw-r--r-- 1 root root 3388 3ๆ 22 18:07 bmi2intrin.h
-rw-r--r-- 1 root root 5578 3ๆ 22 18:07 bmiintrin.h
-rw-r--r-- 1 root root 1154 3ๆ 22 18:07 bmmintrin.h
drwxr-xr-x 2 root root 4096 4ๆ 19 16:00 cilk
-rw-r--r-- 1 root root 1663 3ๆ 22 18:07 clflushoptintrin.h
-rw-r--r-- 1 root root 1585 3ๆ 22 18:07 clwbintrin.h
-rw-r--r-- 1 root root 7148 3ๆ 22 18:07 cpuid.h
-rw-r--r-- 1 root root 2558 3ๆ 22 18:07 cross-stdarg.h
-rw-r--r-- 1 root root 50818 3ๆ 22 18:07 emmintrin.h
-rw-r--r-- 1 root root 3406 3ๆ 22 18:07 f16cintrin.h
-rw-r--r-- 1 root root 8667 3ๆ 22 18:07 float.h
-rw-r--r-- 1 root root 9132 3ๆ 22 18:07 fma4intrin.h
-rw-r--r-- 1 root root 10536 3ๆ 22 18:07 fmaintrin.h
-rw-r--r-- 1 root root 2140 3ๆ 22 18:07 fxsrintrin.h
-rw-r--r-- 1 root root 7639 3ๆ 22 18:07 ia32intrin.h
-rw-r--r-- 1 root root 4504 3ๆ 22 18:07 immintrin.h
-rw-r--r-- 1 root root 1272 3ๆ 22 18:07 iso646.h
-rw-r--r-- 1 root root 3338 3ๆ 22 18:07 lwpintrin.h
-rw-r--r-- 1 root root 2348 3ๆ 22 18:07 lzcntintrin.h
-rw-r--r-- 1 root root 6661 3ๆ 22 18:07 mm3dnow.h
-rw-r--r-- 1 root root 31104 3ๆ 22 18:07 mmintrin.h
-rw-r--r-- 1 root root 1756 3ๆ 22 18:07 mm_malloc.h
-rw-r--r-- 1 root root 1747 3ๆ 22 18:07 mwaitxintrin.h
-rw-r--r-- 1 root root 1288 3ๆ 22 18:07 nmmintrin.h
-rw-r--r-- 1 root root 4355 3ๆ 22 18:18 omp.h
-rw-r--r-- 1 root root 4299 3ๆ 22 18:18 openacc.h
-rw-r--r-- 1 root root 1616 3ๆ 22 18:07 pcommitintrin.h
-rw-r--r-- 1 root root 4368 3ๆ 22 18:07 pmmintrin.h
-rw-r--r-- 1 root root 1750 3ๆ 22 18:07 popcntintrin.h
-rw-r--r-- 1 root root 1447 3ๆ 22 18:07 prfchwintrin.h
-rw-r--r-- 1 root root 9030 3ๆ 22 18:18 quadmath.h
-rw-r--r-- 1 root root 3129 3ๆ 22 18:18 quadmath_weak.h
-rw-r--r-- 1 root root 2011 3ๆ 22 18:07 rdseedintrin.h
-rw-r--r-- 1 root root 2729 3ๆ 22 18:07 rtmintrin.h
drwxr-xr-x 2 root root 4096 4ๆ 19 16:00 sanitizer
-rw-r--r-- 1 root root 3198 3ๆ 22 18:07 shaintrin.h
-rw-r--r-- 1 root root 28405 3ๆ 22 18:07 smmintrin.h
drwxr-xr-x 2 root root 4096 4ๆ 19 16:00 ssp
-rw-r--r-- 1 root root 1210 3ๆ 22 18:07 stdalign.h
-rw-r--r-- 1 root root 4075 3ๆ 22 18:07 stdarg.h
-rw-r--r-- 1 root root 8869 3ๆ 22 18:07 stdatomic.h
-rw-r--r-- 1 root root 1524 3ๆ 22 18:07 stdbool.h
-rw-r--r-- 1 root root 13754 3ๆ 22 18:07 stddef.h
-rw-r--r-- 1 root root 6000 3ๆ 22 18:07 stdfix.h
-rw-r--r-- 1 root root 7029 3ๆ 22 18:07 stdint-gcc.h
-rw-r--r-- 1 root root 328 3ๆ 22 18:07 stdint.h
-rw-r--r-- 1 root root 1136 3ๆ 22 18:07 stdnoreturn.h
-rw-r--r-- 1 root root 5317 3ๆ 22 18:07 tbmintrin.h
-rw-r--r-- 1 root root 8343 3ๆ 22 18:07 tmmintrin.h
-rw-r--r-- 1 root root 10728 3ๆ 22 18:18 unwind.h
-rw-r--r-- 1 root root 139 3ๆ 22 18:07 varargs.h
-rw-r--r-- 1 root root 4590 3ๆ 22 18:07 wmmintrin.h
-rw-r--r-- 1 root root 1920 3ๆ 22 18:07 x86intrin.h
-rw-r--r-- 1 root root 42129 3ๆ 22 18:07 xmmintrin.h
-rw-r--r-- 1 root root 28565 3ๆ 22 18:07 xopintrin.h
-rw-r--r-- 1 root root 1821 3ๆ 22 18:07 xsavecintrin.h
-rw-r--r-- 1 root root 2218 3ๆ 22 18:07 xsaveintrin.h
-rw-r--r-- 1 root root 1917 3ๆ 22 18:07 xsaveoptintrin.h
-rw-r--r-- 1 root root 2157 3ๆ 22 18:07 xsavesintrin.h
-rw-r--r-- 1 root root 1687 3ๆ 22 18:07 xtestintrin.h
ๆป็จ้ 3208
-rw-r--r-- 1 root root 3248 3ๆ 22 18:18 crtbegin.o
-rw-r--r-- 1 root root 3608 3ๆ 22 18:18 crtbeginS.o
-rw-r--r-- 1 root root 3744 3ๆ 22 18:18 crtbeginT.o
-rw-r--r-- 1 root root 2128 3ๆ 22 18:18 crtend.o
-rw-r--r-- 1 root root 2128 3ๆ 22 18:18 crtendS.o
-rw-r--r-- 1 root root 3840 3ๆ 22 18:18 crtfastmath.o
-rw-r--r-- 1 root root 3440 3ๆ 22 18:18 crtprec32.o
-rw-r--r-- 1 root root 3448 3ๆ 22 18:18 crtprec64.o
-rw-r--r-- 1 root root 3440 3ๆ 22 18:18 crtprec80.o
drwxr-xr-x 2 root root 4096 4ๆ 19 16:00 finclude
drwxr-xr-x 5 root root 4096 4ๆ 19 16:00 include
drwxr-xr-x 4 root root 4096 4ๆ 19 16:00 include-fixed
drwxr-xr-x 3 root root 4096 4ๆ 19 16:00 install-tools
-rw-r--r-- 1 root root 26668 3ๆ 22 18:18 libcaf_single.a
-rwxr-xr-x 1 root root 951 3ๆ 22 18:18 libcaf_single.la
-rw-r--r-- 1 root root 3054142 3ๆ 22 18:18 libgcc.a
-rw-r--r-- 1 root root 51926 3ๆ 22 18:18 libgcc_eh.a
-rw-r--r-- 1 root root 61706 3ๆ 22 18:18 libgcov.a
-rw-r--r-- 1 root root 1718 3ๆ 22 18:18 libgfortranbegin.a
-rwxr-xr-x 1 root root 960 3ๆ 22 18:18 libgfortranbegin.la
drwxr-xr-x 3 root root 4096 4ๆ 19 16:01 plugin
ๆป็จ้ 4
drwxr-xr-x 7 root root 4096 4ๆ 19 16:00 5.3.0
ๆป็จ้ 4
drwxr-xr-x 3 root root 4096 4ๆ 19 16:00 x86_64-unknown-linux-gnu
ๆป็จ้ 4
drwxr-xr-x 3 root root 4096 4ๆ 19 16:00 gcc
ๆป็จ้ 24
drwxr-xr-x 2 root root 4096 4ๆ 19 16:01 bin
drwxr-xr-x 3 root root 4096 4ๆ 19 16:00 include
drwxr-xr-x 3 root root 4096 4ๆ 19 16:00 lib
drwxr-xr-x 3 root root 4096 4ๆ 19 16:01 lib64
drwxr-xr-x 3 root root 4096 4ๆ 19 16:01 libexec
drwxr-xr-x 6 root root 4096 4ๆ 19 16:01 share
ๆป็จ้ 164
drwxr-xr-x. 3 root root 4096 2ๆ 24 2014 agenttools
drwxr-xr-x 6 root root 4096 6ๆ 15 2015 ajs_work_agent
drwxr-xr-x 4 root root 4096 12ๆ 25 2014 apdtools
drwxr-xr-x. 2 root root 4096 4ๆ 20 16:28 bin
drwxr-xr-x. 2 root root 4096 9ๆ 23 2011 etc
drwxr-xr-x. 2 root root 4096 9ๆ 23 2011 games
drwxr-xr-x 8 root root 4096 4ๆ 19 15:55 gcc
drwxr-xr-x 8 root root 4096 4ๆ 19 16:01 gcc-5.3.0
drwxr-xr-x. 4 root root 4096 4ๆ 14 2014 include
drwxr-xr-x 8 root root 4096 1ๆ 29 16:15 jdk1.7.0_75
drwxr-xr-x 8 root root 4096 4ๆ 13 16:40 jdk1.8.0_65
drwxr-xr-x. 4 root root 4096 4ๆ 14 17:08 lib
drwxr-xr-x. 3 root root 4096 2ๆ 24 2014 lib64
drwxr-xr-x. 2 root root 4096 9ๆ 23 2011 libexec
drwx------ 2 root root 16384 2ๆ 24 2014 lost+found
drwxr-xr-x 13 root root 4096 10ๆ 30 2015 mysql
drwxr-xr-x 3 root root 4096 2ๆ 22 14:09 odin-plugins
drwxr-xr-x 11 root root 4096 1ๆ 22 2015 proftpd
drwxr-xr-x 6 root root 4096 9ๆ 2 2014 python2.7
drwxrwxrwx 3 root root 4096 2ๆ 21 2014 realserver
drwxr-xr-x. 3 root root 4096 2ๆ 24 2014 sa
drwxr-xr-x. 2 root root 4096 4ๆ 19 16:21 sbin
drwxr-xr-x. 6 root root 4096 2ๆ 24 2014 share
drwxr-xr-x. 2 root root 4096 2ๆ 26 2014 src
drwxr-xr-x 9 root root 4096 8ๆ 23 2014 TsysAgent
drwxr-xr-x 6 daemon daemon 4096 11ๆ 1 2012 work_agent
ๆป็จ้ 144
dr-xr-xr-x. 2 root root 24576 4ๆ 26 15:54 bin
drwxr-xr-x. 2 root root 4096 9ๆ 23 2011 etc
drwxr-xr-x. 2 root root 4096 9ๆ 23 2011 games
drwxr-xr-x. 59 root root 8192 4ๆ 26 15:54 include
dr-xr-xr-x. 49 root root 12288 4ๆ 19 15:55 lib
dr-xr-xr-x. 54 root root 24576 5ๆ 3 18:52 lib64
drwxr-xr-x. 15 root root 4096 7ๆ 20 2015 libexec
drwxr-xr-x 28 root root 4096 5ๆ 10 15:14 local
dr-xr-xr-x. 2 root root 8192 10ๆ 8 2015 sbin
drwxr-xr-x. 123 root root 4096 4ๆ 26 15:54 share
drwxr-xr-x. 4 root root 4096 2ๆ 24 2014 src
lrwxrwxrwx. 1 root root 10 2ๆ 24 2014 tmp -> ../var/tmp
Sorry again for the delay on this one, I have quite a bit to catch up.
It's all right. When is it expected to be fixed?
Unfortunately I don't have any timeline for it. I have another improvement
that needs to be done and that might actually fix this bug.
On Fri, May 20, 2016, 9:19 AM is03wlei [email protected] wrote:
It's all right. When is it expected to be fixed?
โ
You are receiving this because you modified the open/close state.Reply to this email directly or view it on GitHub
https://github.com/bazelbuild/bazel/issues/1204#issuecomment-220535358
I see. Do you have timeline for that improvement?
I hope to do it in a month but I cannot guarantee.
On Fri, May 20, 2016, 9:25 AM is03wlei [email protected] wrote:
I see. Do you have timeline for that improvement?
โ
You are receiving this because you modified the open/close state.Reply to this email directly or view it on GitHub
https://github.com/bazelbuild/bazel/issues/1204#issuecomment-220536298
Thanks. It seems to be a big improvement.
Most helpful comment
Can you give me the output of
echo | gcc -E -xc++ - -v?