I followed the steps on this website:http://eli.thegreenplace.net/2012/06/08/basic-source-to-source-transformation-with-clang/
And I've installed clang 2.7 on my ubuntu,but I get the error : /clang/AST/RecursiveASTVisitor.h file not found.
I use the find command to search the RecursiveASTVisitor.h but I can just find ASTVisitor.h file. So I think maybe I just installed the wrong version. But I don't know where to find the information that from which version clang begin to use RecursiveASTVisitor.
RecursiveASTVisitor.h was added to clang in version 2.8.
Related
I tried to uninstall following this guide: https://guide.macports.org/chunked/installing.macports.uninstalling.html#installing.macports.uninstalling.users
When I put in the last command lines in terminal it does not work and says:
zsh: no matches found: /Library/LaunchDaemons/org.macports.*
What's the issue here?
I opened /opt/local/bin and there's still files in there.
At the bottom of the page you will find the following note:
"Depending on which version of MacPorts you have and which ports you have installed, not all of the above paths will exist on your system; this is OK."
Apparently you do not have any files in that directory. Try removing /Library/LaunchDaemons/org.macports.* from the command.
I have R-3.4.0 installed in a x86 system, and want to install the newest rstudio-desktop from AUR. I used MaoCPU's patch file at the comments and then run makepkg -sri after some time an error appeared saying :
/home/orbitz/.bin/AUR/rstudio-desktop/src/rstudio-rstudio-adca7c8/src/cpp/core/http/SocketProxy.cpp:152:60: error: ‘SSL_R_SHORT_READ’ was not declared in this scope error.code().value() == ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SHORT_READ);
Here is a complete output of the procedure. Does anyone have an idea on how to fix this ?
P.S I also tried to install the previous version (rstudio-desktop 1.0.136-2) but with the same result.
Arch Linux recently migrated openssl to 1.1.0.
If R hasn't been updated, you probably need to install openssl-1.0 for compatibility. See the migration todo list for details.
I'm trying to install Mathtex on my Ubuntu 16.04 server for my engineering wiki. It has been a nightmare, just as it was in the past when I tried this.
First, I've installed mathtex via apt-get. That complains of a missing directory. After manually creating those directory it moves on to complain of another. Finally complains of a missing cache directory. I create the cache just like the others and mathtex still complains that the cache directory is missing...
Then I attempt to install via the instructions on the website (http://www.forkosh.com/mathtex.html). In other words, install the dependencies LaTeX and dvipng. Then compile the program using cc (although I use gcc). I've gotten this to work in previous installations of Ubuntu - 12.04 or 14.04 - but can't find those instructions anymore. I was paying for a service until this summer when they went out of business.
Here is the compile line:
cc mathtex.c –DLATEX=\"$(which latex)\" –DDVIPNG=\"$(which dvipng)\" –o mathtex.cgi
Here is the return:
cc: error: –DLATEX="/usr/bin/latex": No such file or directory
cc: error: –DDVIPNG="/usr/bin/dvipng": No such file or directory
cc: error: –o: No such file or directory
I've also tried replacing $(which latex) with $(which pdftex) (/usr/bin/latex is a symbolic link to /usr/bin/pdftex) and /usr/bin/pdftex, /usr/bin/tex, /usr/bin, and /usr/bin/. Same result, the error says there is no such file or directory for all of them.
Googling this error only returns help for people who can't get Ubuntu to recognize gcc as the cc compiler. That's not my issue though.
Did you copy that command from a document? You have the wrong kind of dashes on your options.
Delete the – (en dash) and replace it with -.
I've install r and cairo library for Arch Linux distribution. But when I install the cairo package I've got following error.
cairogd.c: In function ‘ptr_to_raw’:
cairogd.c:491:18: error: expected expression before ‘!=’ token if
(TYPEOF(ptr) != EXTPTRSXP)
cairogd.c: In function ‘raw_to_ptr’:
cairogd.c:509:18: error: expected expression before ‘!=’ token if
(TYPEOF(ptr) != EXTPTRSXP)
cairogd.c:511:18: error: expected expression before ‘!=’ token
if (TYPEOF(raw) != RAWSXP)
I've also install all cairo requirement in Arch Linux.
My gcc version is "gcc version 5.2.0 (GCC)"
I've search and googling, and found they just install the freetype2 packages. When I try it, its cannot solve my problem.
Is there anything I can do to solve this problem?
Thank you for your help
Bayu Permadi
This seems to be a bug in freetype2 (see the corresponding bug report in freetype https://savannah.nongnu.org/bugs/?45376 and Cairo https://github.com/s-u/Cairo/issues/13).
Installing freetype2-git from AUR will solve the problem until freetype2 is updated in the main repository.
I tried to build LLVM and Clang but am getting this error :
cp: cp: cp: cannot stat /home/saurabh/Build/clang-build/build/tools/clang/runtime/compiler-rt/clang_linux/asan-i386/libcompiler_rt.a'cannot stat/home/saurabh/Build/clang-build/build/tools/clang/runtime/compiler-rt/clang_linux/ubsan-x86_64/libcompiler_rt.a'cannot stat `/home/saurabh/Build/clang-build/build/tools/clang/runtime/compiler-rt/clang_linux/ubsan-i386/libcompiler_rt.a': No such file or directory
: No such file or directory: No such file or directory
I went through Cannot build LLVM and Clang but it doesn't seem to have any reasons why he had gotten a similar error (hence I am asking it again). I have tried to remove the -Werror flags in compiler-rt/make/ relevant files, since before that, it was stopping on this error :
/home/saurabh/Build/clang-build/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_mutex.cc:53:13: error:
comparison of constant 4294967295 with expression of type 'int' is always
false [-Werror,-Wtautological-constant-out-of-range-compare]
if (z == MutexTypeLeaf) {
~ ^ ~~~~~~~~~~~~~
1 error generated.
I had asked on #llvm and had been suggested that. Any ideas what could be causing this ?
Fwiw, I am on Ubuntu 12.10 64-bit.
You have to follow http://llvm.org/docs/GettingStarted.html#getting-started-quickly-a-summary. Be aware of the software dependencies you have to install. Also, check again if your --prefix=directory is set. If you cannot install Clang over LLVM (after you succeded to install LLVM), you can try install it using apt-get install clang and clang++. Therefore, you can compile your LLVM passes using this clang. For other corresponding packages, like VMkit for Java, you have to install ant and oracle jdk.
My LD_LIBRARY_PATH environment variable wasn't set properly. After I corrected it, this problem went away.