Dave Korn | 1 Feb 06:36 2010

Re: Fwd: arm-mingw32ce-gcc -g makes ld fail in mingw

On 31/01/2010 22:32, Sébastien Lorquet wrote:

> as is generating garbage and ld and objdump are victims.

  Yep.  The section headers are full of nonsense.  The string table is present
and all the long section names are there, but all the section headers containt
"/1579551", which is way out of range.

  We need to debug what's going on in coff_write_object_contents() in the
assembler.  If you walk through this loop:

  for (current = abfd->sections;
       current != NULL;
       current = current->next)
    {
      struct internal_scnhdr section;
      bfd_boolean is_reloc_section = FALSE;

... checking the contents of 'current' each time, and then seeing what happens
to len and string_size here:

      /* Handle long section names as in PE.  This must be compatible
	 with the code in coff_write_symbols and _bfd_coff_final_link.  */
      if (bfd_coff_long_section_names (abfd))
	{
	  size_t len;

	  len = strlen (current->name);
	  if (len > SCNNMLEN)
	    {
(Continue reading)

Sébastien Lorquet | 1 Feb 09:52 2010
Picon

Re: Fwd: arm-mingw32ce-gcc -g makes ld fail in mingw

First step: run arm-mingw32ce-gcc -g --save-temps test.c -o test.exe

this crashes after quite a LONG time (several seconds).

then:

C:\MinGW>del test.o

C:\MinGW>gcc3\bin\gdb.exe arm-mingw32ce-as.exe
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-mingw32"...
(gdb) break coffcode.h:3656
Breakpoint 1 at 0x45fef1: file /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h, line 3656. (2 locations)
(gdb) run test.s
Starting program: c:\MinGW\cross41-debug\bin/arm-mingw32ce-as.exe test.s
[New thread 2316.0x3b0]

Breakpoint 1, coff_write_object_contents (abfd=0x2326c8) at /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h:3656
3656    /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h: No such file or directory.
        in /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h
(gdb) print len
$1 = 5
(gdb) print string_size
$2 = 4
(gdb) print *current
$3 = {name = 0x4a0a6e ".text", id = 16, index = 0, next = 0x1591608, prev = 0x0, flags = 279, user_set_vma = 0, linker_mark = 0,
  linker_has_input = 0, gc_mark = 0, segment_mark = 0, sec_info_type = 0, use_rela_p = 0, has_tls_reloc = 0, has_tls_get_addr_call = 0,
  has_gp_reloc = 0, need_finalize_relax = 0, reloc_done = 0, vma = 0, lma = 0, size = 72, rawsize = 0, relax = 0x0, relax_count = 0,
  output_offset = 0, output_section = 0x1591550, alignment_power = 2, relocation = 0x0, orelocation = 0x14e54a0, reloc_count = 2, filepos = 500,
  rel_filepos = 1596, line_filepos = 0, userdata = 0x2328b0, contents = 0x0, lineno = 0x0, lineno_count = 0, entsize = 0, kept_section = 0x0,
  moving_line_filepos = 0, target_index = 1, used_by_bfd = 0x0, constructor_chain = 0x0, owner = 0x2326c8, symbol = 0x14e3358,
  symbol_ptr_ptr = 0x15915e8, map_head = {link_order = 0x0, s = 0x0}, map_tail = {link_order = 0x0, s = 0x0}}
(gdb)

(gdb) c
Continuing.

Breakpoint 1, coff_write_object_contents (abfd=0x2326c8) at /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h:3656
3656    in /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h
(gdb) display len
1: len = 5
(gdb) display string_size
2: string_size = 4
(gdb) display *current
3: *current = {name = 0x4a0a74 ".data", id = 17, index = 1, next = 0x15916c0, prev = 0x1591550, flags = 3, user_set_vma = 0, linker_mark = 0,
  linker_has_input = 0, gc_mark = 0, segment_mark = 0, sec_info_type = 0, use_rela_p = 0, has_tls_reloc = 0, has_tls_get_addr_call = 0,
  has_gp_reloc = 0, need_finalize_relax = 0, reloc_done = 0, vma = 0, lma = 0, size = 0, rawsize = 0, relax = 0x0, relax_count = 0,
  output_offset = 0, output_section = 0x1591608, alignment_power = 2, relocation = 0x0, orelocation = 0x0, reloc_count = 0, filepos = 0,
  rel_filepos = 0, line_filepos = 0, userdata = 0x2328f8, contents = 0x0, lineno = 0x0, lineno_count = 0, entsize = 0, kept_section = 0x0,
  moving_line_filepos = 0, target_index = 2, used_by_bfd = 0x0, constructor_chain = 0x0, owner = 0x2326c8, symbol = 0x14e34c0,
  symbol_ptr_ptr = 0x15916a0, map_head = {link_order = 0x0, s = 0x0}, map_tail = {link_order = 0x0, s = 0x0}}
(gdb)
(gdb) c
Continuing.

Breakpoint 1, coff_write_object_contents (abfd=0x2326c8) at /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h:3656
3656    in /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h
3: *current = {name = 0x4a0a7a ".bss", id = 18, index = 2, next = 0x15918e8, prev = 0x1591608, flags = 1, user_set_vma = 0, linker_mark = 0,
  linker_has_input = 0, gc_mark = 0, segment_mark = 0, sec_info_type = 0, use_rela_p = 0, has_tls_reloc = 0, has_tls_get_addr_call = 0,
  has_gp_reloc = 0, need_finalize_relax = 0, reloc_done = 0, vma = 0, lma = 0, size = 0, rawsize = 0, relax = 0x0, relax_count = 0,
  output_offset = 0, output_section = 0x15916c0, alignment_power = 2, relocation = 0x0, orelocation = 0x0, reloc_count = 0, filepos = 0,
  rel_filepos = 0, line_filepos = 0, userdata = 0x232940, contents = 0x0, lineno = 0x0, lineno_count = 0, entsize = 0, kept_section = 0x0,
  moving_line_filepos = 0, target_index = 3, used_by_bfd = 0x0, constructor_chain = 0x0, owner = 0x2326c8, symbol = 0x14e3628,
  symbol_ptr_ptr = 0x1591758, map_head = {link_order = 0x0, s = 0x0}, map_tail = {link_order = 0x0, s = 0x0}}
2: string_size = 4
1: len = 4

(gdb) c
Continuing.

Breakpoint 1, coff_write_object_contents (abfd=0x2326c8) at /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h:3656
3656    in /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h
3: *current = {name = 0x16d7418 ".debug_abbrev", id = 21, index = 3, next = 0x15919a0, prev = 0x15916c0, flags = 298, user_set_vma = 0,
  linker_mark = 0, linker_has_input = 0, gc_mark = 0, segment_mark = 0, sec_info_type = 0, use_rela_p = 0, has_tls_reloc = 0,
  has_tls_get_addr_call = 0, has_gp_reloc = 0, need_finalize_relax = 0, reloc_done = 0, vma = 0, lma = 0, size = 145, rawsize = 0, relax = 0x0,
  relax_count = 0, output_offset = 0, output_section = 0x15918e8, alignment_power = 0, relocation = 0x0, orelocation = 0x0, reloc_count = 0,
  filepos = 572, rel_filepos = 0, line_filepos = 0, userdata = 0x16d7440, contents = 0x0, lineno = 0x0, lineno_count = 0, entsize = 0,
  kept_section = 0x0, moving_line_filepos = 0, target_index = 4, used_by_bfd = 0x0, constructor_chain = 0x0, owner = 0x2326c8, symbol = 0x14e3d58,
  symbol_ptr_ptr = 0x1591980, map_head = {link_order = 0x0, s = 0x0}, map_tail = {link_order = 0x0, s = 0x0}}
2: string_size = 4
1: len = 13

(gdb) c
Continuing.

Breakpoint 1, coff_write_object_contents (abfd=0x2326c8) at /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h:3656
3656    in /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h
3: *current = {name = 0x14e6518 ".debug_info", id = 22, index = 4, next = 0x1591a58, prev = 0x15918e8, flags = 302, user_set_vma = 0,
  linker_mark = 0, linker_has_input = 0, gc_mark = 0, segment_mark = 0, sec_info_type = 0, use_rela_p = 0, has_tls_reloc = 0,
  has_tls_get_addr_call = 0, has_gp_reloc = 0, need_finalize_relax = 0, reloc_done = 0, vma = 0, lma = 0, size = 451, rawsize = 0, relax = 0x0,
  relax_count = 0, output_offset = 0, output_section = 0x15919a0, alignment_power = 0, relocation = 0x0, orelocation = 0x1814718, reloc_count = 9,
  filepos = 717, rel_filepos = 1616, line_filepos = 0, userdata = 0x14e6540, contents = 0x0, lineno = 0x0, lineno_count = 0, entsize = 0,
  kept_section = 0x0, moving_line_filepos = 0, target_index = 5, used_by_bfd = 0x0, constructor_chain = 0x0, owner = 0x2326c8, symbol = 0x14e3ee8,
  symbol_ptr_ptr = 0x1591a38, map_head = {link_order = 0x0, s = 0x0}, map_tail = {link_order = 0x0, s = 0x0}}
2: string_size = 18
1: len = 11

(gdb) c
Continuing.

Breakpoint 1, coff_write_object_contents (abfd=0x2326c8) at /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h:3656
3656    in /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h
3: *current = {name = 0x14e75e0 ".debug_line", id = 23, index = 5, next = 0x1591b10, prev = 0x15919a0, flags = 8460, user_set_vma = 0,
  linker_mark = 0, linker_has_input = 0, gc_mark = 0, segment_mark = 0, sec_info_type = 0, use_rela_p = 0, has_tls_reloc = 0,
  has_tls_get_addr_call = 0, has_gp_reloc = 0, need_finalize_relax = 0, reloc_done = 0, vma = 0, lma = 0, size = 248, rawsize = 0, relax = 0x0,
  relax_count = 0, output_offset = 0, output_section = 0x1591a58, alignment_power = 0, relocation = 0x0, orelocation = 0x18149e0, reloc_count = 1,
  filepos = 1168, rel_filepos = 1706, line_filepos = 0, userdata = 0x14e8600, contents = 0x0, lineno = 0x0, lineno_count = 0, entsize = 0,
  kept_section = 0x0, moving_line_filepos = 0, target_index = 6, used_by_bfd = 0x0, constructor_chain = 0x0, owner = 0x2326c8, symbol = 0x14e4078,
  symbol_ptr_ptr = 0x1591af0, map_head = {link_order = 0x0, s = 0x0}, map_tail = {link_order = 0x0, s = 0x0}}
2: string_size = 30
1: len = 11

(gdb) c
Continuing.

Breakpoint 1, coff_write_object_contents (abfd=0x2326c8) at /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h:3656
3656    in /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h
3: *current = {name = 0x14e96f8 ".rdata", id = 24, index = 6, next = 0x1591bc8, prev = 0x1591a58, flags = 290, user_set_vma = 0, linker_mark = 0,
  linker_has_input = 0, gc_mark = 0, segment_mark = 0, sec_info_type = 0, use_rela_p = 0, has_tls_reloc = 0, has_tls_get_addr_call = 0,
  has_gp_reloc = 0, need_finalize_relax = 0, reloc_done = 0, vma = 0, lma = 0, size = 12, rawsize = 0, relax = 0x0, relax_count = 0,
  output_offset = 0, output_section = 0x1591b10, alignment_power = 2, relocation = 0x0, orelocation = 0x0, reloc_count = 0, filepos = 1416,
  rel_filepos = 0, line_filepos = 0, userdata = 0x14e9718, contents = 0x0, lineno = 0x0, lineno_count = 0, entsize = 0, kept_section = 0x0,
  moving_line_filepos = 0, target_index = 7, used_by_bfd = 0x0, constructor_chain = 0x0, owner = 0x2326c8, symbol = 0x14e77a0,
  symbol_ptr_ptr = 0x1591ba8, map_head = {link_order = 0x0, s = 0x0}, map_tail = {link_order = 0x0, s = 0x0}}
2: string_size = 42
1: len = 6

(gdb) c
Continuing.

Breakpoint 1, coff_write_object_contents (abfd=0x2326c8) at /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h:3656
3656    in /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h
3: *current = {name = 0x14ecf58 ".debug_frame", id = 25, index = 7, next = 0x1591c80, prev = 0x1591b10, flags = 302, user_set_vma = 0,
  linker_mark = 0, linker_has_input = 0, gc_mark = 0, segment_mark = 0, sec_info_type = 0, use_rela_p = 0, has_tls_reloc = 0,
  has_tls_get_addr_call = 0, has_gp_reloc = 0, need_finalize_relax = 0, reloc_done = 0, vma = 0, lma = 0, size = 48, rawsize = 0, relax = 0x0,
  relax_count = 0, output_offset = 0, output_section = 0x1591bc8, alignment_power = 2, relocation = 0x0, orelocation = 0x1814a68, reloc_count = 2,
  filepos = 1428, rel_filepos = 1716, line_filepos = 0, userdata = 0x14ecf80, contents = 0x0, lineno = 0x0, lineno_count = 0, entsize = 0,
  kept_section = 0x0, moving_line_filepos = 0, target_index = 8, used_by_bfd = 0x0, constructor_chain = 0x0, owner = 0x2326c8, symbol = 0x14e7b88,
  symbol_ptr_ptr = 0x1591c60, map_head = {link_order = 0x0, s = 0x0}, map_tail = {link_order = 0x0, s = 0x0}}
2: string_size = 42
1: len = 12

(gdb) c
Continuing.

Breakpoint 1, coff_write_object_contents (abfd=0x2326c8) at /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h:3656
3656    in /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h
3: *current = {name = 0x14edfc8 ".debug_loc", id = 26, index = 8, next = 0x1591d38, prev = 0x1591bc8, flags = 298, user_set_vma = 0,
  linker_mark = 0, linker_has_input = 0, gc_mark = 0, segment_mark = 0, sec_info_type = 0, use_rela_p = 0, has_tls_reloc = 0,
  has_tls_get_addr_call = 0, has_gp_reloc = 0, need_finalize_relax = 0, reloc_done = 0, vma = 0, lma = 0, size = 42, rawsize = 0, relax = 0x0,
  relax_count = 0, output_offset = 0, output_section = 0x1591c80, alignment_power = 0, relocation = 0x0, orelocation = 0x0, reloc_count = 0,
  filepos = 1476, rel_filepos = 0, line_filepos = 0, userdata = 0x16d7868, contents = 0x0, lineno = 0x0, lineno_count = 0, entsize = 0,
  kept_section = 0x0, moving_line_filepos = 0, target_index = 9, used_by_bfd = 0x0, constructor_chain = 0x0, owner = 0x2326c8, symbol = 0x14e7e08,
  symbol_ptr_ptr = 0x1591d18, map_head = {link_order = 0x0, s = 0x0}, map_tail = {link_order = 0x0, s = 0x0}}
2: string_size = 55
1: len = 10

(gdb) c
Continuing.

Breakpoint 1, coff_write_object_contents (abfd=0x2326c8) at /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h:3656
3656    in /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h
3: *current = {name = 0x16d79b0 ".debug_pubnames", id = 27, index = 9, next = 0x1591df0, prev = 0x1591c80, flags = 302, user_set_vma = 0,
  linker_mark = 0, linker_has_input = 0, gc_mark = 0, segment_mark = 0, sec_info_type = 0, use_rela_p = 0, has_tls_reloc = 0,
  has_tls_get_addr_call = 0, has_gp_reloc = 0, need_finalize_relax = 0, reloc_done = 0, vma = 0, lma = 0, size = 30, rawsize = 0, relax = 0x0,
  relax_count = 0, output_offset = 0, output_section = 0x1591d38, alignment_power = 0, relocation = 0x0, orelocation = 0x1814b38, reloc_count = 1,
  filepos = 1518, rel_filepos = 1736, line_filepos = 0, userdata = 0x16d79d8, contents = 0x0, lineno = 0x0, lineno_count = 0, entsize = 0,
  kept_section = 0x0, moving_line_filepos = 0, target_index = 10, used_by_bfd = 0x0, constructor_chain = 0x0, owner = 0x2326c8, symbol = 0x14e7fc0,
  symbol_ptr_ptr = 0x1591dd0, map_head = {link_order = 0x0, s = 0x0}, map_tail = {link_order = 0x0, s = 0x0}}
2: string_size = 66
1: len = 15

(gdb) c
Continuing.

Breakpoint 1, coff_write_object_contents (abfd=0x2326c8) at /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h:3656
3656    in /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h
3: *current = {name = 0x16d7a20 ".debug_aranges", id = 28, index = 10, next = 0x1591ea8, prev = 0x1591d38, flags = 302, user_set_vma = 0,
  linker_mark = 0, linker_has_input = 0, gc_mark = 0, segment_mark = 0, sec_info_type = 0, use_rela_p = 0, has_tls_reloc = 0,
  has_tls_get_addr_call = 0, has_gp_reloc = 0, need_finalize_relax = 0, reloc_done = 0, vma = 0, lma = 0, size = 32, rawsize = 0, relax = 0x0,
  relax_count = 0, output_offset = 0, output_section = 0x1591df0, alignment_power = 0, relocation = 0x0, orelocation = 0x1814ba0, reloc_count = 2,
  filepos = 1548, rel_filepos = 1746, line_filepos = 0, userdata = 0x16d7a48, contents = 0x0, lineno = 0x0, lineno_count = 0, entsize = 0,
  kept_section = 0x0, moving_line_filepos = 0, target_index = 11, used_by_bfd = 0x0, constructor_chain = 0x0, owner = 0x2326c8, symbol = 0x14e8128,
  symbol_ptr_ptr = 0x1591e88, map_head = {link_order = 0x0, s = 0x0}, map_tail = {link_order = 0x0, s = 0x0}}
2: string_size = 82
1: len = 14

(gdb) c
Continuing.

Breakpoint 1, coff_write_object_contents (abfd=0x2326c8) at /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h:3656
3656    in /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h
3: *current = {name = 0x16d7a90 ".debug_str", id = 29, index = 11, next = 0x0, prev = 0x1591df0, flags = 298, user_set_vma = 0, linker_mark = 0,
  linker_has_input = 0, gc_mark = 0, segment_mark = 0, sec_info_type = 0, use_rela_p = 0, has_tls_reloc = 0, has_tls_get_addr_call = 0,
  has_gp_reloc = 0, need_finalize_relax = 0, reloc_done = 0, vma = 0, lma = 0, size = 13, rawsize = 0, relax = 0x0, relax_count = 0,
  output_offset = 0, output_section = 0x1591ea8, alignment_power = 0, relocation = 0x0, orelocation = 0x0, reloc_count = 0, filepos = 1580,
  rel_filepos = 0, line_filepos = 0, userdata = 0x16d7ab8, contents = 0x0, lineno = 0x0, lineno_count = 0, entsize = 0, kept_section = 0x0,
  moving_line_filepos = 0, target_index = 12, used_by_bfd = 0x0, constructor_chain = 0x0, owner = 0x2326c8, symbol = 0x14e8290,
  symbol_ptr_ptr = 0x1591f40, map_head = {link_order = 0x0, s = 0x0}, map_tail = {link_order = 0x0, s = 0x0}}
2: string_size = 97
1: len = 10

(gdb) c
Continuing.

Breakpoint 1, coff_write_object_contents (abfd=0x2326c8) at /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h:3656
3656    in /home/squalyl/projects/cegcc/src/binutils/bfd/coffcode.h
3: *current = {name = 0x16d7a90 ".debug_str", id = 29, index = 11, next = 0x0, prev = 0x1591df0, flags = 298, user_set_vma = 0, linker_mark = 0,
  linker_has_input = 0, gc_mark = 0, segment_mark = 0, sec_info_type = 0, use_rela_p = 0, has_tls_reloc = 0, has_tls_get_addr_call = 0,
  has_gp_reloc = 0, need_finalize_relax = 0, reloc_done = 0, vma = 0, lma = 0, size = 13, rawsize = 0, relax = 0x0, relax_count = 0,
  output_offset = 0, output_section = 0x1591ea8, alignment_power = 0, relocation = 0x0, orelocation = 0x0, reloc_count = 0, filepos = 1580,
  rel_filepos = 0, line_filepos = 0, userdata = 0x16d7ab8, contents = 0x0, lineno = 0x0, lineno_count = 0, entsize = 0, kept_section = 0x0,
  moving_line_filepos = 0, target_index = 12, used_by_bfd = 0x0, constructor_chain = 0x0, owner = 0x2326c8, symbol = 0x14e8290,
  symbol_ptr_ptr = 0x1591f40, map_head = {link_order = 0x0, s = 0x0}, map_tail = {link_order = 0x0, s = 0x0}}
2: string_size = 97
1: len = 10
(gdb) c
Continuing.

Program exited normally.


All of this seems very normal to me. What about you?

Sebastien
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@...
https://lists.sourceforge.net/lists/listinfo/cegcc-devel
Sébastien Lorquet | 1 Feb 09:54 2010
Picon

Re: Fwd: arm-mingw32ce-gcc -g makes ld fail in mingw

Notice I pasted twice the last loop. It only happens once.



------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@...
https://lists.sourceforge.net/lists/listinfo/cegcc-devel
Vincent Torri | 3 Feb 20:25 2010
Picon

Re: limits.h not found


Hey,

So, is there some fixes that has been pushed in svn ?

Vincent Torri

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
Max Kellermann | 6 Feb 00:45 2010

Re: TransparentBlt()

On 2010/01/29 18:06, Danny Backx <danny.backx@...> wrote:
> On Tue, 2010-01-26 at 23:14 +0100, Max Kellermann wrote:
> > When I attempt to force WINVER=0x410, the linker bails out with
> > "undefined reference to `TransparentBlt'".
> 
> Does the change that I just committed work for you ?

(Sorry for the late response)

That fixes the declaration problem, but the "undefined reference"
linker error persists.

Max

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
Danny Backx | 6 Feb 08:29 2010
Picon

Re: TransparentBlt()

On Sat, 2010-02-06 at 00:45 +0100, Max Kellermann wrote:
> On 2010/01/29 18:06, Danny Backx <danny.backx@...> wrote:
> > On Tue, 2010-01-26 at 23:14 +0100, Max Kellermann wrote:
> > > When I attempt to force WINVER=0x410, the linker bails out with
> > > "undefined reference to `TransparentBlt'".
> > 
> > Does the change that I just committed work for you ?
> 
> (Sorry for the late response)
> 
> That fixes the declaration problem, but the "undefined reference"
> linker error persists.

The patch below can add this to coredll6.a
I am suggesting this because I don't know which version to put this in. 

	Danny

pavilion: {299} cd src/mingw
pavilion: {300} svn diff coredll6.def
Index: coredll6.def
===================================================================
--- coredll6.def        (revision 1435)
+++ coredll6.def        (working copy)
 <at>  <at>  -1664,6 +1664,10  <at>  <at> 
 wvsprintfW

 ;
+; Not sure from which version
+;
+TransparentBlt
+;
 ; Stuff for Windows CE / Windows Mobile 6.x
 ;
 CeSetThreadPriority
pavilion: {301} 

--

-- 
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
Vincent Richomme | 6 Feb 10:17 2010

Re: TransparentBlt()

On Sat, 06 Feb 2010 08:29:41 +0100, Danny Backx <danny.backx@...>
wrote:
> On Sat, 2010-02-06 at 00:45 +0100, Max Kellermann wrote:
>> On 2010/01/29 18:06, Danny Backx <danny.backx@...> wrote:
>> > On Tue, 2010-01-26 at 23:14 +0100, Max Kellermann wrote:
>> > > When I attempt to force WINVER=0x410, the linker bails out with
>> > > "undefined reference to `TransparentBlt'".
>> > 
>> > Does the change that I just committed work for you ?
>> 
>> (Sorry for the late response)
>> 
>> That fixes the declaration problem, but the "undefined reference"
>> linker error persists.
> 
> The patch below can add this to coredll6.a
> I am suggesting this because I don't know which version to put this in. 
> 
> 	Danny
> 
> pavilion: {299} cd src/mingw
> pavilion: {300} svn diff coredll6.def
> Index: coredll6.def
> ===================================================================
> --- coredll6.def        (revision 1435)
> +++ coredll6.def        (working copy)
>  <at>  <at>  -1664,6 +1664,10  <at>  <at> 
>  wvsprintfW
>  
>  ;
> +; Not sure from which version
> +;
> +TransparentBlt
> +;
>  ; Stuff for Windows CE / Windows Mobile 6.x
>  ;
>  CeSetThreadPriority
> pavilion: {301}

WM 6.0 is not officially released so I don't think so you modified the
right file ...
http://msdn.microsoft.com/en-us/library/aa929119.aspx

You should report it in coredell.def

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
Vincent Richomme | 6 Feb 10:19 2010

Re: TransparentBlt()

On Sat, 06 Feb 2010 10:17:44 +0100, Vincent Richomme
<forumer@...> wrote:
> On Sat, 06 Feb 2010 08:29:41 +0100, Danny Backx <danny.backx@...>
> wrote:
>> On Sat, 2010-02-06 at 00:45 +0100, Max Kellermann wrote:
>>> On 2010/01/29 18:06, Danny Backx <danny.backx@...> wrote:
>>> > On Tue, 2010-01-26 at 23:14 +0100, Max Kellermann wrote:
>>> > > When I attempt to force WINVER=0x410, the linker bails out with
>>> > > "undefined reference to `TransparentBlt'".
>>> > 
>>> > Does the change that I just committed work for you ?
>>> 
>>> (Sorry for the late response)
>>> 
>>> That fixes the declaration problem, but the "undefined reference"
>>> linker error persists.
>> 
>> The patch below can add this to coredll6.a
>> I am suggesting this because I don't know which version to put this in.

>> 
>> 	Danny
>> 
>> pavilion: {299} cd src/mingw
>> pavilion: {300} svn diff coredll6.def
>> Index: coredll6.def
>> ===================================================================
>> --- coredll6.def        (revision 1435)
>> +++ coredll6.def        (working copy)
>>  <at>  <at>  -1664,6 +1664,10  <at>  <at> 
>>  wvsprintfW
>>  
>>  ;
>> +; Not sure from which version
>> +;
>> +TransparentBlt
>> +;
>>  ; Stuff for Windows CE / Windows Mobile 6.x
>>  ;
>>  CeSetThreadPriority
>> pavilion: {301}
> 
> WM 6.0 is not officially released so I don't think so you modified the
> right file ...
> http://msdn.microsoft.com/en-us/library/aa929119.aspx
> 
> You should report it in coredell.def
> 

Forget my least email I just woke up 10 minutes ago.
So your change should be good.

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
Pavel Pavlov | 9 Feb 03:24 2010
Picon

ICE error: unrecognizable insn

I just took latest svn cegcc and wanted to test if the loading error was fixed (the infamous problem that is only fixed by using upx).

But I can’t even compile my code, I’m getting ICE.

I googled for similar problems, some of them mentioned errno (and you may see from preprocessed file that my code uses it from), but I went to that errno.h and tried to comment out everything – same effect, doesn’t change anything.

However, it seems to be related to dllexport/dllimport:

Declaration of a symbol:

AVUTIL_API const AVPixFmtDescriptor av_pix_fmt_descriptors[];

 

And the error happens on this line:

 

 const AVPixFmtDescriptor *desc = &av_pix_fmt_descriptors[pix_fmt];

 

At the place of error AVUTIL_API expands to _declspec(dllimport). I tried to remove const, no change, but if I remove AVUTIL_API then everything compiles fine (but doesn’t link at the end, due to unresolved av_pix_fmt_descriptors.

 

See below for more info.

 

PS. What about that error, that binaries built with cegcc do not load on most modern devices? Is it fixed now?

thanks

 

 

 

At revision: 1441

 

Cegcc was built using cygwin’s Gcc (4.3.4 I think, the one that comes with cygwin)

 

arm-mingw32ce-gcc -DHAVE_AV_CONFIG_H -I. -I"/ffmpeg" -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D

_LARGEFILE_SOURCE -D_WIN32_WCE -D__USE_W32_SOCKETS -DNDEBUG -DAV_LOG_MAXLEVEL=AV_LOG_ERROR -D_WIN32 -DFFMPEG_DLL -D_USRD

LL -D_WINDLL -std=c99 -I/opt/mingw32ce-trunk/arm-mingw32ce/include -I/ffmpeg/msvc9/include_ce -mcpu=arm1136j-s  -std=c99

 -fno-common -DUNICODE -D_UNICODE -fomit-frame-pointer -marm -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-

optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef -O3 -

fno-math-errno -fno-signed-zeros -fno-tree-vectorize        -MMD -MF libavcodec/imgconvert.d -MT libavcodec/imgconvert.o

 -Dlibavcodec_EXPORTS -c -o libavcodec/imgconvert.o /ffmpeg/libavcodec/imgconvert.c

/ffmpeg/libavcodec/imgconvert.c: In function 'ff_fill_pointer':

/ffmpeg/libavcodec/imgconvert.c:666: error: unrecognizable insn:

(insn 10 9 11 3 /ffmpeg/libavcodec/imgconvert.c:573 (set (reg/f:SI 152)

        (symbol_ref:SI ("av_pix_fmt_descriptors") [flags 0x4c0] <var_decl 0x7ff99d18 av_pix_fmt_descriptors>)) -1 (nil))

 

/ffmpeg/libavcodec/imgconvert.c:666: internal compiler error: in extract_insn, at recog.c:2048

Please submit a full bug report,

with preprocessed source if appropriate.

See <http://gcc.gnu.org/bugs.html> for instructions.

make: *** [libavcodec/imgconvert.o] Error 1

 

Using built-in specs.

Target: arm-mingw32ce

Configured with: /usr/local/CEGCC/cegcc-trunk/src/gcc-4.4.0/configure --with-gcc --with-gnu-ld --with-gnu-as --build=i68

6-pc-cygwin --target=arm-mingw32ce --host=i686-pc-cygwin --prefix=/opt/mingw32ce-trunk --enable-threads=win32 --disable-

nls --enable-languages=c,c++ --disable-win32-registry --disable-multilib --disable-interwork --without-newlib --enable-c

hecking --with-headers --disable-__cxa_atexit

Thread model: win32

gcc version 4.4.0 (GCC)

 

 

Preprocessed imgconvert.c  is attached in a zip

 

Attachment (imgconvert.c.txt.zip): application/x-zip-compressed, 32 KiB
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@...
https://lists.sourceforge.net/lists/listinfo/cegcc-devel
Daniel Monteiro | 9 Feb 12:15 2010
Picon

issues with MonitorFromPoint when compiling OpenGL ES 1.0 code

Hello there. I've been trying to compile the example codes from the Windows Mobile 2003 SE SDK from Imagination Technologies for OpenGL ES 1.0 Common Lite profile. My current commandline is:
arm-wince-mingw32ce-g++  -DARMV4 -D_ARM_ -DUNICODE -D_UNICODE -DPVRT_FIXED_POINT_ENABLE -DDEBUG -D_WIN32_IE=0x0400 -I/home/daniel/Desktop/testegl/Include -I/home/daniel/Desktop/testegl/Windows/Include  -L/home/daniel/Desktop/testegl/PocketPCARMV4/Lib       OGLESHelloTriangle_Windows.cpp -oteste.exe -llibGLES_CL

There are probably better ways to do it, but I want to make something easy to drop in and start compiling. Everything ALMOST works. I get the following messages from the compiler:
OGLESHelloTriangle_Windows.cpp: In function 'int WinMain(HINSTANCE__*, HINSTANCE__*, TCHAR*, int)':
OGLESHelloTriangle_Windows.cpp:163: error: 'MONITOR_DEFAULTTOPRIMARY' was not declared in this scope
OGLESHelloTriangle_Windows.cpp:163: error: 'MonitorFromPoint' was not declared in this scope
OGLESHelloTriangle_Windows.cpp:388: warning: passing NULL to non-pointer argument 3 of 'BOOL PeekMessageW(tagMSG*, HWND__*, UINT, UINT, UINT)'
OGLESHelloTriangle_Windows.cpp:388: warning: passing NULL to non-pointer argument 4 of 'BOOL PeekMessageW(tagMSG*, HWND__*, UINT, UINT, UINT)'

Im using the binary distribution 0.59 and Im using Ubuntu 9.04. The line causing the errors is the following:

163: hMonitor    = MonitorFromPoint(p, MONITOR_DEFAULTTOPRIMARY);

(I belive I shouldnt worry about the warnings, right?)

Im wondering. Its probably a missing include or perhaps a missing library (or both?). What should I do? And congrats for the amazing project.

cheers

Daniel "NeoStrider" Monteiro
========================================
|_|0|_|  Linux Registered User #424188    
|_|_|0| http://batterypoweredgames.blogspot.com/
|0|0|0| Visit to grab games for your mobile device!
========================================

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@...
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Gmane