Skip to content

Instantly share code, notes, and snippets.

@jneen
Created March 27, 2020 20:55
Show Gist options
  • Save jneen/bda4fcb281ff59357e008d2db5a3a30a to your computer and use it in GitHub Desktop.
Save jneen/bda4fcb281ff59357e008d2db5a3a30a to your computer and use it in GitHub Desktop.
[translation:info] Error:
File "/home/jneen/src/magritte/vendor/pypy/rpython/translator/goal/translate.py", line 317, in main
drv.proceed(goals)
File "/home/jneen/src/magritte/vendor/pypy/rpython/translator/driver.py", line 551, in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
File "/home/jneen/src/magritte/vendor/pypy/rpython/translator/tool/taskengine.py", line 114, in _execute
res = self._do(goal, taskcallable, *args, **kwds)
File "/home/jneen/src/magritte/vendor/pypy/rpython/translator/driver.py", line 278, in _do
res = func()
File "/home/jneen/src/magritte/vendor/pypy/rpython/translator/driver.py", line 518, in task_compile_c
cbuilder.compile(**kwds)
File "/home/jneen/src/magritte/vendor/pypy/rpython/translator/c/genc.py", line 363, in compile
extra_opts)
File "/home/jneen/src/magritte/vendor/pypy/rpython/translator/platform/posix.py", line 219, in execute_makefile
self._handle_error(returncode, stdout, stderr, path.join('make'))
File "/home/jneen/src/magritte/vendor/pypy/rpython/translator/platform/__init__.py", line 152, in _handle_error
raise CompilationError(stdout, stderr)
[translation:ERROR] CompilationError: CompilationError(err="""
implement.c: In function ‘pypy_g_ccall_spawnv__INT_arrayPtr_arrayPtr’:
implement.c:504:11: warning: implicit declaration of function ‘spawnv’ [-Wimplicit-function-declaration]
504 | l_v216 = spawnv(l_a0_0, l_a1_0, l_a2_0);
| ^~~~~~
/usr/bin/ld: implement.o: in function `pypy_g_ccall_spawnv__INT_arrayPtr_arrayPtr':
implement.c:(.text+0x432): undefined reference to `spawnv'
collect2: error: ld returned 1 exit status
import os
from rpython.rlib.rposix import spawnv
def entry_point(argv):
spawnv(os.P_WAIT, '/usr/bin/echo', ['hello', 'world'])
print 'done!'
return 0
def target(*args):
return entry_point
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment