2003-06-10 10:19:20

by jairam nair

[permalink] [raw]
Subject: Problem while Crosscompiling Ksymoops

Hi,
I am trying to cross compile ksymoops-2.4.9 for Strong ARM.
But i
am getting a segmentation Fault. The error messages is as below.
Can anybody tell me what should be given for DEF_MAP, since in
the
target machine there is no System.map file.

Can anybody give some idea on this.

Thanks and regards
Jairam

arm-linux-gcc -Dlinux -Wall -Wno-conversion -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes
-DINSTALL_PREFIX="\"/skiff/local\"" -DCROSS="\"arm-linux-\""
-DDEF_KSYMS=\"/proc/ksyms\" -DDEF_LSMOD=\"/proc/modules\"
-DDEF_OBJECTS=\"/lib/modules/*r/\"
-DDEF_MAP=\"/usr/src/linux/System.map\" -DDEF_ARCH=\"arm\"
-I/skiff/local/include -c -o ksymoops.o ksymoops.c
arm-linux-gcc -Dlinux -Wall -Wno-conversion -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes
-DINSTALL_PREFIX="\"/skiff/local\"" -DCROSS="\"arm-linux-\""
-DDEF_KSYMS=\"/proc/ksyms\" -DDEF_LSMOD=\"/proc/modules\"
-DDEF_OBJECTS=\"/lib/modules/*r/\"
-DDEF_MAP=\"/usr/src/linux/System.map\" -DDEF_ARCH=\"arm\"
-I/skiff/local/include -c -o io.o io.c
arm-linux-gcc -Dlinux -Wall -Wno-conversion -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes
-DINSTALL_PREFIX="\"/skiff/local\"" -DCROSS="\"arm-linux-\""
-DDEF_KSYMS=\"/proc/ksyms\" -DDEF_LSMOD=\"/proc/modules\"
-DDEF_OBJECTS=\"/lib/modules/*r/\"
-DDEF_MAP=\"/usr/src/linux/System.map\" -DDEF_ARCH=\"arm\"
-I/skiff/local/include -c -o ksyms.o ksyms.c
arm-linux-gcc -Dlinux -Wall -Wno-conversion -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes
-DINSTALL_PREFIX="\"/skiff/local\"" -DCROSS="\"arm-linux-\""
-DDEF_KSYMS=\"/proc/ksyms\" -DDEF_LSMOD=\"/proc/modules\"
-DDEF_OBJECTS=\"/lib/modules/*r/\"
-DDEF_MAP=\"/usr/src/linux/System.map\" -DDEF_ARCH=\"arm\"
-I/skiff/local/include -c -o map.o map.c
arm-linux-gcc -Dlinux -Wall -Wno-conversion -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes
-DINSTALL_PREFIX="\"/skiff/local\"" -DCROSS="\"arm-linux-\""
-DDEF_KSYMS=\"/proc/ksyms\" -DDEF_LSMOD=\"/proc/modules\"
-DDEF_OBJECTS=\"/lib/modules/*r/\"
-DDEF_MAP=\"/usr/src/linux/System.map\" -DDEF_ARCH=\"arm\"
-I/skiff/local/include -c -o misc.o misc.c
arm-linux-gcc -Dlinux -Wall -Wno-conversion -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes
-DINSTALL_PREFIX="\"/skiff/local\"" -DCROSS="\"arm-linux-\""
-DDEF_KSYMS=\"/proc/ksyms\" -DDEF_LSMOD=\"/proc/modules\"
-DDEF_OBJECTS=\"/lib/modules/*r/\"
-DDEF_MAP=\"/usr/src/linux/System.map\" -DDEF_ARCH=\"arm\"
-I/skiff/local/include -c -o object.o object.c
arm-linux-gcc -Dlinux -Wall -Wno-conversion -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes
-DINSTALL_PREFIX="\"/skiff/local\"" -DCROSS="\"arm-linux-\""
-DDEF_KSYMS=\"/proc/ksyms\" -DDEF_LSMOD=\"/proc/modules\"
-DDEF_OBJECTS=\"/lib/modules/*r/\"
-DDEF_MAP=\"/usr/src/linux/System.map\" -DDEF_ARCH=\"arm\"
-I/skiff/local/include -c -o oops.o oops.c
arm-linux-gcc -Dlinux -Wall -Wno-conversion -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes
-DINSTALL_PREFIX="\"/skiff/local\"" -DCROSS="\"arm-linux-\""
-DDEF_KSYMS=\"/proc/ksyms\" -DDEF_LSMOD=\"/proc/modules\"
-DDEF_OBJECTS=\"/lib/modules/*r/\"
-DDEF_MAP=\"/usr/src/linux/System.map\" -DDEF_ARCH=\"arm\"
-I/skiff/local/include -c -o re.o re.c
arm-linux-gcc -Dlinux -Wall -Wno-conversion -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes
-DINSTALL_PREFIX="\"/skiff/local\"" -DCROSS="\"arm-linux-\""
-DDEF_KSYMS=\"/proc/ksyms\" -DDEF_LSMOD=\"/proc/modules\"
-DDEF_OBJECTS=\"/lib/modules/*r/\"
-DDEF_MAP=\"/usr/src/linux/System.map\" -DDEF_ARCH=\"arm\"
-I/skiff/local/include -c -o symbol.o symbol.c
arm-linux-gcc io.o ksyms.o ksymoops.o map.o misc.o object.o
oops.o
re.o symbol.o -Dlinux -Wall -Wno-conversion -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes
-DINSTALL_PREFIX="\"/skiff/local\"" -DCROSS="\"arm-linux-\""
-DDEF_KSYMS=\"/proc/ksyms\" -DDEF_LSMOD=\"/proc/modules\"
-DDEF_OBJECTS=\"/lib/modules/*r/\"
-DDEF_MAP=\"/usr/src/linux/System.map\" -DDEF_ARCH=\"arm\"
-I/skiff/local/include -L/skiff/local/lib -arm-linux-ld,-Bstatic
-lbfd
-liberty -arm-linux-ld,-Bdynamic -o ksymoops
collect2: ld terminated with signal 11 [Segmentation fault],
core
dumped
make: *** [ksymoops] Error 1







___________________________________________________
Get www. mycompany .com and 5 matching email ids.
Just Rs. 1499/ year.
Click here http://www.rediffmailpro.com


2003-06-11 05:28:13

by Keith Owens

[permalink] [raw]
Subject: Re: Problem while Crosscompiling Ksymoops

On 10 Jun 2003 10:32:40 -0000,
"jairam nair" <[email protected]> wrote:
> Hi,
> I am trying to cross compile ksymoops-2.4.9 for Strong ARM.
>But i
>am getting a segmentation Fault. The error messages is as below.
>arm-linux-gcc io.o ksyms.o ksymoops.o map.o misc.o object.o
>oops.o
>re.o symbol.o -Dlinux -Wall -Wno-conversion -Waggregate-return
>-Wstrict-prototypes -Wmissing-prototypes
>-DINSTALL_PREFIX="\"/skiff/local\"" -DCROSS="\"arm-linux-\""
>-DDEF_KSYMS=\"/proc/ksyms\" -DDEF_LSMOD=\"/proc/modules\"
>-DDEF_OBJECTS=\"/lib/modules/*r/\"
>-DDEF_MAP=\"/usr/src/linux/System.map\" -DDEF_ARCH=\"arm\"
>-I/skiff/local/include -L/skiff/local/lib -arm-linux-ld,-Bstatic
>-lbfd
>-liberty -arm-linux-ld,-Bdynamic -o ksymoops
>collect2: ld terminated with signal 11 [Segmentation fault],
>core dumped

The command line for the final link is wrong. It should contain

-Wl,-Bstatic -lbfd -liberty -Wl,-Bdynamic -o ksymoops

You replaced '-Wl' with '-arm-linux-ld', ld did not understand that and
got a segmentation fault trying to handle the unknown parameter.
Correct your command line, and log a problem against binutils that it
cannot cope with unexpected options.

> Can anybody tell me what should be given for DEF_MAP, since in
>the
>target machine there is no System.map file.

Without a system map, you are not going to get much of a decode. But
if that is what you want, add 'DEFMAP=' to the make command line.