Replies: 5 comments
-
Hi, The current main/release only supports LLVM 16 and 17, which is most likely the reason you encountered errors if you tried compiling the current release/main of OpenASIP with LLVM 15. If you absolutely must use LLVM 15, you have to roll back to an older release (openasip-2.0 branch). It's difficult to say without further investigation how these LLVM erros came to be later on when you switched to LLVM 16, but it could be the result of first trying to compile OpenASIP with an unsupported LLVM version. As for the boost errors, which boost version are you using? Also, which operating system? |
Beta Was this translation helpful? Give feedback.
-
I installed LLVM 16 by following the commands that were provided ad was successful in running it. I made sure there were no residual of llvm 15 or any other version. When running the final step that it (./autogen.sh && ./configure --prefix=$HOME/local && make -j8 && make install) I encountered the issue (OperationPoolPimpl.cc:60:10: fatal error: llvm/MC/MCInstrDesc.h: No such file or directory I again tried with ./autogen.sh && ./configure --prefix=$HOME/local && make -j1 && make install, and still got the same issue After running (dpkg-query -l | grep libboost) I got the following My Operating system is Ubuntu 24.04 LTS |
Beta Was this translation helpful? Give feedback.
-
Ubuntu 24.04 LTS is a relatively new release, and I doubt anyone has tested OpenASIP on it before. There are lots of changes in the default system package version of boost between Ubuntu 22 and Ubuntu 24, which is why you are having a difficult time trying to get it to compile. As for the LLVM error, it's difficult to say without more thorough investigation why that include path is not found. I strongly recommend using Ubuntu 22, however, since that has been well tested and will work out of the box with the default system packages. Could you try that and also see if the LLVM error goes away? |
Beta Was this translation helpful? Give feedback.
-
Right. You can try installing an older (tested) boost version. Or alternatively fix any possible incompatibilities the new boost has with the OpenASIP code base. I wouldn't recommend poking the headers in the system by hand, but always install from the pacakges. For the LLVM, it seems your LLVM installation is still somehow broken as it doesn't find the headers. My immediate guess is that your Ubuntu has an LLVM installed in the system which TCE-patched LLVM installed from the script somehow conflicts with (tries to include from its paths perhaps). Or your TCE-patched LLVM is not installed in a path where cpp finds it by default (llvmtce-config should point to it). |
Beta Was this translation helpful? Give feedback.
-
Hello . I hope this message finds you well. There are certain issues I wanted to talk about while installing OpenASIP Tools.
I installed C++ and python and made sure pywin32 was installed correctly. Then I installed virtual box and downloaded the linux iso file. Then I finally created the virtual machine.
However, I encountered challenges while installing the OpenASIP tools. After ensuring approximately 44 GB of space on my machine, I followed the instructions closely. Unfortunately, I discovered that the script for installing LLVM 15 was missing from the repository which I required, with scripts only available for LLVM versions 14, 16, and 17. I attempted a manual installation of LLVM 15 but encountered an error in the CMakeLists file. Consequently, I proceeded with the installation of LLVM 16, as it is an updated version of LLVM 15 containing all of its features, which was successful, and I implemented the code
The primary obstacle arose where I encountered errors related to deprecated Boost headers (progress.hpp and timer.hpp) and deprecated C++ functionality. To address these issues, I defined BOOST_TIMER_ENABLE_DEPRECATED in the build environment and made efforts to refactor the code to remove deprecated C++ features. I resolved these by manually replacing deprecated headers with their modern equivalents and installing missing C++ headers that were not available by default on my system.
Unfortunately, I then encountered another issue where the compiler was unable to locate the MCInstrDesc.h header file from the LLVM project. I resolved this by manually identifying the correct path within the LLVM build and including it in the installation process. While this addressed the immediate problem, the Boost header issues reappeared.
Could you please provide any solution for that.
Beta Was this translation helpful? Give feedback.
All reactions