Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-embedded
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-embedded@g.o
From: Jakub Ladman <ladmanj@...>
Subject: Re: gentoo cross-emerging for sh4 architecture
Date: Mon, 20 Feb 2006 16:47:37 +0100
Dne po 20. Ășnora 2006 05:46 Ned Ludd napsal(a):
> emerge does not read make.conf from $ROOT.
>
> You need to wrapper the command.
> try a script that does something like.
> http://dev.gentoo.org/~spb/tmp/memerge
> but replace the mips arch with sh for your case.
I have created following script.
If i run memerge busybox, it fails with this and similar error:

/usr/lib/gcc/sh4-pc-linux-uclibc/3.4.5/libgcc_s.so.1: undefined reference to 
`dl_iterate_phdr'
collect2: ld returned 1 exit status
make: *** [busybox] Error 1

If i commented out the LDFLAGS line in the script it works, but i thik it is 
linked for libraries on my host i686 system.

Any ideas?
Thank you.

#!/bin/bash

ARCH=sh4
ACCEPT_KEYWORDS="-x86 -~x86 sh ~sh"
ROOT="/home/ladmanj/work_projects/mtdisk"
CFLAGS="-Os -pipe"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-L${ROOT}/lib -L${ROOT}/usr/lib"
CBUILD=i686-pc-linux-gnu
CHOST=sh4-pc-linux-uclibc
CTARGET=sh4-pc-linux-uclibc
CC=sh4-pc-linux-uclibc-gcc
CXX=sh4-pc-linux-uclibc-g++
PKGDIR=/usr/portage/packages/sh4
USE="-* -X -glibc uclibc"

export ARCH ACCEPT_KEYWORDS CFLAGS CXXFLAGS LDFLAGS ROOT CBUILD CHOST CTARGET 
CC CXX PKGDIR USE

emerge -b $*


-- 
gentoo-embedded@g.o mailing list


Replies:
Re: gentoo cross-emerging for sh4 architecture
-- solar
References:
gentoo cross-emerging for sh4 architecture
-- Jakub Ladman
Re: gentoo cross-emerging for sh4 architecture
-- Ned Ludd
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: gentoo cross-emerging for sh4 architecture
Next by thread:
Re: gentoo cross-emerging for sh4 architecture
Previous by date:
Re: gentoo cross-emerging for sh4 architecture
Next by date:
Re: gentoo cross-emerging for sh4 architecture


Updated Jun 17, 2009

Summary: Archive of the gentoo-embedded mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.