public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/58773] New: alpha-dec-vms problems with "*INTERNAL*" in assembly (with current GNU as/ld)
@ 2013-10-17 23:51 jay.krell at cornell dot edu
  2013-10-18  0:42 ` [Bug bootstrap/58773] " jay.krell at cornell dot edu
  0 siblings, 1 reply; 2+ messages in thread
From: jay.krell at cornell dot edu @ 2013-10-17 23:51 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58773
           Summary: alpha-dec-vms problems with "*INTERNAL*" in assembly
                    (with current GNU as/ld)
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jay.krell at cornell dot edu

This was probably with an older GNU ld/as:


/bin/sh ../libtool --tag CXX --tag disable-shared   --mode=compile
/obj/gcc.1/./gcc/xgcc -shared-libgcc -B/obj/gcc.1/./gcc -nostdinc++
-L/obj/gcc.1/alpha-dec-vms/libstdc++-v3/src
-L/obj/gcc.1/alpha-dec-vms/libstdc++-v3/src/.libs
-B/usr/local/alpha-dec-vms/bin/ -B/usr/local/alpha-dec-vms/lib/ -isystem
/usr/local/alpha-dec-vms/include -isystem /usr/local/alpha-dec-vms/sys-include 
  -I/src/gcc-4.8.2/libstdc++-v3/../libgcc
-I/obj/gcc.1/alpha-dec-vms/libstdc++-v3/include/alpha-dec-vms
-I/obj/gcc.1/alpha-dec-vms/libstdc++-v3/include
-I/src/gcc-4.8.2/libstdc++-v3/libsupc++     -Wall -Wextra -Wwrite-strings
-Wcast-qual -Wabi  -fdiagnostics-show-location=once    -ffunction-sections
-fdata-sections  -frandom-seed=array_type_info.lo -g -Os  -c -o
array_type_info.lo /src/gcc-4.8.2/libstdc++-v3/libsupc++/array_type_info.cc
libtool: compile:  /obj/gcc.1/./gcc/xgcc -shared-libgcc -B/obj/gcc.1/./gcc
-nostdinc++ -L/obj/gcc.1/alpha-dec-vms/libstdc++-v3/src
-L/obj/gcc.1/alpha-dec-vms/libstdc++-v3/src/.libs
-B/usr/local/alpha-dec-vms/bin/ -B/usr/local/alpha-dec-vms/lib/ -isystem
/usr/local/alpha-dec-vms/include -isystem /usr/local/alpha-dec-vms/sys-include
-I/src/gcc-4.8.2/libstdc++-v3/../libgcc
-I/obj/gcc.1/alpha-dec-vms/libstdc++-v3/include/alpha-dec-vms
-I/obj/gcc.1/alpha-dec-vms/libstdc++-v3/include
-I/src/gcc-4.8.2/libstdc++-v3/libsupc++ -Wall -Wextra -Wwrite-strings
-Wcast-qual -Wabi -fdiagnostics-show-location=once -ffunction-sections
-fdata-sections -frandom-seed=array_type_info.lo -g -Os -c
/src/gcc-4.8.2/libstdc++-v3/libsupc++/array_type_info.cc -o array_type_info.obj

/var/folders/QG/QGSTvYqCGfSGxXo0rUMOX++++TI/-Tmp-//cc46zLj8.s: Assembler
messages:
/var/folders/QG/QGSTvYqCGfSGxXo0rUMOX++++TI/-Tmp-//cc46zLj8.s:461: Warning:
missing operand; zero assumed
/var/folders/QG/QGSTvYqCGfSGxXo0rUMOX++++TI/-Tmp-//cc46zLj8.s:479: Warning:
missing operand; zero assumed
/var/folders/QG/QGSTvYqCGfSGxXo0rUMOX++++TI/-Tmp-//cc46zLj8.s:461: Error:
undefined symbol `_ZN10__cxxabiv117__array_type_infoC1EPKc' in operation
/var/folders/QG/QGSTvYqCGfSGxXo0rUMOX++++TI/-Tmp-//cc46zLj8.s:461: Error:
undefined symbol `INTERNAL' in operation
/var/folders/QG/QGSTvYqCGfSGxXo0rUMOX++++TI/-Tmp-//cc46zLj8.s:479: Error:
undefined symbol `INTERNAL' in operation
/var/folders/QG/QGSTvYqCGfSGxXo0rUMOX++++TI/-Tmp-//cc46zLj8.s:1213: Internal
error, aborting at /src/binutils/src/gas/config/obj-evax.c line 128 in
evax_frob_symbol
Please report this bug.
/var/folders/QG/QGSTvYqCGfSGxXo0rUMOX++++TI/-Tmp-//cc46zLj8.s:1213: Fatal
error: can't close array_type_info.obj: Section has no contents


This is similar with in-tree current GNU as/ld/binutils:


 /obj/gcc.1/./gcc/as -o array_type_info.obj
/var/folders/QG/QGSTvYqCGfSGxXo0rUMOX++++TI/-Tmp-//cchyOoTq.s 


 /var/folders/QG/QGSTvYqCGfSGxXo0rUMOX++++TI/-Tmp-//cc5p7JIq.s: Assembler
messages:
/var/folders/QG/QGSTvYqCGfSGxXo0rUMOX++++TI/-Tmp-//cc5p7JIq.s:461: Warning:
missing operand; zero assumed
/var/folders/QG/QGSTvYqCGfSGxXo0rUMOX++++TI/-Tmp-//cc5p7JIq.s:479: Warning:
missing operand; zero assumed
/var/folders/QG/QGSTvYqCGfSGxXo0rUMOX++++TI/-Tmp-//cc5p7JIq.s:461: Error:
invalid operands (*UND* and *UND* sections) for `*'
/var/folders/QG/QGSTvYqCGfSGxXo0rUMOX++++TI/-Tmp-//cc5p7JIq.s:479: Error:
invalid operands (.link and *UND* sections) for `*'
/var/folders/QG/QGSTvYqCGfSGxXo0rUMOX++++TI/-Tmp-//cc5p7JIq.s: Error: no entry
symbol for global function '_ZN10__cxxabiv117__array_type_infoD1Ev'


The assembly in question:

    .quad    _ZN10__cxxabiv117__array_type_infoC1EPKc *INTERNAL* 
    .quad    _ZN10__cxxabiv117__array_type_infoD1Ev *INTERNAL* 

*internal* comes from gcc/cp/mangle.c.

I tried outputing just a space instead but that failed also:
/var/folders/QG/QGSTvYqCGfSGxXo0rUMOX++++TI/-Tmp-//cc3sbQSf.s: Assembler
messages:
/var/folders/QG/QGSTvYqCGfSGxXo0rUMOX++++TI/-Tmp-//cc3sbQSf.s: Error: no entry
symbol for global function '_ZN10__cxxabiv117__array_type_infoD1Ev'


I suppose what I should do is compile this for some other target and see what I
get.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug bootstrap/58773] alpha-dec-vms problems with "*INTERNAL*" in assembly (with current GNU as/ld)
  2013-10-17 23:51 [Bug bootstrap/58773] New: alpha-dec-vms problems with "*INTERNAL*" in assembly (with current GNU as/ld) jay.krell at cornell dot edu
@ 2013-10-18  0:42 ` jay.krell at cornell dot edu
  0 siblings, 0 replies; 2+ messages in thread
From: jay.krell at cornell dot edu @ 2013-10-18  0:42 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jay <jay.krell at cornell dot edu> ---
Breakpoint 1, breakpoint () at /src/gcc-4.8.2/gcc/cp/mangle.c:62
62    void breakpoint(void) { abort(); }
(gdb) bt
#0  breakpoint () at /src/gcc-4.8.2/gcc/cp/mangle.c:62
#1  0x00109813 in write_mangled_name (decl=<value temporarily unavailable, due
to optimizations>, top_level=true) at /src/gcc-4.8.2/gcc/cp/mangle.c:703
#2  0x0010ac50 in mangle_decl_string (decl=0x41404f80) at
/src/gcc-4.8.2/gcc/cp/mangle.c:3440
#3  0x0010ae0b in get_mangled_id [inlined] () at
/src/gcc-4.8.2/gcc/cp/mangle.c:3462
#4  0x0010ae0b in mangle_decl (decl=0x41404f80) at
/src/gcc-4.8.2/gcc/cp/mangle.c:3485
#5  0x00754edc in decl_assembler_name (decl=0x41404f80) at
/src/gcc-4.8.2/gcc/tree.c:537
#6  0x0078d672 in make_decl_rtl (decl=0x41404f80) at
/src/gcc-4.8.2/gcc/varasm.c:1197
#7  0x002ae170 in add_name_and_src_coords_attributes (die=0x4144d8a0,
decl=0x41404f80) at /src/gcc-4.8.2/gcc/dwarf2out.c:16287
#8  0x002cbbc0 in gen_subprogram_die (decl=0x41404f80, context_die=<value
temporarily unavailable, due to optimizations>) at
/src/gcc-4.8.2/gcc/dwarf2out.c:17672
#9  0x002c80bd in gen_decl_die (decl=0x41404f80, origin=0x4140c600,
context_die=<value temporarily unavailable, due to optimizations>) at
/src/gcc-4.8.2/gcc/dwarf2out.c:19994
#10 0x002ba84d in gen_tagged_type_die (type=0x4140c600, context_die=<value
temporarily unavailable, due to optimizations>, usage=<value temporarily
unavailable, due to optimizations>) at /src/gcc-4.8.2/gcc/dwarf2out.c:19045
#11 0x002bb2c9 in gen_type_die_with_usage (type=<value temporarily unavailable,
due to optimizations>, context_die=<value temporarily unavailable, due to
optimizations>, usage=DINFO_USAGE_DIR_USE) at
/src/gcc-4.8.2/gcc/dwarf2out.c:19454
#12 0x002bb64a in gen_type_die (type=<value temporarily unavailable, due to
optimizations>, context_die=<value temporarily unavailable, due to
optimizations>) at /src/gcc-4.8.2/gcc/dwarf2out.c:19493
#13 0x002c87e1 in gen_decl_die (decl=0x413f58dc, origin=0x0, context_die=<value
temporarily unavailable, due to optimizations>) at
/src/gcc-4.8.2/gcc/dwarf2out.c:20017
#14 0x002c8c24 in dwarf2out_decl (decl=0x4140c600) at
/src/gcc-4.8.2/gcc/dwarf2out.c:20376
#15 0x004b42bb in timevar_pop [inlined] () at timevar.h:215
#16 0x004b42bb in rest_of_type_compilation (type=0x4140c600, toplev=1094764032)
at /src/gcc-4.8.2/gcc/passes.c:216
#17 0x000d981e in note_debug_info_needed (type=0x4140c600) at
/src/gcc-4.8.2/gcc/cp/search.c:2205
#18 0x00071905 in maybe_emit_vtables (ctype=0x4140c600) at
/src/gcc-4.8.2/gcc/cp/decl2.c:1925
#19 0x00071ddb in cp_write_global_declarations () at
/src/gcc-4.8.2/gcc/cp/decl2.c:4049
#20 0x0056e4ff in compile_file () at /src/gcc-4.8.2/gcc/toplev.c:557
#21 0x0056f230 in do_compile () at /src/gcc-4.8.2/gcc/toplev.c:1864
#22 0x0056ff4c in toplev_main (argc=43, argv=0xbffff178) at
/src/gcc-4.8.2/gcc/toplev.c:1940
#23 0x00001f66 in start ()
Current language:  auto; currently c++
(gd


#7  0x002ae170 in add_name_and_src_coords_attributes (die=0x4144d8a0,
decl=0x41404f80) at /src/gcc-4.8.2/gcc/dwarf2out.c:16287

#ifdef VMS_DEBUGGING_INFO
  /* Get the function's name, as described by its RTL.  This may be different
     from the DECL_NAME name used in the source file.  */
  if (TREE_CODE (decl) == FUNCTION_DECL && TREE_ASM_WRITTEN (decl))
    {
      add_AT_addr (die, DW_AT_VMS_rtnbeg_pd_address,
                  XEXP (DECL_RTL (decl), 0), false);
      vec_safe_push (used_rtx_array, XEXP (DECL_RTL (decl), 0));
    }
#endif /* VMS_DEBUGGING_INFO */


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-10-18  0:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-17 23:51 [Bug bootstrap/58773] New: alpha-dec-vms problems with "*INTERNAL*" in assembly (with current GNU as/ld) jay.krell at cornell dot edu
2013-10-18  0:42 ` [Bug bootstrap/58773] " jay.krell at cornell dot edu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).