about building bootstrap compiler with CROSSGCC-0.28-rc34

Dan Kegel dank@kegel.com
Wed Dec 1 16:01:00 GMT 2004


Wu Bridge wrote:
> On Tue, 30 Nov 2004 11:04:20 -0800, Daniel Kegel <dank@kegel.com> wrote:
> 
>>Wu Bridge wrote:
>>
>>>I'm working on building arm-linux toolchain for GCC-3.4, xscale. I
>>>used CROSSTOOL-0.28-rc34/arm-iwmmxt, but the toolchain encountered
>>>problem when building a large c++ project. I had another arm-linux
>>>toolchain for GCC-3.3.2, which is OK to build that project.
>>
>>Can you post the error it encountered, and the source snippet that
>>didn't build?  It's quite likely that gcc-3.4 is running into
>>something that it is stricter about than gcc-3.3 was.
>>
> 
> You are right. The following are errors when building qte-3.04. 
> I have found http://gcc.gnu.org/ml/gcc-patches/2003-07/msg01664.html
> describes GCC-3.4 prevents non-const reference bindings to packed
> fields. This is correspond to the first error. The second error is
> because GCC-3.4 require explicitly using this->clear() instead of
> clear().
> ...
> In member function `ushort& QChar::unicode()':
> /home/bridge/qpe/qpe-new-glibc/qt-embedded-free-3.0.4/include/qstring.h:178:
> error: cannot bind packed field `((QChar*)this)->QChar::ucs' to
> `ushort&'
> ...

Whew!  Glad to hear it isn't crosstool's fault :-)

>>gcc-3.4 is a tad bit harder to build than gcc-3.3, if I remember
>>properly.
> 
> It is. 
> BTW: It seems that the bootstrap gcc configured with
> --with-inhibit-libc option works well. In case what do you consider
> with so complex method? :)

Oh, I dunno, probably because I needed it to work with all
versions of gcc, and older versions need a different trick.
- Dan

-- 
Trying to get a job as a c++ developer?  See http://kegel.com/academy/getting-hired.html


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



More information about the crossgcc mailing list