Issue410

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.

Messages
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?


Yours,
Kay
msg2459 (view) Author: jjisnow Date: 2018-08-07.09:53:49
int res = getcontext( &to->f_context );
               ^~~~~~~~~~
               getopt
test.build/fibers_gen.c:50:5: warning: implicit 
declaration of function 'makecontext' [-
Wimplicit-function-declaration]
     makecontext( &to->f_context, (void (*)
())code, 1, (unsigned long)arg );
     ^~~~~~~~~~~
test.build/fibers_gen.c: In function 
'_swapFiber':
test.build/fibers_gen.c:74:15: warning: 
implicit declaration of function 'swapcontext' 
[-Wimplicit-function-declaration]
     int res = swapcontext( &to->f_context, 
&from->f_context );
               ^~~~~~~~~~~
/data/data/com.termux/files/usr/bin/ld: 
test.build/fibers_gen.o: in function 
`_prepareFiber':
fibers_gen.c:(.text+0x24): undefined reference 
to `getcontext'
/data/data/com.termux/files/usr/bin/ld: 
fibers_gen.c:(.text+0x6c): undefined reference 
to `makecontext'
/data/data/com.termux/files/usr/bin/ld: 
test.build/fibers_gen.o: in function 
`_swapFiber':
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 test.py

test.py's contents are:

    print('hello world!')
History
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