public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
From: Jakub Ladman <ladmanj@volny.cz>
To: gentoo-embedded@lists.gentoo.org
Subject: Re: [gentoo-embedded] gentoo cross-emerging for sh4 architecture
Date: Mon, 20 Feb 2006 16:47:37 +0100	[thread overview]
Message-ID: <200602201647.38602.ladmanj@volny.cz> (raw)
In-Reply-To: <1140410772.4308.39.camel@localhost>

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@gentoo.org mailing list



  reply	other threads:[~2006-02-20 15:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-19 18:07 [gentoo-embedded] gentoo cross-emerging for sh4 architecture Jakub Ladman
2006-02-20  4:46 ` Ned Ludd
2006-02-20 15:47   ` Jakub Ladman [this message]
2006-02-20 16:10     ` solar
2006-02-20 16:15       ` Jakub Ladman
2006-02-20 20:17       ` Mike Frysinger

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=200602201647.38602.ladmanj@volny.cz \
    --to=ladmanj@volny.cz \
    --cc=gentoo-embedded@lists.gentoo.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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox