[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Segmentation fault whew cross-compiling with included dll-s
From: |
Mojca Miklavec |
Subject: |
Re: Segmentation fault whew cross-compiling with included dll-s |
Date: |
Sun, 23 Jan 2011 10:55:49 +0100 |
On Sun, Jan 23, 2011 at 04:38, Alan Modra wrote:
> On Fri, Jan 21, 2011 at 05:56:09PM +0100, Mojca Miklavec wrote:
>> I have put the files and make-osx.sh/make-win.bat to a temporary location
>> http://ol.ijs.si/~mojca/osciloskop/linker.zip
>
> You would probably be better off asking these questions on a mingw
> support list. I suspect not many people read the bug-binutils list,
> and the ones that do, don't have mingw compilers available.
Thanks a lot for the suggestion. I already started wondering that it
will probably be better to ask on some other list, but before I give
up ...
> If you want binutils hackers to look at your problem, then a linker
> testcase should consist of object files and libraries (all system
> libraries needed by the link too!), linker scripts and the linker
> command line. ie. all the input to the linker.
... here are the libraries for 64-bit linux
http://ol.ijs.si/~mojca/osciloskop/linker-with-libs.tar.gz
I added collect2 and "runme.sh" which should run the basic command.
However I'm not sure if what I attached is everything that is needed
to reproduce the problem ... Please let me know if I missed something.
(I'm just a basic user who has never dealt with any compiler issues at
all.)
Here is the output of my failed compilation with verbose flag (I just
learnt about its existance):
$ i586-mingw32msvc-c++ -v picoscope.cpp main.cpp -o main.exe -lps4000 -L.
Using built-in specs.
Target: i586-mingw32msvc
Configured with:
/build/buildd/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/cc1plus -quiet -v
picoscope.cpp -quiet -dumpbase picoscope.cpp -mtune=pentium -auxbase
picoscope -version -o /tmp/ccp4RiKp.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/c++
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/include/c++/i586-mingw32msvc
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/include/c++/backward
/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.2.3 20071210 (prerelease) (Ubuntu
4.2.2-4ubuntu1).
GGC heuristics: --param ggc-min-expand=72 --param ggc-min-heapsize=80480
Compiler executable checksum: 154b8a53992189755305fccd99087270
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/bin/as
-o /tmp/ccDm0qY9.o /tmp/ccp4RiKp.s
/usr/libexec/gcc/i586-mingw32msvc/4.2.1-sjlj/cc1plus -quiet -v
main.cpp -quiet -dumpbase main.cpp -mtune=pentium -auxbase main
-version -o /tmp/ccp4RiKp.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/c++
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/include/c++/i586-mingw32msvc
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/include/c++/backward
/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.2.3 20071210 (prerelease) (Ubuntu
4.2.2-4ubuntu1).
GGC heuristics: --param ggc-min-expand=72 --param ggc-min-heapsize=80480
Compiler executable checksum: 154b8a53992189755305fccd99087270
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/bin/as
-o /tmp/cc0NneNj.o /tmp/ccp4RiKp.s
/usr/libexec/gcc/i586-mingw32msvc/4.2.1-sjlj/collect2 -Bdynamic -o
main.exe
/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.
-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/ccDm0qY9.o /tmp/cc0NneNj.o -lps4000 -lstdc++ -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]
Thanks again,
Mojca