forked from jmillikin/haskell-cpython
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Hi, I'm trying to test the library but when trying to run ghci the program crashes with this issue
Loaded package environment from /home/alvaro/.ghc/x86_64-linux-9.2.8/environments/default
GHCi, version 9.2.8: https://www.haskell.org/ghc/ :? for help
<command line>: /home/alvaro/.cabal/store/ghc-9.2.8/cpython-3.5.1-406a79b01f08e0c42c674bec75dea024c8445714f47bd3d3f1fd9efe2fa0221c/lib/libHScpython-3.5.1-406a79b01f08e0c42c674bec75dea024c8445714f47bd3d3f1fd9efe2fa0221c-ghc9.2.8.so: undefined symbol: _PyObject_NextNotImplemented
Also testing with this program
module Main where
import qualified Data.Text.IO as T
import qualified CPython as Py
main :: IO ()
main = do
Py.initialize
Py.getVersion >>= T.putStrLn
crashes with a linker issue
/home/alvaro/.cabal/store/ghc-9.2.8/cpython-3.5.1-406a79b01f08e0c42c674bec75dea024c8445714f47bd3d3f1fd9efe2fa0221c/lib/libHScpython-3.5.1-406a79b01f08e0c42c674bec75dea024c8445714f47bd3d3f1fd9efe2fa0221c.a(hscpython-shim.o):hscpython-shim.c:function hscpython_PyUnicode_Split: error: undefined reference to 'PyUnicode_Split'
/home/alvaro/.cabal/store/ghc-9.2.8/cpython-3.5.1-406a79b01f08e0c42c674bec75dea024c8445714f47bd3d3f1fd9efe2fa0221c/lib/libHScpython-3.5.1-406a79b01f08e0c42c674bec75dea024c8445714f47bd3d3f1fd9efe2fa0221c.a(hscpython-shim.o):hscpython-shim.c:function hscpython_PyUnicode_Splitlines: error: undefined reference to 'PyUnicode_Splitlines'
/home/alvaro/.cabal/store/ghc-9.2.8/cpython-3.5.1-406a79b01f08e0c42c674bec75dea024c8445714f47bd3d3f1fd9efe2fa0221c/lib/libHScpython-3.5.1-406a79b01f08e0c42c674bec75dea024c8445714f47bd3d3f1fd9efe2fa0221c.a(hscpython-shim.o):hscpython-shim.c:function hscpython_PyUnicode_Translate: error: undefined reference to 'PyUnicode_Translate'
/home/alvaro/.cabal/store/ghc-9.2.8/cpython-3.5.1-406a79b01f08e0c42c674bec75dea024c8445714f47bd3d3f1fd9efe2fa0221c/lib/libHScpython-3.5.1-406a79b01f08e0c42c674bec75dea024c8445714f47bd3d3f1fd9efe2fa0221c.a(hscpython-shim.o):hscpython-shim.c:function hscpython_PyUnicode_Join: error: undefined reference to 'PyUnicode_Join'
/home/alvaro/.cabal/store/ghc-9.2.8/cpython-3.5.1-406a79b01f08e0c42c674bec75dea024c8445714f47bd3d3f1fd9efe2fa0221c/lib/libHScpython-3.5.1-406a79b01f08e0c42c674bec75dea024c8445714f47bd3d3f1fd9efe2fa0221c.a(hscpython-shim.o):hscpython-shim.c:function hscpython_PyUnicode_Find: error: undefined reference to 'PyUnicode_Find'
/home/alvaro/.cabal/store/ghc-9.2.8/cpython-3.5.1-406a79b01f08e0c42c674bec75dea024c8445714f47bd3d3f1fd9efe2fa0221c/lib/libHScpython-3.5.1-406a79b01f08e0c42c674bec75dea024c8445714f47bd3d3f1fd9efe2fa0221c.a(hscpython-shim.o):hscpython-shim.c:function hscpython_PyUnicode_Count: error: undefined reference to 'PyUnicode_Count'
/home/alvaro/.cabal/store/ghc-9.2.8/cpython-3.5.1-406a79b01f08e0c42c674bec75dea024c8445714f47bd3d3f1fd9efe2fa0221c/lib/libHScpython-3.5.1-406a79b01f08e0c42c674bec75dea024c8445714f47bd3d3f1fd9efe2fa0221c.a(hscpython-shim.o):hscpython-shim.c:function hscpython_PyUnicode_Replace: error: undefined reference to 'PyUnicode_Replace'
/home/alvaro/.cabal/store/ghc-9.2.8/cpython-3.5.1-406a79b01f08e0c42c674bec75dea024c8445714f47bd3d3f1fd9efe2fa0221c/lib/libHScpython-3.5.1-406a79b01f08e0c42c674bec75dea024c8445714f47bd3d3f1fd9efe2fa0221c.a(hscpython-shim.o):hscpython-shim.c:function hscpython_PyUnicode_Format: error: undefined reference to 'PyUnicode_Format'
/home/alvaro/.cabal/store/ghc-9.2.8/cpython-3.5.1-406a79b01f08e0c42c674bec75dea024c8445714f47bd3d3f1fd9efe2fa0221c/lib/libHScpython-3.5.1-406a79b01f08e0c42c674bec75dea024c8445714f47bd3d3f1fd9efe2fa0221c.a(hscpython-shim.o):hscpython-shim.c:function hscpython_PyUnicode_Contains: error: undefined reference to 'PyUnicode_Contains'
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
any idea why this is crashing ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels