public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* "Must use SJLJ exceptions" error
@ 2013-07-31  4:38 Blair Burtan
  2013-07-31  7:10 ` Carsten Schoenert
  0 siblings, 1 reply; 5+ messages in thread
From: Blair Burtan @ 2013-07-31  4:38 UTC (permalink / raw)
  To: crossgcc

Anyone know what the problem is here?

[INFO ]  Installing final compiler
[EXTRA]    Configuring final compiler
[EXTRA]    Building final compiler
[ERROR]    /Volumes/Crosstool/.build/src/gcc-4.5.3/gcc/except.h:337:6:
error: #error "Must use SJLJ exceptions but configured not to"

Blair M. Burtan
Northern Lights Tactical
www.northernlightstactical.com




--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: "Must use SJLJ exceptions" error
  2013-07-31  4:38 "Must use SJLJ exceptions" error Blair Burtan
@ 2013-07-31  7:10 ` Carsten Schoenert
  2013-07-31 14:39   ` Blair Burtan
  0 siblings, 1 reply; 5+ messages in thread
From: Carsten Schoenert @ 2013-07-31  7:10 UTC (permalink / raw)
  To: Blair Burtan; +Cc: crossgcc

Hello Blair,

Am 31.07.2013 06:37, schrieb Blair Burtan:
> Anyone know what the problem is here?
> 
> [INFO ]  Installing final compiler
> [EXTRA]    Configuring final compiler
> [EXTRA]    Building final compiler
> [ERROR]    /Volumes/Crosstool/.build/src/gcc-4.5.3/gcc/except.h:337:6:
> error: #error "Must use SJLJ exceptions but configured not to"

This is a message that comes from the '#error' statement.

Take a look into that header/line (337) and you will see why this is
triggerd. Without this info it's hard to say that's going wrong.

Regards
Carsten

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: "Must use SJLJ exceptions" error
  2013-07-31  7:10 ` Carsten Schoenert
@ 2013-07-31 14:39   ` Blair Burtan
  2013-07-31 14:44     ` Yann E. MORIN
  0 siblings, 1 reply; 5+ messages in thread
From: Blair Burtan @ 2013-07-31 14:39 UTC (permalink / raw)
  To: crossgcc; +Cc: Carsten Schoenert

Here's the section of the code.  The thing is that I'm not seeing where I
might be able to configure this in CT-NG.  I'm working with the stock GCC.

#ifdef CONFIG_SJLJ_EXCEPTIONS
# if CONFIG_SJLJ_EXCEPTIONS == 1
#  define USING_SJLJ_EXCEPTIONS        1
# endif
# if CONFIG_SJLJ_EXCEPTIONS == 0
#  define USING_SJLJ_EXCEPTIONS        0
#  if !defined(EH_RETURN_DATA_REGNO)
    #error "EH_RETURN_DATA_REGNO required"
#  endif
#  if ! (defined(TARGET_UNWIND_INFO) || DWARF2_UNWIND_INFO)
    #error "{DWARF2,TARGET}_UNWIND_INFO required"
#  endif
#  if !defined(TARGET_UNWIND_INFO) \
    && !(defined(EH_RETURN_HANDLER_RTX) || defined(HAVE_eh_return))
    #error "EH_RETURN_HANDLER_RTX or eh_return required"
#  endif
/* Usually the above error checks will have already triggered an
   error, but backends may set MUST_USE_SJLJ_EXCEPTIONS for their own
   reasons.  */
#  if MUST_USE_SJLJ_EXCEPTIONS
    #error "Must use SJLJ exceptions but configured not to"
#  endif
# endif
#else
# define USING_SJLJ_EXCEPTIONS        MUST_USE_SJLJ_EXCEPTIONS
#endif



Blair M. Burtan
Northern Lights Tactical
www.northernlightstactical.com




--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: "Must use SJLJ exceptions" error
  2013-07-31 14:39   ` Blair Burtan
@ 2013-07-31 14:44     ` Yann E. MORIN
  2013-07-31 14:59       ` Yann E. MORIN
  0 siblings, 1 reply; 5+ messages in thread
From: Yann E. MORIN @ 2013-07-31 14:44 UTC (permalink / raw)
  To: crossgcc; +Cc: Blair Burtan, Carsten Schoenert

Blair, All,

On Wednesday 31 July 2013 16:39:21 Blair Burtan wrote:
> Here's the section of the code.  The thing is that I'm not seeing where I
> might be able to configure this in CT-NG.  I'm working with the stock GCC.
> 
> #ifdef CONFIG_SJLJ_EXCEPTIONS
> # if CONFIG_SJLJ_EXCEPTIONS == 1
> #  define USING_SJLJ_EXCEPTIONS        1
> # endif
> # if CONFIG_SJLJ_EXCEPTIONS == 0
> #  define USING_SJLJ_EXCEPTIONS        0
> #  if !defined(EH_RETURN_DATA_REGNO)
>     #error "EH_RETURN_DATA_REGNO required"
> #  endif
> #  if ! (defined(TARGET_UNWIND_INFO) || DWARF2_UNWIND_INFO)
>     #error "{DWARF2,TARGET}_UNWIND_INFO required"
> #  endif
> #  if !defined(TARGET_UNWIND_INFO) \
>     && !(defined(EH_RETURN_HANDLER_RTX) || defined(HAVE_eh_return))
>     #error "EH_RETURN_HANDLER_RTX or eh_return required"
> #  endif
> /* Usually the above error checks will have already triggered an
>    error, but backends may set MUST_USE_SJLJ_EXCEPTIONS for their own
>    reasons.  */
> #  if MUST_USE_SJLJ_EXCEPTIONS
>     #error "Must use SJLJ exceptions but configured not to"
> #  endif
> # endif
> #else
> # define USING_SJLJ_EXCEPTIONS        MUST_USE_SJLJ_EXCEPTIONS
> #endif

Just a quick note before I get back home:
  Just enable the SJLJ in the menuconfig.

SJLJ stands for Set Jump / Long Jump, and is a model used for handling
exceptions. This is deprecated, but some archs have not been ported away
from it, and still use it. This is the case for armeb, I think.

Just force use of SJLF in ct-ng's menuconfig.

Also, see the known-issues file, as instructed by the error message
ct-ng prints when a failure occurs. ;-)

Regards,
Yann E; MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |   ^                |
| --==< O_o >==-- '------------.-------:  X  AGAINST      |  /e\  There is no  |
| http://ymorin.is-a-geek.org/ | (*_*) | / \ HTML MAIL    |  """  conspiracy.  |
'------------------------------'-------'------------------'--------------------'

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: "Must use SJLJ exceptions" error
  2013-07-31 14:44     ` Yann E. MORIN
@ 2013-07-31 14:59       ` Yann E. MORIN
  0 siblings, 0 replies; 5+ messages in thread
From: Yann E. MORIN @ 2013-07-31 14:59 UTC (permalink / raw)
  To: crossgcc; +Cc: Blair Burtan, Carsten Schoenert

Blair, All,

On Wednesday 31 July 2013 16:43:41 Yann E. MORIN wrote:
> On Wednesday 31 July 2013 16:39:21 Blair Burtan wrote:
> > Here's the section of the code.  The thing is that I'm not seeing where I
> > might be able to configure this in CT-NG.  I'm working with the stock GCC.

> Just a quick note before I get back home:
>   Just enable the SJLJ in the menuconfig.

See:
http://crosstool-ng.org/hg/crosstool-ng/file/1048e4dca434/config/cc/gcc.in.2#l170

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |   ^                |
| --==< O_o >==-- '------------.-------:  X  AGAINST      |  /e\  There is no  |
| http://ymorin.is-a-geek.org/ | (*_*) | / \ HTML MAIL    |  """  conspiracy.  |
'------------------------------'-------'------------------'--------------------'

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

end of thread, other threads:[~2013-07-31 14:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-31  4:38 "Must use SJLJ exceptions" error Blair Burtan
2013-07-31  7:10 ` Carsten Schoenert
2013-07-31 14:39   ` Blair Burtan
2013-07-31 14:44     ` Yann E. MORIN
2013-07-31 14:59       ` Yann E. MORIN

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