Menu

#255 Armv7 compilation fails

Probably Fixed
open
nobody
None
9
2015-09-10
2015-08-16
PeteVine
No

I'm trying to build nazghul on armv7 linux but the build process fails with:

g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I. -I../include -I.. -I.. -I../include -I. -Wall -DDATADIR=\"/usr/local/share\" -DPREFIX=\"/usr/local\" -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT cmdwin.o -MD -MP -MF .deps/cmdwin.Tpo -c -o cmdwin.o cmdwin.c
cmdwin.c: In function ‘void cmdwin_push_mark()’:
cmdwin.c:224:44: error: cannot convert ‘int’ to ‘va_list {aka __va_list}’ for argument ‘3’ to ‘void cmdwin_vpush(int, const char*, va_list)’
cmdwin_vpush(CMDWIN_FRAG_MARK, 0, 0);
^
make[2]: *** [cmdwin.o] Error 1
make[2]: Leaving directory /home/odroid/nazghul-0.7.1/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/home/odroid/nazghul-0.7.1'
make: *** [all] Error 2

gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc-4.9.real
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.9/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.9.2-0ubuntu1~14.04' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --enable-multilib --disable-sjlj-exceptions --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb --disable-werror --enable-multilib --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
Thread model: posix
gcc version 4.9.2 (Ubuntu/Linaro 4.9.2-0ubuntu1~14.04)

Related

Bugs: #255

Discussion

  • PeteVine

    PeteVine - 2015-08-24

    Can be fixed with this patch (see attachment)

     
  • Gordon McNutt

    Gordon McNutt - 2015-09-08

    Thanks. Applied for the next release.

     
  • PeteVine

    PeteVine - 2015-09-10

    Should I bother you with screenshots not working @16bpp? Cause I've noticed the issue is probably mentioned in the source.

    I meant this in screen.c with the failing assertion:

    /* TODO: if Screen is not in correct format, convert it to

         *       a suitable temp surface (maybe a row at the time?).
         */
        assert(Screen->format->BytesPerPixel==4);
    
     

    Last edit: PeteVine 2015-09-10
    • Gordon McNutt

      Gordon McNutt - 2015-09-14

      Officially only 32bpp is supported any more.

      ----- Original Message -----

      From: "PeteVine" petevine@users.sf.net
      To: "[nazghul:bugs]" 255@bugs.nazghul.p.re.sf.net
      Sent: Thursday, September 10, 2015 2:48:13 PM
      Subject: [nazghul:bugs] #255 Armv7 compilation fails

      Should I bother you with screenshots not working @16bpp? Cause I've noticed the issue is probably mentioned in the source.

      [bugs:#255] Armv7 compilation fails

      Status: open
      Group: Probably Fixed
      Created: Sun Aug 16, 2015 01:49 PM UTC by PeteVine
      Last Updated: Tue Sep 08, 2015 01:25 PM UTC
      Owner: nobody

      I'm trying to build nazghul on armv7 linux but the build process fails with:

      g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I. -I../include -I.. -I.. -I../include -I. -Wall -DDATADIR=\"/usr/local/share\" -DPREFIX=\"/usr/local\" -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT cmdwin.o -MD -MP -MF .deps/cmdwin.Tpo -c -o cmdwin.o cmdwin.c
      cmdwin.c: In function ‘void cmdwin_push_mark()’:
      cmdwin.c:224:44: error: cannot convert ‘int’ to ‘va_list {aka __va_list}’ for argument ‘3’ to ‘void cmdwin_vpush(int, const char*, va_list)’
      cmdwin_vpush(CMDWIN_FRAG_MARK, 0, 0);
      ^
      make [2] : [cmdwin.o] Error 1
      make [2] : Leaving directory /home/odroid/nazghul-0.7.1/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory /home/odroid/nazghul-0.7.1'
      make: [all] Error 2

      gcc -v
      Using built-in specs.
      COLLECT_GCC=/usr/bin/gcc-4.9.real
      COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.9/lto-wrapper
      Target: arm-linux-gnueabihf
      Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.9.2-0ubuntu1~14.04' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --enable-multilib --disable-sjlj-exceptions --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb --disable-werror --enable-multilib --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
      Thread model: posix
      gcc version 4.9.2 (Ubuntu/Linaro 4.9.2-0ubuntu1~14.04)

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/nazghul/bugs/255/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #255


Log in to post a comment.

MongoDB Logo MongoDB