Skip to contentSkip to conversation

cortex-a9 build failure at glibc

DISCUSSION RK Raggit 5 participants 23 messages Nov 27, 2009 – Jan 23, 2010

lore
Share & tools
lore

RK Raggit

author
#0 lore raw

hi folks,

a strange internal compiler error pops up when i am compiling glibc. This is my version -

PREFERRED_VERSION_glibc = "2.6.1"
PREFERRED_VERSION_glibc-initial = "2.6.1"
I see the same error when i change the version to 2.9. This is the error log -

****************************************************
ccache arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a9
-mfpu=neon -mfloat-abi=softfp ../sysdeps/unix/sysv/linux/mq_unlink.c -c
-std=gnu99 -fgnu89-inline -O2 -Wall -Winline -Wwrite-strings
-fexpensive-optimizations -fmerge-all-constants -Wstrict-prototypes
-fomit-frame-pointer -I../include
-I/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/glibc-2.6.1-r35.0/build-arm-angstrom-linux-gnueabi/rt -I/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/glibc-2.6.1-r35.0/build-arm-angstrom-linux-gnueabi -I../ports/sysdeps/arm/elf -I../ports/sysdeps/unix/sysv/linux/arm/eabi/nptl -I../ports/sysdeps/unix/sysv/linux/arm/eabi
-I../sysdeps/unix/sysv/linux/arm/eabi
-I../ports/sysdeps/unix/sysv/linux/arm/nptl
-I../ports/sysdeps/unix/sysv/linux/arm -I../sysdeps/unix/sysv/linux/arm
-I../ports/sysdeps/unix/sysv/linux -I../nptl/sysdeps/unix/sysv/linux
-I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman
-I../sysdeps/unix/inet -I../ports/sysdeps/unix/sysv
-I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv
-I../ports/sysdeps/unix/arm -I../ports/sysdeps/unix -I../nptl/sysdeps/unix
-I../sysdeps/unix -I../sysdeps/posix -I../ports/sysdeps/arm/eabi
-I../ports/sysdeps/arm/fpu -I../ports/sysdeps/arm/nptl
-I../ports/sysdeps/arm -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf
-I../sysdeps/generic -I../ports -I../nptl -I.. -I../libio -I. -nostdinc
-isystem
/home/raghu/opendistro/build/tmp/cross/armv7a/lib/gcc/arm-angstrom-linux-gnueabi/4.2.3/include
-isystem
/home/raghu/opendistro/build/tmp/cross/armv7a/lib/gcc/arm-angstrom-linux-gnueabi/4.2.3/include-fixed
-isystem
/home/raghu/opendistro/build/tmp/staging/armv7a-angstrom-linux-gnueabi/usr/include
-D_LIBC_REENTRANT -include ../include/libc-symbols.h -DNOT_IN_libc=1
-DIS_IN_librt=1 -o
/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/glibc-2.6.1-r35.0/build-arm-angstrom-linux-gnueabi/rt/mq_unlink.o -MD -MP -MF /home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/glibc-2.6.1-r35.0/build-arm-angstrom-linux-gnueabi/rt/mq_unlink.o.dt -MT /home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/glibc-2.6.1-r35.0/build-arm-angstrom-linux-gnueabi/rt/mq_unlink.o ../sysdeps/unix/sysv/linux/mq_unlink.c: In function 'mq_unlink':
../sysdeps/unix/sysv/linux/mq_unlink.c:50: error: could not split insn
(insn:TI 80 48 39 ../sysdeps/unix/sysv/linux/mq_unlink.c:43 (parallel [

            (set (reg/v:SI 4 r4 [orig:135 ret ] [135])
                (if_then_else:SI (ne (reg/v:SI 0 r0 [orig:133 ret.53 ]
[133])
                        (const_int -1 [0xffffffffffffffff]))
                    (neg:SI (reg/v:SI 0 r0 [orig:133 ret.53 ] [133]))
                    (const_int 13 [0xd])))
            (clobber (reg:CC 24 cc))
        ]) 311 {*ifcompare_neg_move} (nil)
    (expr_list:REG_DEAD (reg/v:SI 0 r0 [orig:133 ret.53 ] [133])
        (expr_list:REG_UNUSED (reg:CC 24 cc)
            (nil))))

../sysdeps/unix/sysv/linux/mq_unlink.c:50: internal compiler error: in
final_scan_insn, at final.c:2553
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html <http://gcc.gnu.org/bugs.html>> for
instructions.
make[2]: *** [/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/glibc-2.6.1-r35.0/build-arm-angstrom-linux-gnueabi/rt/mq_unlink.o] Error 1
******************************************************

glibc-initial seems to have built fine. I couldnt find any hints by googling.

Anyone seen something similar and could help out with some clues ?

Thanks
--RK

author
#1 lore raw

Resending mail as this doesnt seem to have reached the mailing list first time around ....

hi folks,

a strange internal compiler error pops up when i am compiling glibc. This is my version -

PREFERRED_VERSION_glibc = "2.6.1"
PREFERRED_VERSION_glibc-initial = "2.6.1"
I see the same error when i change the version to 2.9. This is the error log -

****************************************************
ccache arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a9
-mfpu=neon -mfloat-abi=softfp ../sysdeps/unix/sysv/linux/mq_unlink.c -c
-std=gnu99 -fgnu89-inline -O2 -Wall -Winline -Wwrite-strings
-fexpensive-optimizations -fmerge-all-constants -Wstrict-prototypes
-fomit-frame-pointer -I../include
-I/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/glibc-2.6.1-r35.0/build-arm-angstrom-linux-gnueabi/rt -I/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/glibc-2.6.1-r35.0/build-arm-angstrom-linux-gnueabi -I../ports/sysdeps/arm/elf -I../ports/sysdeps/unix/sysv/linux/arm/eabi/nptl -I../ports/sysdeps/unix/sysv/linux/arm/eabi
-I../sysdeps/unix/sysv/linux/arm/eabi
-I../ports/sysdeps/unix/sysv/linux/arm/nptl
-I../ports/sysdeps/unix/sysv/linux/arm -I../sysdeps/unix/sysv/linux/arm
-I../ports/sysdeps/unix/sysv/linux -I../nptl/sysdeps/unix/sysv/linux
-I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman
-I../sysdeps/unix/inet -I../ports/sysdeps/unix/sysv
-I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv
-I../ports/sysdeps/unix/arm -I../ports/sysdeps/unix -I../nptl/sysdeps/unix
-I../sysdeps/unix -I../sysdeps/posix -I../ports/sysdeps/arm/eabi
-I../ports/sysdeps/arm/fpu -I../ports/sysdeps/arm/nptl
-I../ports/sysdeps/arm -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf
-I../sysdeps/generic -I../ports -I../nptl -I.. -I../libio -I. -nostdinc
-isystem
/home/raghu/opendistro/build/tmp/cross/armv7a/lib/gcc/arm-angstrom-linux-gnueabi/4.2.3/include
-isystem
/home/raghu/opendistro/build/tmp/cross/armv7a/lib/gcc/arm-angstrom-linux-gnueabi/4.2.3/include-fixed
-isystem
/home/raghu/opendistro/build/tmp/staging/armv7a-angstrom-linux-gnueabi/usr/include
-D_LIBC_REENTRANT -include ../include/libc-symbols.h -DNOT_IN_libc=1
-DIS_IN_librt=1 -o
/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/glibc-2.6.1-r35.0/build-arm-angstrom-linux-gnueabi/rt/mq_unlink.o -MD -MP -MF /home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/glibc-2.6.1-r35.0/build-arm-angstrom-linux-gnueabi/rt/mq_unlink.o.dt -MT /home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/glibc-2.6.1-r35.0/build-arm-angstrom-linux-gnueabi/rt/mq_unlink.o ../sysdeps/unix/sysv/linux/mq_unlink.c: In function 'mq_unlink':
../sysdeps/unix/sysv/linux/mq_unlink.c:50: error: could not split insn
(insn:TI 80 48 39 ../sysdeps/unix/sysv/linux/mq_unlink.c:43 (parallel [

            (set (reg/v:SI 4 r4 [orig:135 ret ] [135])
                (if_then_else:SI (ne (reg/v:SI 0 r0 [orig:133 ret.53 ]
[133])
                        (const_int -1 [0xffffffffffffffff]))
                    (neg:SI (reg/v:SI 0 r0 [orig:133 ret.53 ] [133]))
                    (const_int 13 [0xd])))
            (clobber (reg:CC 24 cc))
        ]) 311 {*ifcompare_neg_move} (nil)
    (expr_list:REG_DEAD (reg/v:SI 0 r0 [orig:133 ret.53 ] [133])
        (expr_list:REG_UNUSED (reg:CC 24 cc)
            (nil))))

../sysdeps/unix/sysv/linux/mq_unlink.c:50: internal compiler error: in
final_scan_insn, at final.c:2553
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html <http://gcc.gnu.org/bugs.html>> for
instructions.
make[2]: *** [/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/glibc-2.6.1-r35.0/build-arm-angstrom-linux-gnueabi/rt/mq_unlink.o] Error 1
******************************************************

glibc-initial seems to have built fine. I couldnt find any hints by googling.

Anyone seen something similar and could help out with some clues ?

Thanks
--RK

#2 lore raw
Quoted 2 lines · RK Raggit

Resending mail as this doesnt seem to have reached the mailing list first time around ....

Actually it showed up 3 times...

Signature · 1 line
Denys
#4 lore raw
In reply to RK Raggit
Quoted 72 lines · RK Raggit

hi folks,

a strange internal compiler error pops up when i am compiling glibc. This is my version -

PREFERRED_VERSION_glibc                 = "2.6.1" PREFERRED_VERSION_glibc-initial         = "2.6.1"
I see the same error when i change the version to 2.9. This is the error log -

****************************************************
ccache arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a9

(quoted diff) +0 -23
-mfpu=neon -mfloat-abi=softfp ../sysdeps/unix/sysv/linux/mq_unlink.c -c
-std=gnu99 -fgnu89-inline -O2 -Wall -Winline -Wwrite-strings
-fexpensive-optimizations -fmerge-all-constants -Wstrict-prototypes
-fomit-frame-pointer    -I../include
-I/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/glibc-2.6.1-r35.0/build-arm-angstrom-linux-gnueabi/rt
-I/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/glibc-2.6.1-r35.0/build-arm-angstrom-linux-gnueabi
-I../ports/sysdeps/arm/elf -I../ports/sysdeps/unix/sysv/linux/arm/eabi/nptl
-I../ports/sysdeps/unix/sysv/linux/arm/eabi
-I../sysdeps/unix/sysv/linux/arm/eabi
-I../ports/sysdeps/unix/sysv/linux/arm/nptl
-I../ports/sysdeps/unix/sysv/linux/arm -I../sysdeps/unix/sysv/linux/arm
-I../ports/sysdeps/unix/sysv/linux -I../nptl/sysdeps/unix/sysv/linux
-I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman
-I../sysdeps/unix/inet -I../ports/sysdeps/unix/sysv
-I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv
-I../ports/sysdeps/unix/arm -I../ports/sysdeps/unix -I../nptl/sysdeps/unix
-I../sysdeps/unix -I../sysdeps/posix -I../ports/sysdeps/arm/eabi
-I../ports/sysdeps/arm/fpu -I../ports/sysdeps/arm/nptl
-I../ports/sysdeps/arm -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf
-I../sysdeps/generic -I../ports -I../nptl  -I.. -I../libio -I. -nostdinc
-isystem

/home/raghu/opendistro/build/tmp/cross/armv7a/lib/gcc/arm-angstrom-linux-gnueabi/4.2.3/include -isystem /home/raghu/opendistro/build/tmp/cross/armv7a/lib/gcc/arm-angstrom-linux-gnueabi/4.2.3/include-fixed -isystem /home/raghu/opendistro/build/tmp/staging/armv7a-angstrom-linux-gnueabi/usr/include

(quoted diff) +0 -2
-D_LIBC_REENTRANT -include ../include/libc-symbols.h   -DNOT_IN_libc=1
-DIS_IN_librt=1    -o

/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/glibc-2.6.1-r35.0/build-arm-angstrom-linux-gnueabi/rt/mq_unlink.o -MD -MP -MF /home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/glibc-2.6.1-r35.0/build-arm-angstrom-linux-gnueabi/rt/mq_unlink.o.dt -MT /home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/glibc-2.6.1-r35.0/build-arm-angstrom-linux-gnueabi/rt/mq_unlink.o ../sysdeps/unix/sysv/linux/mq_unlink.c: In function 'mq_unlink':
../sysdeps/unix/sysv/linux/mq_unlink.c:50: error: could not split insn
(insn:TI 80 48 39 ../sysdeps/unix/sysv/linux/mq_unlink.c:43 (parallel [
           (set (reg/v:SI 4 r4 [orig:135 ret ] [135])
               (if_then_else:SI (ne (reg/v:SI 0 r0 [orig:133 ret.53 ]
[133])
                       (const_int -1 [0xffffffffffffffff]))
                   (neg:SI (reg/v:SI 0 r0 [orig:133 ret.53 ] [133]))
                   (const_int 13 [0xd])))
           (clobber (reg:CC 24 cc))
       ]) 311 {*ifcompare_neg_move} (nil)
   (expr_list:REG_DEAD (reg/v:SI 0 r0 [orig:133 ret.53 ] [133])
       (expr_list:REG_UNUSED (reg:CC 24 cc)
           (nil))))
../sysdeps/unix/sysv/linux/mq_unlink.c:50: internal compiler error: in
final_scan_insn, at final.c:2553
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html <http://gcc.gnu.org/bugs.html>> for
instructions.
make[2]: *** [/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/glibc-2.6.1-r35.0/build-arm-angstrom-linux-gnueabi/rt/mq_unlink.o] Error 1
******************************************************

Quoted 2 lines

glibc-initial seems to have built fine. I couldnt find any hints by googling.

glibc-initial does not compile much of code.

Quoted 3 lines

Anyone seen something similar and could help out with some clues ?

This is gcc ICE. You could preprocess the file and provide commandline options and the preprocessed file.
Secondly I also noticed that you are using gcc 4.2. It would be interesting to know if the same ICE happens
with gcc 4.4. Btw. you would be better of using gcc 4.4 for new arm processors like cortex a9

-Khem

author
#5 lore raw
Quoted 8 lines

This is gcc ICE. You could preprocess the file and provide commandline options and the preprocessed file.
Secondly I also noticed that you are using gcc 4.2. It would be interesting to know if the same ICE happens
with gcc 4.4. Btw. you would be better of using gcc 4.4 for new arm processors like cortex a9

Thanks Khem. I moved to gcc4.4 - it chugged past glibc without problem. But further down i have a new error with util-linux-ng package. Something like this -

***************
make[2]: Entering directory `/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/util-linux-ng-2.16-r8.3/util-linux-ng-2.16/login-utils' ccache arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a9
-mfpu=neon -mfloat-abi=softfp -DHAVE_CONFIG_H -I. -I.. -include ../config.h
-I../include -DLOCALEDIR=\"/usr/share/locale\" -isystem/home/raghu/opendistro/build/tmp/staging/armv7a-angstrom-linux-gnueabi/usr/include
-fsigned-char
-isystem/home/raghu/opendistro/build/tmp/staging/armv7a-angstrom-linux-gnueabi/usr/include -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3
-MT login.o -MD -MP -MF .deps/login.Tpo -c -o login.o login.c
mv -f .deps/login.Tpo .deps/login.Po
ccache arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a9
-mfpu=neon -mfloat-abi=softfp -DHAVE_CONFIG_H -I. -I.. -include ../config.h
-I../include -DLOCALEDIR=\"/usr/share/locale\" -isystem/home/raghu/opendistro/build/tmp/staging/armv7a-angstrom-linux-gnueabi/usr/include
-fsigned-char
-isystem/home/raghu/opendistro/build/tmp/staging/armv7a-angstrom-linux-gnueabi/usr/include -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3
-MT setproctitle.o -MD -MP -MF .deps/setproctitle.Tpo -c -o setproctitle.o
test -f '../lib/setproctitle.c' || echo './'../lib/setproctitle.c
mv -f .deps/setproctitle.Tpo .deps/setproctitle.Po
ccache arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a9
-mfpu=neon -mfloat-abi=softfp -DHAVE_CONFIG_H -I. -I.. -include ../config.h
-I../include -DLOCALEDIR=\"/usr/share/locale\" -isystem/home/raghu/opendistro/build/tmp/staging/armv7a-angstrom-linux-gnueabi/usr/include
-fsigned-char
-isystem/home/raghu/opendistro/build/tmp/staging/armv7a-angstrom-linux-gnueabi/usr/include -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3
-MT checktty.o -MD -MP -MF .deps/checktty.Tpo -c -o checktty.o checktty.c
/tmp/ccQfmzYl.s: Assembler messages:
/tmp/ccQfmzYl.s:9352: Error: offset out of range
/tmp/ccQfmzYl.s:9361: Error: offset out of range
/tmp/ccQfmzYl.s:9700: Error: offset out of range
/tmp/ccQfmzYl.s:9702: Error: offset out of range
make[2]: *** [checktty.o] Error 1
make[2]: Leaving directory `/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/util-linux-ng-2.16-r8.3/util-linux-ng-2.16/login-utils'
******************

Anyone seen something like this ? Is it still due to an improperly built toolchain ?

--RK

#6 lore raw
Quoted 52 lines · RK Raggit
Quoted 8 lines

This is gcc ICE. You could preprocess the file and provide commandline options and the preprocessed file.
Secondly I also noticed that you are using gcc 4.2. It would be interesting to know if the same ICE happens
with gcc 4.4. Btw. you would be better of using gcc 4.4 for new arm processors like cortex a9

Thanks Khem. I moved to gcc4.4 - it chugged past glibc without problem. But further down i have a new error with util-linux-ng package. Something like this -

***************
make[2]: Entering directory `/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/util-linux-ng-2.16-r8.3/util-linux-ng-2.16/login-utils' ccache arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a9

(quoted diff) +0 -7
-mfpu=neon -mfloat-abi=softfp -DHAVE_CONFIG_H -I. -I..  -include ../config.h
-I../include -DLOCALEDIR=\"/usr/share/locale\"
-isystem/home/raghu/opendistro/build/tmp/staging/armv7a-angstrom-linux-gnueabi/usr/include
-fsigned-char
-isystem/home/raghu/opendistro/build/tmp/staging/armv7a-angstrom-linux-gnueabi/usr/include
-fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3
-MT login.o -MD -MP -MF .deps/login.Tpo -c -o login.o login.c

mv -f .deps/login.Tpo .deps/login.Po
ccache arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a9

(quoted diff) +0 -7
-mfpu=neon -mfloat-abi=softfp -DHAVE_CONFIG_H -I. -I..  -include ../config.h
-I../include -DLOCALEDIR=\"/usr/share/locale\"
-isystem/home/raghu/opendistro/build/tmp/staging/armv7a-angstrom-linux-gnueabi/usr/include
-fsigned-char
-isystem/home/raghu/opendistro/build/tmp/staging/armv7a-angstrom-linux-gnueabi/usr/include
-fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3
-MT setproctitle.o -MD -MP -MF .deps/setproctitle.Tpo -c -o setproctitle.o

test -f '../lib/setproctitle.c' || echo './'../lib/setproctitle.c mv -f .deps/setproctitle.Tpo .deps/setproctitle.Po
ccache arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a9

(quoted diff) +0 -7
-mfpu=neon -mfloat-abi=softfp -DHAVE_CONFIG_H -I. -I..  -include ../config.h
-I../include -DLOCALEDIR=\"/usr/share/locale\"
-isystem/home/raghu/opendistro/build/tmp/staging/armv7a-angstrom-linux-gnueabi/usr/include
-fsigned-char
-isystem/home/raghu/opendistro/build/tmp/staging/armv7a-angstrom-linux-gnueabi/usr/include
-fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb3
-MT checktty.o -MD -MP -MF .deps/checktty.Tpo -c -o checktty.o checktty.c

/tmp/ccQfmzYl.s: Assembler messages:
/tmp/ccQfmzYl.s:9352: Error: offset out of range
/tmp/ccQfmzYl.s:9361: Error: offset out of range
/tmp/ccQfmzYl.s:9700: Error: offset out of range
/tmp/ccQfmzYl.s:9702: Error: offset out of range
make[2]: *** [checktty.o] Error 1
make[2]: Leaving directory `/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/util-linux-ng-2.16-r8.3/util-linux-ng-2.16/login-utils'
******************

Quoted 2 lines

Anyone seen something like this ? Is it still due to an improperly built toolchain ?

Could you provide preprocessed output of
checktty.c file ?

Quoted 7 lines

--RK
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

author
#7 lore raw
Quoted 6 lines

Could you provide preprocessed output of
checktty.c file ?

pls find attached (checktty.i). just trying to recompile the file from the command line gave me a gcc error "gcc: error trying to exec 'cc1': execvp:
No such file or directory", so i had to hack the login-utils makefile to get this output. here's the patch -

******
---
/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/util-linux-ng-2.16-r8.3/util-linux-ng-2.16/login-utils/Makefile.orig

2009-12-09 17:17:49.000000000 +0530
+++
/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/util-linux-ng-2.16-r8.3/util-linux-ng-2.16/login-utils/Makefile
2009-12-09 17:18:05.000000000 +0530

@@ -648,7 +648,7 @@
include ./$(DEPDIR)/wall.Po

.c.o:
- $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -E $<

        mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po

# source='$<' object='$@' libtool=no \
# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
******

Thanks

--RK

#8 lore raw
Quoted 29 lines · RK Raggit
Quoted 6 lines

Could you provide preprocessed output of
checktty.c file ?

pls find attached (checktty.i). just trying to recompile the file from the command line gave me a gcc error "gcc: error trying to exec 'cc1': execvp:
No such file or directory", so i had to hack the login-utils makefile to get this output. here's the patch -

******
---
/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/util-linux-ng-2.16-r8.3/util-linux-ng-2.16/login-utils/Makefile.orig

2009-12-09 17:17:49.000000000 +0530
+++
/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/util-linux-ng-2.16-r8.3/util-linux-ng-2.16/login-utils/Makefile
2009-12-09 17:18:05.000000000 +0530
(quoted diff) +0 -0
@@ -648,7 +648,7 @@

 include ./$(DEPDIR)/wall.Po

 .c.o:
-       $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+       $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -E $< mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
 #      source='$<' object='$@' libtool=no \
 #      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
******

Quoted 1 line

Thanks

What version are you using for binutils ? I could not reproduce the issue with 2.20

Quoted 9 lines

--RK

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

author
#9 lore raw
Quoted 3 lines

What version are you using for binutils ? I could not reproduce the issue with 2.20

I was using 2.18.50.0.7. I have just started a fresh build with the following line-up -

***********

PREFERRED_VERSION_binutils               = "2.20"
PREFERRED_VERSION_binutils-cross         = "2.20"
PREFERRED_VERSION_binutils-cross-sdk     = "2.20"
PREFERRED_VERSION_gcc                    = "4.4.1"
PREFERRED_VERSION_gcc-cross              = "4.4.1"
PREFERRED_VERSION_gcc-cross-initial      = "4.4.1"

PREFERRED_VERSION_gcc-cross-intermediate = "4.4.1"
PREFERRED_VERSION_glibc = "2.6.1"
PREFERRED_VERSION_glibc-initial = "2.6.1"
**********

Will let you know about my progress.

Thanks

--RK

#10 lore raw
Quoted 7 lines · RK Raggit
Quoted 3 lines

What version are you using for binutils ? I could not reproduce the issue with 2.20

I was using 2.18.50.0.7. I have just started a fresh build with the following line-up -

Quoted 11 lines

***********
PREFERRED_VERSION_binutils               = "2.20" PREFERRED_VERSION_binutils-cross         = "2.20" PREFERRED_VERSION_binutils-cross-sdk     = "2.20" PREFERRED_VERSION_gcc                    = "4.4.1" PREFERRED_VERSION_gcc-cross              = "4.4.1" PREFERRED_VERSION_gcc-cross-initial      = "4.4.1" PREFERRED_VERSION_gcc-cross-intermediate = "4.4.1" PREFERRED_VERSION_glibc                 = "2.6.1" PREFERRED_VERSION_glibc-initial         = "2.6.1"
**********

As I see you are targetting cortex-a9 I would suggest that you use later version of
glibc or even better use eglibc 2.10 or 2.11

Quoted 11 lines

Will let you know about my progress.

Thanks

--RK
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

author
#11 lore raw

As I see you are targetting cortex-a9 I would suggest that you use

Quoted 3 lines

later version of
glibc or even better use eglibc 2.10 or 2.11

one silly question ... how do i make my build skip the glibc package and pick the eglibc 2.11 instead ?

--RK

#12 lore raw
Quoted 7 lines · RK Raggit

 As I see you are targetting cortex-a9 I would suggest that you use

Quoted 3 lines

later version of
glibc or even better use eglibc 2.10 or 2.11

one silly question ... how do i make my build skip the glibc package and pick the eglibc 2.11 instead ?

if you use minimal or micro distro then eglibc is default libc for others you can add

LIBC="eglibc"

IIRC angstrom needs ANGSTROMLIBC = "eglibc"

for choosing 2.11 you can add

PREFERRED_VERSION_eglibc = "2.11"
PREFERRED_VERSION_eglibc-initial = "2.11"

to your local.conf

Quoted 7 lines

--RK
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

author
#13 lore raw

Sorry for the delay in replying. I was on vacation.

if you use minimal or micro distro then eglibc is default libc for

Quoted 4 lines

others you can add

LIBC="eglibc"

Quoted 9 lines

IIRC angstrom needs ANGSTROMLIBC = "eglibc"

for choosing 2.11 you can add

PREFERRED_VERSION_eglibc = "2.11"
PREFERRED_VERSION_eglibc-initial = "2.11"

to your local.conf

This is my lineup now -

PREFERRED_VERSION_binutils               = "2.20"
PREFERRED_VERSION_binutils-cross         = "2.20"
PREFERRED_VERSION_binutils-cross-sdk     = "2.20"
PREFERRED_VERSION_gcc                    = "4.4.1"
PREFERRED_VERSION_gcc-cross              = "4.4.1"
PREFERRED_VERSION_gcc-cross-initial      = "4.4.1"
PREFERRED_VERSION_gcc-cross-intermediate = "4.4.1"
PREFERRED_VERSION_glibc                 = "2.9"
PREFERRED_VERSION_glibc-initial         = "2.9"
PREFERRED_VERSION_eglibc                = "2.10"
PREFERRED_VERSION_eglibc-initial        = "2.10"
ANGSTROMLIBC                            = "eglibc"

I had started with eglibc2.11 but some failure occured in the build (i dont
quite remember the error). Based on the above lineup my build fails while packaging eglibc. This is the log -

----------------------------------------------------------------------
NOTE: Running task 897 of 3319 (ID: 195, /home/raghu/opendistro/openembedded/recipes/eglibc/eglibc_2.10.bb,
do_package)
+ export localstatedir=/var
...
...
...
+ cd /home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/eglibc-2.10-r7.1/build-arm-angstrom-linux-gnueabi
+ do_prep_locale_tree
+ treedir=/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/eglibc-2.10-r7.1/locale-tree
...
...
...
/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/eglibc-2.10-r7.1/temp/run.do_prep_locale_tree.23041:
line 819: [:
/home/raghu/opendistro/build/tmp/cross/armv7a/arm-angstrom-linux-gnueabi/lib/libgcc_s.so:
binary operator expected
...
...

NOTE: Task failed: localedef returned an error (command was PATH="/home/raghu/opendistro/build/tmp/staging/i686-linux/usr/bin/armv7a-angstrom-linux-gnueabi:/home/raghu/opendistro/build/tmp/staging/i686-linux/usr/bin/armv7a-angstrom-linux-gnueabi:/home/raghu/opendistro/build/tmp/staging/i686-linux/usr/sbin:/home/raghu/opendistro/build/tmp/staging/i686-linux/usr/bin:/home/raghu/opendistro/build/tmp/cross/armv7a/bin:/home/raghu/opendistro/build/tmp/staging/i686-linux/sbin:/home/raghu/opendistro/build/tmp/staging/i686-linux/bin:/home/raghu/opendistro/bitbake-1.8.12/bin:/home/raghu/sg/ARM/FastModelTools_5.0/ModelDebugger_5.0/bin:/home/raghu/sg/ARM/FastModelTools_5.0/bin:/home/raghu/sg/ARM/FastModelTools_5.0/ModelDebugger_5.0/bin:/home/raghu/sg/ARM/FastModelTools_5.0/bin:/distro/cortex/STLinux-2.3/devkit/arm/bin/:/usr/kerberos/bin:/usr/lib/ccache:/home/raghu/sg/ARM/FastModelTools_5.0/ModelDebugger_5.0/bin:/home/raghu/sg/ARM/FastModelTools_5.0/bin:/home/raghu/sg/ARM/FastModelTools_5.0/ModelDebugger_5.0/bin:/home/raghu/sg/ARM/FastModelTools_5.0/bin:/distro/cortex/STLinux-2.3/devkit/arm/bin/:/usr/local/bin:/bin:/usr/bin:/home/raghu/bin" I18NPATH="/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/eglibc-2.10-r7.1/locale-tree//usr/share/i18n"
qemu-arm -s 1048576 -r 2.6.16 -L
/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/eglibc-2.10-r7.1/locale-tree
-E
LD_LIBRARY_PATH=/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/eglibc-2.10-r7.1/locale-tree/lib
/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/eglibc-2.10-r7.1/locale-tree/bin/localedef
--force --old-style --no-archive
--prefix=/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/eglibc-2.10-r7.1/locale-tree
--inputfile=/usr/share/i18n/locales/es_NI --charmap=UTF-8 es_NI).
ERROR: TaskFailed event exception, aborting
ERROR: Build of /home/raghu/opendistro/openembedded/recipes/eglibc/
eglibc_2.10.bb do_package failed
ERROR: Task 195 (/home/raghu/opendistro/openembedded/recipes/eglibc/
eglibc_2.10.bb, do_package) failed
NOTE: Tasks Summary: Attempted 896 tasks of which 371 didn't need to be
rerun and 1 failed.
---------------------------------------------------------------------------------

--RK

#14 lore raw
Quoted 57 lines · RK Raggit

Sorry for the delay in replying. I was on vacation.

 if you use minimal or micro distro then eglibc is default libc for

Quoted 4 lines

others you can add

LIBC="eglibc"

Quoted 9 lines

IIRC angstrom needs ANGSTROMLIBC = "eglibc"

for choosing 2.11 you can add

PREFERRED_VERSION_eglibc = "2.11"
PREFERRED_VERSION_eglibc-initial = "2.11"

to your local.conf

This is my lineup now -
PREFERRED_VERSION_binutils               = "2.20" PREFERRED_VERSION_binutils-cross         = "2.20" PREFERRED_VERSION_binutils-cross-sdk     = "2.20" PREFERRED_VERSION_gcc                    = "4.4.1" PREFERRED_VERSION_gcc-cross              = "4.4.1" PREFERRED_VERSION_gcc-cross-initial      = "4.4.1" PREFERRED_VERSION_gcc-cross-intermediate = "4.4.1" PREFERRED_VERSION_glibc                 = "2.9" PREFERRED_VERSION_glibc-initial         = "2.9" PREFERRED_VERSION_eglibc                = "2.10" PREFERRED_VERSION_eglibc-initial        = "2.10"
ANGSTROMLIBC                            = "eglibc"
 I had started with eglibc2.11 but some failure occured in the build (i dont quite remember the error). Based on the above lineup my build fails while packaging eglibc. This is the log -

----------------------------------------------------------------------
NOTE: Running task 897 of 3319 (ID: 195, /home/raghu/opendistro/openembedded/recipes/eglibc/eglibc_2.10.bb,
do_package)
+ export localstatedir=/var
...
...
...
+ cd /home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/eglibc-2.10-r7.1/build-arm-angstrom-linux-gnueabi
+ do_prep_locale_tree
+ treedir=/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/eglibc-2.10-r7.1/locale-tree
...
...
...
/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/eglibc-2.10-r7.1/temp/run.do_prep_locale_tree.23041:
line 819: [:
/home/raghu/opendistro/build/tmp/cross/armv7a/arm-angstrom-linux-gnueabi/lib/libgcc_s.so:
binary operator expected
...
...

Quoted 12 lines

NOTE: Task failed: localedef returned an error (command was PATH="/home/raghu/opendistro/build/tmp/staging/i686-linux/usr/bin/armv7a-angstrom-linux-gnueabi:/home/raghu/opendistro/build/tmp/staging/i686-linux/usr/bin/armv7a-angstrom-linux-gnueabi:/home/raghu/opendistro/build/tmp/staging/i686-linux/usr/sbin:/home/raghu/opendistro/build/tmp/staging/i686-linux/usr/bin:/home/raghu/opendistro/build/tmp/cross/armv7a/bin:/home/raghu/opendistro/build/tmp/staging/i686-linux/sbin:/home/raghu/opendistro/build/tmp/staging/i686-linux/bin:/home/raghu/opendistro/bitbake-1.8.12/bin:/home/raghu/sg/ARM/FastModelTools_5.0/ModelDebugger_5.0/bin:/home/raghu/sg/ARM/FastModelTools_5.0/bin:/home/raghu/sg/ARM/FastModelTools_5.0/ModelDebugger_5.0/bin:/home/raghu/sg/ARM/FastModelTools_5.0/bin:/distro/cortex/STLinux-2.3/devkit/arm/bin/:/usr/kerberos/bin:/usr/lib/ccache:/home/raghu/sg/ARM/FastModelTools_5.0/ModelDebugger_5.0/bin:/home/raghu/sg/ARM/FastModelTools_5.0/bin:/home/raghu/sg/ARM/FastModelTools_5.0/ModelDebugger_5.0/bin:/home/raghu/sg/ARM/FastModelTools_5.0/bin:/distro/cortex/STLinux-2.3/devkit/arm/bin/:/usr/local/bin:/bin:/usr/bin:/home/raghu/bin" I18NPATH="/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/eglibc-2.10-r7.1/locale-tree//usr/share/i18n"
qemu-arm  -s 1048576 -r 2.6.16 -L
/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/eglibc-2.10-r7.1/locale-tree
-E
LD_LIBRARY_PATH=/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/eglibc-2.10-r7.1/locale-tree/lib
/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/eglibc-2.10-r7.1/locale-tree/bin/localedef
--force --old-style --no-archive
--prefix=/home/raghu/opendistro/build/tmp/work/armv7a-angstrom-linux-gnueabi/eglibc-2.10-r7.1/locale-tree
--inputfile=/usr/share/i18n/locales/es_NI --charmap=UTF-8 es_NI).
ERROR: TaskFailed event exception, aborting

It seems that qemu is aborting while running localedef. Unless you really need locales I would recommend to disable
the locale generation. Add ENABLE_BINARY_LOCALE_GENERATION = "0"
to your local.conf and rebuild eglibc.

-Khem

author
#15 lore raw
Quoted 9 lines

It seems that qemu is aborting while running localedef. Unless you really need locales I would recommend to disable
the locale generation. Add ENABLE_BINARY_LOCALE_GENERATION = "0"
to your local.conf and rebuild eglibc.

-Khem

hi, i have some progress to report. The build completed and generated a vmlinux image and a file-system tarball. I created a ramdisk (initrd) and tried to boot the kernel on my cortex A9 hardware. I notice that the kernel boots till the point where it frees init memory, after which it hangs. Here is a short kernel boot log -

------------------8<8<8<8<8<8<-----------------------
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
i2c /dev entries driver
Serial: AMBA PL011 UART driver
uart0_bus: ttyAMA0 at MMIO 0x80120000 mem 0xc8812000 (irq = 43) is a AMBA/PL011
uart1_bus: ttyAMA1 at MMIO 0x80121000 mem 0xc8814000 (irq = 51) is a AMBA/PL011
uart2_bus: ttyAMA2 at MMIO 0x80007000 mem 0xc8816000 (irq = 58) is a AMBA/PL011
console [ttyAMA2] enabled
brd: module loaded
mice: PS/2 mouse device common for all mice
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 92K
ø¾€ÿ ------------------------8<8<8<8<8<-------------------

If i pass a statically linked hello application to init (init=hello), it works.

My toolchain lineup remains same, as published in my previous mail. Is eglibc somehow messed up ? Any pointers ?

Thanks
--RK

#16 lore raw
Quoted 38 lines · RK Raggit
Quoted 9 lines

It seems that qemu is aborting while running localedef. Unless you really need locales I would recommend to disable
the locale generation. Add ENABLE_BINARY_LOCALE_GENERATION = "0"
to your local.conf and rebuild eglibc.

-Khem

hi, i have some progress to report. The build completed and generated a vmlinux image and a file-system tarball. I created a ramdisk (initrd) and tried to boot the kernel on my cortex A9 hardware. I notice that the kernel boots till the point where it frees init memory, after which it hangs. Here is a short kernel boot log -

------------------8<8<8<8<8<8<-----------------------
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
i2c /dev entries driver
Serial: AMBA PL011 UART driver
uart0_bus: ttyAMA0 at MMIO 0x80120000 mem 0xc8812000 (irq = 43) is a AMBA/PL011
uart1_bus: ttyAMA1 at MMIO 0x80121000 mem 0xc8814000 (irq = 51) is a AMBA/PL011
uart2_bus: ttyAMA2 at MMIO 0x80007000 mem 0xc8816000 (irq = 58) is a AMBA/PL011
console [ttyAMA2] enabled
brd: module loaded
mice: PS/2 mouse device common for all mice
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 92K
ø¾€ÿ ------------------------8<8<8<8<8<-------------------

Quoted 5 lines

If i pass a statically linked hello application to init (init=hello), it works.

My toolchain lineup remains same, as published in my previous mail. Is eglibc somehow messed up ? Any pointers ?

you can boot into static dash and then debug the dynamic loading problem. or you could build kernel with debug support and enable debug user_debug=-1 on kernel commandline if there are any crashes it should print them.

Quoted 8 lines

Thanks
--RK
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

author
#17 lore raw
Quoted 5 lines

you can boot into static dash and then debug the dynamic loading problem. or you could build kernel with debug support and enable debug user_debug=-1 on kernel commandline if there are any crashes it should print them.

i enabled user_debug and see this on console -

VFS: Mounted root (ext2 filesystem).
Freeing init memory: 92K
|üxsh (1): undefined instruction: pc=4000673c

Code: 1a000002 e594e060 e35e0000 1a0001d0 (ed5b0b23)

I see the same error when init=linuxrc and when init=/bin/sh. It looks like some shared library linked to busybox might be causing the problem. I need to debug further.

--RK

#18 lore raw
Quoted 7 lines · RK Raggit

VFS: Mounted root (ext2 filesystem).
Freeing init memory: 92K
|üxsh (1): undefined instruction: pc=4000673c

Code: 1a000002 e594e060 e35e0000 1a0001d0 (ed5b0b23)

I see the same error when init=linuxrc and when init=/bin/sh. It looks like some shared library linked to busybox might be causing the problem. I need to debug further.

That instruction is "ldcl 11, cr0, [fp, #-140]", which looks like a VFP double precision instruction. Do you have floating point hardware on your platform, and is it enabled in the kernel?

p.

author
#19 lore raw
Quoted 7 lines

That instruction is "ldcl 11, cr0, [fp, #-140]", which looks like a VFP double precision instruction. Do you have floating point hardware on your platform, and is it enabled in the kernel?

p.

You are right Phil. I have a Neon FPU but it was disabled in the kernel configuration.I am able to boot and get a shell now.

Just for my knowledge, how did you translate "pc=4000673c" ,which could be an address in a shared library, to an exact instruction like "ldcl 11, cr0, [fp, #-140]" ?

Thanks
--RK

#20 lore raw
Quoted 2 lines · RK Raggit

You are right Phil. I have a Neon FPU but it was disabled in the kernel configuration.I am able to boot and get a shell now.

Very good!

Quoted 3 lines

Just for my knowledge, how did you translate "pc=4000673c" ,which could be an address in a shared library, to an exact instruction like "ldcl 11, cr0, [fp, #-140]" ?

You're right, 0x4000673c does look like a shared library address, and is not particularly illuminating unless you have access to the binary for the library in question (which, obviously, I don't in this case).

However, the next line of your crash dump contains the opcode sequence around that address:

Code: 1a000002 e594e060 e35e0000 1a0001d0 (ed5b0b23)

The instruction in brackets is the actual one at which the fault occurred. So, armed with that opcode 0xed5b0b23, you can then just feed it into the disassembler and see what happens.

The GNU tools don't actually have a direct equivalent to the ADS "disass" program, so the easiest way to convert the opcode into an instruction is along the lines of:

$ arm-linux-as
.word 0xed5b0b23
^D
$ arm-linux-objdump -d a.out

p.

author
#21 lore raw
Quoted 14 lines

You're right, 0x4000673c does look like a shared library address, and is not particularly illuminating unless you have access to the binary for the library in question (which, obviously, I don't in this case).

However, the next line of your crash dump contains the opcode sequence around that address:

Code: 1a000002 e594e060 e35e0000 1a0001d0 (ed5b0b23)

The instruction in brackets is the actual one at which the fault occurred. So, armed with that opcode 0xed5b0b23, you can then just feed it into the disassembler and see what happens.

Quoted 10 lines

The GNU tools don't actually have a direct equivalent to the ADS "disass" program, so the easiest way to convert the opcode into an instruction is along the lines of:

$ arm-linux-as
.word 0xed5b0b23
^D
$ arm-linux-objdump -d a.out

Great. got it !

Thanks Khem and Phil for your great support.

--RK

#22 lore raw
In reply to RK Raggit
Quoted 11 lines · RK Raggit
Quoted 7 lines

That instruction is "ldcl 11, cr0, [fp, #-140]", which looks like a VFP double precision instruction. Do you have floating point hardware on your platform, and is it enabled in the kernel?

p.

You are right Phil. I have a Neon FPU but it was disabled in the kernel configuration.I am able to boot and get a shell now.

Fwiw, I now have a console image building for cortex-a9 using glibc instead of eglibc with the following conf :-

gcc -> 4.4.2
binutils -> 2.20
glibc ->2.10.1

I've pushed it here if anyone is interested :-

http://git.slimlogic.co.uk/cgi-bin/cgit.cgi/oe.git/log/?h=omap4

Liam