gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gm2] Re: GM2 on HP-UX 11.11 (PARISC) Status Report


From: John O Goyo
Subject: [Gm2] Re: GM2 on HP-UX 11.11 (PARISC) Status Report
Date: Fri, 19 Jan 2007 15:37:19 -0500
User-agent: Thunderbird 1.5.0.9 (X11/20061206)

Gaius Mulley wrote:
John O Goyo <address@hidden> writes:

3. I tried gmake gm2.paranoid.  The linker seems unable to find any of
the symbols:

ranlib gm2/gm2-libs/libgm2.a
gcc   -g -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes     -DHAVE_CONFIG_H  -o stage2/gm2/cc1gm2
gm2/gccgm2.o gm2/gm2builtins.o gm2/gm2-lang.o gm2/stor-layout.o
gm2/gm2-compiler/gm2.a gm2/gm2-libs/libgm2.a          \
                               gm2/gm2-compiler/m2flex.o main.o
libbackend.a ../libcpp/libcpp.a ../libcpp/libcpp.a -lintl -liconv
../libiberty/libiberty.a
/usr/ccs/bin/ld: Unsatisfied symbols:
    memset (first referenced in gm2/gm2-compiler/gm2.a(Indexing.o)) (data)
    SymbolTable_GetVarPointerCheck (first referenced in
gm2/gm2-compiler/gm2.a(M2Quads.o)) (data)
    gm2builtins_BuiltInAlloca (first referenced in
gm2/gm2-compiler/gm2.a(M2GenGCC.o)) (data)
    SymbolTable_IsTemporary (first referenced in
gm2/gm2-compiler/gm2.a(M2Quads.o)) (data)
    M2Entity_IsLValue (first referenced in
gm2/gm2-compiler/gm2.a(M2SubExp.o)) (data)
    [...lots of symbols...]

Hi John,

further thoughts - I think I'd try:

nm gm2/gm2-compiler/M2Quads.o | grep -i SymbolTable_GetVarPointerCheck
to see whether SymbolTable_GetVarPointerCheck exists in the text
section?  If not then I guess it would be useful to create the
SymbolTable.s using stage1

./xgm2 etc etc -S -B./stage1/gm2 gm2/gm2-compiler/SymbolTable.mod -o foo.s

The code is indeed in the assembler file.

SymbolTable_GetVarPointerCheck
        .PROC
        .CALLINFO FRAME=128,CALLS,SAVE_RP,SAVE_SP,ENTRY_GR=3
        .ENTRY
        stw %r2,-20(%r30)
        copy %r3,%r1
        copy %r30,%r3
        stwm %r1,128(%r30)
        stw %r3,-4(%r30)
        stw %r26,-36(%r3)
        ldw -36(%r3),%r26
        .CALL ARGW0=GR
        [...]

However, the code did not seem to make it into the object file.

heap% nm FIO.o |grep FIO_OpenToRead
FIO_OpenToRead      |         0|extern|entry  |$CODE$

I do not understand this -- I clearly need to understand the build
process better.

(Sigh)
john


if foo.s does not contain SymbolTable_GetVarPointerCheck then invoke gdb on stage1/gm2/cc1gm2..

regards,
Gaius






reply via email to

[Prev in Thread] Current Thread [Next in Thread]