Topic
  • 4 replies
  • Latest Post - ‏2011-06-14T14:18:27Z by flodstrom
SystemAdmin
SystemAdmin
549 Posts

Pinned topic GDB 6.8 compiling Error on AIX 5.3

‏2009-03-04T15:12:46Z |
Hi all,
I got this error message while compiling gdb on AIX.
gcc -c -g -O2 -DDEFAULT_INLINE=PSIM_INLINE_LOCALS -DWITH_HOST_BYTE_ORDER=BIG_ENDIAN -DWITH_SMP=5
-DHAVE_TERMIO_STRUCTURE -DHAVE_TERMIO_CLINE -DHAVE_DEVZERO
-I. -I../.././sim/ppc -I../.././sim/ppc/../../include -I../../bfd -I../.././sim/ppc/../../bfd -I../../gdb
-I../.././sim/ppc/../../gdb -I../.././sim/ppc/../../gdb/config -DHAVE_COMMON_FPU -I../common -I../.././sim/ppc/../common icache.c
In file included from icache.c:30:
semantics.h:33:1: warning: "PAGE_SIZE" redefined
In file included from /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/include/stdio.h:507,
from basics.h:98,
from cpu.h:25,
from icache.c:28:
/usr/include/sys/limits.h:367:1: warning: this is the location of the previous definition
gcc -c -g -O2 -DDEFAULT_INLINE=PSIM_INLINE_LOCALS -DWITH_HOST_BYTE_ORDER=BIG_ENDIAN -DWITH_SMP=5
-DHAVE_TERMIO_STRUCTURE -DHAVE_TERMIO_CLINE -DHAVE_DEVZERO
-I. -I../.././sim/ppc -I../.././sim/ppc/../../include -I../../bfd -I../.././sim/ppc/../../bfd -I../../gdb
-I../.././sim/ppc/../../gdb -I../.././sim/ppc/../../gdb/config -DHAVE_COMMON_FPU -I../common
-I../.././sim/ppc/../common semantics.c
In file included from semantics.c:30:
semantics.h:33:1: warning: "PAGE_SIZE" redefined
In file included from /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/include/stdio.h:507,
from basics.h:98,
from cpu.h:25,
from semantics.c:28:
/usr/include/sys/limits.h:367:1: warning: this is the location of the previous definition
rm -f targ-vals.def tmp-def
cat ../.././sim/ppc/../common/nltvals.def > tmp-vals.def
/bin/sh ../.././sim/ppc/../../move-if-change tmp-vals.def targ-vals.def

gcc -g -O2 -I. -I../.././sim/ppc -I../.././sim/ppc/../../include -I../../bfd -I../.././sim/ppc/../../bfd -I../../gdb -I../.././sim/ppc/../../gdb -I../.././sim/ppc/../../gdb/config -I. -I../common -I../.././sim/ppc/../common -o gentmap

gcc: no input files

make: 1254-004 The error code from the last command is 1.

Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 2.
Stop.
make: 1254-004 The error code from the last command is 2.
Stop.

Does any one have an idea, what is going wrong?

Regards,
Updated on 2011-06-14T14:18:27Z at 2011-06-14T14:18:27Z by flodstrom
  • SystemAdmin
    SystemAdmin
    549 Posts

    Re: GDB 6.8 compiling Error on AIX 5.3

    ‏2009-03-09T21:18:25Z  
    We realised that the problem above came from the "configure" that we ran after de-tarring the gdb archive.
    The documentation seems to imply that :

    > configure

    or

    > configure hostname

    is OK. In fact, you need to run :

    > configure ibm

    But then we got some syntax problems on memcpy instructions in elf.c , and we eventually got stuck by the following error message :

    ======================================================================

    Target "all" is up to date.
    Target "all" is up to date.
    Making info in doc
    make chew
    Target "chew" is up to date.
    ./chew -f ../.././bfd/doc/doc.str <../.././bfd/doc/../elf.c >elf.tmp
    /bin/sh ../.././bfd/doc/../../move-if-change elf.tmp elf.texi
    Target "info" is up to date.
    Making info in po
    Target "info" is up to date.
    Target "info-am" is up to date.
    make all-recursive
    Making all in doc
    Target "all" is up to date.
    Making all in po
    Target "all" is up to date.
    /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.././bfd -I. -DTRAD_CORE -I. -I.././bfd -I.././bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c -o trad-core.lo trad-core.c
    libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.././bfd -I. -DTRAD_CORE -I. -I.././bfd -I.././bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -We rror -g -O2 -c trad-core.c -o trad-core.o
    trad-core.c:48:21: error: hosts/i370linux.h: No such file or directory
    trad-core.c: In function 'trad_unix_core_file_p':
    trad-core.c:104: error: 'struct user' has no member named 'u_dsize'
    trad-core.c:109: error: 'struct user' has no member named 'u_ssize'
    trad-core.c:122: error: 'UPAGES' undeclared (first use in this function)
    trad-core.c:122: error: (Each undeclared identifier is reported only once
    trad-core.c:122: error: for each function it appears in.)
    trad-core.c:122: error: 'struct user' has no member named 'u_dsize'
    trad-core.c:126: error: 'struct user' has no member named 'u_ssize'
    trad-core.c:133: error: 'struct user' has no member named 'u_dsize'
    trad-core.c:133: error: 'struct user' has no member named 'u_ssize'
    trad-core.c:178: error: 'struct user' has no member named 'u_dsize'
    trad-core.c:183: error: 'struct user' has no member named 'u_ssize'
    trad-core.c:191: error: 'HOST_TEXT_START_ADDR' undeclared (first use in this function)
    trad-core.c:191: error: 'struct user' has no member named 'u_tsize'
    trad-core.c:197: error: 'HOST_STACK_END_ADDR' undeclared (first use in this function)
    trad-core.c:197: error: 'struct user' has no member named 'u_ssize'
    trad-core.c:214: error: 'struct user' has no member named 'u_ar0'
    trad-core.c:217: error: 'struct user' has no member named 'u_dsize'
    trad-core.c: In function 'trad_unix_core_file_failing_command':
    trad-core.c:243: error: 'struct user' has no member named 'u_comm'
    make: 1254-004 The error code from the last command is 1.
    Stop.
    make: 1254-004 The error code from the last command is 1.
    Stop.
    make: 1254-004 The error code from the last command is 2.
    Stop.
    make: 1254-004 The error code from the last command is 2.
    Stop.
    make: 1254-004 The error code from the last command is 2.
    Stop.

    ======================================================================

    Any further idea ?
  • SystemAdmin
    SystemAdmin
    549 Posts

    Re: GDB 6.8 compiling Error on AIX 5.3

    ‏2009-07-28T11:27:26Z  
    edit the file src/sim/ppc/Makefile.in as followed:

    ......
    gentmap: ../common/gentmap.c Makefile targ-vals.def
    --remove line $(CC_FOR_BUILD) $(BUILD_FLAGS) -I. -I../common -I$(srcdir)/../common -o gentmap $< $(BUILD_LIBS)
    --add line $(CC_FOR_BUILD) $(BUILD_FLAGS) -I. -I../common -I$(srcdir)/../common -o gentmap ../common/gentmap.c $(BUILD_LIBS)

    targ-vals.def: $(srcdir)/../common/nltvals.def
    ......

    luck!!
  • SystemAdmin
    SystemAdmin
    549 Posts

    Re: GDB 6.8 compiling Error on AIX 5.3

    ‏2011-05-31T12:17:27Z  
    edit the file src/sim/ppc/Makefile.in as followed:

    ......
    gentmap: ../common/gentmap.c Makefile targ-vals.def
    --remove line $(CC_FOR_BUILD) $(BUILD_FLAGS) -I. -I../common -I$(srcdir)/../common -o gentmap $< $(BUILD_LIBS)
    --add line $(CC_FOR_BUILD) $(BUILD_FLAGS) -I. -I../common -I$(srcdir)/../common -o gentmap ../common/gentmap.c $(BUILD_LIBS)

    targ-vals.def: $(srcdir)/../common/nltvals.def
    ......

    luck!!
    Hi ,
    I am also facing the same issue. Do any one got solution for the same.

    for f in standards.info configure.info; do if test -f ./`echo $f | sed -e 's/.info$/.texi/'`; then if make "MAKEINFO=/data/icicit6/manish/tools/gdb-7.0.1/missing makeinfo --split-size=5000000 --split-size=5000000" $f; then true; else exit 1; fi; fi; done
    Target "standards.info" is up to date.
    Target "configure.info" is up to date.
    Target "all" is up to date.
    Target "all" is up to date.
    Target "all" is up to date.
    gcc -g -O2 -I. -I. -I./../../include -I../../bfd -I./../../bfd -I../../gdb -I./../../gdb -I./../../gdb/config -I. -I../common -I./../common -o gentmap
    gcc: no input files
    make: The error code from the last command is 1.
    Stop.
    make: The error code from the last command is 1.
    Stop.
    make: The error code from the last command is 2.
    Stop.
    make: The error code from the last command is 2.
    Stop.
  • flodstrom
    flodstrom
    57 Posts

    Re: GDB 6.8 compiling Error on AIX 5.3

    ‏2011-06-14T14:18:27Z  
    Hi ,
    I am also facing the same issue. Do any one got solution for the same.

    for f in standards.info configure.info; do if test -f ./`echo $f | sed -e 's/.info$/.texi/'`; then if make "MAKEINFO=/data/icicit6/manish/tools/gdb-7.0.1/missing makeinfo --split-size=5000000 --split-size=5000000" $f; then true; else exit 1; fi; fi; done
    Target "standards.info" is up to date.
    Target "configure.info" is up to date.
    Target "all" is up to date.
    Target "all" is up to date.
    Target "all" is up to date.
    gcc -g -O2 -I. -I. -I./../../include -I../../bfd -I./../../bfd -I../../gdb -I./../../gdb -I./../../gdb/config -I. -I../common -I./../common -o gentmap
    gcc: no input files
    make: The error code from the last command is 1.
    Stop.
    make: The error code from the last command is 1.
    Stop.
    make: The error code from the last command is 2.
    Stop.
    make: The error code from the last command is 2.
    Stop.
    The error you got litterally means what it says, there's no source input file! You may have a broken makefile or something went wrong when you configured it? I suggest you read the install instructions for more.

    That said there are pre-built versions of gdb available. I think it is included on the toolbox distribution?

    If you require a more recent build, see below. However, be aware that you may need to update quite a number of rpm's for it! Also it's not any official IBM supplied/supported packages.

    http://www.perzl.org/aix/index.php?n=Main.Gdb