ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: rs <rs@sstu.ru>
To: gosha <embedded@nm.ru>,
	ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] Сборка кросс-компилятора
Date: Fri, 23 Jun 2006 08:38:42 +0400
Message-ID: <1223863.20060623083842@sstu.ru> (raw)
In-Reply-To: <394563452.20060623082426@nm.ru>

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

Вы писали 23 июня 2006 г., 12:24:26:

> Сборка кросс-компилятора

> --------------------------------------------------------------------------------

> Пробую собрать кросс-компилятор 4.1.1 хост=i686-pc-linux/ target=mips-linux :

> TARGET=mips-linux

> PREFIX=/opt/mips

> SYSROOT=/usr/local/mips

> export ARCH=mips32

> export CROSS_COMPILE=/usr/local/mips/bin/mips-linux-

> export PATH=$PATH:/usr/local/mips/bin




> ../gcc-4.1.1/configure --host=i586-mandrake-linux-gnu
> --target=$TARGET --prefix=$PREFIX --program-prefix=mips-linux- \

>         --with-elf --with-headers=/usr/mips/include
> --with-libs=/usr/mips/lib --with-sysroot=${SYSROOT}
> --with-build-sysroot=${SYSROOT} \

>         --disable-nls --with-arch=mips32 --enable-threads=posix \

>         --enable-languages="c,c++" \

>         --enable-shared=posix --enable-bigendian \

>         --disable-profile --enable-rpath --enable-c99
> --with-gnu-as=mips-linux-as --with-gnu-ld=mips-linux-ld




> make 

> make install

> ----------------------------------------------------------------

> После сборки компилятора получаю выыполняемые файлы:

> mips-linux-gcc

> mips-linux-gccbug

> mips-linux-gcov

> mips-linux-g++

> mips-linux-cpp




> Как я понимаю, файлы

> mips-linux-as

> mips-linux-ar

> mips-linux-ld

> mips-linux-ranlib

> берем из комплекта скомпилированных binutil




> При последующей сборке библиотек вместо кросс-ассемблера mips-linux-as

> gcc вызывает хостовый ассемблер as (без префикса) и то же для всего комплекта файлов binutil

> Это означает, что 2 ассемблера у меня на хосте не уживутся. Как победить?

прописать в Makefile для сборки библиотек CROSS_COMPILE=mips-linux- и
в PATH добавить путь до mips-linux-*


____________________________ 
С уважением,
 системный администратор
 СГТУ, каф."Системотехника"
 AND
 ЗАО "Тесар-СО",
 Егоров Стас
 ICQ:270805968
 mailto:rs@sstu.ru



           reply	other threads:[~2006-06-23  4:38 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <394563452.20060623082426@nm.ru>]

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=1223863.20060623083842@sstu.ru \
    --to=rs@sstu.ru \
    --cc=community@lists.altlinux.org \
    --cc=embedded@nm.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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git