-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
CentOS 6.7 building with custom GCC #1201
Comments
Ahh shucks. It seems that GCC's cc1 and cc1plus couldn't find the necessary libcloog-isl library. An unfortunate result of the way the admin's have set up so users have multiple GCC compilers available, requiring that LD_LIBRARY_PATH be set to use them (which is automatically set by some magic shell scripts of theirs). I ended up writing some sad little shell wrappers to call gcc, cpp, cc1 and cc1plus with the necessary LD_LIBRARY_PATH set, and this resolved the issue. A more principled solution would have been to recompile GCC from scratch in my own directory. |
fwiw it looks as the same issue seen in #1152 |
@stephenroller I meet the same error, but with the libmpc library, could you please give more details of how you solve the problem? |
Yeah this is real hackish, but I ended up making 5 bash scripts: gcc, g++, cpp, cc1 and cc1plus. All of them were: #/bin/bash
LD_LIBRARY_FLAGS=/necessary/paths:/here /path/to/real/gcc "${@}" These were all put inside a hackbin/ folder inside bazel source, then added $BAZELSRC/hackbin to my $PATH, and updated CROSSTOOL appropriately. Then the compiler called these bash scripts which set environmental flags needed. Really, really bad hack. But it got it to compile. Edit: Fixed the lack of $@, thanks |
thanks, it works for me. Create those file and chmod +x for them, and should have "$@" at the end of the line.
@damienmg @stephenroller , how should i handle it ? So strange, the problem is fixed now. |
Hi all,
Thanks for your hard work on the project.
I've been trying to get TensorFlow working on a cluster which runs on CentOS 6.7 with a custom GCC. I can't use the binary releases because of the older version of glibc, which we do not have the option of upgrading (cluster supports hundreds of other users who are infinitely more important than me). So the route to victory here is Compile Bazel -> Compile Tensorflow -> Profit.
This issue seemed to be resolved in #760, but here I am. I'm using HEAD, but the also tried 0.2.2b, but I haven't tried 0.1.1.
The new cc_configure.bzl seems to successfully load my environment variables (woot!) and set the proper options for part of ./compile.sh. I get past the bootstrapping part (where we historically usually see complaints about GLIB being too old), and then make it to the Building Bazel with Bazel step.
Running the failed command also fails, with the same error message. However, if I drop the "exec env - PATH" bit, then GCC sees the LD_LIBRARY_PATH and naturally finds the elusive libcloog-isl.so.4. So somewhere along the building Bazel with Bazel step, the options inferred in cc_configure.bzl are getting lost.
Does anyone have any suggestions?
(Just to make sure i'm not insane, the following confirms libcloog-isl does exist...)
Environment
The text was updated successfully, but these errors were encountered: