Menu

Build Error on amd64

Help
2008-05-18
2013-04-17
  • Nobody/Anonymous

    Trying to build on gentoo, amd64 and get the following error?

    localhost effectv-0.3.11 # make
    make[1]: Entering directory `/home/daniel/stuff/effectv-0.3.11/effects'
    make[2]: Entering directory `/home/daniel/stuff/effectv-0.3.11/effects'
    gcc -DUSE_NASM -DUSE_MMX -DUSE_VLOOPBACK -DVLOOPBACK_VERSION=91 -DDEFAULT_VIDEO_DEVICE=\""/dev/video0"\" -DI686 -march=pentiumpro -O3 -fomit-frame-pointer -funroll-loops -I.. -I../v4lutils `sdl-config --cflags` -Wall -c -o dumb.o dumb.c
    dumb.c:1: error: CPU you selected does not support x86-64 instruction set
    dumb.c:1: error: CPU you selected does not support x86-64 instruction set
    make[2]: *** [dumb.o] Error 1
    make[2]: Leaving directory `/home/daniel/stuff/effectv-0.3.11/effects'
    make[1]: *** [all-recursive] Error 2
    make[1]: Leaving directory `/home/daniel/stuff/effectv-0.3.11/effects'
    make: *** [all-recursive] Error 1

    Thanks in advance
    Daniel

     
    • Kentaro Fukuchi

      Kentaro Fukuchi - 2008-05-18

      The "-march=pentiumpro" option caused the error. Please remove this option by editting config.mk.

       
    • Nobody/Anonymous

      Hi Kentaro thanks for the prompt reply. I commented out the line:

      #CFLAGS.opt = -march=pentiumpro -O3 -fomit-frame-pointer -funroll-loops

      Make went a bit further ending in this error:

      DEVICE=\""/dev/video0"\" -DI686  -Iv4lutils `sdl-config --cflags` -Wall -c -o utils.o utils.c
      utils.c:30: error: conflicting types for ‘trunc’
      make[1]: *** [utils.o] Error 1
      make[1]: Leaving directory `/home/daniel/stuff/effectv-0.3.11'
      make: *** [all-recursive] Error 2

      Daniel

       
      • Kentaro Fukuchi

        Kentaro Fukuchi - 2008-05-19

        Please apply the following patch.

        --- utils.c     (revision 499)
        +++ utils.c     (working copy)
        @@ -26,7 +26,7 @@
        /*
          * HSI color system utilities
          */
        -static int trunc(double f)
        +static int itrunc(double f)
        {
                int i;

        @@ -44,9 +44,9 @@
                Gv=1+S*sin(H);
                Bv=1+S*sin(H+2*M_PI/3);
                T=255.999*I/2;
        -       *r=trunc(Rv*T);
        -       *g=trunc(Gv*T);
        -       *b=trunc(Bv*T);
        +       *r=itrunc(Rv*T);
        +       *g=itrunc(Gv*T);
        +       *b=itrunc(Bv*T);
        }

        /*

         
    • Nobody/Anonymous

      Did I do this right? Copied and saved patch as kentaro_fix.patch in top dir. applied patch with 

      patch -i kentaro_fix.patch

      and got the following message:
      daniel@localhost ~/Desktop/effectv-0.3.11 $ patch -i kentaro_fix.patch
      patching file utils.c
      patch: **** malformed patch at line 4: /*

      make fails with

      utils.c:30: error: conflicting types for ‘trunc’
      make[1]: *** [utils.o] Error 1
      make[1]: Leaving directory `/home/daniel/Desktop/effectv-0.3.11'
      make: *** [all-recursive] Error 2

      thanks
      Daniel

       

Log in to post a comment.

MongoDB Logo MongoDB