Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] ARM OABI/EABI problem
@ 2009-12-09  7:39 peter.stosz at mentat.hu
  2009-12-09 13:42 ` Peter Korsgaard
  0 siblings, 1 reply; 3+ messages in thread
From: peter.stosz at mentat.hu @ 2009-12-09  7:39 UTC (permalink / raw)
  To: buildroot

Hi!

Please explain me, how to build complete OABI 'style' sytem to ARM 
(RM9200) target.

I try to compile a minimal Linux 2.6.27 with Busybox 1.15 system.
I must OABI, because I need Floating Point Emulator, but it depends on 
!AEABI || OABI_COMPAT

So, every config file I change from EABI to OABI, and the first make is 
done, the target can boot and start /fs.
But, when I try to customise uClibc (or only touch uClibc config file), I 
get the following error message:
/srv/buildroot-2009.11/output/staging/usr/bin/../lib/gcc/arm-linux-uclibcgnueabi/4.4.2/libgcc.a(_divdi3.o):(.ARM.exidx+0x0): 
undefined reference to `__aeabi_unwind_cpp_pr0'
(complete log below)

As you see (on Build option section) I leave BR2_GNU_TARGET_SUFFIX on the 
default "linux-uclibcgnueabi"
When I change it to "linux-uclibc", I get the following error: 

warning: working around missing syslimits.h
cp: stat 
?/srv/buildroot/output/staging/lib/gcc-lib/arm-linux-uclibc/4.4.2/include/syslimits.h? 
sikertelen: Nincs ilyen f?jl vagy k?nyvt?r  <-- No such file or directory
make: *** [/srv/buildroot/output/target/usr/bin/gcc] Error 1


Build environment:
Ubuntu 9.10 x64 (Hungarian)
bash, not dash
make as root
Buildroot 2009.11
2nd error message on BR daily snapshot (091205)



Peter


# make

Checking build system dependencies:
BUILDROOT_DL_DIR clean:                         Ok
CC clean:                                       Ok
CXX clean:                                      Ok
CPP clean:                                      Ok
CFLAGS clean:                                   Ok
INCLUDES clean:                                 Ok
CXXFLAGS clean:                                 Ok
which installed:                                Ok
sed works:                                      Ok (/bin/sed)
GNU make version '3.81':                        Ok
C compiler '/usr/bin/gcc'
C compiler version '4.4.1':                     Ok
C++ compiler '/usr/bin/g++'
C++ compiler version '4.4.1':                   Ok
awk installed:                                  Ok
bash installed:                                 Ok
bison installed:                                Ok
flex installed:                                 Ok
gettext installed:                              Ok
makeinfo installed:                             Ok
patch installed:                                Ok
Build system dependencies:                      Ok

rm -rf /srv/buildroot-2009.11/output/build/buildroot-config
mkdir -p /srv/buildroot-2009.11/output/build
cp -dpRf package/config/buildroot-config 
/srv/buildroot-2009.11/output/build/buildroot-config
/usr/bin/make -j1 -C 
/srv/buildroot-2009.11/output/toolchain/uClibc-0.9.30.1 \
                ARCH="arm" \
                PREFIX=/srv/buildroot-2009.11/output/staging \
                DEVEL_PREFIX=/usr/ \
                RUNTIME_PREFIX=/ \
                install_runtime install_dev
make[1]: Entering directory 
`/srv/buildroot-2009.11/output/toolchain/uClibc-0.9.30.1'
  LD libuClibc-0.9.30.1.so
/srv/buildroot-2009.11/output/staging/usr/bin/../lib/gcc/arm-linux-uclibcgnueabi/4.4.2/libgcc.a(_divdi3.o):(.ARM.exidx+0x0): 
undefined reference to `__aeabi_unwind_cpp_pr0'
collect2: ld returned 1 exit status
make[1]: *** [lib/libc.so] Error 1
make[1]: Leaving directory 
`/srv/buildroot-2009.11/output/toolchain/uClibc-0.9.30.1'
make: *** [/srv/buildroot-2009.11/output/staging/usr/lib/libc.a] Error 2



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20091209/3e3f9bfb/attachment-0001.htm>

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

* [Buildroot] ARM OABI/EABI problem
  2009-12-09  7:39 [Buildroot] ARM OABI/EABI problem peter.stosz at mentat.hu
@ 2009-12-09 13:42 ` Peter Korsgaard
  2009-12-09 15:12   ` Michael S. Zick
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Korsgaard @ 2009-12-09 13:42 UTC (permalink / raw)
  To: buildroot

>>>>> "peter" == peter stosz <peter.stosz@mentat.hu> writes:

Hi,

 peter> Please explain me, how to build complete OABI 'style' sytem to
 peter> ARM (RM9200) target.

 peter> I try to compile a minimal Linux 2.6.27 with Busybox 1.15
 peter> system.  I must OABI, because I need Floating Point Emulator,
 peter> but it depends on !AEABI || OABI_COMPAT

Really? Softfloat is a lot faster than kernel emulation.

 peter> As you see (on Build option section) I leave
 peter> BR2_GNU_TARGET_SUFFIX on the default "linux-uclibcgnueabi" When
 peter> I change it to "linux-uclibc", I get the following error:

You should use linux-uclibc for OABI.

 peter> warning: working around missing syslimits.h
 peter> cp: stat ?/srv/buildroot/output/staging/lib/gcc-lib/arm-linux-uclibc/4.4.2/
 peter> include/syslimits.h? sikertelen: Nincs ilyen f?jl vagy k?nyvt?r  <-- No such
 peter> file or directory
 peter> make: *** [/srv/buildroot/output/target/usr/bin/gcc] Error 1

Hmm, could you try with gcc 4.3.4? I've compiled OABI with 4.3.4 without
problems, but I've never tried 4.4.x.

Remember to run make clean after any toolchain changes.

 peter> Build environment:
 peter> Ubuntu 9.10 x64 (Hungarian)
 peter> bash, not dash
 peter> make as root

Don't do that! Buildroot is designed to work without root permissions,
and I give absolutely NO guarantee that we won't make a mistake and
accidently overwrite/delete something, especially if you use a git
snapshot.

 peter> Buildroot 2009.11
 peter> 2nd error message on BR daily snapshot (091205)

-- 
Bye, Peter Korsgaard

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

* [Buildroot] ARM OABI/EABI problem
  2009-12-09 13:42 ` Peter Korsgaard
@ 2009-12-09 15:12   ` Michael S. Zick
  0 siblings, 0 replies; 3+ messages in thread
From: Michael S. Zick @ 2009-12-09 15:12 UTC (permalink / raw)
  To: buildroot

On Wed December 9 2009, Peter Korsgaard wrote:
> >>>>> "peter" == peter stosz <peter.stosz@mentat.hu> writes:
> 
> Hi,
> 
>  peter> Please explain me, how to build complete OABI 'style' sytem to
>  peter> ARM (RM9200) target.
> 
>  peter> I try to compile a minimal Linux 2.6.27 with Busybox 1.15
>  peter> system.  I must OABI, because I need Floating Point Emulator,
>  peter> but it depends on !AEABI || OABI_COMPAT
> 
> Really? Softfloat is a lot faster than kernel emulation.
> 
>  peter> As you see (on Build option section) I leave
>  peter> BR2_GNU_TARGET_SUFFIX on the default "linux-uclibcgnueabi" When
>  peter> I change it to "linux-uclibc", I get the following error:
> 
> You should use linux-uclibc for OABI.
> 
>  peter> warning: working around missing syslimits.h
>  peter> cp: stat ?/srv/buildroot/output/staging/lib/gcc-lib/arm-linux-uclibc/4.4.2/
>  peter> include/syslimits.h? sikertelen: Nincs ilyen f?jl vagy k?nyvt?r  <-- No such
>  peter> file or directory
>  peter> make: *** [/srv/buildroot/output/target/usr/bin/gcc] Error 1
> 
> Hmm, could you try with gcc 4.3.4? I've compiled OABI with 4.3.4 without
> problems, but I've never tried 4.4.x.
> 
> Remember to run make clean after any toolchain changes.
> 
>  peter> Build environment:
>  peter> Ubuntu 9.10 x64 (Hungarian)
>  peter> bash, not dash
>  peter> make as root
>

Ah, that may be part of your problem, I did that (by mistake)
several times.

Make sure to change the entire tree back to owned as your own
user name, then *only* work under your own username!
chown -R usrname:usrname *
from the top of the build tree.

If using a GIT clone, you can also get things screwed up if
you do your updates (pull) as root - always do those as
your own user name.

*never* run any build system as "root" - -
All it takes is one typo in the wrong place and your entire
machines software installation might as well be in /dev/null

Mike 
> Don't do that! Buildroot is designed to work without root permissions,
> and I give absolutely NO guarantee that we won't make a mistake and
> accidently overwrite/delete something, especially if you use a git
> snapshot.
> 
>  peter> Buildroot 2009.11
>  peter> 2nd error message on BR daily snapshot (091205)
> 

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

end of thread, other threads:[~2009-12-09 15:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-09  7:39 [Buildroot] ARM OABI/EABI problem peter.stosz at mentat.hu
2009-12-09 13:42 ` Peter Korsgaard
2009-12-09 15:12   ` Michael S. Zick

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