Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error on the import process of FLOWExaFMM #18

Open
66666-alt opened this issue Nov 24, 2024 · 3 comments
Open

error on the import process of FLOWExaFMM #18

66666-alt opened this issue Nov 24, 2024 · 3 comments

Comments

@66666-alt
Copy link

66666-alt commented Nov 24, 2024

I have already followed the instructions on generating the fmm.so file and get this important file. Also, I have developed the FLOWExaFMM on my julia environment. However, when I try to import this module, there comes error : Type v has no Julia wrapper. I really want to know how to address this issue. Thank you very much!

@66666-alt
Copy link
Author

error

@DSLituiev
Copy link

DSLituiev commented Dec 14, 2024

I'm having the same error while testing the build on Debian GNU/Linux 12, Julia v1.11.2 (update: same for v1.10.3), g++ 12.2.0

test FLOWExaFMM
     Testing FLOWExaFMM
      Status `/tmp/jl_PAt152/Project.toml`
⌅ [1f15a43c] CxxWrap v0.15.1
  [a07d1f4e] FLOWExaFMM v2.1.1 `~/FLOWExaFMM.jl`
  [8dfed614] Test v1.11.0
      Status `/tmp/jl_PAt152/Manifest.toml`
⌅ [1f15a43c] CxxWrap v0.15.1
  [a07d1f4e] FLOWExaFMM v2.1.1 `~/FLOWExaFMM.jl`
  [692b3bcd] JLLWrappers v1.6.1
  [1914dd2f] MacroTools v0.5.13
  [21216c6a] Preferences v1.4.3
⌅ [3eaa8342] libcxxwrap_julia_jll v0.12.3+0
  [56f22d72] Artifacts v1.11.0
  [2a0f44e3] Base64 v1.11.0
  [ade2ca70] Dates v1.11.0
  [b77e0a4c] InteractiveUtils v1.11.0
  [8f399da3] Libdl v1.11.0
  [56ddb016] Logging v1.11.0
  [d6f4376e] Markdown v1.11.0
  [de0858da] Printf v1.11.0
  [9a3f8284] Random v1.11.0
  [ea8e919c] SHA v0.7.0
  [9e88b42a] Serialization v1.11.0
  [fa267f1f] TOML v1.0.3
  [8dfed614] Test v1.11.0
  [4ec0a83e] Unicode v1.11.0
        Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading.
Precompiling project for configuration --code-coverage=none --color=yes --check-bounds=yes --warn-overwrite=yes --depwarn=yes --inline=yes --startup-file=no --track-allocation=none...
  ✗ FLOWExaFMM
  0 dependencies successfully precompiled in 3 seconds. 15 already precompiled.

ERROR: The following 1 direct dependency failed to precompile:

FLOWExaFMM --code-coverage=none --color=yes --check-bounds=yes --warn-overwrite=yes --depwarn=yes --inline=yes --startup-file=no --track-allocation=none 

Failed to precompile FLOWExaFMM [a07d1f4e-0e34-4d8b-bfef-e5b961477d34] to "/home/dima/.julia/compiled/v1.11/FLOWExaFMM/jl_d0M573".
C++ exception while wrapping module FLOWExaFMM: Type v has no Julia wrapper
ERROR: LoadError: Type v has no Julia wrapper
Stacktrace:
 [1] register_julia_module
   @ ~/.julia/packages/CxxWrap/J8Cop/src/CxxWrap.jl:424 [inlined]
 [2] readmodule(so_path_cb::FLOWExaFMM.var"#1#2", funcname::Symbol, m::Module, flags::Nothing)
   @ CxxWrap.CxxWrapCore ~/.julia/packages/CxxWrap/J8Cop/src/CxxWrap.jl:815
 [3] wrapmodule(so_path_cb::Function, funcname::Symbol, m::Module, flags::Nothing)
   @ CxxWrap.CxxWrapCore ~/.julia/packages/CxxWrap/J8Cop/src/CxxWrap.jl:825
 [4] include
   @ ./Base.jl:557 [inlined]
 [5] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
   @ Base ./loading.jl:2881
in expression starting at /home/dima/FLOWExaFMM.jl/src/FLOWExaFMM.jl:1
in expression starting at stdin:

@DSLituiev
Copy link

DSLituiev commented Dec 14, 2024

diagnostics:

  • manual compilation of hello.cpp works
  • shared libraries:
$ ldd src/fmm.so
        linux-vdso.so.1 (0x00007ffe9b1f5000)
        libcxxwrap_julia.so.0 => /home/dima/.julia/artifacts/019c5cd35749c9982f1286b00c41b7b2307302e3/lib/libcxxwrap_julia.so.0 (0x00007ff15ecd4000)
        libjulia.so.1.11 => /usr/local/julia/julia-1.11.2/lib/libjulia.so.1.11 (0x00007ff15ecaf000)
        libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007ff15ea00000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff15e921000)
        libgomp.so.1 => /lib/x86_64-linux-gnu/libgomp.so.1 (0x00007ff15ec5e000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ff15ec3e000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff15e740000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff15ec39000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ff15ec34000)
        /lib64/ld-linux-x86-64.so.2 (0x00007ff15ed51000)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants