public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* gcc-3.3.3 stage1 build error, undefined reference to `___do_sjlj_init'
@ 2004-05-31 22:39 Gerrit P. Haase
  2004-05-31 22:47 ` Gerrit P. Haase
  2004-05-31 22:55 ` Gerrit P. Haase
  0 siblings, 2 replies; 6+ messages in thread
From: Gerrit P. Haase @ 2004-05-31 22:39 UTC (permalink / raw)
  To: mingw-users; +Cc: cygwin

Hello Danny,

I'm getting an error when building cc1.exe with the bootstrap compiler:

stage1/xgcc.exe -Bstage1/ -B/usr/i686-pc-cygwin/bin/   -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H  -o cc1.exe \
        c-parse.o c-lang.o c-pretty-print.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-objc-common.o c-dump.o libcpp.a cygwin2.o main.o libbackend.a -lintl  -liconv  ../libiberty/libiberty.a
stage1/crtend.o(.text+0x5):crtstuff.c: undefined reference to `___do_sjlj_init'
collect2: ld returned 1 exit status
make[2]: *** [cc1.exe] Error 1
make[2]: Leaving directory `/gcc/gcc-3.3.3/gcc-3.3.3-1/.build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/gcc/gcc-3.3.3/gcc-3.3.3-1/.build/gcc'
make: *** [bootstrap] Error 2


And a general question, where is __USING_SJLJ__EXCEPTIONS__ defined at
all?  I only see a definition USING_SJLJ__EXCEPTIONS in except.h,
however it seems to work since I got this error.


Gerrit
-- 
=^..^=


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: gcc-3.3.3 stage1 build error, undefined reference to `___do_sjlj_init'
  2004-05-31 22:39 gcc-3.3.3 stage1 build error, undefined reference to `___do_sjlj_init' Gerrit P. Haase
@ 2004-05-31 22:47 ` Gerrit P. Haase
  2004-05-31 22:55 ` Gerrit P. Haase
  1 sibling, 0 replies; 6+ messages in thread
From: Gerrit P. Haase @ 2004-05-31 22:47 UTC (permalink / raw)
  To: mingw-users, cygwin

Hello,


> And a general question, where is __USING_SJLJ__EXCEPTIONS__ defined at
> all?  I only see a definition USING_SJLJ__EXCEPTIONS in except.h,
> however it seems to work since I got this error.

I found this, I just grepped the headers, but it is defined internal
for the preprocessor in c-common.c.

Gerrit
-- 
=^..^=



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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: gcc-3.3.3 stage1 build error, undefined reference to `___do_sjlj_init'
  2004-05-31 22:39 gcc-3.3.3 stage1 build error, undefined reference to `___do_sjlj_init' Gerrit P. Haase
  2004-05-31 22:47 ` Gerrit P. Haase
@ 2004-05-31 22:55 ` Gerrit P. Haase
  2004-05-31 23:50   ` Christopher Faylor
  1 sibling, 1 reply; 6+ messages in thread
From: Gerrit P. Haase @ 2004-05-31 22:55 UTC (permalink / raw)
  To: mingw-users, cygwin

Hello,

I wrote:

> I'm getting an error when building cc1.exe with the bootstrap compiler:

> stage1/xgcc.exe -Bstage1/ -B/usr/i686-pc-cygwin/bin/   -O2
> -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
> -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  
> -DHAVE_CONFIG_H  -o cc1.exe \
>         c-parse.o c-lang.o c-pretty-print.o attribs.o c-errors.o
> c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o
> c-common.o c-opts.o c-format.o c-semantics.o c-objc-common.o
> c-dump.o libcpp.a cygwin2.o main.o libbackend.a -lintl  -liconv 
> ../libiberty/libiberty.a
> stage1/crtend.o(.text+0x5):crtstuff.c: undefined reference to `___do_sjlj_init'
> collect2: ld returned 1 exit status
> make[2]: *** [cc1.exe] Error 1
> make[2]: Leaving directory `/gcc/gcc-3.3.3/gcc-3.3.3-1/.build/gcc'
> make[1]: *** [stage2_build] Error 2
> make[1]: Leaving directory `/gcc/gcc-3.3.3/gcc-3.3.3-1/.build/gcc'
> make: *** [bootstrap] Error 2


Hmmm, somehow, the rules from t-cygming were not included into the
Makefile, strange.  Do I need to sepcify --host && --target or s.th.
special to get it?


Gerrit
-- 
=^..^=



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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: gcc-3.3.3 stage1 build error, undefined reference to `___do_sjlj_init'
  2004-05-31 22:55 ` Gerrit P. Haase
@ 2004-05-31 23:50   ` Christopher Faylor
  2004-06-01  5:22     ` Gerrit P. Haase
  2004-06-01  6:38     ` Gerrit P. Haase
  0 siblings, 2 replies; 6+ messages in thread
From: Christopher Faylor @ 2004-05-31 23:50 UTC (permalink / raw)
  To: cygwin

On Mon, May 31, 2004 at 11:16:05PM +0200, Gerrit P. Haase wrote:
>Hmmm, somehow, the rules from t-cygming were not included into the
>Makefile, strange.  Do I need to sepcify --host && --target or s.th.
>special to get it?

Have you patched configure* to properly include the cygming stuff?
IIRC, this wasn't part of the gcc 3.3.* branch.

cgf

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: gcc-3.3.3 stage1 build error, undefined reference to `___do_sjlj_init'
  2004-05-31 23:50   ` Christopher Faylor
@ 2004-06-01  5:22     ` Gerrit P. Haase
  2004-06-01  6:38     ` Gerrit P. Haase
  1 sibling, 0 replies; 6+ messages in thread
From: Gerrit P. Haase @ 2004-06-01  5:22 UTC (permalink / raw)
  To: cygwin; +Cc: mingw-users

Hallo Christopher,

Am Montag, 31. Mai 2004 um 23:28 schriebst du:

> On Mon, May 31, 2004 at 11:16:05PM +0200, Gerrit P. Haase wrote:
>>Hmmm, somehow, the rules from t-cygming were not included into the
>>Makefile, strange.  Do I need to sepcify --host && --target or s.th.
>>special to get it?

> Have you patched configure* to properly include the cygming stuff?
> IIRC, this wasn't part of the gcc 3.3.* branch.

I used the patch Danny provided at the MinGW site, but this is also
lacking some of the cygming branch unique files.  I think I'll need to
rework the build.

After patching the Makefile to include the defines from t-cygming, I
get still the same error (crtend.o: undefined ref...), it dissappears
when I include crtbegin.o manually.


Gerrit
-- 
=^..^=



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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: gcc-3.3.3 stage1 build error, undefined reference to `___do_sjlj_init'
  2004-05-31 23:50   ` Christopher Faylor
  2004-06-01  5:22     ` Gerrit P. Haase
@ 2004-06-01  6:38     ` Gerrit P. Haase
  1 sibling, 0 replies; 6+ messages in thread
From: Gerrit P. Haase @ 2004-06-01  6:38 UTC (permalink / raw)
  To: mingw-users; +Cc: cygwin

Hallo Christopher,

Am Montag, 31. Mai 2004 um 23:28 schriebst du:

> On Mon, May 31, 2004 at 11:16:05PM +0200, Gerrit P. Haase wrote:
>>Hmmm, somehow, the rules from t-cygming were not included into the
>>Makefile, strange.  Do I need to sepcify --host && --target or s.th.
>>special to get it?

> Have you patched configure* to properly include the cygming stuff?
> IIRC, this wasn't part of the gcc 3.3.* branch.

It is in config.gcc:

i[34567]86-*-pe | i[34567]86-*-cygwin*)
...
        tmake_file="i386/t-cygming i386/t-cygwin i386/t-crtstuff"

It seems that I messed it up somehow, I started again from scratch and
with additional comments in configure I get this now:
Using the following target Makefile fragment files:
        /gcc/gcc-3.3.3/gcc-3.3.3-1/gcc/config/i386/t-crtstuff
Using the following target Makefile fragment files:
        /gcc/gcc-3.3.3/gcc-3.3.3-1/gcc/config/i386/t-cygming
Using the following target Makefile fragment files:
        /gcc/gcc-3.3.3/gcc-3.3.3-1/gcc/config/i386/t-cygwin


Gerrit
-- 
=^..^=


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-06-01  6:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-31 22:39 gcc-3.3.3 stage1 build error, undefined reference to `___do_sjlj_init' Gerrit P. Haase
2004-05-31 22:47 ` Gerrit P. Haase
2004-05-31 22:55 ` Gerrit P. Haase
2004-05-31 23:50   ` Christopher Faylor
2004-06-01  5:22     ` Gerrit P. Haase
2004-06-01  6:38     ` Gerrit P. Haase

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).