Re: "error: invalid input constraint 're' in asm"

2017-08-09 Thread Eduardo Sorribas
Hey folks! Thanks for your replies, I figured it out. It was related to some inline assembly in the library as Alon suggested. Thanks again :). On Tuesday, August 8, 2017 at 6:53:20 PM UTC+2, Eduardo Sorribas wrote: > > Hey folks! > > I'm trying to compile some parts of GNU MP to webassembly usi

Re: "error: invalid input constraint 're' in asm"

2017-08-09 Thread Jukka Jylänki
Passing "-I /usr/local/include/" to emcc is definitely not correct. Compiling to the web is a process of cross compilation, and the headers you have in /usr/local/include/ refer to x86/x64 libraries, and not WebAssembly targeted libraries. Not sure if that is the cause of the error, though you defi

Re: "error: invalid input constraint 're' in asm"

2017-08-08 Thread Alon Zakai
Sounds like a problem with inline assembly maybe, which means it is trying to compile non-portable code. Perhaps the codebase has a flag to not use platform-specific assembly. On Tue, Aug 8, 2017 at 9:53 AM, Eduardo Sorribas wrote: > Hey folks! > > I'm trying to compile some parts of GNU MP to w