Git Product home page Git Product logo

logtalk-webassembly's People

Watchers

 avatar

logtalk-webassembly's Issues

Out-of-the-box emscripten problems

l_config.c:923:63: warning: format specifies type 'int' but the argument has type 'PlLong' (aka 'long') [-Wformat]
  fprintf(fg_c, "#define PL_MIN_INTEGER\t\t%" PL_FMT_d "\n",  min_integer);
                                           ~~~~~~~~~~~        ^~~~~~~~~~~
pl_config.c:924:63: warning: format specifies type 'int' but the argument has type 'PlLong' (aka 'long') [-Wformat]
  fprintf(fg_c, "#define PL_MAX_INTEGER\t\t%" PL_FMT_d "\n",  max_integer);
                                           ~~~~~~~~~~~        ^~~~~~~~~~~
pl_config.c:932:68: warning: format specifies type 'unsigned int' but the argument has type 'PlULong' (aka 'unsigned long') [-Wformat]
  fprintf(g, "#define TAG_MASK     \t\t(PlULong)%#" PL_FMT_x "\n", tag_mask);
                                                ~~~~~~~~~~~~       ^~~~~~~~
pl_config.c:933:68: warning: format specifies type 'unsigned int' but the argument has type 'PlULong' (aka 'unsigned long') [-Wformat]
  fprintf(g, "#define VALUE_MASK   \t\t(PlULong)%#" PL_FMT_x "\n", ~tag_mask);
                                                ~~~~~~~~~~~~       ^~~~~~~~~
pl_config.c:951:26: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat]
            tag[i].name, Mk_Tag_Mask(tag[i].value));
                         ^~~~~~~~~~~~~~~~~~~~~~~~~
pl_config.c:896:24: note: expanded from macro 'Mk_Tag_Mask'
#define Mk_Tag_Mask(x) ((((PlULong) (x) >> tag_size_low) << (value_size + tag_size_low)) | ((x) & ((1 << tag_size_low) - 1)))
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pl_config.c:1077:29: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat]
              tag[i].value, Mk_Tag_Mask(tag[i].value),
                            ^~~~~~~~~~~~~~~~~~~~~~~~~
pl_config.c:896:24: note: expanded from macro 'Mk_Tag_Mask'
#define Mk_Tag_Mask(x) ((((PlULong) (x) >> tag_size_low) << (value_size + tag_size_low)) | ((x) & ((1 << tag_size_low) - 1)))
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Common symbols are not yet implemented for Wasm
UNREACHABLE executed at /b/s/w/ir/cache/builder/emscripten-releases/llvm-project/llvm/lib/MC/MCWasmStreamer.cpp:139!
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.	Program arguments: /home/jacob/projects/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=17 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=/home/jacob/projects/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/compat -fno-strict-aliasing -fcommon -O3 -fomit-frame-pointer -Wno-char-subscripts pl_config.c -c -o /tmp/emscripten_temp_211hcyck/pl_config_0.o
1.	<eof> parser at end of file
2.	Code generation
 #0 0x00007f52d240cf53 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/jacob/projects/emsdk/upstream/bin/../lib/libLLVM-13git.so+0x1919f53)
 #1 0x00007f52d240ad8e llvm::sys::RunSignalHandlers() (/home/jacob/projects/emsdk/upstream/bin/../lib/libLLVM-13git.so+0x1917d8e)
 #2 0x00007f52d240c2cd llvm::sys::CleanupOnSignal(unsigned long) (/home/jacob/projects/emsdk/upstream/bin/../lib/libLLVM-13git.so+0x19192cd)
 #3 0x00007f52d233be13 (anonymous namespace)::CrashRecoveryContextImpl::HandleCrash(int, unsigned long) CrashRecoveryContext.cpp:0:0
 #4 0x00007f52d233bf7e CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
 #5 0x00007f52d0acb3c0 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x153c0)
 #6 0x00007f52ccf0a18b raise /build/glibc-YYA7BZ/glibc-2.31/signal/../sysdeps/unix/sysv/linux/raise.c:51:1
 #7 0x00007f52ccee9859 abort /build/glibc-YYA7BZ/glibc-2.31/stdlib/abort.c:81:7
 #8 0x00007f52d234c451 (/home/jacob/projects/emsdk/upstream/bin/../lib/libLLVM-13git.so+0x1859451)
 #9 0x00007f52d3c347c9 (/home/jacob/projects/emsdk/upstream/bin/../lib/libLLVM-13git.so+0x31417c9)
#10 0x00007f52d2d9f0c5 llvm::AsmPrinter::emitGlobalVariable(llvm::GlobalVariable const*) (/home/jacob/projects/emsdk/upstream/bin/../lib/libLLVM-13git.so+0x22ac0c5)
#11 0x00007f52d2da5c1c llvm::AsmPrinter::doFinalization(llvm::Module&) (/home/jacob/projects/emsdk/upstream/bin/../lib/libLLVM-13git.so+0x22b2c1c)
#12 0x00007f52d258c405 llvm::FPPassManager::doFinalization(llvm::Module&) (/home/jacob/projects/emsdk/upstream/bin/../lib/libLLVM-13git.so+0x1a99405)
#13 0x00007f52d2585335 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/home/jacob/projects/emsdk/upstream/bin/../lib/libLLVM-13git.so+0x1a92335)
#14 0x00007f52cf76f8f6 (anonymous namespace)::EmitAssemblyHelper::EmitAssemblyWithNewPassManager(clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream> >) BackendUtil.cpp:0:0
#15 0x00007f52cf76a0e0 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout const&, llvm::Module*, clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream> >) (/home/jacob/projects/emsdk/upstream/bin/../lib/libclang-cpp.so.13git+0x254a0e0)
#16 0x00007f52cfa89959 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) CodeGenAction.cpp:0:0
#17 0x00007f52ce7a74c4 clang::ParseAST(clang::Sema&, bool, bool) (/home/jacob/projects/emsdk/upstream/bin/../lib/libclang-cpp.so.13git+0x15874c4)
#18 0x00007f52d005cf90 clang::FrontendAction::Execute() (/home/jacob/projects/emsdk/upstream/bin/../lib/libclang-cpp.so.13git+0x2e3cf90)
#19 0x00007f52cffd6cea clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/home/jacob/projects/emsdk/upstream/bin/../lib/libclang-cpp.so.13git+0x2db6cea)
#20 0x00007f52d00d51a8 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/home/jacob/projects/emsdk/upstream/bin/../lib/libclang-cpp.so.13git+0x2eb51a8)
#21 0x000000000021476b cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/home/jacob/projects/emsdk/upstream/bin/clang+0x21476b)
#22 0x0000000000212222 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) driver.cpp:0:0
#23 0x00007f52cfcbb9c2 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const::$_1>(long) Job.cpp:0:0
#24 0x00007f52d233bd27 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/home/jacob/projects/emsdk/upstream/bin/../lib/libLLVM-13git.so+0x1848d27)
#25 0x00007f52cfcbb517 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (/home/jacob/projects/emsdk/upstream/bin/../lib/libclang-cpp.so.13git+0x2a9b517)
#26 0x00007f52cfc86b28 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/home/jacob/projects/emsdk/upstream/bin/../lib/libclang-cpp.so.13git+0x2a66b28)
#27 0x00007f52cfc86e27 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/home/jacob/projects/emsdk/upstream/bin/../lib/libclang-cpp.so.13git+0x2a66e27)
#28 0x00007f52cfca0d81 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/home/jacob/projects/emsdk/upstream/bin/../lib/libclang-cpp.so.13git+0x2a80d81)
#29 0x0000000000211aa6 main (/home/jacob/projects/emsdk/upstream/bin/clang+0x211aa6)
#30 0x00007f52cceeb0b3 __libc_start_main /build/glibc-YYA7BZ/glibc-2.31/csu/../csu/libc-start.c:342:3
#31 0x000000000020edaa _start (/home/jacob/projects/emsdk/upstream/bin/clang+0x20edaa)
clang-13: error: clang frontend command failed with exit code 134 (use -v to see invocation)
clang version 13.0.0 (/b/s/w/ir/cache/git/chromium.googlesource.com-external-github.com-llvm-llvm--project 3b677b81cec7b3c5132aee8fccc30252d87deb69)
Target: wasm32-unknown-emscripten
Thread model: posix
InstalledDir: /home/jacob/projects/emsdk/upstream/bin
clang-13: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-13: note: diagnostic msg: /tmp/pl_config-061d65.c
clang-13: note: diagnostic msg: /tmp/pl_config-061d65.sh
clang-13: note: diagnostic msg: 

********************
emcc: error: '/home/jacob/projects/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=17 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=/home/jacob/projects/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/compat -fno-strict-aliasing -fcommon -O3 -fomit-frame-pointer -Wno-char-subscripts pl_config.c -c -o /tmp/emscripten_temp_211hcyck/pl_config_0.o' failed (134)
make[1]: *** [Makefile:38: pl_config] Error 1
make[1]: Leaving directory '/home/jacob/projects/gprolog/src/EnginePl'
make: *** [Makefile:51: config] Error 2
emmake: error: 'make' failed (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.