This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++ exceptions in shared library results in crash


Hi Dan,

One thing I noticed from this is that the value for TOOLCOMBO when building a cygwin target cross toolchain is incorrect:

It is: gcc-3.3.2-
Should be: gcc-3.3.2-cygwin-1.5.10-3

I've attached a small patch to all.sh which fixes the problem,

Steve

Dan Kegel wrote:
Rainer Hochreiter wrote:

Right, but what recipe did you use to build it?



was a long time ago, but i think i did it like described in http://www.objsw.com/CrossGCC/FAQ.html


I don't recall that site having a cygwin recipe.
( Hey, that site now points to billgatliff.com! But bill's site is down :-( )


today i successfully built a new toolchain, with crosstool-0.28-rc37 using:
binutils-2.15.tar.bz2
cygwin-1.5.10-3-src.tar.bz2
gcc-3.3.2.tar.bz2


the build process creates cygwin1.dll in:
$ ls -l /opt/crosstool/i686-pc-cygwin/gcc-3.3.2-/bin/cygwin1.dll
-rwxr-xr-x    1 raho     develop   7507764 Jan 13 09:23
/opt/crosstool/i686-pc-cygwin/gcc-3.3.2-/bin/cygwin1.dll

this is a real big dll, compared to the one installed by the cygwin setup
program:
$ ls -l /bin/cygwin1.dll
-rwxr-x---+    1 raho     develop   1153417 May 26  2004 /bin/cygwin1.dll

is this correct?


I confess I haven't tried it myself - the cygwin support was contributed by someone else.

what now happens is, that i can't run the cross-compiled executables under
wine, cause wine tells me that it can't found cygwin1.dll even though i
added the new path in my wine-config;-(


You can't run cygwin programs in Wine. Wine does not support cygwin.

the cross-compiled testprogram still crashes under native cygwin ;-(


Hey, but at least you now have an easy recipe for repeating the problem!
Maybe the author of the cygwin support for crosstool can repeat the
problem now, and see about a fix.  Steve?
- Dan


diff -uNr crosstool-0.28-rc37.orig/all.sh crosstool-0.28-rc37/all.sh
--- crosstool-0.28-rc37.orig/all.sh	Wed Sep 29 06:37:46 2004
+++ crosstool-0.28-rc37/all.sh	Fri Jan 14 01:12:53 2005
@@ -33,7 +33,12 @@
 
 set -ex
 
-TOOLCOMBO=$GCC_DIR-$GLIBC_DIR
+if test "${CYGWIN_DIR}" = ""; then
+  TOOLCOMBO=$GCC_DIR-$GLIBC_DIR
+else
+  TOOLCOMBO=${GCC_DIR}-${CYGWIN_DIR}
+fi
+
 BUILD_DIR=`pwd`/build/$TARGET/$TOOLCOMBO
 
 TOP_DIR=`pwd`

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]