From: "Kirill A. Shutemov" <kirill@shutemov.name>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] error: `sizeof' applied to a bit-field
Date: Thu, 8 Jul 2010 23:00:17 +0300
Message-ID: <20100708200017.GA25792@shutemov.name> (raw)
In-Reply-To: <4C35E65B.2000500@altlinux.org>
On Thu, Jul 08, 2010 at 06:53:15PM +0400, Paul Wolneykien wrote:
> 08.07.2010 18:52, Kirill A. Shutemov пишет:
> > On Thu, Jul 08, 2010 at 06:40:06PM +0400, Paul Wolneykien wrote:
> >>
> >> Всем привет,
> >>
> >> Собрал я кроссом libalsa и ядро для одной железяки на ARM. И всё почти
> >> работает (звук воспроизводится), за исключением некоторых IOCTLs. Как
> >> оказалось, разница в размере структуры данных, которая передаётся вызову
> >> в качестве аргумента. При этом, определения структур в ядре и в
> >> библиотеке совпадают. Размеры большинства отдельных полей этих структур
> >> также совпадают. Однако размер одного из полей
> >>
> >> struct snd_ctl_elem_value {
> >> ...
> >> unsigned int indirect: 1;
> >> ...
> >>
> >> выяснить не удалось -- ошибка компиляции "`sizeof' applied to a
> >> bit-field". Получается что он не известен на этапе компиляции?
> >>
> >> Я подозреваю, что на итоговый размер структур оказывает влияние именно
> >> это поле. Расхождение -- 4 байта (708 байт в ядре, и 712 байт в библиотеке).
> >> Как понять? Как уровнять?
> >
> > А каким кроссом вы пользовались?
>
> Монтависта № 4. Но я и ядро им собираю.
Попробуйте codesourcery, для начала.
--
Kirill A. Shutemov
prev parent reply other threads:[~2010-07-08 20:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-08 14:40 Paul Wolneykien
2010-07-08 14:52 ` Kirill A. Shutemov
2010-07-08 14:53 ` Paul Wolneykien
2010-07-08 20:00 ` Kirill A. Shutemov [this message]
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=20100708200017.GA25792@shutemov.name \
--to=kirill@shutemov.name \
--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