On May 17, 2019, at 7:27 AM, Ramakrishnan Thirumalaisamy <thirumala...@gmail.com> wrote:Hi,
I am Ramakrishnan and I am a student of Amneet Bhalla. I followed the instructions
given in github.com/IBAMR/sublime-settings to configure the IBAMR with sublime.
I use Ubuntu 14.04 LTS and sublime text 3.
1. Following the instructions, I deleted the User folder which is located in:
Sublime\ Text\ 3/Packages/
2. Then I copied the User file given in IBAMR Github to the above location.
3. I deleted the Default(OSX).sublime-keymap in the User folder and added Default(Linux).sublime-keymap as I use Ubuntu. When I restarted the sublime, the necessary packages are automatically downloaded. After that I added the project path in the sublime linter file.
4. I also copied the sublime project template from the scripts and put it in the source code directory
cd $HOME/sfw/IBAMR-Git/IBAMR
cp scripts/project_templates/sublime/ibamr.sublime-project.template ./ibamr.sublime-project
I included my project path in this file.
5. I installed the scan-build (version - 2.0.16 ) and compdb (version - 0.2.0) using python - 3.6.3. However, when I execute the setup_compile_commands.sh file which is located inside the scripts folder, I am getting the following error:
./setup_compile_commands.sh: line 74: intercept-build: command not found
./setup_compile_commands.sh: line 75: compdb: command not found
I could see that both errors are due to scan-build and compdb. Any idea to resolve this error?
I am attaching the screenshots the following screen-shots:1. compdb_error.png - You can see the error I am getting while executing the setup_compile_commands.sh file.2. scan-build_and_compdb_installation - you can see that the installation of scan-build and compdb are successful.
--RegardsRamakrishnan T.
--
You received this message because you are subscribed to the Google Groups "IBAMR Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ibamr-dev+...@googlegroups.com.
To post to this group, send email to ibam...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ibamr-dev/CAJ0QxmpVbRGAkR9OdRdNh%2Bw8DcuwU7HTzLHuqg7TPwVBTHc16g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
<scan-build_and_compdb_installation.png><compdb_error.png>
To view this discussion on the web visit https://groups.google.com/d/msgid/ibamr-dev/13E4AF3C-CE2C-4933-92E7-A0FA1213491E%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
On May 17, 2019, at 8:39 AM, Boyce Griffith <boy...@gmail.com> wrote:On May 17, 2019, at 7:27 AM, Ramakrishnan Thirumalaisamy <thirumala...@gmail.com> wrote:Hi,
I am Ramakrishnan and I am a student of Amneet Bhalla. I followed the instructions
given in github.com/IBAMR/sublime-settings to configure the IBAMR with sublime.
I use Ubuntu 14.04 LTS and sublime text 3.
1. Following the instructions, I deleted the User folder which is located in:
Sublime\ Text\ 3/Packages/
2. Then I copied the User file given in IBAMR Github to the above location.
3. I deleted the Default(OSX).sublime-keymap in the User folder and added Default(Linux).sublime-keymap as I use Ubuntu. When I restarted the sublime, the necessary packages are automatically downloaded. After that I added the project path in the sublime linter file.
On May 17, 2019, at 10:43 AM, Amneet Bhalla <mail2...@gmail.com> wrote:IIRC Aaron had done these (intercept-built or compdb) for Linux or was it just the Bear tool for getting json file to use clang-modernize?
I think Rama ran pip install commands to get both intercept-built and compdb, but they don’t show up in the path.
Rama, can you list the exact steps you performed to get them both?(Perhaps building these tools from scratch is easy enough to avoid pip install hassle)
To view this discussion on the web visit https://groups.google.com/d/msgid/ibamr-dev/CAMETWJ1VFzB1%3Dbw4GFwh493fRQXC68y23225FDAGyUhB9SCvGw%40mail.gmail.com.
On May 17, 2019, at 10:43 AM, Amneet Bhalla <mail2...@gmail.com> wrote:IIRC Aaron had done these (intercept-built or compdb) for Linux or was it just the Bear tool for getting json file to use clang-modernize?Yes. BEAR does not work as well on MacOS.
I think Rama ran pip install commands to get both intercept-built and compdb, but they don’t show up in the path.Wherever pip is installing stuff needs to be in your PATH.You can get some information about this by running
To view this discussion on the web visit https://groups.google.com/d/msgid/ibamr-dev/B49B2C41-0D86-401C-857B-404735DECAA1%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
On May 17, 2019, at 10:55 AM, Amneet Bhalla <mail2...@gmail.com> wrote:On Fri, May 17, 2019 at 7:47 AM Boyce Griffith <boy...@gmail.com> wrote:On May 17, 2019, at 10:43 AM, Amneet Bhalla <mail2...@gmail.com> wrote:IIRC Aaron had done these (intercept-built or compdb) for Linux or was it just the Bear tool for getting json file to use clang-modernize?Yes. BEAR does not work as well on MacOS.Hmm, hence compdb and scan-build etc? I was trying BEAR on OSX few years back to make atom work. I recall getting a json file out of it but don’t recall if atom worked with it.
I think Rama ran pip install commands to get both intercept-built and compdb, but they don’t show up in the path.Wherever pip is installing stuff needs to be in your PATH.You can get some information about this by runningAh, that’s the magic to know the path from pip.Is it OK, to alias python to python3 on shell or in bashrc? If we don’t do this python 2 is used by the shell. Is that how you also select python3 instead of 2?
To view this discussion on the web visit https://groups.google.com/d/msgid/ibamr-dev/CAMETWJ3zm_6Je7gUbdXyaNduFneP_aBvOLPzKqpG8-5%2B%2Beqtcg%40mail.gmail.com.
On May 17, 2019, at 11:01 AM, Amneet Bhalla <mail2...@gmail.com> wrote:Rama I see in the screenshot that you are using python4 to get pip to install scan-build. On the next line it says using pip from python3.Can you stick to python3 for everything or there is something not working with it?
To view this discussion on the web visit https://groups.google.com/d/msgid/ibamr-dev/CAMETWJ1RHC%3DX5MhqHZL0MQyy0qEd4Jn3s-6TDT13ih2Sffe9LQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ibamr-dev/CAMETWJ1VFzB1%3Dbw4GFwh493fRQXC68y23225FDAGyUhB9SCvGw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
On May 20, 2019, at 1:09 PM, Ramakrishnan Thirumalaisamy <thirumala...@gmail.com> wrote:Thank you for the suggestions.I installed python - 3.6.3 and created the symlink named python4 to it.
I used the following commands to install compdb and scan-build:python4 -m pip install scan-buildpython4 -m pip install compdbThese packages are installed in the user local directory:/home/amaresh/.local/lib/python3.6/site-packagesBut I did not add this path to my .bashrc file. That is why I was getting the error message as compdb and scan-build are not found. Following Boyce suggestion, I added the following path in my .bashrc file:export PATH=/home/amaresh/.local/bin:$PATHNow that error is resolved. I have a working IBAMR directory.
Now if I run ./setup_compile_command.sh, it shows up the following error:
/home/amaresh/sfw/petsc/3.10.0/include/petscsys.h:165:6: error: #error "PETSc was configured with OpenMPI but now appears to be compiling using a non-OpenMPI mpi.h"
# error "PETSc was configured with OpenMPI but now appears to be compiling using a non-OpenMPI mpi.h"
^~~~~
In file included from /home/amaresh/sfw/linux/boost/1.67.0/include/boost/concept_check.hpp:27,
from /home/amaresh/sfw/linux/boost/1.67.0/include/boost/multi_array/concept_checks.hpp:21,
from /home/amaresh/sfw/linux/boost/1.67.0/include/boost/multi_array/base.hpp:28,
from /home/amaresh/sfw/linux/boost/1.67.0/include/boost/multi_array.hpp:26,
from ../../../IBAMR/ibtk/lib/../src/lagrangian/LData.cpp:40:
/home/amaresh/sfw/linux/boost/1.67.0/include/boost/mpl/assert.hpp:188:21: warning: unnecessary parentheses in declaration of ‘assert_arg’ [-Wparentheses]
failed ************ (Pred::************
^
/home/amaresh/sfw/linux/boost/1.67.0/include/boost/mpl/assert.hpp:193:21: warning: unnecessary parentheses in declaration of ‘assert_not_arg’ [-Wparentheses]
failed ************ (boost::mpl::not_<Pred>::************
^
make[2]: *** [../src/lagrangian/libIBTK2d_a-LData.o] Error 1
make[2]: Leaving directory `/home/amaresh/sfw/IBAMR-Git/objs-dbg/ibtk/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/amaresh/sfw/IBAMR-Git/objs-dbg/ibtk'
make: *** [all-recursive] Error 1
WARNING:compdb.includedb:/home/amaresh/sfw/samrai/2.4.4/linux-g++-debug/include/tbox/SAMRAI_MPI.h: could not resolve header: "mpi.h"
ln: failed to create symbolic link ‘/home/amaresh/sfw/IBAMR-Git/IBAMR/compile_commands.json’: File exists
I also built the IBAMR code (in debug mode) from scratch in another workstation. There also I get the following error when I run the script:/home/raam/sfw/samrai/2.4.4/linux-g++-debug/include/tbox/SAMRAI_MPI.h:33:10: fatal error: mpi.h: No such file or directory
#include "mpi.h"
^~~~~~~
compilation terminated.
Makefile:3098: recipe for target '../src/boundary/libIBTK2d_a-HierarchyGhostCellInterpolation.o' failed
make[2]: *** [../src/boundary/libIBTK2d_a-HierarchyGhostCellInterpolation.o] Error 1
make[2]: Leaving directory '/home/raam/sfw/ibamr/objs-dbg/ibtk/lib'
Makefile:614: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/raam/sfw/ibamr/objs-dbg/ibtk'
Makefile:612: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
WARNING:compdb.includedb:/home/raam/sfw/samrai/2.4.4/linux-g++-debug/include/tbox/SAMRAI_MPI.h: could not resolve header: "mpi.h"
ln: failed to create symbolic link '/home/raam/sfw/ibamr/IBAMR/compile_commands.json': File existsThe IBAMR directory is a working directory in both the machines. Only when we run the script (setup_compile_commands), we end up getting these errors.Could you give us some idea to resolve this?
To view this discussion on the web visit https://groups.google.com/d/msgid/ibamr-dev/CAJ0QxmrzQM6uj0VWzLhU_%3DsS9zn1VFYJhN8z1Th5rmPfw3DU4g%40mail.gmail.com.
/home/raam/sfw/samrai/2.4.4/linux-g++-debug/include/tbox/SAMRAI_MPI.h:33:10: fatal error: mpi.h: No such file or directory
#include "mpi.h"
^~~~~~~Make sure you use consistent MPI compilers.
To view this discussion on the web visit https://groups.google.com/d/msgid/ibamr-dev/88A88F99-D004-41A3-BFCB-62047C502C45%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
On May 20, 2019, at 2:00 PM, Amneet Bhalla <mail2...@gmail.com> wrote:/home/raam/sfw/samrai/2.4.4/linux-g++-debug/include/tbox/SAMRAI_MPI.h:33:10: fatal error: mpi.h: No such file or directory
#include "mpi.h"
^~~~~~~Make sure you use consistent MPI compilers.Do you mean in building IBAMR and other libraries or to do something special to ensure MPI consistency for this script? I think Rama is already using consistent MPI compilers to build IBAMR. Is it possible for you guys to run this script on a linux system? You may be able to replicate the same error on a linux system.
To view this discussion on the web visit https://groups.google.com/d/msgid/ibamr-dev/CAMETWJ2PezaSCvovOb7A7at2FBO8uzFuDQFOB%2BSwT-0sKHxijg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ibamr-dev/8276955E-FB81-452F-8B13-A6EE3E306E36%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/ibamr-dev/88A88F99-D004-41A3-BFCB-62047C502C45%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
On May 20, 2019, at 2:21 PM, Ramakrishnan Thirumalaisamy <thirumala...@gmail.com> wrote:In ubuntu 14.04, there are already two versions of python: one is python2.7 and the other one is python3.4. python symlink refers to python2.7 and python3.4 symlink refers to python3.4. Hence, I created a new symlink which is nowhere used except to download the compdb and scan-build packages.
To view this discussion on the web visit https://groups.google.com/d/msgid/ibamr-dev/CAJ0Qxmr368fo%2BsdkoZyfaMDQ5h5p0STta1%2B4FGiG%3DDTVC9%2BWRQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ibamr-dev/95C7B886-DEC0-4599-B60C-46BEE9FCC948%40gmail.com.
For more options, visit https://groups.google.com/d/optout.