tech-embed archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Cross compiling for powerpc-netbsd on i386-netbsd: pkgsrc.
Hi
HELP!!!!
Host env:
i386 netbsd1.4.1
I'm trying to make a cross compiler with preconf cross in /usr/pkgsrc
I DO:
cd /usr/pkgsrc/cross/powerpc-netbsd
THEN:
make reinstall clean clean-depends
.........
===> Returning to build of cross-powerpc-netbsd-1.3.0.0
===> cross-powerpc-netbsd-1.3.0.0 depends on package:
cross-binutils-2.9.1.1
===> Verifying reinstall for ../../cross/binutils
===> Patching for cross-binutils-2.9.1.1
===> Applying NetBSD patches for cross-binutils-2.9.1.1
patch: **** can't cd to /usr/pkgsrc/cross/binutils/work/binutils-2.9.1:
No such
file or directory
Patch /usr/pkgsrc/cross/binutils/patches/patch-aa failed
*** Error code 1
SO:
I install the binutils-2.9.1 with
tar -xzf /usr/pkgsrc/distfiles/binutils-2.9.1.tar.gz
And away we go:
make reinstall clean clean-depends
===> Returning to build of cross-powerpc-netbsd-1.3.0.0
===> cross-powerpc-netbsd-1.3.0.0 depends on package:
cross-binutils-2.9.1.1
===> Verifying reinstall for ../../cross/binutils
===> Patching for cross-binutils-2.9.1.1
===> Applying NetBSD patches for cross-binutils-2.9.1.1
===> Configuring for cross-binutils-2.9.1.1
Created "Makefile" in /usr/pkgsrc/cross/binutils/work/binutils-2.9.1
using "mt-f
rag"
collect2: ld returned 33 exit status
*** The command 'cc -o conftest -O2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib
-Wl,-R/u
sr/pkg/lib -L/usr/pkg/lib conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
*** Error code 1
It dosn't matter if i change the CC, thus in the Makefile in
/usr/pkgsrc/cross/binutils on line 20 i say's
CONFIGURE_ARGS+= --enable-targets=${ENABLE_TARGETS_LIST} \
--target=i386-linux
why? i386-linux?
I have a cross compiler env for powerpc, made out of Binutils and Gcc.
But that one is only for making the "bios" in my card.
And also when trying to compile netbsd with my "home made" cross
compiler it complains that it is no egcs.
I have looked at http://www.netbsd.org/Ports/bebox/cross.html
and it just says:
1.Get pkgsrc.tar.gz and extract on /usr/pkgsrc.
2.Make and install.
% cd /usr/pkgsrc/cross/powerpc-netbsd
# make install clean clean-depends
3.Get ppc-make script.
So why does it not work for me?????
My hole weekend was now wasted on trying to make this work, sadly...
Help wanted.
Regards Roger Strandberg
Home |
Main Index |
Thread Index |
Old Index