public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-embedded] gentoo cross-emerging for sh4 architecture
@ 2006-02-19 18:07 Jakub Ladman
  2006-02-20  4:46 ` Ned Ludd
  0 siblings, 1 reply; 6+ messages in thread
From: Jakub Ladman @ 2006-02-19 18:07 UTC (permalink / raw
  To: gentoo-embedded

Hello
I'm trying to make gentoo system on our development board with renesas sh4 
CPU.
I allready have created the cross-compiler toolchain using crossdev -t 
sh4-pc-linux-uclibc
I have to unpack stage3-sh4-uclibc-2006.0.tar.bz2 from vapiers archive to 
target directory /home/ladmanj/sh4system.
But if I try to run ROOT="/home/ladmanj/sh4system" emerge minicom (for an 
example), it uses not the targets make.conf file 
(/home/ladmanj/sh4system/etc/make.conf) but the host systems one.
Please tell me the correct way to cross-emerge ebuilds for my embedded system, 
or give me links to similar project.
Thank you.
Best regards
Jakub Ladman

PS: I also tryed 
ROOT="/home/ladmanj/sh4system" CHOST="sh4-gentoo-linux-uclibc" emerge minicom
everything looks fine but the output in target directory is i686 executable. 
Grrrr
I do not know why.
-- 
gentoo-embedded@gentoo.org mailing list



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

* Re: [gentoo-embedded] gentoo cross-emerging for sh4 architecture
  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
  0 siblings, 1 reply; 6+ messages in thread
From: Ned Ludd @ 2006-02-20  4:46 UTC (permalink / raw
  To: gentoo-embedded

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.



On Sun, 2006-02-19 at 19:07 +0100, Jakub Ladman wrote:
> Hello
> I'm trying to make gentoo system on our development board with renesas sh4 
> CPU.
> I allready have created the cross-compiler toolchain using crossdev -t 
> sh4-pc-linux-uclibc
> I have to unpack stage3-sh4-uclibc-2006.0.tar.bz2 from vapiers archive to 
> target directory /home/ladmanj/sh4system.
> But if I try to run ROOT="/home/ladmanj/sh4system" emerge minicom (for an 
> example), it uses not the targets make.conf file 
> (/home/ladmanj/sh4system/etc/make.conf) but the host systems one.
> Please tell me the correct way to cross-emerge ebuilds for my embedded system, 
> or give me links to similar project.
> Thank you.
> Best regards
> Jakub Ladman
> 
> PS: I also tryed 
> ROOT="/home/ladmanj/sh4system" CHOST="sh4-gentoo-linux-uclibc" emerge minicom
> everything looks fine but the output in target directory is i686 executable. 
> Grrrr
> I do not know why.
-- 
Ned Ludd <solar@gentoo.org>
Gentoo Linux

-- 
gentoo-embedded@gentoo.org mailing list



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

* Re: [gentoo-embedded] gentoo cross-emerging for sh4 architecture
  2006-02-20  4:46 ` Ned Ludd
@ 2006-02-20 15:47   ` Jakub Ladman
  2006-02-20 16:10     ` solar
  0 siblings, 1 reply; 6+ messages in thread
From: Jakub Ladman @ 2006-02-20 15:47 UTC (permalink / raw
  To: gentoo-embedded

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



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

* Re: [gentoo-embedded] gentoo cross-emerging for sh4 architecture
  2006-02-20 15:47   ` Jakub Ladman
@ 2006-02-20 16:10     ` solar
  2006-02-20 16:15       ` Jakub Ladman
  2006-02-20 20:17       ` Mike Frysinger
  0 siblings, 2 replies; 6+ messages in thread
From: solar @ 2006-02-20 16:10 UTC (permalink / raw
  To: gentoo-embedded

On Mon, 2006-02-20 at 16:47 +0100, Jakub Ladman wrote:
> dl_iterate_phdr

I think that is another bug. (ppc suffered from it as well)
Mike should know whats up with that one.


-- 
solar <solar@gentoo.org>
Gentoo Linux

-- 
gentoo-embedded@gentoo.org mailing list



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

* Re: [gentoo-embedded] gentoo cross-emerging for sh4 architecture
  2006-02-20 16:10     ` solar
@ 2006-02-20 16:15       ` Jakub Ladman
  2006-02-20 20:17       ` Mike Frysinger
  1 sibling, 0 replies; 6+ messages in thread
From: Jakub Ladman @ 2006-02-20 16:15 UTC (permalink / raw
  To: gentoo-embedded

So there is the complete error listing.

cp.a /var/tmp/portage/busybox-1.1.0/work/busybox-1.1.0/procps/procps.a /var/tmp/portage/busybox-1.1.0/work/busybox-1.1.0/loginutils/loginutils.a /var/tmp/portage/busybox-1.1.0/work/busybox-1.1.0/shell/shell.a /var/tmp/portage/busybox-1.1.0/work/busybox-1.1.0/sysklogd/sysklogd.a /var/tmp/portage/busybox-1.1.0/work/busybox-1.1.0/util-linux/util-linux.a /var/tmp/portage/busybox-1.1.0/work/busybox-1.1.0/e2fsprogs/e2fsprogs.a /var/tmp/portage/busybox-1.1.0/work/busybox-1.1.0/libpwdgrp/libpwdgrp.a /var/tmp/portage/busybox-1.1.0/work/busybox-1.1.0/coreutils/libcoreutils/libcoreutils.a /var/tmp/portage/busybox-1.1.0/work/busybox-1.1.0/libbb/libbb.a 
-lm -lcrypt -lcrypt -Wl,--end-group
/var/tmp/portage/busybox-1.1.0/work/busybox-1.1.0/coreutils/coreutils.a(nohup.o): 
In function `close_stdout':
nohup.c:(.text+0xd4): warning:
/var/tmp/portage/busybox-1.1.0/work/busybox-1.1.0/debianutils/debianutils.a(start_stop_daemon.o): 
In function `start_stop_daemon_main':
start_stop_daemon.c:(.text+0x5cc): undefined reference to `daemon'
/var/tmp/portage/busybox-1.1.0/work/busybox-1.1.0/miscutils/miscutils.a(crond.o): 
In function `crond_main':
crond.c:(.text+0xb68): undefined reference to `daemon'
/var/tmp/portage/busybox-1.1.0/work/busybox-1.1.0/miscutils/miscutils.a(hdparm.o): 
In function `identify':
hdparm.c:(.text+0xeac): undefined reference to `__fpscr_values'
/var/tmp/portage/busybox-1.1.0/work/busybox-1.1.0/miscutils/miscutils.a(watchdog.o): 
In function `watchdog_main':
watchdog.c:(.text+0xe0): undefined reference to `daemon'
/var/tmp/portage/busybox-1.1.0/work/busybox-1.1.0/networking/networking.a(zcip.o): 
In function `zcip_main':
zcip.c:(.text+0x61c): undefined reference to `daemon'
/var/tmp/portage/busybox-1.1.0/work/busybox-1.1.0/networking/udhcp/udhcp.a(common.o): 
In function `udhcp_background':
common.c:(.text+0x54): undefined reference to `daemon'
/var/tmp/portage/busybox-1.1.0/work/busybox-1.1.0/procps/procps.a(top.o): In 
function `do_stats':
top.c:(.text+0x1b0): undefined reference to `__fpscr_values'
/var/tmp/portage/busybox-1.1.0/work/busybox-1.1.0/sysklogd/sysklogd.a(klogd.o): 
In function `klogd_main':
klogd.c:(.text+0x198): undefined reference to `daemon'
/var/tmp/portage/busybox-1.1.0/work/busybox-1.1.0/sysklogd/sysklogd.a(syslogd.o): 
In function `syslogd_main':
syslogd.c:(.text+0xb9c): undefined reference to `daemon'
/var/tmp/portage/busybox-1.1.0/work/busybox-1.1.0/e2fsprogs/e2fsprogs.a(e2fsck.o): 
In function `get_refcount_el':
e2fsck.c:(.text+0x860): undefined reference to `__fpscr_values'
/var/tmp/portage/busybox-1.1.0/work/busybox-1.1.0/e2fsprogs/e2fsprogs.a(e2fsck.o): 
In function `e2fsck_simple_progress':
e2fsck.c:(.text+0xb12c): undefined reference to `__fpscr_values'
/var/tmp/portage/busybox-1.1.0/work/busybox-1.1.0/e2fsprogs/e2fsprogs.a(e2fsck.o): 
In function `e2fsck_pass3':
e2fsck.c:(.text+0xbfb0): undefined reference to `__fpscr_values'
/var/tmp/portage/busybox-1.1.0/work/busybox-1.1.0/e2fsprogs/e2fsprogs.a(e2fsck.o): 
In function `e2fsck_update_progress':
e2fsck.c:(.text+0xc09c): undefined reference to `__fpscr_values'
/var/tmp/portage/busybox-1.1.0/work/busybox-1.1.0/e2fsprogs/e2fsprogs.a(icount.o): 
In function `insert_icount_el':
icount.c:(.text+0x2b0): undefined reference to `__fpscr_values'
/var/tmp/portage/busybox-1.1.0/work/busybox-1.1.0/e2fsprogs/e2fsprogs.a(icount.o):icount.c:
(.text+0x3f4): more undefined references to `__fpscr_values' follow
/usr/lib/gcc/sh4-pc-linux-uclibc/3.4.5/libgcc_s.so.1: undefined reference to 
`___fpscr_values'
/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


Dne po 20. února 2006 17:10 solar napsal(a):
> On Mon, 2006-02-20 at 16:47 +0100, Jakub Ladman wrote:
> > dl_iterate_phdr
>
> I think that is another bug. (ppc suffered from it as well)
> Mike should know whats up with that one.
>
>
> --
> solar <solar@gentoo.org>
> Gentoo Linux

-- 
gentoo-embedded@gentoo.org mailing list



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

* Re: [gentoo-embedded] gentoo cross-emerging for sh4 architecture
  2006-02-20 16:10     ` solar
  2006-02-20 16:15       ` Jakub Ladman
@ 2006-02-20 20:17       ` Mike Frysinger
  1 sibling, 0 replies; 6+ messages in thread
From: Mike Frysinger @ 2006-02-20 20:17 UTC (permalink / raw
  To: gentoo-embedded

On Monday 20 February 2006 11:10, solar wrote:
> On Mon, 2006-02-20 at 16:47 +0100, Jakub Ladman wrote:
> > dl_iterate_phdr
>
> I think that is another bug. (ppc suffered from it as well)
> Mike should know whats up with that one.

gcc-3.4.5-r1 should help ...
-mike
-- 
gentoo-embedded@gentoo.org mailing list



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

end of thread, other threads:[~2006-02-20 20:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2006-02-20 16:10     ` solar
2006-02-20 16:15       ` Jakub Ladman
2006-02-20 20:17       ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox