ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Q: --target athlonxp у нашего rpm рабочий?
@ 2006-09-06  1:32 Aleksey Avdeev
  2006-09-12 17:47 ` Aleksey Avdeev
  0 siblings, 1 reply; 2+ messages in thread
From: Aleksey Avdeev @ 2006-09-06  1:32 UTC (permalink / raw)
  To: ALT Devel discussion list


[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [devel] Q: --target athlonxp у нашего rpm рабочий?
  2006-09-06  1:32 [devel] Q: --target athlonxp у нашего rpm рабочий? Aleksey Avdeev
@ 2006-09-12 17:47 ` Aleksey Avdeev
  0 siblings, 0 replies; 2+ messages in thread
From: Aleksey Avdeev @ 2006-09-12 17:47 UTC (permalink / raw)
  To: ALT Devel discussion list

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

Aleksey Avdeev пишет:
> Здравствуйте.
> 
>   Что-то не получается у меня под athlonxp пакеты собирать. Симптомы:
> 
> 1. rpmbuild по умолчанию собирает под athlon;
> 
...
> 
> 3. Если --target athlonxp указать явно, то сборка рушится на этапе
> configure. Например:
> 

  Повесил <https://bugzilla.altlinux.org/show_bug.cgi?id=9991>, по этому
поводу.

-- 

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


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-09-12 17:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-06  1:32 [devel] Q: --target athlonxp у нашего rpm рабочий? Aleksey Avdeev
2006-09-12 17:47 ` Aleksey Avdeev

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