Giter VIP home page Giter VIP logo

Comments (27)

jtrmal avatar jtrmal commented on May 18, 2024

I don't understand what is the question.
Y.
On Sep 19, 2015 5:41 PM, "posophe" [email protected] wrote:

All is in the title.


Reply to this email directly or view it on GitHub
#155.

from kaldi.

posophe avatar posophe commented on May 18, 2024

It's not a question, it's an issue. Even with the option --static-fst=no, the configure script verifies the presence of libfst.a. In fact, the script, during all the configuration process, verifies twice the existence of each dependencies.

from kaldi.

danpovey avatar danpovey commented on May 18, 2024

He might be talking about the configuration process on Darwin (i.e., mac).
The script says
if [ "uname" == "Darwin" ]; then
...
if [ ! -f $FSTROOT/lib/libfst.a ]; then
failure "Static OpenFST library not found: See ../tools/INSTALL"
fi

.. which does seem wrong. I assume we do support dynamic OpenFst on Darwin.

On Sun, Sep 20, 2015 at 5:14 AM, posophe [email protected] wrote:

It's not a question, it's an issue. Even with the option --static-fst=no,
the configure script verifies the presence of libfst.a. In fact, the
script, during all the configuration process, verifies twice the existence
of each dependencies.


Reply to this email directly or view it on GitHub
#155 (comment).

from kaldi.

posophe avatar posophe commented on May 18, 2024

You're right but the verification happens during a build on OBS i.e openSUSE tumbleweed

from kaldi.

danpovey avatar danpovey commented on May 18, 2024

Try to figure out which lines in the configure script are getting called.
What does uname output on your OS? 'Linux'?
Dan

On Sun, Sep 20, 2015 at 1:51 PM, posophe [email protected] wrote:

You're right but the verification happens during a build on OBS i.e
openSUSE tumbleweed


Reply to this email directly or view it on GitHub
#155 (comment).

from kaldi.

posophe avatar posophe commented on May 18, 2024

I know exactly which one. I have patched the configure script to be able to build kaldi.
@@ -449,10 +449,6 @@
else
spx_type=so
fi

  • if [ ! -f "$SPEEXROOT/lib/libspeex.${spx_type}" ];then
  • echo "Static=[$static_speex] Speex library not found: You can still build Kaldi without Speex."
  • return
  • fi

if [ -f $SPEEXROOT/include/speex/speex.h ]; then
echo >> kaldi.mk
@@ -768,13 +764,6 @@
failure "Could not find file $FSTROOT/include/fst/fst.h:
you may not have installed OpenFst. See ../tools/INSTALL"
fi
-echo Checking OpenFst library was patched.
-if ! grep "multiple repeated" $FSTROOT/include/fst/minimize.h >/dev/null; then

  • echo "** ERROR **"
  • echo "** $FSTROOT/include/fst/minimize.h seems not to be patched:"
  • echo "patch not applied? FST tools will not work in our recipe."
  • exit 1;
    -fi

back up the old one in case we modified it

if [ -f kaldi.mk ]; then
@@ -815,9 +804,6 @@
if [ ! -e /System/Library/Frameworks/Accelerate.framework ]; then
failure "Need the Accelerate.framework to compile on Darwin."
fi

  • if [ ! -f $FSTROOT/lib/libfst.a ]; then
  • failure "Static OpenFST library not found: See ../tools/INSTALL"
  • fi

posix_memalign and gcc -rdynamic options not present on OS X 10.5.*

osx_ver=sw_vers | grep ProductVersion | awk '{print $2}' | awk '{split($0,a,"\."); print a[1] "." a[2]; }'
echo "Configuring for OS X version $osx_ver ..."
@@ -868,9 +854,6 @@
OPENFSTLDFLAGS="-Wl,-rpath=${FSTROOT}/lib"
fst_type='so'
fi

  • if [ ! -f "$FSTROOT/lib/libfst.${fst_type}" ]; then
  • failure "Static=[$static_fst] OpenFST library not found: See ../tools/INSTALL"
  • fi
    echo OPENFSTLIBS = $OPENFSTLIBS >> kaldi.mk
    echo OPENFSTLDFLAGS = $OPENFSTLDFLAGS >> kaldi.mk

from kaldi.

danpovey avatar danpovey commented on May 18, 2024

OK, thanks. Yenda usually deals with build issues, so I'll wait for him to
get to it.
Dan

On Sun, Sep 20, 2015 at 2:00 PM, posophe [email protected] wrote:

I know exactly which one. I have patched the configure script to be able
to build kaldi.
@@ -449,10 +449,6 @@
else
spx_type=so
fi

  • if [ ! -f "$SPEEXROOT/lib/libspeex.${spx_type}" ];then

  • echo "Static=[$static_speex] Speex library not found: You can still
    build Kaldi without Speex."

  • return

    fi

    if [ -f $SPEEXROOT/include/speex/speex.h ]; then
    echo >> kaldi.mk
    @@ -768,13 +764,6 @@
    failure "Could not find file $FSTROOT/include/fst/fst.h:
    you may not have installed OpenFst. See ../tools/INSTALL"
    fi
    -echo Checking OpenFst library was patched.
    -if ! grep "multiple repeated" $FSTROOT/include/fst/minimize.h

    /dev/null; then

  • echo "** ERROR **"

  • echo "** $FSTROOT/include/fst/minimize.h seems not to be patched:"

  • echo "patch not applied? FST tools will not work in our recipe."

    exit 1;
    -fi
    back up the old one in case we modified it

    if [ -f kaldi.mk ]; then
    @@ -815,9 +804,6 @@
    if [ ! -e /System/Library/Frameworks/Accelerate.framework ]; then
    failure "Need the Accelerate.framework to compile on Darwin."
    fi

  • if [ ! -f $FSTROOT/lib/libfst.a ]; then

  • failure "Static OpenFST library not found: See ../tools/INSTALL"

  • fi # posix_memalign and gcc -rdynamic options not present on OS X
    10.5.* osx_ver=sw_vers | grep ProductVersion | awk '{print $2}' | awk
    '{split($0,a,"."); print a[1] "." a[2]; }' echo "Configuring for OS X
    version $osx_ver ..." @@ -868,9 +854,6 @@
    OPENFSTLDFLAGS="-Wl,-rpath=${FSTROOT}/lib" fst_type='so' fi

  • if [ ! -f "$FSTROOT/lib/libfst.${fst_type}" ]; then

  • failure "Static=[$static_fst] OpenFST library not found: See
    ../tools/INSTALL"

  • fi echo OPENFSTLIBS = $OPENFSTLIBS >> kaldi.mk echo OPENFSTLDFLAGS =
    $OPENFSTLDFLAGS >> kaldi.mk


Reply to this email directly or view it on GitHub
#155 (comment).

from kaldi.

jtrmal avatar jtrmal commented on May 18, 2024

Can you please send the diff as a attachment? The inline diff got
reformatted as it looked as markup, probably. Or better yet, open pull
request at github.
Thanks, y.

On Sun, Sep 20, 2015 at 8:02 PM, Daniel Povey [email protected]
wrote:

OK, thanks. Yenda usually deals with build issues, so I'll wait for him to
get to it.
Dan

On Sun, Sep 20, 2015 at 2:00 PM, posophe [email protected] wrote:

I know exactly which one. I have patched the configure script to be able
to build kaldi.
@@ -449,10 +449,6 @@
else
spx_type=so
fi

  • if [ ! -f "$SPEEXROOT/lib/libspeex.${spx_type}" ];then
  • echo "Static=[$static_speex] Speex library not found: You can still
    build Kaldi without Speex."

- return

fi

if [ -f $SPEEXROOT/include/speex/speex.h ]; then
echo >> kaldi.mk
@@ -768,13 +764,6 @@
failure "Could not find file $FSTROOT/include/fst/fst.h:
you may not have installed OpenFst. See ../tools/INSTALL"
fi
-echo Checking OpenFst library was patched.
-if ! grep "multiple repeated" $FSTROOT/include/fst/minimize.h

/dev/null; then

  • echo "** ERROR **"
  • echo "** $FSTROOT/include/fst/minimize.h seems not to be patched:"

- echo "patch not applied? FST tools will not work in our recipe."

exit 1;
-fi
back up the old one in case we modified it

if [ -f kaldi.mk ]; then
@@ -815,9 +804,6 @@
if [ ! -e /System/Library/Frameworks/Accelerate.framework ]; then
failure "Need the Accelerate.framework to compile on Darwin."
fi

  • if [ ! -f $FSTROOT/lib/libfst.a ]; then
  • failure "Static OpenFST library not found: See ../tools/INSTALL"
  • fi # posix_memalign and gcc -rdynamic options not present on OS X
    10.5.* osx_ver=sw_vers | grep ProductVersion | awk '{print $2}' | awk
    '{split($0,a,"."); print a[1] "." a[2]; }' echo "Configuring for OS X
    version $osx_ver ..." @@ -868,9 +854,6 @@
    OPENFSTLDFLAGS="-Wl,-rpath=${FSTROOT}/lib" fst_type='so' fi
  • if [ ! -f "$FSTROOT/lib/libfst.${fst_type}" ]; then
  • failure "Static=[$static_fst] OpenFST library not found: See
    ../tools/INSTALL"
  • fi echo OPENFSTLIBS = $OPENFSTLIBS >> kaldi.mk echo OPENFSTLDFLAGS =
    $OPENFSTLDFLAGS >> kaldi.mk


Reply to this email directly or view it on GitHub
#155 (comment).


Reply to this email directly or view it on GitHub
#155 (comment).

from kaldi.

danpovey avatar danpovey commented on May 18, 2024

BTW, the 'message text garbled?' link in gmail fixes this.

On Sun, Sep 20, 2015 at 2:19 PM, jtrmal [email protected] wrote:

Can you please send the diff as a attachment? The inline diff got
reformatted as it looked as markup, probably. Or better yet, open pull
request at github.
Thanks, y.

On Sun, Sep 20, 2015 at 8:02 PM, Daniel Povey [email protected]
wrote:

OK, thanks. Yenda usually deals with build issues, so I'll wait for him
to
get to it.
Dan

On Sun, Sep 20, 2015 at 2:00 PM, posophe [email protected]
wrote:

I know exactly which one. I have patched the configure script to be
able
to build kaldi.
@@ -449,10 +449,6 @@
else
spx_type=so
fi

  • if [ ! -f "$SPEEXROOT/lib/libspeex.${spx_type}" ];then
  • echo "Static=[$static_speex] Speex library not found: You can still
    build Kaldi without Speex."

- return

fi

if [ -f $SPEEXROOT/include/speex/speex.h ]; then
echo >> kaldi.mk
@@ -768,13 +764,6 @@
failure "Could not find file $FSTROOT/include/fst/fst.h:
you may not have installed OpenFst. See ../tools/INSTALL"
fi
-echo Checking OpenFst library was patched.
-if ! grep "multiple repeated" $FSTROOT/include/fst/minimize.h

/dev/null; then

  • echo "** ERROR **"
  • echo "** $FSTROOT/include/fst/minimize.h seems not to be patched:"

- echo "patch not applied? FST tools will not work in our recipe."

exit 1;
-fi
back up the old one in case we modified it

if [ -f kaldi.mk ]; then
@@ -815,9 +804,6 @@
if [ ! -e /System/Library/Frameworks/Accelerate.framework ]; then
failure "Need the Accelerate.framework to compile on Darwin."
fi

  • if [ ! -f $FSTROOT/lib/libfst.a ]; then
  • failure "Static OpenFST library not found: See ../tools/INSTALL"
  • fi # posix_memalign and gcc -rdynamic options not present on OS X
    10.5.* osx_ver=sw_vers | grep ProductVersion | awk '{print $2}' | awk
    '{split($0,a,"."); print a[1] "." a[2]; }' echo "Configuring for OS X
    version $osx_ver ..." @@ -868,9 +854,6 @@
    OPENFSTLDFLAGS="-Wl,-rpath=${FSTROOT}/lib" fst_type='so' fi
  • if [ ! -f "$FSTROOT/lib/libfst.${fst_type}" ]; then
  • failure "Static=[$static_fst] OpenFST library not found: See
    ../tools/INSTALL"
  • fi echo OPENFSTLIBS = $OPENFSTLIBS >> kaldi.mk echo OPENFSTLDFLAGS =
    $OPENFSTLDFLAGS >> kaldi.mk


Reply to this email directly or view it on GitHub
<#155 (comment)
.


Reply to this email directly or view it on GitHub
#155 (comment).


Reply to this email directly or view it on GitHub
#155 (comment).

from kaldi.

posophe avatar posophe commented on May 18, 2024

Oh yep sorry you're totally right. But I wouldn't open a pull request, as my patch does things I need but not in a good way.
http://paste.opensuse.org/71621692

from kaldi.

jtrmal avatar jtrmal commented on May 18, 2024

Thanks -- but this is definitely really weird, your system (OpenSUSE gets
identified as OSX). What is the output from "uname" on your system?
y.

On Sun, Sep 20, 2015 at 8:22 PM, posophe [email protected] wrote:

Oh yep sorry you're totally right. But I wouldn't open a pull request, as
my patch does things I need but not in a good way.
http://paste.opensuse.org/71621692


Reply to this email directly or view it on GitHub
#155 (comment).

from kaldi.

jtrmal avatar jtrmal commented on May 18, 2024

Also, try to run the configure script using "bash -x" and send me the
output (feel free to contact me directly -- [email protected]).
y.

On Sun, Sep 20, 2015 at 8:52 PM, Jan Trmal [email protected] wrote:

Thanks -- but this is definitely really weird, your system (OpenSUSE gets
identified as OSX). What is the output from "uname" on your system?
y.

On Sun, Sep 20, 2015 at 8:22 PM, posophe [email protected] wrote:

Oh yep sorry you're totally right. But I wouldn't open a pull request, as
my patch does things I need but not in a good way.
http://paste.opensuse.org/71621692


Reply to this email directly or view it on GitHub
#155 (comment).

from kaldi.

posophe avatar posophe commented on May 18, 2024

I can't clearly identify the system, as I use the OpenSUSE Build Service but it shouldn't differ that much than my own system, excepted for the kernel version :
linux-cqwx.site 3.16.7-24-desktop #1 SMP PREEMPT

from kaldi.

jtrmal avatar jtrmal commented on May 18, 2024

Can you send me the output from the command uname ?
y.

On Sun, Sep 20, 2015 at 8:55 PM, posophe [email protected] wrote:

I can't clearly identify the system, as I use the OpenSUSE Build Service
but it shouldn't differ that much than my own system, excepted for the
kernel version :
linux-cqwx.site 3.16.7-24-desktop #1
#1 SMP PREEMPT


Reply to this email directly or view it on GitHub
#155 (comment).

from kaldi.

posophe avatar posophe commented on May 18, 2024

Linux cloud106 4.1.6-3-default #1 SMP Fri Aug 28 10:59:34 UTC 2015 (d867e86) i686 i686 i386 GNU/Linux.

from kaldi.

jtrmal avatar jtrmal commented on May 18, 2024

Thanks,
can you also send me the output from running something like
bash -x ./configure >configure.log 2>&1
Thanks
y.

On Sun, Sep 20, 2015 at 9:08 PM, posophe [email protected] wrote:

Linux cloud106 4.1.6-3-default #1
#1 SMP Fri Aug 28 10:59:34 UTC
2015 (d867e86) i686 i686 i386 GNU/Linux.


Reply to this email directly or view it on GitHub
#155 (comment).

from kaldi.

posophe avatar posophe commented on May 18, 2024

Here is my output : http://paste.opensuse.org/88333945
Please notice two things

  • Because of my patch, I have to add OPENFST_VER, OPENFST_GE_10400 and EXTRA_CXXFLAGS manually.
  • The configure script looks at /usr/Makefile when --fst-root is setted up as /usr

from kaldi.

jtrmal avatar jtrmal commented on May 18, 2024

Sorry, I meant the original configure script, not that one with your
modifications. It will fail, but I will see what's going on -- I reviewed
the script yesterday and I couldn't find any reason why it should behave
how you describe. Thanks
y.

On Mon, Sep 21, 2015 at 11:32 AM, posophe [email protected] wrote:

Here is my output : http://paste.opensuse.org/88333945
Please notice two things

  • Because of my patch, I have to add OPENFST_VER, OPENFST_GE_10400 and
    EXTRA_CXXFLAGS manually.
  • The configure script looks at /usr/Makefile when --fst-root is
    setted up as /usr


Reply to this email directly or view it on GitHub
#155 (comment).

from kaldi.

posophe avatar posophe commented on May 18, 2024

Ok the API of OBS is down for the moment. I'll post it as soon as possible. I would like to open a forum thread. I need more infos to ensure Kaldi runs correctly.

from kaldi.

posophe avatar posophe commented on May 18, 2024

Unbelievable... I can't perform a print of the configure script, whereas nothing changed.
I think a part of the problem comes from the configure script verifies twice the presence of the dependencies. There should verify the presence of headers files and the libraries in the same process.

from kaldi.

posophe avatar posophe commented on May 18, 2024

I need your help for a last thing. Do you know the name of all the binaries and their places where there are build ? I can easily use a hack for the libraries but not for the binaries without knowing their names.

from kaldi.

jtrmal avatar jtrmal commented on May 18, 2024

I'd love to help, but I don't understand what you are doing or what you are
asking :(
y.

On Mon, Sep 21, 2015 at 2:15 PM, posophe [email protected] wrote:

I need your help for a last thing. Do you know the name of all the
binaries and their places where there are build ? I can easily use a hack
for the libraries but not for the binaries without knowing their names.


Reply to this email directly or view it on GitHub
#155 (comment).

from kaldi.

posophe avatar posophe commented on May 18, 2024

Well, I'm packaging kaldi for openSUSE (to provide a rpm, if you prefer). I'll find a way, no worries.
http://kaldi-asr.org/doc/tools.html would help me very much

from kaldi.

posophe avatar posophe commented on May 18, 2024

I have just a question about portaudio. I've seen kaldi depends on portaudio but doesn't build against portaudio. Why that ?

from kaldi.

jtrmal avatar jtrmal commented on May 18, 2024

IIRC, portaudio was used for the first generation of the online decoder --
the later online decoder is not tied to it.
It gets build when you call make ext, I believe.

y.

On Mon, Sep 21, 2015 at 3:17 PM, posophe [email protected] wrote:

I have just a question about portaudio. I've seen kaldi depends on
portaudio but doesn't build against portaudio. Why that ?


Reply to this email directly or view it on GitHub
#155 (comment).

from kaldi.

posophe avatar posophe commented on May 18, 2024

Thanks you. But shouldn't it been changed according to these changes ?

from kaldi.

jtrmal avatar jtrmal commented on May 18, 2024

@posophe , I lost track of your issue/issues.
Could you please verify these issues still persist in the latest github kaldi version?
Thanks, y.

from kaldi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.