This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/1] Add multilib build support for libc target.


Yann E. MORIN wrote:
> Konrad, All,
> 
> On Monday 14 November 2011 11:37:59 Konrad Eisele wrote:
>> ---
>>  scripts/build/binutils/binutils.sh        |   14 +++-
>>  scripts/build/cc/gcc.sh                   |   15 +++-
>>  scripts/build/libc/glibc-eglibc.sh-common |  124 +++++++++++++++++++++++++---
>>  3 files changed, 134 insertions(+), 19 deletions(-)
> 
> Could you provide a sample .config where multilib works?
> 
> I'm strugling to get at least one configuration to at least pass the
> C library headers install step, and none works... :-(
> 
> If I could get a sane and known-working starting point, I could build
> from there.

$wget http://crosstool-ng.org/download/crosstool-ng/crosstool-ng-1.13.0.tar.bz2
$wget ftp://gaisler.com/gaisler.com/linux/patches/ct-1.diff
$tar xvf crosstool-ng-1.13.0.tar.bz2
$cat ct-1.diff | patch -p1 -d crosstool-ng-1.13.0
$cd crosstool-ng-1.13.0
$make -f Makefile.local.mk do_install
$make -f Makefile.local.mk do_build

The patch ct-1.diff adds crosstool-ng-1.13.0/build/ctng/.config
which is the conf file that build the toolchain in:
/opt/sparc-linux-4.6.0-toolchains/multilib (must be writable or change)
$make -f Makefile.local.mk do_install
install itself in crosstool-ng-1.13.0/build
$make -f Makefile.local.mk do_build
builds inside crosstool-ng-1.13.0/build/ctng using the supplied .config,
and finally to debug:
$make -f Makefile.local.mk do_build RESTART=<step> STOP=<step>
The toolchain has 4 multilib combinations:
"-msoft-float",  "-msoft-float -mv8", "-mv8" and "" .

-- Konrad

ps:
$cat /etc/slackware-version
Slackware 12.2.0
$uname  -a
Linux ada 2.6.27.31-smp #1 SMP Mon Dec 13 16:52:53 CET 2010 i686 Intel(R) Core(TM) i7 CPU         950  @ 3.07GHz GenuineIntel GNU/Linux


> 
> Regards,
> Yann E. MORIN.
> 


--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]