GOT.func entry with no import/export: $emscripten_longjmp_jmpbuf

24 views
Skip to first unread message

Rohit Saini

unread,
Jan 14, 2020, 2:24:29 PM1/14/20
to emscripten-discuss
Hi All,

Our Team is trying to update to latest emscripten version. But totally blocked by this error GOT.func entry with no import/export: $emscripten_longjmp_jmpbuf while linking. Can anyone tell me what's the fix for this or any way to surpass this for now so that me can progress forward.

Already logged issue link


Regards,
Rohit Saini

Sam Clegg

unread,
Jan 14, 2020, 4:00:29 PM1/14/20
to emscripte...@googlegroups.com
IIRC the problem relates to projects that pass `-fPIC` to the compiler but don't actually rely on PIC?  (i.e you are not actually using dynamic linking with MAIN_MODULE/SIDE_MODULE, right?).

This real fix for this requires a binaryen-side fix which has do far failed to land.   

In the mean time we could revert https://github.com/emscripten-core/emscripten/pull/9750 which would prevent `fPIC` from being passed through to clang.   Can you verify if that would work for you?

cheers,
sam



--
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/8b7e33ae-f3a0-4e01-bf56-e1e65a1f2b1b%40googlegroups.com.

Rohit Saini

unread,
Jan 16, 2020, 10:35:59 AM1/16/20
to emscripten-discuss
Hi Sam,

We are actually using dynamic linking with MAIN_MODULE/SIDE_MODULE and using dlopen to load side module, and still the issue appears. That's why reverting the change you are talking about won't fix my problem as I need to pass -fPIC.

Is it possible to know the estimated time for binaryen fix.

Regards,
Rohit Saini

On Wednesday, January 15, 2020 at 2:30:29 AM UTC+5:30, Sam Clegg wrote:
IIRC the problem relates to projects that pass `-fPIC` to the compiler but don't actually rely on PIC?  (i.e you are not actually using dynamic linking with MAIN_MODULE/SIDE_MODULE, right?).

This real fix for this requires a binaryen-side fix which has do far failed to land.   

In the mean time we could revert https://github.com/emscripten-core/emscripten/pull/9750 which would prevent `fPIC` from being passed through to clang.   Can you verify if that would work for you?

cheers,
sam



On Tue, Jan 14, 2020 at 11:24 AM Rohit Saini <rohitsa...@gmail.com> wrote:
Hi All,

Our Team is trying to update to latest emscripten version. But totally blocked by this error GOT.func entry with no import/export: $emscripten_longjmp_jmpbuf while linking. Can anyone tell me what's the fix for this or any way to surpass this for now so that me can progress forward.

Already logged issue link


Regards,
Rohit Saini

--
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-discuss+unsub...@googlegroups.com.

Sam Clegg

unread,
Jan 17, 2020, 2:01:14 PM1/17/20
to emscripte...@googlegroups.com
On Thu, Jan 16, 2020 at 7:36 AM Rohit Saini <rohitsa...@gmail.com> wrote:
Hi Sam,

We are actually using dynamic linking with MAIN_MODULE/SIDE_MODULE and using dlopen to load side module, and still the issue appears. That's why reverting the change you are talking about won't fix my problem as I need to pass -fPIC.

I see.  Sorry I misunderstood your use case.
 

Is it possible to know the estimated time for binaryen fix.


I have been working on the fix in binaryen but its hard for me to say when I will have time to look it next.   I would hope I can get to it next week some time.
 
Regards,
Rohit Saini

On Wednesday, January 15, 2020 at 2:30:29 AM UTC+5:30, Sam Clegg wrote:
IIRC the problem relates to projects that pass `-fPIC` to the compiler but don't actually rely on PIC?  (i.e you are not actually using dynamic linking with MAIN_MODULE/SIDE_MODULE, right?).

This real fix for this requires a binaryen-side fix which has do far failed to land.   

In the mean time we could revert https://github.com/emscripten-core/emscripten/pull/9750 which would prevent `fPIC` from being passed through to clang.   Can you verify if that would work for you?

cheers,
sam



On Tue, Jan 14, 2020 at 11:24 AM Rohit Saini <rohitsa...@gmail.com> wrote:
Hi All,

Our Team is trying to update to latest emscripten version. But totally blocked by this error GOT.func entry with no import/export: $emscripten_longjmp_jmpbuf while linking. Can anyone tell me what's the fix for this or any way to surpass this for now so that me can progress forward.

Already logged issue link


Regards,
Rohit Saini

--
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.

--
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/cf61691b-517f-45c2-9d88-00ce982638cf%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages