Title undefined reference to *context
Priority bug Status chatting
Superseder Nosy List jjisnow
Assigned To Keywords

Created on 2018-08-07.09:53:49 by jjisnow, last changed by jjisnow.

msg2461 (view) Author: jjisnow Date: 2018-08-07.13:24:25
This is on an Android 7 os. Termux app
msg2460 (view) Author: kayhayen Date: 2018-08-07.10:12:40
What platform is this on?

msg2459 (view) Author: jjisnow Date: 2018-08-07.09:53:49
int res = getcontext( &to->f_context );
               getopt warning: implicit 
declaration of function 'makecontext' [-
     makecontext( &to->f_context, (void (*)
())code, 1, (unsigned long)arg );
     ^~~~~~~~~~~ In function 
'_swapFiber': warning: 
implicit declaration of function 'swapcontext' 
     int res = swapcontext( &to->f_context, 
&from->f_context );
/data/data/com.termux/files/usr/bin/ld: in function 
fibers_gen.c:(.text+0x24): undefined reference 
to `getcontext'
fibers_gen.c:(.text+0x6c): undefined reference 
to `makecontext'
/data/data/com.termux/files/usr/bin/ld: in function 
fibers_gen.c:(.text+0xf0): undefined reference 
to `swapcontext'
collect2: error: ld returned 1 exit status
scons: *** [test.exe] Error 1

This is an error using gcc-8 installed on 
Termux on an android device attempting to 
compile using the command:
python -m nuitka's contents are:

    print('hello world!')
Date User Action Args
2018-08-07 13:24:25jjisnowsetmessages: + msg2461
2018-08-07 10:12:40kayhayensetstatus: unread -> chatting
messages: + msg2460
2018-08-07 09:53:49jjisnowcreate