Your message dated Thu, 4 Jun 2009 03:34:14 +0930
with message-id <[email protected]>
and subject line Re: Bug#531586: mingw32: Segfault in ld
has caused the Debian Bug report #531586,
regarding mingw32: Segfault in ld
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
531586: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=531586
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: mingw32
Version: 4.2.1.dfsg-1.1
Severity: important
ld segfaults when linking something against the SDL_mixer.dll file from
<http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-devel-1.2.8-VC8.zip>.
mixerconftest.c is attached.
$ i586-mingw32msvc-gcc -v -o /dev/null mixerconftest.c
-L/home/sam/src/audio/windows/deps/SDL_mixer-1.2.8/lib -lSDL_mixer
Using built-in specs.
Target: i586-mingw32msvc
Configured with:
/home/sam/src/mingw32/mingw32-4.2.1.dfsg/build_dir/src/gcc-4.2.1-2-dfsg/configure
-v --prefix=/usr --target=i586-mingw32msvc --enable-languages=c,c++
--enable-threads --enable-sjlj-exceptions --disable-multilib
--enable-version-specific-runtime-libs
Thread model: win32
gcc version 4.2.1-sjlj (mingw32-2)
/usr/libexec/gcc/i586-mingw32msvc/4.2.1-sjlj/cc1 -quiet -v mixerconftest.c
-quiet -dumpbase mixerconftest.c -mtune=pentium -auxbase mixerconftest -version
-o /tmp/ccoHBSKU.s
ignoring nonexistent directory
"/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/sys-include"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/include
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include
End of search list.
GNU C version 4.2.1-sjlj (mingw32-2) (i586-mingw32msvc)
compiled by GNU C version 4.3.3.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: f0e7961121ab2e3d83171cb266a51753
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/bin/as
-o /tmp/ccob5GEH.o /tmp/ccoHBSKU.s
/usr/libexec/gcc/i586-mingw32msvc/4.2.1-sjlj/collect2 -Bdynamic -o /dev/null
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/lib/crt2.o
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/crtbegin.o
-L/home/sam/src/audio/windows/deps/SDL_mixer-1.2.8/lib
-L/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj
-L/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj
-L/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/lib
/tmp/ccob5GEH.o -lSDL_mixer -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt
-luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32 -lgcc -lmoldname -lmingwex
-lmsvcrt /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/crtend.o
collect2: ld terminated with signal 11 [Segmentation fault]
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (530, 'testing'), (520, 'unstable'), (400, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.29-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages mingw32 depends on:
ii libc6 2.9-12 GNU C Library: Shared libraries
ii mingw32-binutils 2.18.50-20080109-1 Minimalist GNU win32 (cross) binut
ii mingw32-runtime 3.13-1 Minimalist GNU win32 (cross) runti
mingw32 recommends no packages.
Versions of packages mingw32 suggests:
ii cpp-doc 5:2 documentation for the GNU C prepro
ii gcc-doc 5:2 documentation for the GNU compiler
-- no debconf information
/* confdefs.h. */
#define PACKAGE_NAME "sound"
#define PACKAGE_TARNAME "sound"
#define PACKAGE_VERSION "0.1"
#define PACKAGE_STRING "sound 0.1"
#define PACKAGE_BUGREPORT ""
#define PACKAGE "sound"
#define VERSION "0.1"
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char Mix_OpenAudio ();
int
main ()
{
return Mix_OpenAudio ();
;
return 0;
}
--- End Message ---
--- Begin Message ---
On Tue, Jun 02, 2009 at 03:53:29PM +0100, Sam Morris wrote:
> Package: mingw32
> Version: 4.2.1.dfsg-1.1
> Severity: important
>
> ld segfaults when linking something against the SDL_mixer.dll file from
> <http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-devel-1.2.8-VC8.zip>.
Assuming that the VC8 there implies this was built with VisualSomething 8.x
then the 'bug' you care about here probably can't be fixed. There is no
guarantee of interoperability between binary object files built by compilers
from different vendors. This is a fairly well documented issue.
It still shouldn't segfault, even when fed 'garbage', but if you want to
chase that, you'll need to generate a full backtrace into where it segfaults
and probably will want to refer to the upstream gcc protocol for reporting
such bugs, so as to provide all the information they would require to debug
and fix that.
If what you care about is linking your app, then you'll want to rebuild
SDL et al. from source using the same compiler - and this isn't really a
bug in this package, just an unfortunate history of lacking the standards
for what you are trying to work.
So assuming again, the latter case, I'm closing this as a bug for us to
track here (since we don't have a general-industry meta-package that I
can reassign it to :). The mingw folk can't fix this, and nor can we.
Sorry,
Ron
--- End Message ---