Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 3

Qt-interest Archive, April 2007
qt-4.1.5 fails to build on HP with aCC


Message 1 in thread

It's while building the arch specific code in
The assembly build fine but not the C++ (wrapping code ?).

[bsergean@homer qt-x11-opensource-src-4.1.5]$ aCC -V
aCC: HP ANSI C++ B3910B A.03.50
[bsergean@homer qt-x11-opensource-src-4.1.5]$ uname -a
HP-UX homer B.11.00 A 9000/785 2003527556 two-user license

Benjamin.

aCC -c -AA +DAportable -w -D__STRICT_ANSI__ -D_HPUX_SOURCE -g
-D_POSIX_C_SOURCE=199506L +Z  -DQT_SHARED -DQT_BUILD_CORE_LIB
-DQT_NO_CAST_TO_ASCII -DQT3_SUPPORT -DQT_MOC_COMPAT
-D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/hpux-acc -I.
-I../../include -I../../include/QtCore -Iglobal -I.moc/debug-shared
-I. -o .obj/debug-shared/qatomic.o arch/parisc/qatomic.cpp
Error 19: "../../include/QtCore/../../src/corelib/global/qglobal.h",
line 1120 # Unexpected 'qt_error_string'.
    Q_CORE_EXPORT QString qt_error_string(int errorCode = -1);
                          ^^^^^^^^^^^^^^^
Error 19: "../../include/QtCore/../../src/corelib/global/qglobal.h",
line 1186 # Unexpected 'qInstallMsgHandler'.
    Q_CORE_EXPORT QtMsgHandler qInstallMsgHandler(QtMsgHandler);
                               ^^^^^^^^^^^^^^^^^^
Error 173: "../../include/QtCore/../../src/corelib/global/qglobal.h",
line 1186 # Redefined symbol 'QtMsgHandler'; previously
    defined at ["../../include/QtCore/../../src/corelib/global/qglobal.h",
line 1185].
    Q_CORE_EXPORT QtMsgHandler qInstallMsgHandler(QtMsgHandler);
                  ^^^^^^^^^^^^
Error 19: "../../include/QtCore/../../src/corelib/global/qglobal.h",
line 1680 # Unexpected 'qgetenv'.
    Q_CORE_EXPORT QByteArray qgetenv(const char *varName);
                             ^^^^^^^
Error 422: "../../include/QtCore/../../src/corelib/tools/qchar.h",
line 214 # 'QString' is used as a type, but has not been
    defined as a type. Perhaps you meant 'QString' as in class QString
    ["../../include/QtCore/../../src/corelib/tools/qchar.h", line 33].
        QString decomposition() const;
        ^^^^^^^
Error 19: "../../include/QtCore/../../src/corelib/tools/qchar.h", line
293 # Unexpected 'QDataStream'.
    Q_CORE_EXPORT QDataStream &operator<<(QDataStream &, const QChar &);
                  ^^^^^^^^^^^
Error 19: "../../include/QtCore/../../src/corelib/tools/qchar.h", line
294 # Unexpected 'QDataStream'.
    Q_CORE_EXPORT QDataStream &operator>>(QDataStream &, QChar &);
                  ^^^^^^^^^^^
Error 19: "../../include/QtCore/../../src/corelib/tools/qhash.h", line
65 # Unexpected 'uint'.
    Q_CORE_EXPORT uint qHash(const QByteArray &key);
                  ^^^^
Error 22: "../../include/QtCore/../../src/corelib/tools/qhash.h", line
65 # Syntax error.
    Q_CORE_EXPORT uint qHash(const QByteArray &key);
                                              ^
Error 19: "../../include/QtCore/../../src/corelib/tools/qhash.h", line
66 # Unexpected 'uint'.
    Q_CORE_EXPORT uint qHash(const QString &key);
                  ^^^^
Error 22: "../../include/QtCore/../../src/corelib/tools/qhash.h", line
66 # Syntax error.
    Q_CORE_EXPORT uint qHash(const QString &key);
                                           ^
Warning:        7 future errors were detected and suppressed. Either
remove the '-w' option or add a '+p' option to detect and fix them
before they become fatal errors in a future release.
make[3]: *** [.obj/debug-shared/qatomic.o] Error 2
make[3]: Leaving directory
`/user/bsergean/src/qt-x11-opensource-src-4.1.5/src/corelib'
make[2]: *** [debug-all] Error 2
make[2]: Leaving directory
`/user/bsergean/src/qt-x11-opensource-src-4.1.5/src/corelib'
make[1]: *** [sub-corelib-make_default-ordered] Error 2
make[1]: Leaving directory `/user/bsergean/src/qt-x11-opensource-src-4.1.5/src'
make: *** [sub-src-make_default-ordered] Error 2

--
 [ signature omitted ] 

Message 2 in thread

I forgot to say that I did a diff between the atomic.cpp in 4.2.3 and
4.1.5 and they are the same.

On 4/11/07, Benjamin Sergeant <bsergean@xxxxxxxxx> wrote:
> It's while building the arch specific code in
> The assembly build fine but not the C++ (wrapping code ?).
>
> [bsergean@homer qt-x11-opensource-src-4.1.5]$ aCC -V
> aCC: HP ANSI C++ B3910B A.03.50
> [bsergean@homer qt-x11-opensource-src-4.1.5]$ uname -a
> HP-UX homer B.11.00 A 9000/785 2003527556 two-user license
>
> Benjamin.
>
> aCC -c -AA +DAportable -w -D__STRICT_ANSI__ -D_HPUX_SOURCE -g
> -D_POSIX_C_SOURCE=199506L +Z  -DQT_SHARED -DQT_BUILD_CORE_LIB
> -DQT_NO_CAST_TO_ASCII -DQT3_SUPPORT -DQT_MOC_COMPAT
> -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/hpux-acc -I.
> -I../../include -I../../include/QtCore -Iglobal -I.moc/debug-shared
> -I. -o .obj/debug-shared/qatomic.o arch/parisc/qatomic.cpp
> Error 19: "../../include/QtCore/../../src/corelib/global/qglobal.h",
> line 1120 # Unexpected 'qt_error_string'.
>     Q_CORE_EXPORT QString qt_error_string(int errorCode = -1);
>                           ^^^^^^^^^^^^^^^
> Error 19: "../../include/QtCore/../../src/corelib/global/qglobal.h",
> line 1186 # Unexpected 'qInstallMsgHandler'.
>     Q_CORE_EXPORT QtMsgHandler qInstallMsgHandler(QtMsgHandler);
>                                ^^^^^^^^^^^^^^^^^^
> Error 173: "../../include/QtCore/../../src/corelib/global/qglobal.h",
> line 1186 # Redefined symbol 'QtMsgHandler'; previously
>     defined at ["../../include/QtCore/../../src/corelib/global/qglobal.h",
> line 1185].
>     Q_CORE_EXPORT QtMsgHandler qInstallMsgHandler(QtMsgHandler);
>                   ^^^^^^^^^^^^
> Error 19: "../../include/QtCore/../../src/corelib/global/qglobal.h",
> line 1680 # Unexpected 'qgetenv'.
>     Q_CORE_EXPORT QByteArray qgetenv(const char *varName);
>                              ^^^^^^^
> Error 422: "../../include/QtCore/../../src/corelib/tools/qchar.h",
> line 214 # 'QString' is used as a type, but has not been
>     defined as a type. Perhaps you meant 'QString' as in class QString
>     ["../../include/QtCore/../../src/corelib/tools/qchar.h", line 33].
>         QString decomposition() const;
>         ^^^^^^^
> Error 19: "../../include/QtCore/../../src/corelib/tools/qchar.h", line
> 293 # Unexpected 'QDataStream'.
>     Q_CORE_EXPORT QDataStream &operator<<(QDataStream &, const QChar &);
>                   ^^^^^^^^^^^
> Error 19: "../../include/QtCore/../../src/corelib/tools/qchar.h", line
> 294 # Unexpected 'QDataStream'.
>     Q_CORE_EXPORT QDataStream &operator>>(QDataStream &, QChar &);
>                   ^^^^^^^^^^^
> Error 19: "../../include/QtCore/../../src/corelib/tools/qhash.h", line
> 65 # Unexpected 'uint'.
>     Q_CORE_EXPORT uint qHash(const QByteArray &key);
>                   ^^^^
> Error 22: "../../include/QtCore/../../src/corelib/tools/qhash.h", line
> 65 # Syntax error.
>     Q_CORE_EXPORT uint qHash(const QByteArray &key);
>                                               ^
> Error 19: "../../include/QtCore/../../src/corelib/tools/qhash.h", line
> 66 # Unexpected 'uint'.
>     Q_CORE_EXPORT uint qHash(const QString &key);
>                   ^^^^
> Error 22: "../../include/QtCore/../../src/corelib/tools/qhash.h", line
> 66 # Syntax error.
>     Q_CORE_EXPORT uint qHash(const QString &key);
>                                            ^
> Warning:        7 future errors were detected and suppressed. Either
> remove the '-w' option or add a '+p' option to detect and fix them
> before they become fatal errors in a future release.
> make[3]: *** [.obj/debug-shared/qatomic.o] Error 2
> make[3]: Leaving directory
> `/user/bsergean/src/qt-x11-opensource-src-4.1.5/src/corelib'
> make[2]: *** [debug-all] Error 2
> make[2]: Leaving directory
> `/user/bsergean/src/qt-x11-opensource-src-4.1.5/src/corelib'
> make[1]: *** [sub-corelib-make_default-ordered] Error 2
> make[1]: Leaving directory `/user/bsergean/src/qt-x11-opensource-src-4.1.5/src'
> make: *** [sub-src-make_default-ordered] Error 2
>

--
 [ signature omitted ]