[Bug target/46655] invalid '.line 0' directive emitted with -g

richard.nolde at cybox dot com gcc-bugzilla@gcc.gnu.org
Thu Feb 24 01:51:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46655

Richard Nolde <richard.nolde at cybox dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |richard.nolde at cybox dot
                   |                            |com

--- Comment #18 from Richard Nolde <richard.nolde at cybox dot com> 2011-02-24 01:16:22 UTC ---
I'm building gcc-4.5.0 from the current GNU archive on AIX 6.1 (oslevel -s
returns 6100-06-03-1048) using gcc 4.2.4 and the native AIX ld, as, ar, nm, and
ranlib. I do not have any GNU binutils packages installed but I do have bash,
GNU make, and a full compliment of GNU tools in the /opt/freeware tree where
they are typically installed on AIX. I've built numerous other large open
source packages successfully.

I've applied the patch to gcc/xcoffout.c that is provided at the bottom of this
thread. Configure runs successfully but the build fails at this point (full
logs of configure and make output are available:
/usr/bin/gcc  -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-Wold-style-definition -Wc++-compat -fno-common  -DHAVE_CONFIG_H
-DGENERATOR_FILE -Wl,-bbigtoc -o build/genattrtab \
    build/genattrtab.o build/rtl.o build/read-rtl.o build/ggc-none.o
build/vec.o build/min-insn-modes.o build/gensupport.o build/print-rtl.o
build/errors.o ../../build-powerpc-ibm-aix6.1.0.0/libiberty/libiberty.a
build/genattrtab ../.././gcc/config/rs6000/rs6000.md \
  insn-conditions.md > tmp-attrtab.c
/bin/sh ../.././gcc/../move-if-change tmp-attrtab.c insn-attrtab.c
echo timestamp > s-attrtab
/usr/bin/gcc -c  -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-Wold-style-definition -Wc++-compat -fno-common  -DHAVE_CONFIG_H -I. -I.
-I../.././gcc -I../.././gcc/. -I../.././gcc/../include
-I../.././gcc/../libcpp/include  -I../.././gcc/../libdecnumber
-I../.././gcc/../libdecnumber/dpd -I../libdecnumber    -I/opt/freeware/include
insn-attrtab.c -o insn-attrtab.o
Assembler:
/ramdisk/udttmp/ccxcYMAe.s: line 26089: 1252-040 The specified expression is
not valid.
        Make sure that all symbols are defined.
        Check the rules on symbols used in an arithmetic expression
        concerning relocation.
/ramdisk/udttmp/ccxcYMAe.s: line 27243: 1252-040 The specified expression is
not valid.
        Make sure that all symbols are defined.
        Check the rules on symbols used in an arithmetic expression
        concerning relocation.
/ramdisk/udttmp/ccxcYMAe.s: line 27879: 1252-040 The specified expression is
not valid.
        Make sure that all symbols are defined.
        Check the rules on symbols used in an arithmetic expression
        concerning relocation.
....
Many more lines of the same error messages followed by:
/ramdisk/udttmp/ccxcYMAe.s: line 139907: 1252-040 The specified expression is
not valid.
        Make sure that all symbols are defined.
        Check the rules on symbols used in an arithmetic expression
        concerning relocation.
/ramdisk/udttmp/ccxcYMAe.s: line 141711: 1252-040 The specified expression is
not valid.
        Make sure that all symbols are defined.
        Check the rules on symbols used in an arithmetic expression
        concerning relocation.
/ramdisk/udttmp/ccxcYMAe.s: line 143385: 1252-040 The specified expression is
not valid.
        Make sure that all symbols are defined.
        Check the rules on symbols used in an arithmetic expression
        concerning relocation.
/ramdisk/udttmp/ccxcYMAe.s: line 144343: 1252-040 The specified expression is
not valid.
        Make sure that all symbols are defined.
        Check the rules on symbols used in an arithmetic expression
        concerning relocation.

/ramdisk/udttmp/ccxcYMAe.s: line 146123: 1252-040 The specified expression is
not valid.
        Make sure that all symbols are defined.
        Check the rules on symbols used in an arithmetic expression
        concerning relocation.
gmake[3]: *** [insn-attrtab.o] Error 1
gmake[3]: Leaving directory
`/devel/opensource/gcc/gcc-4.5.0/host-powerpc-ibm-aix6.1.0.0/gcc'
gmake[2]: *** [all-stage1-gcc] Error 2
gmake[2]: Leaving directory `/devel/opensource/gcc/gcc-4.5.0'
gmake[1]: *** [stage1-bubble] Error 2
gmake[1]: Leaving directory `/devel/opensource/gcc/gcc-4.5.0'
make: *** [all] Error 2

Let me know if I can provide additional information or logs. It appears that
line numbers are exceeding 65536 for at least some of the errors.
I have run make distclean between each build followed by ./configure
--prefix=/opt/freeware and configure seems to find the correct native utilities
without a problem.



More information about the Gcc-bugs mailing list