X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,MSGID_FROM_MTA_HEADER,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: Date: Sat, 02 Jan 2010 18:34:54 -0500 From: Claude Sylvain User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Cygwin mailing list Subject: Re: GCC, -rdynamic option is unrecognized by GCC. References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hello Cesar, Cesar Strauss wrote: > > What "gcc --version" gives you? Is it 4.3.4? > On my computer, Cygwin GCC tell: gcc (GCC) 4.3.4 20090804 (release) 1 > > 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. > - After some hours of work, I find the way to built PCB. But it is really dirty. Here what I have done: - Done a "./configure" using the following command: "./configure --disable-update-mime-database --disable-update-desktop-database --disable-nls --disable-update-xdg-database --prefix=/usr/local/geda" - In "src/core_lists.h", removed the last line ("REGISTER_ACTIONS (toporouter_action_list)"). - Do a "make". Note: This result to a link error at the end. - Grab (stdout) messages given by "make", and use it to create a custom manual link (through a shell script), replacing bad references to local libraries. Ex.: Replacing "libgtk.a", by "-lgtk". Also removing "toporouter.o" that seems to refer to objects that can not be found anywhere!? - Do a "make install". - I will try your workaround. Thank you for your help. Claude. -- 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