Menu

Building sphinxbase-0.6.1 on OS X

Help
rmangino
2011-07-13
2012-09-22
  • rmangino

    rmangino - 2011-07-13

    I am trying to build sphinxbase under OS X (10.6.8) using gcc version: 4.2.1.

    I've extracted sphinxbase-0.6.1 into a new directory.
    I cd into that directory.
    I run './configure' - which appears to succeed without issue.

    I then run 'make' which results in tons of warnings and two specific errors:

    /usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler (/usr/bin/../libexec/gcc/darwin/ppc/as or /usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not installed
    Installed assemblers are:
    /usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64
    /usr/bin/../libexec/gcc/darwin/i386/as for architecture i386
    

    and

    lipo: can't open input file: /var/folders/Ej/EjLLLT-HFFKoDy6x5RkCAo9pppo/-Tmp-//ccf5xRFf.out (No such file or directory)
    error: command 'gcc-4.2' failed with exit status 1
    make[1]: *** [pymod-build-stamp] Error 1
    make: *** [all-recursive] Error 1
    

    A text file containing the full results from make can be found at:

    http://dl.dropbox.com/u/5444790/build.txt

    My end goal here is to build sphinxtrain (or sphinxtrain-automake) but I
    cannot do that until I can successfully build sphinxbase.

    Thank you in advance for any help!

     
  • jamin schubert

    jamin schubert - 2011-09-12

    I am attempting to build sphinxbase 0.7 on os x 10.6.8 and ran into the exact
    same error in the build log...just bumping the post as I can reproduce this.
    Any help appreciated ;)

     
  • jamin schubert

    jamin schubert - 2011-09-13

    I did actually run across that post before I bumped this thread, but had
    dismissed it as I wasn't building the libraries on a PPC mac. I didn't realize
    that build system was attempting to do a universal / fat build. I went ahead
    and created the symlinks as the post suggested, which worked. The linker now
    fails for all unsupported architectures, which is expected.

    Because I'm stubborn, I wanted to track down where in the make scripts the
    arch flags were being passed to gcc. I have a feeling that if ppc flag were
    removed, no attempt would be made to invoke the missing assembler =). I'll
    post back if I can figure that out as it might be an alternate solution to
    creating the symlinks.

    Regards,
    Seth

     
  • Joseph S. Wisniewski

    Odd. I built 0.6.1, 0.7, and a 2011-08-02 snapshot on 10.6.6. I always do the
    autogen, even on the released versions.

    For sphinxbase and pocketsphinx
    ./autogen.sh
    make
    sudo make install

    This seems to get a functional setup in all the right places.

    for sphinxtrain
    ./configure
    make

    Then copy the 27 binaries from bin.i386-apple-darwin10.6.0 to /usr/local/bin

     
  • Nickolay V. Shmyrev

    The problem raises if you try to build python support. You need to have python
    installed. The problem is inside python build script, not in CMUSphinx.

     

Log in to post a comment.