Open chenjinyubuaa opened 2 years ago
Hey @chenjinyubuaa , we are discussing how to support this internally. Will get back to you soon.
Thank you very much!
Hey @sanchitgarg , I fix this by making new glibc-2.29, and only export the libm.so.6 into the $LD_LIBRARY_PATH.
We're also encountering this issue. We're attempting to try @chenjinyubuaa's approach and build glibc-2.29 from source and add libm.so.6 to $LD_LIBRARY_PATH
Hmm I get a segfault when using this approach. :grimacing:
@chenjinyubuaa can you detail the steps you did to get this working?
@chenjinyubuaa can you detail the steps you did to get this working?
After you make the GLIBC version 2.29, mv the libm.so outside the install directory, and just export the libm.so into the $LD_LIBRARY_PATH. The other .so files may cause the core dump issue.
I'm still encountering some issues. I'm installing this in a Singularity container (bootstrapped from the Docker nvidia/cudagl:10.2-devel-ubuntu18.04
image and with the dependencies installed) using Ubuntu 18.04 and trying this:
# Install habitat-sim
git clone -b v0.2.2 git@github.com:facebookresearch/habitat-sim.git
cd habitat-sim
python setup.py build_ext --headless --audio --with-cuda --bullet --parallel 8 install
cd /ext3/code
# Build glibc
cd /ext3/code # working directory
wget http://ftp.gnu.org/gnu/glibc/glibc-2.29.tar.gz
tar xzf glibc-2.29.tar.gz
cd glibc-2.29
mkdir build
cd build
../configure --prefix=/ext3/local
make
cd /ext3/code
mkdir libm
cp glibc-2.29/build/math/libm.so.6 libm/
export LD_LIBRARY_PATH=/ext3/code/libm:$LD_LIBRARY_PATH
When I run python -c "import habitat_sim"
I get this error:
free(): invalid pointer
Aborted (core dumped)
I also tried installing habitat_sim after adding libm.so.6
to $LD_LIBRARY_PATH
in case there were issues with other parts of the build dependent on it, but I got the same error. I also tried the same process in an Ubuntu 16.04 container and got pretty much the same thing (though that resulted in a long core dump stack trace).
Am I missing a step here?
@auroracramer Try to build the habitat-lab, and import habitat
. I meet the same core dump bug after making the habitat-sim only and import habitat_sim
. After I make the habitat-lab, I can run the code in soud-spaces successfully.
@chenjinyubuaa Ah if I do python -c "import habitat; import habitat_sim"
after installing habitat-lab then it works as you say. The soundspaces code seems to be able to run as well. Thanks for clarifying! :)
Posting the complete building instructions here:
git clone git://sourceware.org/git/glibc.git
cd glibc
git checkout glibc-2.29
mkdir build
cd build
export glibc_install="$(pwd)/install"
../configure --prefix "$glibc_install"
make -j `nproc`
make install -j `nproc`
mkdir $HOME/bin
cp $(pwd)/install/lib/libm.so.6 $HOME/bin/
export LD_LIBRARY_PATH=$HOME/bin:$LD_LIBRARY_PATH
Hello! I tried to make the habitat_sim from the source code. And I meet this problem when import in python.
It seems that you compile the libRLRAudioPropagation.so under GLIBC_2.27, but our cluster does not support that version of GLIBC_2.27. So I prefer to compile this repo myself. I wonder if you will release the source code of this repo?