Re: Checking -fPIC Failed when building the gcc 4.5.1 with --enable-plugin on cygwin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Lucky Lu <Lucky.Lu@xxxxxxxxxxxxxxxxxx> writes:

> I am having trouble with building the gcc 4.5.1 with --enable-plugin on Cygwin.

As far as I know gcc plugins don't work on cygwin.

> The configure string is "--enable-plugin --enable-languages=c,c++ --disable-bootstrap".
> The error is ,
> Â checking for -rdynamic... objdump: conftest: not a dynamic object no
> Â checking for library containing dlopen... none required
> Â checking for -fPIC -shared... no
> Â configure: error:
> Â Building GCC with plugin support requires a host that supports
> Â -fPIC, -shared, -ldl and -rdynamic.
> Â make[1]: *** [configure-gcc] Error 1
>
> When I jump the -fPIC checking, it's success. And then failed when building a gcc plugin, print following,
>
> Â plugin.c:1:0: warning: -fPIC ignored for target (all code is position independent)
> Â /tmp/ccU93aXF.o:plugin.c:(.text+0xd1): undefined reference to `_build3_stat'
> Â /tmp/ccU93aXF.o:plugin.c:(.text+0xff): undefined reference to `_gimple_assign_single_p'
> Â .....

That's in essence because -rdynamic doesn't do anything on Windows.  It
goes further, in that I don't know that there is any way it can be made
to work given the way that Windows DLLs work.  There may be some way to
make it work; I just don't know of one.

Ian



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux