ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] aarch64 и /usr/include/sys/io.h
Date: Sun, 1 Jul 2018 18:59:38 +0300
Message-ID: <20180701155937.GA1377@altlinux.org> (raw)
In-Reply-To: <383d81ac-72ac-55e9-5f97-0dc124eeb014@yandex.ru>

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

On Sun, Jul 01, 2018 at 10:36:14PM +0700, Мидюков Антон wrote:
> 01.07.2018 22:23, Мидюков Антон пишет:
> > 01.07.2018 18:35, Dmitry V. Levin пишет:
> >> On Sun, Jul 01, 2018 at 05:16:10PM +0700, Антон Мидюков wrote:
> >>> 30.06.2018 23:12, Dmitry V. Levin пишет:
> >>>> On Sat, Jun 30, 2018 at 11:06:15PM +0700, Антон Мидюков wrote:
> >>>>> Здравствуйте!
> >>>>>
> >>>>> Подскажите, пожалуйста, почему в glibc-devel для aarch64 отсутствует
> >>>>> /usr/include/sys/io.h? И что делать с пакетами, которым этот
> >>>>> заголовочный файл нужен для сборки? У меня это linuxcnc.
> >>>> <sys/io.h> существует для весьма небольшого числа архитектур:
> >>>> alpha, arm, ia64, x86, x86-64.
> >>>> Для всех остальных архитектур этого файла нет и не будет.
> >>> Точно. Спасибо.
> >>>> Если софт использует этот файл, то, возможно, его нет смысла собирать
> >>>> на всех архитектурах.
> >>>>
> >>> Я нашёл в апстриме патч, делающий зависимость от <sys/io.h> 
> >>> необязательной.
> >> Насколько осмысленный код получается в результате применения этого
> >> апстримного патча?
> > Усекаются некоторые возможности, вместо них заглушки.
> > Например, вместо порта возвращается 0:
> >
> >  unsigned char Posix::do_inb(unsigned int port)
> >  {
> > +#ifdef HAVE_SYS_IO_H
> >      return inb(port);
> > +#else
> > +    return 0;
> > +#endif
> >  }
> >
> Наш girar такое не терпит :-(
> 
> aarch64: NEW bad_elf_symbols detected:
> linuxcnc-2.7.14-alt1.aarch64.rpm	/usr/lib/linuxcnc/modules/hm2_7i43.so	U	inb
> linuxcnc-2.7.14-alt1.aarch64.rpm	/usr/lib/linuxcnc/modules/hm2_7i43.so	U	inl
> linuxcnc-2.7.14-alt1.aarch64.rpm	/usr/lib/linuxcnc/modules/hm2_7i43.so	U	outb
> linuxcnc-2.7.14-alt1.aarch64.rpm	/usr/lib/linuxcnc/modules/hm2_7i90.so	U	inb
> linuxcnc-2.7.14-alt1.aarch64.rpm	/usr/lib/linuxcnc/modules/hm2_7i90.so	U	inl
> linuxcnc-2.7.14-alt1.aarch64.rpm	/usr/lib/linuxcnc/modules/hm2_7i90.so	U	outb
> linuxcnc-2.7.14-alt1.aarch64.rpm	/usr/lib/linuxcnc/modules/serport.so	U	inb
> linuxcnc-2.7.14-alt1.aarch64.rpm	/usr/lib/linuxcnc/modules/serport.so	U	outb
> 
> Можно ли как-то эту проверку выключить?

Может быть, лучше патч доработать?


-- 
ldv

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

  reply	other threads:[~2018-07-01 15:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-30 16:06 Антон Мидюков
2018-06-30 16:12 ` Dmitry V. Levin
2018-07-01 10:16   ` Антон Мидюков
2018-07-01 11:35     ` Dmitry V. Levin
2018-07-01 15:23       ` Мидюков Антон
2018-07-01 15:36         ` Мидюков Антон
2018-07-01 15:59           ` Dmitry V. Levin [this message]
2018-07-01 22:16             ` Alexey V. Vissarionov
2018-07-04  6:50             ` Антон Мидюков

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=20180701155937.GA1377@altlinux.org \
    --to=ldv@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