Debug libc

Hi:
I am trying to create a debug version of libc. So I have done ‘addvaviant
g.a’ in all the x86 directories. but then, when i do a make i get the
following error: what am i missing?

/usr/bin/qcc -Vgcc_ntox86 -c -Wc,-Wall -Wc,-Wno-parentheses -O -Wc,-finhi
bit-
size-directive -shared -I. -I/home/rdongre/depot/reference/qnx6.1/lib/
c/st
artup/x86/a.startup -I/home/rdongre/depot/reference/qnx6.1/lib/c/startup/x86
/g.a
-I/home/rdongre/depot/reference/qnx6.1/lib/c/startup/x86 -I/home/rdongre/de
pot/
reference/qnx6.1/lib/c/startup -I/home/rdongre/depot/reference/qnx6.1/lib/c
-I/h
ome/rdongre/depot/reference/qnx6.1/lib/c/inc -I/home/rdongre/depot/reference
/qnx
6.1/lib/c/…/…/services/system/public -I/home/rdongre/depot/reference/qnx6.
1/li
b/c/public -I/usr/include -g -DVARIANT_g -DVARIANT_a -DVARIANT_
star
tup /home/rdongre/depot/reference/qnx6.1/lib/c/startup/crtbegin.c
{standard input}: Assembler messages:
{standard input}:260: Error: Subtraction of two symbols in different
sections “.
fini” {.fini section} - “.L_text_b” {.text section} at file address 104.
{standard input}:268: Error: Subtraction of two symbols in different
sections “.
fini” {.fini section} - “.L_text_b” {.text section} at file address 114.
cc: /usr/ntox86/bin/as error 1
make[3]: *** [crtbegin.o] Error 1
make[3]: Leaving directory
/home/rdongre/depot/reference/qnx6.1/lib/c/startup/x 86/g.a' make[2]: *** [all] Error 2 make[2]: Leaving directory /home/rdongre/depot/reference/qnx6.1/lib/c/startup/x
86’
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/rdongre/depot/reference/qnx6.1/lib/c/startup’
make: *** [all] Error 2

Help would be appreciated.

If you build the ‘startup’ dir without debug you can continue with the
build. Someone else can comment on whether it’s possible to build debug
startup code.

“Rommel Dongre” <rdongre@pillardata.com> wrote in message
news:aetj5f$59a$1@nntp.qnx.com

Hi:
I am trying to create a debug version of libc. So I have done ‘addvaviant
g.a’ in all the x86 directories. but then, when i do a make i get the
following error: what am i missing?


sr/bin/qcc -Vgcc_ntox86 -c -Wc,-Wall -Wc,-Wno-parentheses -O -Wc,-finhi
bit-

size-directive -shared -I. -I/home/rdongre/depot/reference/qnx6.1/lib/
c/st

artup/x86/a.startup -I/home/rdongre/depot/reference/qnx6.1/lib/c/startup/x86
/g.a
-I/home/rdongre/depot/reference/qnx6.1/lib/c/startup/x86 -I/home/rdongre/
de
pot/

reference/qnx6.1/lib/c/startup -I/home/rdongre/depot/reference/qnx6.1/lib/c
-I/h

ome/rdongre/depot/reference/qnx6.1/lib/c/inc -I/home/rdongre/depot/reference
/qnx

6.1/lib/c/…/…/services/system/public -I/home/rdongre/depot/reference/qnx6.
1/li

b/c/public -I/usr/include -g -DVARIANT_g -DVARIANT_a -DVARIANT_
star
tup /home/rdongre/depot/reference/qnx6.1/lib/c/startup/crtbegin.c
{standard input}: Assembler messages:
{standard input}:260: Error: Subtraction of two symbols in different
sections “.
fini” {.fini section} - “.L_text_b” {.text section} at file address 104.
{standard input}:268: Error: Subtraction of two symbols in different
sections “.
fini” {.fini section} - “.L_text_b” {.text section} at file address 114.
cc: /usr/ntox86/bin/as error 1
make[3]: *** [crtbegin.o] Error 1
make[3]: Leaving directory
/home/rdongre/depot/reference/qnx6.1/lib/c/startup/x 86/g.a' make[2]: *** [all] Error 2 make[2]: Leaving directory /home/rdongre/depot/reference/qnx6.1/lib/c/startup/x
86’
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/rdongre/depot/reference/qnx6.1/lib/c/startup’
make: *** [all] Error 2

Help would be appreciated.
\

That works! Thanks.

Jeff Baker wrote:

If you build the ‘startup’ dir without debug you can continue with the
build. Someone else can comment on whether it’s possible to build debug
startup code.

“Rommel Dongre” <> rdongre@pillardata.com> > wrote in message
news:aetj5f$59a$> 1@nntp.qnx.com> …

Hi:
I am trying to create a debug version of libc. So I have done ‘addvaviant
g.a’ in all the x86 directories. but then, when i do a make i get the
following error: what am i missing?



sr/bin/qcc -Vgcc_ntox86 -c -Wc,-Wall -Wc,-Wno-parentheses -O -Wc,-finhi

bit-


size-directive -shared -I. -I/home/rdongre/depot/reference/qnx6.1/lib/

c/st


artup/x86/a.startup -I/home/rdongre/depot/reference/qnx6.1/lib/c/startup/x86

/g.a
-I/home/rdongre/depot/reference/qnx6.1/lib/c/startup/x86 -I/home/rdongre/

de

pot/


reference/qnx6.1/lib/c/startup -I/home/rdongre/depot/reference/qnx6.1/lib/c

-I/h


ome/rdongre/depot/reference/qnx6.1/lib/c/inc -I/home/rdongre/depot/reference

/qnx


6.1/lib/c/…/…/services/system/public -I/home/rdongre/depot/reference/qnx6.

1/li


b/c/public -I/usr/include -g -DVARIANT_g -DVARIANT_a -DVARIANT_

star
tup /home/rdongre/depot/reference/qnx6.1/lib/c/startup/crtbegin.c
{standard input}: Assembler messages:
{standard input}:260: Error: Subtraction of two symbols in different
sections “.
fini” {.fini section} - “.L_text_b” {.text section} at file address 104.
{standard input}:268: Error: Subtraction of two symbols in different
sections “.
fini” {.fini section} - “.L_text_b” {.text section} at file address 114.
cc: /usr/ntox86/bin/as error 1
make[3]: *** [crtbegin.o] Error 1
make[3]: Leaving directory
/home/rdongre/depot/reference/qnx6.1/lib/c/startup/x 86/g.a' make[2]: *** [all] Error 2 make[2]: Leaving directory /home/rdongre/depot/reference/qnx6.1/lib/c/startup/x
86’
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/rdongre/depot/reference/qnx6.1/lib/c/startup’
make: *** [all] Error 2

Help would be appreciated.



\