ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] unrecognized option `-fwrapv'
@ 2006-12-21  9:45 Motsyo Gennadi aka Drool
  2006-12-21  9:55 ` Damir Shayhutdinov
  0 siblings, 1 reply; 9+ messages in thread
From: Motsyo Gennadi aka Drool @ 2006-12-21  9:45 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 1045 bytes --]

	Собираю (пытаюсь) http://qbittorrent.org
По зависимостям я его удовлетворил :-) Но компиляция валится:

cc1plus: error: unrecognized option `-fwrapv'

	Это содержит файл /src/src.pro из указанной софтины:
QMAKE_CXXFLAGS_RELEASE += -fwrapv
QMAKE_CXXFLAGS_DEBUG += -fwrapv

	Что это за опция? Рытье по http://search.altlinux.ru ваще такого не находит,
гугль указывает на обсуждения и наличие соответствующих патцей для gcc, как я
понял...
	Если руками убрать эту опцию, валится:
In file included from /usr/include/qt4/QtCore/qnamespace.h:27,
                 from /usr/include/qt4/QtCore/qobjectdefs.h:27,
                 from /usr/include/qt4/QtCore/qobject.h:29,
                 from /usr/include/qt4/QtCore/QObject:1,
                 from trayicon/trayicon.h:25,
                 from trayicon/trayicon.cpp:22:
/usr/include/qt4/QtCore/qglobal.h:1253: error: syntax error before `if'

	Никто не собирал? Судя по скриншотам - очень продвинутый торрент-клиент.
Система - ALM-2.4 со всеми вытекающими... QT4 из backports

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [devel] unrecognized option `-fwrapv'
  2006-12-21  9:45 [devel] unrecognized option `-fwrapv' Motsyo Gennadi aka Drool
@ 2006-12-21  9:55 ` Damir Shayhutdinov
  2006-12-21 10:02   ` Motsyo Gennadi aka Drool
  0 siblings, 1 reply; 9+ messages in thread
From: Damir Shayhutdinov @ 2006-12-21  9:55 UTC (permalink / raw)
  To: ALT Devel discussion list

>         Собираю (пытаюсь) http://qbittorrent.org
> По зависимостям я его удовлетворил :-) Но компиляция валится:
>
> cc1plus: error: unrecognized option `-fwrapv'
>
>         Это содержит файл /src/src.pro из указанной софтины:
> QMAKE_CXXFLAGS_RELEASE += -fwrapv
> QMAKE_CXXFLAGS_DEBUG += -fwrapv
>
>         Что это за опция?

-fwrapv

This option instructs the compiler to assume that signed arithmetic
overflow of addition, subtraction and multiplication wraps around
using twos-complement representation.  This flag enables some
optimizations and disables others.  This option is enabled by default
for the Java front-end, as required by the Java language
specification.

>         Если руками убрать эту опцию, валится:
> In file included from /usr/include/qt4/QtCore/qnamespace.h:27,
>                  from /usr/include/qt4/QtCore/qobjectdefs.h:27,
>                  from /usr/include/qt4/QtCore/qobject.h:29,
>                  from /usr/include/qt4/QtCore/QObject:1,
>                  from trayicon/trayicon.h:25,
>                  from trayicon/trayicon.cpp:22:
> /usr/include/qt4/QtCore/qglobal.h:1253: error: syntax error before `if'

Скорее всего, валится не из-за fwrapv. Покажите что на строчке 1253 в qglobal.h.

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

* Re: [devel] unrecognized option `-fwrapv'
  2006-12-21  9:55 ` Damir Shayhutdinov
@ 2006-12-21 10:02   ` Motsyo Gennadi aka Drool
  2006-12-21 11:47     ` Motsyo Gennadi aka Drool
  2006-12-21 11:51     ` Damir Shayhutdinov
  0 siblings, 2 replies; 9+ messages in thread
From: Motsyo Gennadi aka Drool @ 2006-12-21 10:02 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 1408 bytes --]

"Damir Shayhutdinov" <damir@altlinux.org> wrote:

> >         Собираю (пытаюсь) http://qbittorrent.org
> > По зависимостям я его удовлетворил :-) Но компиляция валится:
> >
> > cc1plus: error: unrecognized option `-fwrapv'
> >
> >         Это содержит файл /src/src.pro из указанной софтины:
> > QMAKE_CXXFLAGS_RELEASE += -fwrapv
> > QMAKE_CXXFLAGS_DEBUG += -fwrapv
> >
> >         Что это за опция?
> 
> -fwrapv
> 
> This option instructs the compiler to assume that signed arithmetic
> overflow of addition, subtraction and multiplication wraps around
> using twos-complement representation.  This flag enables some
> optimizations and disables others.  This option is enabled by default
> for the Java front-end, as required by the Java language
> specification.
> 
> >         Если руками убрать эту опцию, валится:
> > In file included from /usr/include/qt4/QtCore/qnamespace.h:27,
> >                  from /usr/include/qt4/QtCore/qobjectdefs.h:27,
> >                  from /usr/include/qt4/QtCore/qobject.h:29,
> >                  from /usr/include/qt4/QtCore/QObject:1,
> >                  from trayicon/trayicon.h:25,
> >                  from trayicon/trayicon.cpp:22:
> > /usr/include/qt4/QtCore/qglobal.h:1253: error: syntax error before `if'
> 
> Скорее всего, валится не из-за fwrapv. Покажите что на строчке 1253 в
> qglobal.h.

inline QNoDebug qDebug();

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [devel] unrecognized option `-fwrapv'
  2006-12-21 10:02   ` Motsyo Gennadi aka Drool
@ 2006-12-21 11:47     ` Motsyo Gennadi aka Drool
  2006-12-21 11:50       ` Motsyo Gennadi aka Drool
  2006-12-21 11:51     ` Damir Shayhutdinov
  1 sibling, 1 reply; 9+ messages in thread
From: Motsyo Gennadi aka Drool @ 2006-12-21 11:47 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 632 bytes --]

> > > In file included from /usr/include/qt4/QtCore/qnamespace.h:27,
> > >                  from /usr/include/qt4/QtCore/qobjectdefs.h:27,
> > >                  from /usr/include/qt4/QtCore/qobject.h:29,
> > >                  from /usr/include/qt4/QtCore/QObject:1,
> > >                  from trayicon/trayicon.h:25,
> > >                  from trayicon/trayicon.cpp:22:
> > > /usr/include/qt4/QtCore/qglobal.h:1253: error: syntax error before `if'
> > 
> > Скорее всего, валится не из-за fwrapv. Покажите что на строчке 1253 в
> > qglobal.h.
> 
> inline QNoDebug qDebug();

	Нежто ему gcc-3.3 стар? :-( Тады ой...

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [devel] unrecognized option `-fwrapv'
  2006-12-21 11:47     ` Motsyo Gennadi aka Drool
@ 2006-12-21 11:50       ` Motsyo Gennadi aka Drool
  0 siblings, 0 replies; 9+ messages in thread
From: Motsyo Gennadi aka Drool @ 2006-12-21 11:50 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 741 bytes --]

Motsyo Gennadi aka Drool <motsyo@gmail.com> wrote:

> > > > In file included from /usr/include/qt4/QtCore/qnamespace.h:27,
> > > >                  from /usr/include/qt4/QtCore/qobjectdefs.h:27,
> > > >                  from /usr/include/qt4/QtCore/qobject.h:29,
> > > >                  from /usr/include/qt4/QtCore/QObject:1,
> > > >                  from trayicon/trayicon.h:25,
> > > >                  from trayicon/trayicon.cpp:22:
> > > > /usr/include/qt4/QtCore/qglobal.h:1253: error: syntax error before `if'
> > > 
> > > Скорее всего, валится не из-за fwrapv. Покажите что на строчке 1253 в
> > > qglobal.h.
> > 
> > inline QNoDebug qDebug();
> 
> 	Нежто ему gcc-3.3 стар? :-( Тады ой...
	Или qt4?

P.S. Блин...

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [devel] unrecognized option `-fwrapv'
  2006-12-21 10:02   ` Motsyo Gennadi aka Drool
  2006-12-21 11:47     ` Motsyo Gennadi aka Drool
@ 2006-12-21 11:51     ` Damir Shayhutdinov
  2006-12-21 11:53       ` Motsyo Gennadi aka Drool
  1 sibling, 1 reply; 9+ messages in thread
From: Damir Shayhutdinov @ 2006-12-21 11:51 UTC (permalink / raw)
  To: ALT Devel discussion list

> > > In file included from /usr/include/qt4/QtCore/qnamespace.h:27,
> > >                  from /usr/include/qt4/QtCore/qobjectdefs.h:27,
> > >                  from /usr/include/qt4/QtCore/qobject.h:29,
> > >                  from /usr/include/qt4/QtCore/QObject:1,
> > >                  from trayicon/trayicon.h:25,
> > >                  from trayicon/trayicon.cpp:22:
> > > /usr/include/qt4/QtCore/qglobal.h:1253: error: syntax error before `if'
> >
> > Скорее всего, валится не из-за fwrapv. Покажите что на строчке 1253 в
> > qglobal.h.
>
> inline QNoDebug qDebug();
Я что-то в упор не вижу в этой строчке "if" :(

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

* Re: [devel] unrecognized option `-fwrapv'
  2006-12-21 11:51     ` Damir Shayhutdinov
@ 2006-12-21 11:53       ` Motsyo Gennadi aka Drool
  2006-12-21 11:56         ` Motsyo Gennadi aka Drool
  2006-12-21 12:00         ` Damir Shayhutdinov
  0 siblings, 2 replies; 9+ messages in thread
From: Motsyo Gennadi aka Drool @ 2006-12-21 11:53 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 943 bytes --]

"Damir Shayhutdinov" <damir@altlinux.org> wrote:

> > > > In file included from /usr/include/qt4/QtCore/qnamespace.h:27,
> > > >                  from /usr/include/qt4/QtCore/qobjectdefs.h:27,
> > > >                  from /usr/include/qt4/QtCore/qobject.h:29,
> > > >                  from /usr/include/qt4/QtCore/QObject:1,
> > > >                  from trayicon/trayicon.h:25,
> > > >                  from trayicon/trayicon.cpp:22:
> > > > /usr/include/qt4/QtCore/qglobal.h:1253: error: syntax error before `if'
> > >
> > > Скорее всего, валится не из-за fwrapv. Покажите что на строчке 1253 в
> > > qglobal.h.
> >
> > inline QNoDebug qDebug();
> Я что-то в упор не вижу в этой строчке "if" :(

	На всякий, строки с 1248 по 1254:
#ifndef QT_NO_DEBUG_STREAM
Q_CORE_EXPORT_INLINE QDebug qDebug();
Q_CORE_EXPORT_INLINE QDebug qWarning();
Q_CORE_EXPORT_INLINE QDebug qCritical();
#else
inline QNoDebug qDebug();
#endif

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [devel] unrecognized option `-fwrapv'
  2006-12-21 11:53       ` Motsyo Gennadi aka Drool
@ 2006-12-21 11:56         ` Motsyo Gennadi aka Drool
  2006-12-21 12:00         ` Damir Shayhutdinov
  1 sibling, 0 replies; 9+ messages in thread
From: Motsyo Gennadi aka Drool @ 2006-12-21 11:56 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 1183 bytes --]

Motsyo Gennadi aka Drool <motsyo@gmail.com> wrote:

> "Damir Shayhutdinov" <damir@altlinux.org> wrote:
> 
> > > > > In file included from /usr/include/qt4/QtCore/qnamespace.h:27,
> > > > >                  from /usr/include/qt4/QtCore/qobjectdefs.h:27,
> > > > >                  from /usr/include/qt4/QtCore/qobject.h:29,
> > > > >                  from /usr/include/qt4/QtCore/QObject:1,
> > > > >                  from trayicon/trayicon.h:25,
> > > > >                  from trayicon/trayicon.cpp:22:
> > > > > /usr/include/qt4/QtCore/qglobal.h:1253: error: syntax error before
> > > > > `if'
> > > >
> > > > Скорее всего, валится не из-за fwrapv. Покажите что на строчке 1253 в
> > > > qglobal.h.
> > >
> > > inline QNoDebug qDebug();
> > Я что-то в упор не вижу в этой строчке "if" :(
> 
> 	На всякий, строки с 1248 по 1254:
> #ifndef QT_NO_DEBUG_STREAM
> Q_CORE_EXPORT_INLINE QDebug qDebug();
> Q_CORE_EXPORT_INLINE QDebug qWarning();
> Q_CORE_EXPORT_INLINE QDebug qCritical();
> #else
> inline QNoDebug qDebug();
> #endif

	Может это и правда разруливается как-то этим загадочным ключем
unrecognized option `-fwrapv' ? В каком gcc она появилась?

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [devel] unrecognized option `-fwrapv'
  2006-12-21 11:53       ` Motsyo Gennadi aka Drool
  2006-12-21 11:56         ` Motsyo Gennadi aka Drool
@ 2006-12-21 12:00         ` Damir Shayhutdinov
  1 sibling, 0 replies; 9+ messages in thread
From: Damir Shayhutdinov @ 2006-12-21 12:00 UTC (permalink / raw)
  To: ALT Devel discussion list

> > > > > In file included from /usr/include/qt4/QtCore/qnamespace.h:27,
> > > > >                  from /usr/include/qt4/QtCore/qobjectdefs.h:27,
> > > > >                  from /usr/include/qt4/QtCore/qobject.h:29,
> > > > >                  from /usr/include/qt4/QtCore/QObject:1,
> > > > >                  from trayicon/trayicon.h:25,
> > > > >                  from trayicon/trayicon.cpp:22:
> > > > > /usr/include/qt4/QtCore/qglobal.h:1253: error: syntax error before `if'
> > > >
> > > > Скорее всего, валится не из-за fwrapv. Покажите что на строчке 1253 в
> > > > qglobal.h.
> > >
> > > inline QNoDebug qDebug();
> > Я что-то в упор не вижу в этой строчке "if" :(
>
>         На всякий, строки с 1248 по 1254:
> #ifndef QT_NO_DEBUG_STREAM
> Q_CORE_EXPORT_INLINE QDebug qDebug();
> Q_CORE_EXPORT_INLINE QDebug qWarning();
> Q_CORE_EXPORT_INLINE QDebug qCritical();
> #else
> inline QNoDebug qDebug();
> #endif
Попробуй именно этот файл (trayicon.hpp) скомпилировать с -save-temps,
а потом покопаться в файле, полученном после препроцессора, в
окрестностях inline QNoDebug qDebug(); - вдруг там какой макрос
неправильно раскрывается.

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

end of thread, other threads:[~2006-12-21 12:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-21  9:45 [devel] unrecognized option `-fwrapv' Motsyo Gennadi aka Drool
2006-12-21  9:55 ` Damir Shayhutdinov
2006-12-21 10:02   ` Motsyo Gennadi aka Drool
2006-12-21 11:47     ` Motsyo Gennadi aka Drool
2006-12-21 11:50       ` Motsyo Gennadi aka Drool
2006-12-21 11:51     ` Damir Shayhutdinov
2006-12-21 11:53       ` Motsyo Gennadi aka Drool
2006-12-21 11:56         ` Motsyo Gennadi aka Drool
2006-12-21 12:00         ` Damir Shayhutdinov

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git