From: "Ivan A. Melnikov" <iv@altlinux.org>
To: devel@lists.altlinux.org
Subject: Re: [devel] Патч при сборке под конкретную версию дистрибутива
Date: Thu, 11 Apr 2013 20:24:35 +0400
Message-ID: <20130411202435.1aad5ed0@deimos.localdomain> (raw)
In-Reply-To: <516659DA.9040602@etersoft.ru>
On Thu, 11 Apr 2013 10:36:10 +0400
Pavel Vainerman <pv@etersoft.ru> wrote:
[...]
> Кстати может действительно всем будет интересно.
>
> Под Сизиф собирается нормально. А ошибка сборки под p5 была такой:
>
> /usr/include/python2.5/longobject.h:43: error: ISO C++ 1998 does not
> support ‘long long’
> /usr/include/python2.5/longobject.h:44: error: ISO C++ 1998 does not
> support ‘long long’
> /usr/include/python2.5/longobject.h:45: error: ISO C++ 1998 does not
> support ‘long long’
> /usr/include/python2.5/longobject.h:46: error: ISO C++ 1998 does not
> support ‘long long’
> /usr/include/python2.5/longobject.h:47: error: ISO C++ 1998 does not
> support ‘long long’
>
> Патч решающий эту "проблемму" выглядит как добавление
> к CXXFLAGS -Wno-long-long (там глобально включён -pedantic, который не
> хотелось бы отключать).
Этот патч вполне можно (и даже, наверное, правильнее) применять
в зависимости от версии компилятора, а не бранча, так как именно
так как он приспосабливает код именно под другой компилятор.
То есть, если другой бранч, но с таким же компилятором, патч всё равно
будет нужен.
Вроде как у нас разрешено пользоваться макросами %__gcc_version и
%__gcc_version_base.
>
> Код в котором возникает ошибка сгенерирован swig-ом.
> Т.е. получается, что swig генерирует некорректный код (с -pedantic
> проверкой по крайней мере).
[...]
Если мне не изменяет память, сочетание -pedantic с -Werror официально
не поддерживается, и считается сломаным. Если удастся найти пруфлинк,
можно пнуть апстрим.
--
WBR,
Ivan A. Melnikov
next prev parent reply other threads:[~2013-04-11 16:24 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-10 18:00 Pavel Vainerman
2013-04-10 18:23 ` Paul Wolneykien
2013-04-10 18:50 ` Pavel Vainerman
2013-04-10 18:57 ` Paul Wolneykien
2013-04-10 19:12 ` Igor Zubkov
2013-04-10 19:19 ` Pavel Vainerman
2013-04-10 19:25 ` Paul Wolneykien
2013-04-10 19:28 ` Pavel Vainerman
2013-04-10 19:29 ` Pavel Vainerman
2013-04-10 19:38 ` Paul Wolneykien
2013-04-10 19:40 ` Pavel Vainerman
2013-04-10 19:47 ` Paul Wolneykien
2013-04-10 20:19 ` Pavel Vainerman
2013-04-10 20:25 ` [devel] %ifbranch ? Paul Wolneykien
2013-04-10 20:43 ` Dmitry V. Levin
2013-04-10 20:45 ` Paul Wolneykien
2013-04-10 20:47 ` Dmitry V. Levin
2013-04-10 20:52 ` Paul Wolneykien
2013-04-10 21:37 ` Dmitry V. Levin
2013-04-10 21:56 ` Yuri N. Sedunov
2013-04-10 22:12 ` Dmitry V. Levin
2013-04-10 22:25 ` Yuri N. Sedunov
2013-04-10 22:55 ` [devel] RPMTAG_DISTTAG Dmitry V. Levin
2013-04-10 23:20 ` Yuri N. Sedunov
2013-04-11 4:45 ` Eugene Prokopiev
2013-04-11 11:59 ` Michael Shigorin
2013-04-11 12:29 ` Sergey V Turchin
2013-04-11 12:49 ` Sergey V Turchin
2013-04-10 22:59 ` [devel] %ifbranch ? Paul Wolneykien
2013-04-10 20:45 ` Yuri N. Sedunov
2013-04-11 11:06 ` Sergey V Turchin
2013-04-11 11:04 ` Sergey V Turchin
2013-04-10 19:46 ` [devel] Патч при сборке под конкретную версию дистрибутива Pavel Vainerman
2013-04-10 20:58 ` Led
2013-04-10 21:05 ` Pavel Vainerman
2013-04-10 21:19 ` Led
2013-04-10 21:25 ` Pavel Vainerman
2013-04-10 21:32 ` Dmitry V. Levin
2013-04-11 11:22 ` Sergey V Turchin
2013-04-11 11:28 ` Sergey V Turchin
2013-04-11 4:34 ` Eugene Prokopiev
2013-04-11 6:36 ` Pavel Vainerman
2013-04-11 16:24 ` Ivan A. Melnikov [this message]
2013-04-11 16:49 ` Pavel Vainerman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130411202435.1aad5ed0@deimos.localdomain \
--to=iv@altlinux.org \
--cc=devel@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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