GCC plugins problem
Yu
17671260413@163.com
Mon Jan 6 06:57:00 GMT 2020
Hello,
I have some questions about developing my own compiler plugin. I tried to develop it using riscv-gnu-toolchain(https://github.com/riscv/riscv-gnu-toolchain), but it couldn't find following header files.
# include <sys/mman.h>
#if defined (ENABLE_PLUGIN) && defined (HAVE_DLFCN_H)
/* If plugin support is enabled, we could use libdl. */
#include <dlfcn.h>
#endif
/* Do not introduce a gmp.h dependency on the build system. */
#ifndef GENERATOR_FILE
#include <gmp.h>
#endif
#ifdef HAVE_SYS_MMAN_H
# include <sys/mman.h>
#endif
How to resolve this problem? I would be very grateful indeed for any help you could give me. Thank you so much!
Sincerely,
Yu
More information about the Gcc
mailing list