Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1744

Qbs fails to build on x86 (32-bit)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • 2.1.1
    • 2.1.0
    • None
    • Debian GNU/Linux unstable i386
    • Linux/X11
    • 65a106c95 (2.1)

    Description

      I get this error when building Qbs on Debian's i386 architecture (which is really i686):

      /build/qbs-2.1.0/src/shared/quickjs/quickjs.c: In function 'JS_AtomIsNumericIndex1':
      /build/qbs-2.1.0/src/shared/quickjs/quickjs.c:3258:24: warning: implicit declaration of function 'JS_NewFloat64Impl'; did you mean 'JS_NewFloat64'? [-Wimplicit-function-declaration]
       3258 |                 return JS_NewFloat64Impl(ctx, -0.0);
            |                        ^~~~~~~~~~~~~~~~~
            |                        JS_NewFloat64
      /build/qbs-2.1.0/src/shared/quickjs/quickjs.c: In function 'mkVal':
      /build/qbs-2.1.0/src/shared/quickjs/quickjs.c:54237:24: error: 'JSValueUnion' undeclared (first use in this function)
      54237 |     return (JSValue){ (JSValueUnion){ .int32 = val }, tag };
            |                        ^~~~~~~~~~~~
      /build/qbs-2.1.0/src/shared/quickjs/quickjs.c:54237:24: note: each undeclared identifier is reported only once for each function it appears in
      /build/qbs-2.1.0/src/shared/quickjs/quickjs.c:54237:37: error: expected '}' before '{' token
      54237 |     return (JSValue){ (JSValueUnion){ .int32 = val }, tag };
            |                     ~               ^
      /build/qbs-2.1.0/src/shared/quickjs/quickjs.c: In function 'mkPtr':
      /build/qbs-2.1.0/src/shared/quickjs/quickjs.c:54242:24: error: 'JSValueUnion' undeclared (first use in this function)
      54242 |     return (JSValue){ (JSValueUnion){ .ptr = p }, tag };
            |                        ^~~~~~~~~~~~
      /build/qbs-2.1.0/src/shared/quickjs/quickjs.c:54242:37: error: expected '}' before '{' token
      54242 |     return (JSValue){ (JSValueUnion){ .ptr = p }, tag };
            |                     ~               ^
      make[4]: *** [src/shared/quickjs/CMakeFiles/qbsquickjs.dir/build.make:135: src/shared/quickjs/CMakeFiles/qbsquickjs.dir/quickjs.c.o] Error 1
      

      JS_NewFloat64Impl comes from Qbs' quickjs.diff.

      Attachments

        For Gerrit Dashboard: QBS-1744
        # Subject Branch Project Status CR V

        Activity

          People

            kandeler Christian Kandeler
            mandriver Dmitry Shachnev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes