On Tue, Jul 9, 2019 at 1:52 AM Manuel Häusler
<
manuel.h...@gmail.com> wrote:
>
>
> If I see it right the logic in gnu/stubs.h is responsible for the selection of the header file:
>
> #if !defined __x86_64__
> # include <gnu/stubs-32.h>
> #endif
> #if defined __x86_64__ && defined __LP64__
> # include <gnu/stubs-64.h>
> #endif
> #if defined __x86_64__ && defined __ILP32__
> # include <gnu/stubs-x32.h>
> #endif
>
> Therefore I conclude from this that __LP64__ is not defined from JModelica but should be defined to be able to use the 64-bit header files. Does anyone know what __LP64__ is??
>
__LP64__ means "Longs and Pointer are 64-bit" . It basically means you
are building for a 64-bit machine.
I think there is some confusion here. emscripten and webassembly are
*always* 32-bit and should *never* use the system headers. Emscripten
is a cross compiler and all its headers are in the emscripten/system
directory.
However the emscripten SDK includes prebuilt compiler binaries that
only run on 64-bit linux.
Are you trying to compile JModelica as an emscripten module? Or is
it something you build for the host machine?
> Am Dienstag, 9. Juli 2019 10:08:38 UTC+2 schrieb Beuc:
>>
>> You can't use your system (i386) headers for an Emscripten (asmjs/wasm) application :)
>>
>> If JModelica can't be compiled without i386 headers (AFAIU), it probably can't compiled for the asmjs/wasm target.
>> You'll need to improve JModelica so it supports more targets/architectures.
>>
>> Cheers!
>> Beuc
>
> --
> You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
emscripten-disc...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/emscripten-discuss/58493340-5755-4c3a-9747-8dd6176d3a13%40googlegroups.com.