Cheerp: Field not supported in union

Asked by Paul

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:
Last query:
Last reply:
Revision history for this message
Paul (lynxpaul) said :
#1

Found 32 to work thanks

Revision history for this message
Alessandro Pignotti (a-pignotti) said :
#2

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

Revision history for this message
Paul (lynxpaul) said :
#3

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

Revision history for this message
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.

Revision history for this message
Alessandro Pignotti (a-pignotti) said :
#5

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

Revision history for this message
Yuri Iozzelli (yuri91) said :
#6

FYI this is fixed in the new master branch.