ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Aleksey Avdeev <solo@solin.spb.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: [devel] Q: --target athlonxp у нашего rpm рабочий?
Date: Wed, 06 Sep 2006 05:32:09 +0400
Message-ID: <44FE2519.6080909@solin.spb.ru> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 2405 bytes --]

Здравствуйте.

  Что-то не получается у меня под athlonxp пакеты собирать. Симптомы:

1. rpmbuild по умолчанию собирает под athlon;

2. Проверка показала, что:
$ rpm --showrc
ARCHITECTURE AND OS:
build arch            : athlon
                        ^^^^^^
compatible build archs: athlon k6 pentium2 i586 i486 i386 noarch i686
build os              : Linux
compatible build os's : Linux
install arch          : athlon
install os            : Linux
compatible archs      : athlon k6 pentium2 i586 i486 i386 noarch i686
compatible os's       : Linux
...

  Хотя:

$ cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 10
model name      : AMD Athlon(TM) XP 3200+
                      ^^^^^^^^^^^^^
stepping        : 0
cpu MHz         : 2200.493
cache size      : 512 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow
bogomips        : 4404.74

3. Если --target athlonxp указать явно, то сборка рушится на этапе
configure. Например:

+ libtoolize --copy --force
You should add the contents of
`/usr/share/libtool-1.5/aclocal/libtool.m4' to `aclocal.m4'.
+ ./configure --build=athlonxp-alt-linux --host=athlonxp-alt-linux
--prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include
--libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var/lib
--sharedstatedir=/usr/com --mandir=/usr/share/man
--infodir=/usr/share/info --disable-dependency-tracking
--without-included-gettext --with-mcrypt=/usr
checking build system type... Invalid configuration
`athlonxp-alt-linux': machine `athlonxp-alt' not recognized
configure: error: /bin/sh ./config.sub athlonxp-alt-linux failed

  Как оказалось, в config.sub. Данный скрипт умеет правильно определять
только: athlon, athlon_*, и athlon-*. athlonxp в это множество не
попадает... Но если в качестве --build и --host передавать
athlon_xp-alt-linux -- configure отрабатывает корректно.

  В общем -- на данный момент приходится использовать костыль, в виде
athlonxp.patch...

-- 

С уважением. Алексей.

[-- Attachment #1.2: athlonxp.patch --]
[-- Type: text/x-patch, Size: 445 bytes --]

--- /usr/lib/rpm/athlonxp-alt-linux/macros.orig	2006-09-06 05:26:51 +0400
+++ /usr/lib/rpm/athlonxp-alt-linux/macros	2006-09-06 05:27:51 +0400
@@ -7,7 +7,7 @@
 %_vendor		alt
 %_os			linux
 %_gnu			-gnu
-%_target_platform	%{_target_cpu}-%{_vendor}-%{_target_os}
+%_target_platform	athlon_xp-%{_vendor}-%{_target_os}
 %optflags		%optflags_default -march=athlon-xp
 
 #==============================================================================

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 550 bytes --]

             reply	other threads:[~2006-09-06  1:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-06  1:32 Aleksey Avdeev [this message]
2006-09-12 17:47 ` Aleksey Avdeev

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=44FE2519.6080909@solin.spb.ru \
    --to=solo@solin.spb.ru \
    --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