hi,
i have successfully compiled the GCC 8.2.0 on msys2 on windows OS and this
is the output of the plugin command :
$ ./i386-elf-gcc.exe -print-file-name=plugin
/home/my_user/GCC_8.2.0/i386-elf/lib/gcc/i386-elf/8.2.0/plugin
ls -l /home/my_user/GCC_8.2.0/i386-elf/lib/gcc/i386-elf/8.2.0/plugin
total 3416
-rw-r--r-- 1 my_user Domain Users 1110819 Jan 22 17:43 gtype.state
drwxr-xr-x 1 my_user Domain Users 0 Jan 22 17:43 include
-rw-r--r-- 1 my_user Domain Users 832566 Jan 22 17:43 libcc1plugin.a
-rw-r--r-- 1 my_user Domain Users 958 Jan 22 17:43 libcc1plugin.la
-rw-r--r-- 1 my_user Domain Users 1440806 Jan 22 17:43 libcp1plugin.a
-rw-r--r-- 1 my_user Domain Users 958 Jan 22 17:43 libcp1plugin.la
when i have used a empty plugin source code i'm getting the following error:
/home/my_user/GCC_8.2.0/i386-elf/bin/i386-elf-g++.exe -std=c++11 -Wall
-fno-rtti -g3 -Wno-literal-suffix
-I/home/my_user/GCC_8.2.0/i386-elf/lib/gcc/i386-elf/8.2.0/plugin/include
-o EmptyPlugin.o -c EmptyPlugin.c
/home/my_user/GCC_8.2.0/i386-elf/lib/gcc/i386-elf/8.2.0/plugin/include/system.h:427:11:
fatal error: sys/mman.h: No such file or directory
# include <sys/mman.h>
^~~~~~~~~~~~
if i add the Msys2 use/sys includes that is wrong since i get re-definition
of structs errors so what should be done here ?
-Shai
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public