-
Notifications
You must be signed in to change notification settings - Fork 27
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
failed compile on aarch64 with openfst=1.8.2 and pynini=2.1.5 #84
Comments
Why don't you try this with OpenFst 1.8.3. and Pynini 2.1.6.post1 instead? Those are the most recent versions and I believe everything is working as expected for them. |
hi, thanks a lot for your timely response. I just tried as you suggested but met with new problems. It seemed that the openfst-1.8.3 was installed successfully but there are some problems with pynini installation. # install openfst
openfst_version=openfst-1.8.3
tar -zxvf $openfst_version.tar.gz
chmod 755 -R $PWD/$openfst_version/
cd $PWD/$openfst_version/
./configure --enable-grm --prefix=/home/ma-user/anaconda3/envs/PyTorch-2.1.0 # install openfst to venv
make -j8
make install
cd ../
# upgrade pip
python -m pip install --upgrade pip
pip install \
--config-settings="--build-option=build_ext" \
--upgrade \
--verbose \
pynini==2.1.6.post1 It seemed that the openfst-1.8.3 was installed successfully.
But the pynini installation posed errors as follows:
|
This is a good sign; I think you're close. It's failing at linking because it doesn't know that you put the OpenFst libraries in a non-standard prefix. There are three things you can try:
This is not a problem per se with Pynini's build system; this is a same issue with linking compiled software against libraries in non-standard locations that strikes basically every compiled UNIX library. |
Thanks. Ok, I will have a try as you suggested. |
Any luck @huskyachao ? |
Hi, kylebgorman. Thanks for your attention. It seems that there are still some problems about the installation. I will give a feedback later. |
IS Successful now, How to do? |
@kylebgorman @huskyachao @xiucuiZhu Hello there! I encountered the same error ("cannot find -lfstfarscript") when installing pynini 2.16 on aarch64. I managed to resolve this by reinstalling OpenFST with some additional features enabled. Here's the command I used: ./configure --enable-far --enable-pdt --enable-mpdt --enable-const-fsts --enable-compact-fsts --enable-compress --enable-linear-fsts --enable-lookahead-fsts --enable-ngram-fsts
make && make install After running this configuration, the "cannot find -lfstfarscript" problem was solved. If you encounter another error like "could not find fst/someheader.h", you might try adding the OpenFST library path to your LD_LIBRARY_PATH. For example: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/openfst-1.8.3/src/include Also, make sure to include the appropriate header files in your include path. I hope this helps :D |
Just FYI: |
hi, I tried to compile openfst and pynini on a aarch64 machine. Although the version of openfst and pynini match, I still met with some troubles after a successful installation of openfst. BTW, I want to install pynini under a virtual environment
/home/ma-user/anaconda3/envs/PyTorch-2.1.0.
Here is the commands:The error is posed by the pynini building:
The text was updated successfully, but these errors were encountered: