This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GCC plugins problem


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


 






 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]