libgccjit

Jonathan Yong 10walls@gmail.com
Sun Mar 14 14:54:32 GMT 2021


On 3/14/21 6:52 AM, Achim Gratz wrote:
> 
> /mnt/share/cygpkgs/gcc/gcc.x86_64/build/./prev-gcc/xg++ -B/mnt/share/cygpkgs/gcc/gcc.x86_64/build/./prev-gcc/ -B/usr/x86_64-pc-cygwin/bin/ -nostdinc++ -B/mnt/share/cygpkgs/gcc/gcc.x86_64/build/prev-x86_64-pc-cygwin/libstdc++-v3/src/.libs -B/mnt/share/cygpkgs/gcc/gcc.x86_64/build/prev-x86_64-pc-cygwin/libstdc++-v3/libsupc++/.libs  -I/mnt/share/cygpkgs/gcc/gcc.x86_64/build/prev-x86_64-pc-cygwin/libstdc++-v3/include/x86_64-pc-cygwin  -I/mnt/share/cygpkgs/gcc/gcc.x86_64/build/prev-x86_64-pc-cygwin/libstdc++-v3/include  -I/mnt/share/cygpkgs/gcc/gcc.x86_64/src/gcc-10.2.0/libstdc++-v3/libsupc++ -L/mnt/share/cygpkgs/gcc/gcc.x86_64/build/prev-x86_64-pc-cygwin/libstdc++-v3/src/.libs -L/mnt/share/cygpkgs/gcc/gcc.x86_64/build/prev-x86_64-pc-cygwin/libstdc++-v3/libsupc++/.libs -fno-PIE -c  -DIN_GCC_FRONTEND -g -O2 -fno-checking -gtoggle -DIN_GCC -fPIC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -Ijit -I/mnt/share/cygpkgs/gcc/gcc.x86_64/src/gcc-10.2.0/gcc -I/mnt/share/cygpkgs/gcc/gcc.x86_64/src/gcc-10.2.0/gcc/jit -I/mnt/share/cygpkgs/gcc/gcc.x86_64/src/gcc-10.2.0/gcc/../include -I/mnt/share/cygpkgs/gcc/gcc.x86_64/src/gcc-10.2.0/gcc/../libcpp/include  -I/mnt/share/cygpkgs/gcc/gcc.x86_64/src/gcc-10.2.0/gcc/../libdecnumber -I/mnt/share/cygpkgs/gcc/gcc.x86_64/src/gcc-10.2.0/gcc/../libdecnumber/bid -I../libdecnumber -I/mnt/share/cygpkgs/gcc/gcc.x86_64/src/gcc-10.2.0/gcc/../libbacktrace   -o jit/jit-playback.o -MT jit/jit-playback.o -MMD -MP -MF jit/.deps/jit-playback.TPo /mnt/share/cygpkgs/gcc/gcc.x86_64/src/gcc-10.2.0/gcc/jit/jit-playback.c
> /mnt/share/cygpkgs/gcc/gcc.x86_64/src/gcc-10.2.0/gcc/jit/jit-playback.c: In member function ‘gcc::jit::result* gcc::jit::playback::context::dlopen_built_dso()’:
> /mnt/share/cygpkgs/gcc/gcc.x86_64/src/gcc-10.2.0/gcc/jit/jit-playback.c:2652:3: error: ‘dlerror’ was not declared in this scope; did you mean ‘error’?
>   2652 |   dlerror ();
>        |   ^~~~~~~
>        |   error
> /mnt/share/cygpkgs/gcc/gcc.x86_64/src/gcc-10.2.0/gcc/jit/jit-playback.c:2655:6: error: ‘RTLD_NOW’ was not declared in this scope
>   2655 |      RTLD_NOW | RTLD_LOCAL);
>        |      ^~~~~~~~
> /mnt/share/cygpkgs/gcc/gcc.x86_64/src/gcc-10.2.0/gcc/jit/jit-playback.c:2655:17: error: ‘RTLD_LOCAL’ was not declared in this scope
>   2655 |      RTLD_NOW | RTLD_LOCAL);
>        |                 ^~~~~~~~~~
> /mnt/share/cygpkgs/gcc/gcc.x86_64/src/gcc-10.2.0/gcc/jit/jit-playback.c:2654:12: error: ‘dlopen’ was not declared in this scope; did you mean ‘open’?
>   2654 |   handle = dlopen (m_tempdir->get_path_so_file (),
>        |            ^~~~~~
>        |            open
> 
> I can pile on another kludge to make that compile and eventully it'll
> end up linking libgccjit, but the build then stops with an error that is
> not so easily skipped.
> 
> So no, Cygwin is not one of the targets that libgccjit is intended to
> work on yet and needs work.

Thanks for trying.
Does injecting dlfcn.h work?


More information about the Cygwin mailing list