|
Message
From: Jeremy Bennett<jeremy.bennett@e...>
Date: Thu Jul 10 09:33:50 CEST 2008
Subject: [openrisc] How to make uClibc -- It always fails
Here are some ideas you might like to try.Have you first built binutils, gcc, Linux as described in Embecosm Application Note 2 at
http://www.embecosm.com/download.html
(This incorporates the Meansoffreedom and OpenRISC instructions) In particular did you put the cross-platform bin directory on your search path after building binutils.
Second possibility. Have you made some changes then tried rebuilding uClibc without doing a "make clean" first. The dependencies in the uClibc makefiles are not complete, so if you make any change you should first do "make clean", before doing another "make all".
What platform are you running on. I tested the build sequence with Fedora 9, but I haven't tested on older Linuxes or Cygwin.
HTH,
Jeremy
- Tel: +44 (1202) 416955 Cell: +44 (7970) 676050 SkypeID: jeremybennett Email: jeremy.bennett@e... Web: www.embecosm.com
-----Original Message----- From: kobegpfan@y... Reply-To: List about OpenRISC project <openrisc@o...> To: openrisc@o... Subject: [openrisc] How to make uClibc -- It always fails Date: Thu, 10 Jul 2008 03:04:32 +0200 (CEST)
I refered to several articles here and there. I used uClibc-0.9.28.3 and patched it with the 2 files released in meansoffreedom:
(1) uClibc-0.9.28-or32-libc-support.bz2 (2) uClibc-0.9.28-or32-unified.bz2.
And then I run "make menuconfig" to modify something like this
TARGET_ARCH="or32" KERNEL_SOURCE="/orp/tmp/or1k/uclinux/uClinux-2.0.x" CROSS="or32-uclinux-" RUNTIME_PREFIX="/opt/$(TARGET_ARCH)-uclinux" DEVEL_PREFIX="/opt/$(TARGET_ARCH)-uclinux"
The above setting can be checked in .config file. Then I ran the following commands:
(1)# ln -s extra/Configs/Config.or32.uclinux Config (2)# make all install
But it stops with the following errors:
make[3]: Entering directory `/orp/tmp/uClibc-0.9.28.3/libc/misc/regex' "or32-uclinux-"gcc -Wall -Wstrict-prototypes -Wno-trigraphs -fno- strict-aliasing -fno-builtin -nostdinc -D_LIBC -I../../../include -I. - Os -funit-at-a-time -isystem /opt/or32-uclinux/lib/gcc/or32- uclinux/3.4.4/include -DNDEBUG -fPIC -c regex.c -o regex.o /tmp/cconHoRg.s: Assembler messages: /tmp/cconHoRg.s:3837: Error: operation combines symbols in different segments /tmp/cconHoRg.s:3846: Error: operation combines symbols in different segments /tmp/cconHoRg.s:3847: Error: operation combines symbols in different segments /tmp/cconHoRg.s:3848: Error: operation combines symbols in different segments /tmp/cconHoRg.s:3849: Error: operation combines symbols in different segments /tmp/cconHoRg.s:3857: Error: operation combines symbols in different segments /tmp/cconHoRg.s:3863: Error: operation combines symbols in different segments /tmp/cconHoRg.s:3864: Error: operation combines symbols in different segments /tmp/cconHoRg.s:3865: Error: operation combines symbols in different segments /tmp/cconHoRg.s:3866: Error: operation combines symbols in different segments /tmp/cconHoRg.s:5083: Error: operation combines symbols in different segments /tmp/cconHoRg.s:5084: Error: operation combines symbols in different segments make[3]: *** [regex.o] Error 1 make[3]: Leaving directory `/orp/tmp/uClibc-0.9.28.3/libc/misc/regex' make[2]: *** [_dir_regex] Error 2 make[2]: Leaving directory `/orp/tmp/uClibc-0.9.28.3/libc/misc' make[1]: *** [_dir_misc] Error 2 make[1]: Leaving directory `/orp/tmp/uClibc-0.9.28.3/libc' make: *** [_dir_libc] Error 2
I don't know what's happening and how to fix it. Would you please give me a hand? _______________________________________________
http://www.opencores.org/mailman/listinfo/openrisc
|
 |