delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/08/24/15:32:52

X-Spam-Check-By: sourceware.org
From: Daniel Villeneuve <dvilleneuve AT kronos DOT com>
MIME-Version: 1.0
Message-ID: <18127.12851.618324.327616@hilo.ca.kronos.com>
Date: Fri, 24 Aug 2007 15:32:03 -0400
To: cygwin AT cygwin DOT com
cc: dvilleneuve AT kronos DOT com
Subject: re: cross-compilation linux->cygwin and gcc-3.4.4
In-Reply-To: <18124.41239.477455.371956@hilo.ca.kronos.com>
References: <18124 DOT 41239 DOT 477455 DOT 371956 AT hilo DOT ca DOT kronos DOT com>
X-Mailer: VM 7.17 under 21.4 (patch 15) "Security Through Obscurity" XEmacs Lucid
Reply-To: dvilleneuve AT kronos DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l7OJWbAx025138

Earlier this week, I've asked:
 > I'm in the process of updating my cross-compilation
 > environment from cygwin-1.5.12 to cygwin-1.5.24, mainly
 > because we have had code generation problems with
 > gcc-3.3.3-3 from the former.
 > 
 > However, I get the following message
 > 
 >     No support for this host/target combination
 > 
 > from gcc-3.4.4/libstdc++-v3/configure (crossconfig.m4), because
 > indeed cygwin is not mentioned in any of the clauses of the main
 > case statement.

I've finally found a way to get a working linux->cygwin
cross-compiler.  Here are the steps I've followed, for the
record:
1) As I've seen in other mails, I've deleted the
   libstdc++-v3 directory from the gcc-g++ source distro.
2) I've downloaded the binary native distro for gcc-core,
   to find the exact configure options used (using the
   strings program on gcc.exe).
3) I've compiled/installed my gcc-g++ cross-compiler sans
   libstdc++-v3 using this configuration (especially,
   --enable-sjlj-exceptions).
4) I've downloaded the binary native distro for gcc-g++, in
   order to cp -r /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++
   into $INSTALL/lib/gcc/i686-pc-cygwin/3.4.4/include,
   to cp /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/lib{std,sup}c++.{a,la}
   into $INSTALL/i686-pc-cygwin/lib and to edit the .la
   files to refer to my $INSTALL directory (for -L options
   in dependencies and the libdir value).

-- 
Daniel Villeneuve
Architecte en logiciel, RO, division AD OPT
Software Architect, OR, AD OPT Division
Kronos
T: 514.345.0580 x 241
F: 514.345.0422
www.kronos.com
Visitez/Visit: www.ad-opt.com

Une expertise reconnue pour optimiser votre capital humain et votre performance en affaires (MC)
Experts at Improving the Performance of People and Business (TM)


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


- Raw text -


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