delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/12/23/00:54:29

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.9 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
From: Lucky Lu <Lucky DOT Lu AT exigenservices DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Date: Thu, 23 Dec 2010 13:54:12 +0800
Subject: Cygwin 1.7 : Checking -fPIC Failed when building the gcc 4.5.1 with --enable-plugin
Message-ID: <2D7A844733679E4BAAE34E35D007159446D73E2412@SUZEX03.internal.corp>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

I am having trouble with building the gcc 4.5.1 with --enable-plugin on Cyg=
win.
The configure string is "--enable-plugin --enable-languages=3Dc,c++ --disab=
le-bootstrap".
The error is ,
=A0 checking for -rdynamic... objdump: conftest: not a dynamic object no
=A0 checking for library containing dlopen... none required
=A0 checking for -fPIC -shared... no
=A0 configure: error:
=A0 Building GCC with plugin support requires a host that supports
=A0 -fPIC, -shared, -ldl and -rdynamic.
=A0 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,

=A0 plugin.c:1:0: warning: -fPIC ignored for target (all code is position i=
ndependent)
=A0 /tmp/ccU93aXF.o:plugin.c:(.text+0xd1): undefined reference to `_build3_=
stat'
=A0 /tmp/ccU93aXF.o:plugin.c:(.text+0xff): undefined reference to `_gimple_=
assign_single_p'
=A0 .....

Thanks.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019