public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Catch 22 compiling ppl: Internal compiler error: Illegal instruction
@ 2012-11-22 19:36 Ángel González
  2012-11-22 21:09 ` Jonathan Wakely
  0 siblings, 1 reply; 5+ messages in thread
From: Ángel González @ 2012-11-22 19:36 UTC (permalink / raw)
  To: gcc-help

I am hitting an «internal compiler error: Illegal instruction» when
trying to compile ppl-0.11 on arm with gcc 4.1.3 (20080414).

This is almost surely fixed in newer GCC, the problem is that I was
building ppl precisely for compiling the latest gcc (4.7.2) [to overcome
a different gcc 'internal compiler error' bug].

So, what are my options now to get the non-bugged gcc?
Are you familiar with this error? Is there some easy workaround which
could be applied to ppl source code to bypass it?

Thanks

> bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.
> -I..  -I../src  -g -O2 -frounding-math  -W -Wall -MT Box.lo -MD -MP
> -MF .deps/Box.Tpo -c -o Box.lo Box.cc
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../src -g -O2
> -frounding-math -W -Wall -MT Box.lo -MD -MP -MF .deps/Box.Tpo -c
> Box.cc  -fPIC -DPIC -o .libs/Box.o
> /usr/bin/../lib/gcc/arm-unknown-linux-uclibc/4.1.3/../../../../include/c++/4.1.3/bits/stl_deque.h:
> In instantiation of 'std::_Deque_iterator<bool, bool&, bool*>':
> /usr/bin/../lib/gcc/arm-unknown-linux-uclibc/4.1.3/../../../../include/c++/4.1.3/bits/stl_deque.h:389:  
> instantiated from 'std::_Deque_base<bool, std::allocator<bool>
> >::_Deque_impl'
> /usr/bin/../lib/gcc/arm-unknown-linux-uclibc/4.1.3/../../../../include/c++/4.1.3/bits/stl_deque.h:436:  
> instantiated from 'std::_Deque_base<bool, std::allocator<bool> >'
> /usr/bin/../lib/gcc/arm-unknown-linux-uclibc/4.1.3/../../../../include/c++/4.1.3/bits/stl_deque.h:613:  
> instantiated from 'std::deque<bool, std::allocator<bool> >'
> Polyhedron.templates.hh:197:   instantiated from here
> /usr/bin/../lib/gcc/arm-unknown-linux-uclibc/4.1.3/../../../../include/c++/4.1.3/bits/stl_deque.h:102:
> internal compiler error: Illegal instruction
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://gcc.gnu.org/bugs.html> for instructions.


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

* Re: Catch 22 compiling ppl: Internal compiler error: Illegal instruction
  2012-11-22 19:36 Catch 22 compiling ppl: Internal compiler error: Illegal instruction Ángel González
@ 2012-11-22 21:09 ` Jonathan Wakely
  2012-11-22 21:39   ` Ángel González
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Wakely @ 2012-11-22 21:09 UTC (permalink / raw)
  To: Ángel González; +Cc: gcc-help

On 22 November 2012 19:33, Ángel González wrote:
> I am hitting an «internal compiler error: Illegal instruction» when
> trying to compile ppl-0.11 on arm with gcc 4.1.3 (20080414).
>
> This is almost surely fixed in newer GCC, the problem is that I was
> building ppl precisely for compiling the latest gcc (4.7.2) [to overcome
> a different gcc 'internal compiler error' bug].
>
> So, what are my options now to get the non-bugged gcc?
> Are you familiar with this error? Is there some easy workaround which
> could be applied to ppl source code to bypass it?

PPL is not required to build GCC, so just build GCC 4.7.2 without PPL.

Then, if you need a graphite-enabled GCC build PPL and rebuild GCC
using the 4.7.2 build you've just done.

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

* Re: Catch 22 compiling ppl: Internal compiler error: Illegal instruction
  2012-11-22 21:09 ` Jonathan Wakely
@ 2012-11-22 21:39   ` Ángel González
       [not found]     ` <CAH6eHdR_tXT_MFGACy2UnsryGm1uqvi0AhBZFpiuGjsicrwSaA@mail.gmail.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Ángel González @ 2012-11-22 21:39 UTC (permalink / raw)
  To: Jonathan Wakely; +Cc: gcc-help

On 22/11/12 22:09, Jonathan Wakely wrote:
> PPL is not required to build GCC, so just build GCC 4.7.2 without PPL.
> Then, if you need a graphite-enabled GCC build PPL and rebuild GCC
> using the 4.7.2 build you've just done.
Does it need a switch to disable graphite? (I don't see it on
./configure --help)

I currently get on gcc configure:
> checking for version 0.11 (revision 0 or later) of PPL... no
> configure: error: Unable to find a usable PPL.  See config.log for
> details.

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

* Re: Catch 22 compiling ppl: Internal compiler error: Illegal instruction
       [not found]     ` <CAH6eHdR_tXT_MFGACy2UnsryGm1uqvi0AhBZFpiuGjsicrwSaA@mail.gmail.com>
@ 2012-11-22 22:05       ` Jonathan Wakely
  2012-11-22 22:51         ` Ángel González
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Wakely @ 2012-11-22 22:05 UTC (permalink / raw)
  To: Ángel González; +Cc: gcc-help

(Resending as plain text email)

> On Nov 22, 2012 9:39 PM, "Ángel González" wrote:
>
> On 22/11/12 22:09, Jonathan Wakely wrote:
> > PPL is not required to build GCC, so just build GCC 4.7.2 without PPL.
> > Then, if you need a graphite-enabled GCC build PPL and rebuild GCC
> > using the 4.7.2 build you've just done.
> Does it need a switch to disable graphite? (I don't see it on
> ./configure --help)

No, it isn't enabled unless you request it, or it's found in a standard
path.

> I currently get on gcc configure:
> > checking for version 0.11 (revision 0 or later) of PPL... no
> > configure: error: Unable to find a usable PPL.  See config.log for
> > details.


You'll need to tell us the full configure command or noone can guess what's
happening.

The absence of PPL should not cause configure to fail unless you've done
something to cause it to be used.

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

* Re: Catch 22 compiling ppl: Internal compiler error: Illegal instruction
  2012-11-22 22:05       ` Jonathan Wakely
@ 2012-11-22 22:51         ` Ángel González
  0 siblings, 0 replies; 5+ messages in thread
From: Ángel González @ 2012-11-22 22:51 UTC (permalink / raw)
  To: Jonathan Wakely; +Cc: gcc-help

On 22/11/12 23:04, Jonathan Wakely wrote:
> (Resending as plain text email)
>
>> On Nov 22, 2012 9:39 PM, "Ángel González" wrote:
>>
>> On 22/11/12 22:09, Jonathan Wakely wrote:
>>> PPL is not required to build GCC, so just build GCC 4.7.2 without PPL.
>>> Then, if you need a graphite-enabled GCC build PPL and rebuild GCC
>>> using the 4.7.2 build you've just done.
>> Does it need a switch to disable graphite? (I don't see it on
>> ./configure --help)
> No, it isn't enabled unless you request it, or it's found in a standard
> path.
>
>> I currently get on gcc configure:
>>> checking for version 0.11 (revision 0 or later) of PPL... no
>>> configure: error: Unable to find a usable PPL.  See config.log for
>>> details.
> You'll need to tell us the full configure command or noone can guess what's
> happening.
>
> The absence of PPL should not cause configure to fail unless you've done
> something to cause it to be used.
It was a very simple configure line, mostly using --with-PACKAGE in
order to
point to the prefix folder.
So after, a few tests simplifying it, it turned out it was pulled by
--with-cloog

Thanks

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

end of thread, other threads:[~2012-11-22 22:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-22 19:36 Catch 22 compiling ppl: Internal compiler error: Illegal instruction Ángel González
2012-11-22 21:09 ` Jonathan Wakely
2012-11-22 21:39   ` Ángel González
     [not found]     ` <CAH6eHdR_tXT_MFGACy2UnsryGm1uqvi0AhBZFpiuGjsicrwSaA@mail.gmail.com>
2012-11-22 22:05       ` Jonathan Wakely
2012-11-22 22:51         ` Ángel González

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