Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
2.1.0
-
None
-
Debian GNU/Linux unstable i386
-
-
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 |
493453,3 | QuickJS: Fix building on x86 | 2.1 | qbs/qbs | Status: MERGED | +2 | +1 |