how long does it take to build gcc45?

Gabriele Kahlout gabriele at mysimpatico.com
Tue Jun 8 09:06:48 PDT 2010


Well, I had lost interest until compiling the following project gives the
following:
http://code.google.com/p/sscompiler/source/browse/#svn/trunk

In file included from /usr/include/c++/4.2.1/bits/char_traits.h:46,
                 from /usr/include/c++/4.2.1/ios:45,
                 from /usr/include/c++/4.2.1/ostream:45,
                 from /usr/include/c++/4.2.1/iostream:45,
                 from semantics.h:13,
                 from yacc.y:18:
/usr/include/c++/4.2.1/bits/stl_algobase.h:771: error: expected
unqualified-id before numeric constant
/usr/include/c++/4.2.1/bits/stl_algobase.h:804: error: expected
unqualified-id before numeric constant
In file included from /usr/include/c++/4.2.1/string:53,
                 from /usr/include/c++/4.2.1/bits/locale_classes.h:47,
                 from /usr/include/c++/4.2.1/bits/ios_base.h:47,
                 from /usr/include/c++/4.2.1/ios:48,
                 from /usr/include/c++/4.2.1/ostream:45,
                 from /usr/include/c++/4.2.1/iostream:45,
                 from semantics.h:13,
                 from yacc.y:18:
/usr/include/c++/4.2.1/bits/stl_function.h:134: error: expected identifier
before numeric constant
/usr/include/c++/4.2.1/bits/stl_function.h:134: error: expected
unqualified-id before numeric constant
/usr/include/c++/4.2.1/bits/stl_function.h:143: error: expected identifier
before numeric constant
/usr/include/c++/4.2.1/bits/stl_function.h:143: error: expected
unqualified-id before numeric constant
/usr/include/c++/4.2.1/bits/stl_function.h:214: error: expected identifier
before numeric constant
/usr/include/c++/4.2.1/bits/stl_function.h:214: error: expected
unqualified-id before numeric constant
/usr/include/c++/4.2.1/bits/stl_function.h:223: error: expected identifier
before numeric constant
/usr/include/c++/4.2.1/bits/stl_function.h:223: error: expected
unqualified-id before numeric constant
In file included from /usr/include/c++/4.2.1/string:54,
                 from /usr/include/c++/4.2.1/bits/locale_classes.h:47,
                 from /usr/include/c++/4.2.1/bits/ios_base.h:47,
                 from /usr/include/c++/4.2.1/ios:48,
                 from /usr/include/c++/4.2.1/ostream:45,
                 from /usr/include/c++/4.2.1/iostream:45,
                 from semantics.h:13,
                 from yacc.y:18:
/usr/include/c++/4.2.1/bits/basic_string.h: In member function ‘bool
std::basic_string<_CharT, _Traits, _Alloc>::_M_disjunct(const _CharT*)
const’:
/usr/include/c++/4.2.1/bits/basic_string.h:334: error: expected
primary-expression before ‘const’
/usr/include/c++/4.2.1/bits/basic_string.h:334: error: expected `)' before
‘const’
In file included from /usr/include/c++/4.2.1/bits/basic_ios.h:41,
                 from /usr/include/c++/4.2.1/ios:50,
                 from /usr/include/c++/4.2.1/ostream:45,
                 from /usr/include/c++/4.2.1/iostream:45,
                 from semantics.h:13,
                 from yacc.y:18:
/usr/include/c++/4.2.1/bits/streambuf_iterator.h: At global scope:
/usr/include/c++/4.2.1/bits/streambuf_iterator.h:159: error: expected
unqualified-id before numeric constant
/usr/include/c++/4.2.1/bits/streambuf_iterator.h: In function ‘bool
std::operator==(const std::istreambuf_iterator<_CharT, _Traits>&, const
std::istreambuf_iterator<_CharT, _Traits>&)’:
/usr/include/c++/4.2.1/bits/streambuf_iterator.h:197: error: expected
unqualified-id before numeric constant
/usr/include/c++/4.2.1/bits/streambuf_iterator.h:197: error: expected ‘;’
before numeric constant
/usr/include/c++/4.2.1/bits/streambuf_iterator.h: In function ‘bool
std::operator!=(const std::istreambuf_iterator<_CharT, _Traits>&, const
std::istreambuf_iterator<_CharT, _Traits>&)’:
/usr/include/c++/4.2.1/bits/streambuf_iterator.h:203: error: expected
unqualified-id before numeric constant
/usr/include/c++/4.2.1/bits/streambuf_iterator.h:203: error: expected ‘;’
before numeric constant
make: *** [all] Error 1


where the same project compiles well under linux g++ 4.4.1 . Is this a
problem difference between the compilers? I doubt, but..

My g++ -v:
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5659~1/src/configure --disable-checking
--enable-werror --prefix=/usr --mandir=/share/man
--enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib
--build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10-
--host=x86_64-apple-darwin10 --target=i686-apple-darwin10
--with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5659)


2010/4/18 Ryan Schmidt <ryandesign at macports.org>

> On Apr 18, 2010, at 11:45, Michael_google gmail_Gersten wrote:
>
> >>> On my 2.5 GB 32-bit macbook it's been running 'stock on building gcc45'
> for half an hour. How long more should I normally wait?
> >>
> >> Wait a couple hours at least. Each version of gcc seems to be bigger
> than the last.
> >
> > 4.3 took over 24 hours on my 1.42 G4. So go and get a cup of coffee or
> > 2 (or 20).
>
> Yes, you can expect a PowerPC Mac to take a lot longer than an Intel Mac to
> build any port, since the Intel Mac has a higher CPU clock speed and has
> multiple processor cores. My Power Mac G4 has been building gcc45 for the
> past 11 hours, but it's 466 MHz so I'm sure it'll take another day or two to
> finish.
>
>
>


-- 
Regards,
K. Gabriele

--- unchanged since 25/1/10 ---
P.S. Unless a notification (LON), please reply either with an answer OR with
" ACK" appended to this subject within 48 hours. Otherwise, I might resend.
In(LON, this) ∨ In(48h, TimeNow) ∨ ∃x. In(x, MyInbox) ∧ IsAnswerTo(x, this)
∨ (In(subject(this), subject(x)) ∧ In(ACK, subject(x)) ∧
¬IsAnswerTo(x,this)) ⇒ ¬IResend(this).

Also note that correspondence may be received only from specified a priori
senders, or if the subject of this email ends with a code, eg. -LICHT01X,
then also from senders whose reply contains it.
∀x. In(x, MyInbox) ⇒ In(senderAddress(x), MySafeSenderList) ∨ (∃y. In(y,
subject(this) ) ∧ In(y,x) ∧ isCodeLike(y, -LICHT01X) ).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20100608/4d4dbb9c/attachment.html>


More information about the macports-users mailing list