Hi, Le 18/03/2012 06:51, Bernhard M. Wiedemann a écrit :
Hi,
I made progress on the arm5 side of things (to get openSUSE to run on my two openRDs)
I suppose it is this board: http://open-rd.org/
disassembling some of the non-working programs had shown earlier that there were floating point instructions while Debian's gcc produced function calls in those places. I tried to compile the kernel with floating-point emulation without effect.
Reading http://wiki.debian.org/ArmEabiPort I found mention of the __SOFTFP__ macro and that paradoxically it is not set by -mfloat-abi=softfp
checking with :| gcc -dM -E -x c -|grep SOFT I found that this is set on Debian, but not on openSUSE.
our gcc46.spec had in the armv5 section --with-float=softfp
which I changed to =soft for a local build (OBS does not let me branch a broken package). And it made gcc work finally for armv5 - yay!
so please apply this patch:
--- gcc46.spec (revision b6148fab8499be9d98ff39bdabb170ec) +++ gcc46.spec (working copy) @@ -1697,7 +1719,7 @@ %endif %if "%{TARGET_ARCH}" == "armv5tel" --with-arch=armv5te \ - --with-float=softfp \ + --with-float=soft \ --with-mode=arm \ --with-abi=aapcs-linux \ --disable-sjlj-exceptions \
Accroding to [0], "Specifying `soft' causes GCC to generate output containing library calls for floating-point operations. `softfp' allows the generation of code using hardware floating-point instructions, but still uses the soft-float calling conventions. `hard' allows generation of floating-point instructions and uses FPU-specific calling conventions." So, it seems your SoC does not have any hardware to compute floating point operations.
When I tried to build locally on ARM, I also hit another strange bug, that I only saw on Factory ARM: # (cd /tmp/ ; sudo id ; echo $?) 143
I have the same thing on my beagleboard xM (armv7l), but sudo id return nothing! It may come from a missing config file? If you try "sudo ls", it does not works. Isn't it? Guillaume [0]: http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org