X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=0.7 required=5.0 	tests=AWL,BAYES_00,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Cesar Strauss <cestrauss@gmail.com>
Subject:  Re: GCC, -rdynamic option is unrecognized by GCC.
Date:  Sat, 02 Jan 2010 20:21:19 -0200
Lines: 35
Message-ID: <hhogsv$v4m$1@ger.gmane.org>
References:  <BLU0-SMTP36DAE1B773C84D963D0B89DD770@phx.gbl>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding:  7bit
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
In-Reply-To: <BLU0-SMTP36DAE1B773C84D963D0B89DD770@phx.gbl>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Claude Sylvain wrote:

> - I am trying (without success) to compile this application (PCB):
>     http://geda.seul.org/dist/pcb-20091103.tar.gz
> 
> - "configure" work well.  But...
> 
> - When doing a "make", there is a message telling:
>     "gcc: unrecognized option '-rdynamic'"

Actually, this message is only a warning, and should not prevent a 
successful build of pcb.

>   Followed by a ton of linker messages telling:
>     "...: undefined reference to ...".

What "gcc --version" gives you? Is it 4.3.4?

Curiously, when I tried it myself, the build succeeded with gcc 3.4.4, 
but failed with undefined references when switching to gcc 4.3.4. They 
seem to be related to some inline functions in toporouter.c. I will try 
to narrow it down.

Meanwhile, you could try switching to gcc 3.4.4:

1) Install gcc-core from Cygwin Setup
2) chmod +x /usr/bin/set-gcc-default*
3) set-gcc-default-3.sh
4) gcc --version (should be 3.4.4)
5) Rebuild pcb from scratch.

Or, alternatively, keep gcc 4.3.4, but remove all "inline" keywords from 
toporouter.c.

Cesar


--
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

