ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Денис Смирнов" <mithraen@altlinux.ru>
To: Kachalov Anton <mouse@altlinux.ru>
Cc: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] Q: x86_64
Date: Fri, 3 Sep 2004 18:14:54 +0400
Message-ID: <20040903141454.GC12605@workstation> (raw)
In-Reply-To: <41385E01.2000903@altlinux.ru>

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

On Fri, Sep 03, 2004 at 04:05:21PM +0400, Kachalov Anton wrote:

 KA> я бы сказал вот так:
 KA> - fix "long" -> "int" for compilation on 64-bit systems. (*.h, *.c)
 KA> это не только ia64 ;-)

Я вчера часть сизифа прогнал через сборку на оптероне. Выявил четыре типа
самых распространённых ошибок:

1. приведение указателей к целым (частенько, причём часто реально нужно
только знать 0/не 0).

2. установку не в lib64

3. (очень часто, также очень часто вместе с предыдущим) в %files
используется /lib и /usr/lib вместо соответствующих макросов. 

4. по каким-то причинам сборка происходит по x86, если руками не указать
-m64.

Решения:
1 -- ясное дело руками
2 -- может прямо в rpmbuild при сборке на x86_64 после секции %install
автоматически переименовывать /usr/lib в /usr/lib64 и /lib в /lib64?
3 -- таки надо добавить в sisyphus_check проверку спека на предмет
неиспользования макросов там, где это нужно делать.
4 -- в /usr/lib/rpm/rpmrc для платформы x86_64 добавить ключ -m64, а для
32-х битных ключ -m32. Это ещё не раз пригодится.

bugzilla сейчас пользоваться не могу (тонкий диалап), если интересует --
могу при изготовлении патчей к пакетам для сборки кидаться ими в тебя.

-- 
С уважением, Денис

http://freesource.info


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

  parent reply	other threads:[~2004-09-03 14:14 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-15  3:36 Alexey Tourbin
2004-08-15  7:54 ` Денис Смирнов
2004-08-16  5:56 ` Anton Farygin
2004-08-16  8:21   ` Денис Смирнов
2004-09-03  7:19   ` Vladimir Lettiev
2004-09-03 12:05     ` Kachalov Anton
2004-09-03 12:51       ` Vladimir Lettiev
2004-09-03 13:15         ` Anton Kachalov
2004-09-03 14:14       ` Денис Смирнов [this message]
2004-09-03 14:24         ` Kachalov Anton
2004-09-03 15:53           ` Денис Смирнов
2004-09-04  8:28             ` Anton Kachalov
2004-09-04 10:10               ` Alexey I. Froloff

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=20040903141454.GC12605@workstation \
    --to=mithraen@altlinux.ru \
    --cc=devel@altlinux.ru \
    --cc=mouse@altlinux.ru \
    /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