Closed mingodad closed 1 month ago
Also when trying the playground I'm getting this errors on the console:
Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'interest-cohort'.
main.js:1 Alpine Expression Error: undefined
Expression: "runCode()"
<span class="run-btn busy" :class="{busy:busy, loading:!loaded}" @click="runCode()" x-text="`${runMode} (⌘+⏎)`">Run (⌘+⏎)</span>
oe @ main.js:1
(anonymous) @ main.js:1
Promise.catch (async)
(anonymous) @ main.js:1
se @ main.js:1
(anonymous) @ main.js:1
s @ main.js:1
(anonymous) @ main.js:1
(anonymous) @ main.js:1
main.js:1 Uncaught String {"Error: ENOENT: no such file or directory, open '/usr/bin/cc'", el: span.run-btn.busy, expression: 'runCode()'}
(anonymous) @ main.js:1
setTimeout (async)
oe @ main.js:1
(anonymous) @ main.js:1
Promise.catch (async)
(anonymous) @ main.js:1
se @ main.js:1
(anonymous) @ main.js:1
s @ main.js:1
(anonymous) @ main.js:1
(anonymous) @ main.js:1
tyfkda.github.io/:1 Uncaught (in promise) Error: ENOENT: no such file or directory, open '/usr/bin/cc'
Promise.then (async)
pe @ main.js:1
(anonymous) @ main.js:1
se @ main.js:1
(anonymous) @ main.js:1
s @ main.js:1
(anonymous) @ main.js:1
(anonymous) @ main.js:1
@mingodad Thank you to report the compile error.
Could you use conditional compilation with XCC_TARGET_ARCH
?
switch (u->kind) {
// Common cases
...
#if XCC_TARGET_ARCH == XCC_ARCH_X64
// x64 specific cases
#elif XCC_TARGET_ARCH == XCC_ARCH_AARCH64
// aarch64 specific cases
#elif XCC_TARGET_ARCH == XCC_ARCH_RISCV64
case UNRES_RISCV_BRANCH:
case UNRES_RISCV_RVC_BRANCH:
...
case UNRES_CALL:
...
Also when trying the playground I'm getting this errors on the console:
I've fixed the error.
It is caused because wccfiles.zip
is broken
(gulp5 encodes binary file as UTF-8.)
Could you use conditional compilation with
XCC_TARGET_ARCH
?
Not the way you've showed because the compiler would complain about cases not managed in switch statement.
When trying to build on
Ubuntu-18.04
I'm getting several errors due to*_RISCV_*
not defined, with the changes show bellow I managed to build it but probably the final solution should be something different.