Menu

cross-compiling error

Help
Anonymous
2010-01-20
2012-09-22
  • Anonymous

    Anonymous - 2010-01-20

    I get this error when running make while trying to cross compile:

        /usr/local/powerpc-linux/bin/powerpc-linux-gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -I/usr/local/powerpc-linux/include -fPIC -I../include -I../include -I/usr/include/python2.6 -c sphinxbase.c -o build/temp.linux-i686-2.6/sphinxbase.o
        cc1: error: unrecognized option `-fwrapv'
        error: command '/usr/local/powerpc-linux/bin/powerpc-linux-gcc' failed with exit status 1
        make[1]: *** [pymod-build-stamp] Error 1
        make[1]: Leaving directory `/usr/local/sphinxbase-0.4.1/python'
        make: *** [all-recursive] Error 1
    

    I found this in the man page of gcc 4.3.3 that comes with ubuntu:

                   See also the -fwrapv option.  Using -fwrapv means that integer
                   signed overflow is fully defined: it wraps.  When -fwrapv is used,
                   there is no difference between -fstrict-overflow and
                   -fno-strict-overflow for integers.  With -fwrapv certain types of
                   overflow are permitted.  For example, if the compiler gets an
                   overflow when doing arithmetic on constants, the overflowed value
                   can still be used with -fwrapv, but not otherwise.
    

    Although the gcc that comes with the toolchain for my machine is 3.3.4

     
  • Nickolay V. Shmyrev

    It's more a python bug than pocketsphinx bug. Cross-compiling python modules
    is a complicated task, though you can find a lot of documentation on that in
    google if you need.

    I would recommend you to disable python support with --without-python
    configure option.

     
  • Anonymous

    Anonymous - 2010-01-20

    hmmm, i thought I read somewhere that it is because the older version of gcc
    before 4.x doesn't support the -fwrapv tag, but I could be wrong..

     
  • Anonymous

    Anonymous - 2010-01-20

    Oh yes I don't have python on my target system. Is python required for
    anything specific? What will I be missing out on if I configure without python
    support?

     
  • Nickolay V. Shmyrev

    No, python support only contains interface for using pocketsphinx from python
    apps. You don't need it.

     
  • Anonymous

    Anonymous - 2010-01-21

    so sphinxbase and pocketsphinx is all i need? what do I copy over to my target
    system once I cross compile both?

     
  • Nickolay V. Shmyrev

    so sphinxbase and pocketsphinx is all i need?

    yes

    what do I copy over to my target system once I cross compile both?

    Well, you usually don't need to copy, you need to install the libraries in a
    proper location in your target filesystem or you need to build static
    application using them. Please read some introduction to cross-compilation to
    understand the process. I would probably recommend Programming Embedded
    Systems:

    http://books.google.com/books?id=HShCCaIAhwMC

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.