bazelbuild / bazel

a fast, scalable, multi-language and extensible build system
https://bazel.build
Apache License 2.0
22.86k stars 4.01k forks source link

fatal error: stddef.h: No such file or directory #1204

Closed is03wlei closed 8 years ago

is03wlei commented 8 years ago

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

damienmg commented 8 years ago

Can you give me the output of echo | gcc -E -xc++ - -v?

is03wlei commented 8 years ago

使用内建 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”

include "..." 搜索从这里开始:

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 搜索列表结束。

1 ""

1 ""

1 "<命令行>"

1 ""

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'

damienmg commented 8 years ago

Did you get that error when running ./compile.sh?

is03wlei commented 8 years ago

Yes.

damienmg commented 8 years ago

Can you share the full output of the bootstrap?

damienmg commented 8 years ago

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.

is03wlei commented 8 years ago

That's great. When is it going to be finished?

damienmg commented 8 years ago

I sent a change for review should be out later today or tomorrow at most.

is03wlei commented 8 years ago

Thanks. I hope it works. By the way, are bazel and blaze the same trunk or separated?

damienmg commented 8 years ago

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 notifications@github.com 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

damienmg commented 8 years ago

Oh already pushed :) Can you retry?

is03wlei commented 8 years ago

Thanks. But unfortunately. Still the same error.

damienmg commented 8 years ago

:(

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?

is03wlei commented 8 years ago
INFO: You can skip this first step by providing a path to the bazel binary as second argument:
INFO:    ./compile.sh compile /path/to/bazel
🍃  Building Bazel from scratch......
🍃  Building Bazel with Bazel.
.WARNING: /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.
INFO: Loading package: src

INFO: Loading...

INFO: Loading package: src/main/tools

INFO: Loading package: @bazel_tools//tools/genrule

INFO: Loading package: src/java_tools/buildjar/java/com/google/devtools/build/\
buildjar/jarhelper


INFO: Loading package: src/main/java/com/google/devtools/common/options

INFO: Loading package: src/java_tools/junitrunner/java/com/google/testing/juni\
t/runner/model


INFO: Loading package: tools/build_defs/docker

INFO: Loading package: src/java_tools/junitrunner/java/com/google/testing/juni\
t/runner/util


INFO: Loading package: src/java_tools/junitrunner/java/com/google/testing/juni\
t/runner/sharding/api


INFO: Loading package: src/java_tools/singlejar/java/com/google/devtools/build\
/zip


INFO: Loading package: src/java_tools/buildjar/java/com/google/devtools/build/\
buildjar


INFO: Loading package: tools/cpp/test

INFO: Loading package: third_party/java/buck-ios-support

INFO: Loading package: third_party/py/gflags

INFO: Loading package: third_party/iossim

INFO: Loading package: tools/objc/memleaks

INFO: Loading package: third_party/ijar/test

INFO: Loading package: third_party/boringssl

INFO: Loading package: src/main/java/com/google/devtools/build/lib/sandbox

INFO: Loading package: src/main/java/com/google/devtools/build/lib/rules/cpp

INFO: Loading package: src/main/java/com/google/devtools/build/lib/rules/objc

INFO: Loading package: src/main/java/com/google/devtools/build/lib/rules/apple\
/cpp


INFO: Loading package: src/main/java/com/google/devtools/build/docgen

WARNING: /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].
INFO: Loading package: @local_config_cc//

INFO: Loading complete.  Analyzing...

WARNING: /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.
WARNING: /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.
INFO: Found 1 target...
INFO: Building...

[0 / 21] BazelWorkspaceStatusAction stable-status.txt

[1 / 49] Writing file src/main/cpp/util/libmd5.a-2.params

[13 / 108] Writing file src/main/java/com/google/devtools/build/lib/libos_util\
.jar-2.params


[25 / 162] Writing file src/main/java/com/google/devtools/build/lib/libutil.ja\
r-2.params


ERROR: /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.
INFO: Building complete.

Target //src:bazel failed to build
INFO: Elapsed time: 4.680s, Critical Path: 0.46s

Building output/bazel

(edited for formatting)

damienmg commented 8 years ago

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?

is03wlei commented 8 years ago

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 LSCOLORS="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"

damienmg commented 8 years ago

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?

damienmg commented 8 years ago

Ooops also add -std=c99

is03wlei commented 8 years ago

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

damienmg commented 8 years ago

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).

is03wlei commented 8 years ago

/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.

damienmg commented 8 years ago

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

is03wlei commented 8 years ago

/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

damienmg commented 8 years ago

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

is03wlei commented 8 years ago

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.

damienmg commented 8 years ago

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.

is03wlei commented 8 years ago

After removing these two lines, it compiles successfully. Thanks very much.

damienmg commented 8 years ago

\o/

damienmg commented 8 years ago

:( Just saw your last message. Probably LD_LIBRARY_PATH is not set correctly?

is03wlei commented 8 years ago

When could you fix -no-canonical-prefixes problem?

damienmg commented 8 years ago

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?

is03wlei commented 8 years ago

Did you mean the GLIBC issue? That was because I ran the previously installed binary. I should ran the compiled one.

damienmg commented 8 years ago

Oh nice!

is03wlei commented 8 years ago

Who's supposed to close the issue? You or me?

damienmg commented 8 years ago

I will close it when the change is in the repo

is03wlei commented 8 years ago

I was in London office last year. Do you hire new employees?

damienmg commented 8 years ago

Google is constantly hiring see https://google.com/jobs.

is03wlei commented 8 years ago

I think the issue still exists.

damienmg commented 8 years ago

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?

is03wlei commented 8 years ago

总用量 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

damienmg commented 8 years ago

Sorry again for the delay on this one, I have quite a bit to catch up.

is03wlei commented 8 years ago

It's all right. When is it expected to be fixed?

damienmg commented 8 years ago

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 notifications@github.com 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

is03wlei commented 8 years ago

I see. Do you have timeline for that improvement?

damienmg commented 8 years ago

I hope to do it in a month but I cannot guarantee.

On Fri, May 20, 2016, 9:25 AM is03wlei notifications@github.com 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

is03wlei commented 8 years ago

Thanks. It seems to be a big improvement.