Cheerp: Field not supported in union

Asked by Paul on 2019-03-14

I have couple of files that uses

uint64_t u64;

and when i build the package i get this error:

fp.h:51:22: error:
      Cheerp: Field not supported in union
            uint64_t u64;

Any plans to support this? or is there a way to go around this?
Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Cheerp Edit question
Assignee:
No assignee Edit question
Solved by:
Paul
Solved:
2019-03-15
Last query:
2019-03-15
Last reply:
Paul (lynxpaul) said : #1

Found 32 to work thanks

What version of Cheerp are you using? That error should not happen anymore.

Paul (lynxpaul) said : #3

cheerp-macosx-2.0.dmg
cheerp-macosx-2.0.dmg (md5, sig) Cheerp 2.0 for Mac OS X

Yuri Iozzelli (yuri91) said : #4

I just checked and the restriction is still there for the genericjs mode.
If you compile to wasm or asmjs it will work.
I am investigating on how to remove the restriction for genericjs too, since I think that there is no reason to disallow it anymore.
I will post here again when the fix will be in master.

Paul, most probably you want to compile in wasm mode, if that's the case you should use the CheerpWasmToolchain.cmake file.

Yuri Iozzelli (yuri91) said : #6

FYI this is fixed in the new master branch.