Re: [Mingw-w64-public] Mingw toolchains and Clang
-Original Message- From: Alexey Pavlov [mailto:alex...@gmail.com] Sent: Wednesday, January 15, 2014 6:36 PM To: mingw-w64-public@lists.sourceforge.net Subject: [Mingw-w64-public] Mingw toolchains and Clang Long time ago we add possibility to build Clang into mingw-builds scripts. Now we want to provide Clang builds for mingw-w64 toolchains. There are two possibilities that we can do: 1. Include clang builds into toolchain archive 2. Provide separate builds of GCC+Clang I have a question to users what use our toolchains. I want you to vote for the best variant of doing that. I'd like to vote for the separate builds too. I'm especially afraid that having the two toolchains in one package / bin folder could confuse users, and tools like configure. (But I understand as well that creating yet another set of packages for clang might be quite some work for you. A compromise could be shipping clang, but in a separate folder, like 'clang-experimental\bin' or similar ...) Regards Kai -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] GNU Make 4.0
2013/12/16 Ruben Van Boxem vanboxem.ru...@gmail.com 2013/12/16 Alexey Pavlov alex...@gmail.com 2013/12/16 Ruben Van Boxem vanboxem.ru...@gmail.com: 2013/12/16 niXman i.nix...@autistici.org Ruben Van Boxem 2013-12-16 13:34: Hi, Quick question: does the GNU Make 4.0 release mean I don't need to patch the hell out of GNU Make anymore to make it function decently in a Windows environment, or are there still outstanding issues with it? If so, what patches would you recommend? The scripts[1] apply the patches themselves. Or what you mean? [1] https://github.com/niXman/mingw-builds/tree/develop I mean that those patches are 8 months old, and GNU Make 4.0 is out and I'm wondering if they're still relevant. And if they are, have they been signalled upstream? There are only two patches needed https://github.com/niXman/mingw-builds/blob/develop/scripts/make_git_bat.sh#L50-L51 I'm running into the strangest thing. Whatever I do to apply the getopt patch, it will always fail on hunk 2 and 3. I have taken it from mingw-builds, sezero's version at Savannah, my version in MinGW-w64-build-scripts, and even multiply tried to get a manual working diff. I feel stupid. Attached is the -p0 patch I ended up with after manually applying the changes and running diff -upr. Anyone know what's going wrong? Thanks, Ruben But we build make from git. If you want build released GNU Make-4.0 you also need: https://projects.archlinux.org/svntogit/packages.git/tree/trunk/make-4.0-char-cast.patch?h=packages/make Just what I needed. Thanks! Ruben Regards, Alexey. Cheers, Ruben -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public --- getopt.c +++ getopt.c @@ -434,6 +434,9 @@ _getopt_initialize (int argc, char *cons } else nonoption_flags_len = 0; +#else + (void)argc; + (void)argv; #endif return optstring; @@ -676,7 +679,7 @@ _getopt_internal (int argc, char *const optarg = nameend + 1; else { - if (opterr) + if (opterr) { if (argv[optind - 1][1] == '-') /* --option */ fprintf (stderr, @@ -688,6 +691,7 @@ _getopt_internal (int argc, char *const _(%s: option '%c%s' doesn't allow an argument\n), argv[0], argv[optind - 1][0], pfound-name); + } nextchar += strlen (nextchar); optopt = pfound-val; --- main.c +++ main.c @@ -1105,8 +1105,11 @@ main (int argc, char **argv, char **envp #endif +/* setlocale interferes with line buffering if using parallel make on MinGW */ +#ifndef __MINGW32__ /* Set up gettext/internationalization support. */ setlocale (LC_ALL, ); +#endif /* The cast to void shuts up compiler warnings on systems that disable NLS. */ (void)bindtextdomain (PACKAGE, LOCALEDIR); --- makeint.h +++ makeint.h @@ -409,7 +409,7 @@ extern int unixy_shell; # define MAP_VMSCOMMA 0x #endif -#define STOP_SET(_v,_m) ANY_SET (stopchar_map[(int)(_v)],(_m)) +#define STOP_SET(_v,_m) ANY_SET (stopchar_map[(unsigned char)(_v)],(_m)) #if defined(HAVE_SYS_RESOURCE_H) defined(HAVE_GETRLIMIT) defined(HAVE_SETRLIMIT) # define SET_STACK_SIZE -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] GNU Make 4.0
17 янв. 2014 г., в 13:20, Ruben Van Boxem vanboxem.ru...@gmail.com написал(а): 2013/12/16 Ruben Van Boxem vanboxem.ru...@gmail.com 2013/12/16 Alexey Pavlov alex...@gmail.com 2013/12/16 Ruben Van Boxem vanboxem.ru...@gmail.com: 2013/12/16 niXman i.nix...@autistici.org Ruben Van Boxem 2013-12-16 13:34: Hi, Quick question: does the GNU Make 4.0 release mean I don't need to patch the hell out of GNU Make anymore to make it function decently in a Windows environment, or are there still outstanding issues with it? If so, what patches would you recommend? The scripts[1] apply the patches themselves. Or what you mean? [1] https://github.com/niXman/mingw-builds/tree/develop I mean that those patches are 8 months old, and GNU Make 4.0 is out and I'm wondering if they're still relevant. And if they are, have they been signalled upstream? There are only two patches needed https://github.com/niXman/mingw-builds/blob/develop/scripts/make_git_bat.sh#L50-L51 I'm running into the strangest thing. Whatever I do to apply the getopt patch, it will always fail on hunk 2 and 3. I have taken it from mingw-builds, sezero's version at Savannah, my version in MinGW-w64-build-scripts, and even multiply tried to get a manual working diff. I feel stupid. Attached is the -p0 patch I ended up with after manually applying the changes and running diff -upr. Anyone know what's going wrong? Hi, Ruben! You can try to get from here too: https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-make We build GNU Make from git repo and maybe you need to recreate patch for release tarball. Regards, Alexey. Thanks, Ruben But we build make from git. If you want build released GNU Make-4.0 you also need: https://projects.archlinux.org/svntogit/packages.git/tree/trunk/make-4.0-char-cast.patch?h=packages/make Just what I needed. Thanks! Ruben Regards, Alexey. Cheers, Ruben -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public make-win32.patch.txt-- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] (no subject)
here is the commandline, -lshell32 has been included. commandlines are exactly the smae for 64-bit and 32-bit except for path to g++.exe so, 32-bit compiler's libshell32.a is missing that function apparently. d:\i686-4.9.0-snapshot-20131119-rev205009-posix-sjlj-rt_v4\mingw32\bin\g++.exe -Wall -Wextra -v -save-temps -Xlinker -Map=32\df.32.map -Ofast -std=c++11 -mwindows -s -o 32\df.exe df.cpp \prj\lib\prsinum\prsinum.cpp \prj\lib\strfuncs\strfuncs.cpp \prj\lib\siiec\siiec.cpp -lstdc++ -lshlwapi -lkernel32 -lshell32 -lcrtdll if you need .ii files, let me know and I'll see what I can provide. gcc version 4.9.0 20131119 (experimental) (Built by MinGW-W64 project) COLLECT_GCC_OPTIONS='-Wall' '-Wextra' '-v' '-save-temps' '-Ofast' '-std=c++11' '-mwindows' '-s' '-o' '32\df.exe' '-shared-libgcc' '-mtune=generic' '-march=i686' d:/i686-4.9.0-snapshot-20131119-rev205009-posix-sjlj-rt_v4/mingw32/bin/../libexec/gcc/i686-w64-mingw32/4.9.0/cc1plus.exe -E -quiet -v -iprefix d:\i686-4.9.0-snapshot-20131119-rev205009-posix-sjlj-rt_v4\mingw32\bin\../lib/gcc/i686-w64-mingw32/4.9.0/ -D_REENTRANT df.cpp -mwindows -mtune=generic -march=i686 -std=c++11 -Wall -Wextra -Ofast -fpch-preprocess -o df.ii I I thought I had 4.9.0, but apprently I had 4.8.2 instead. tried 4.9.0 got same thing. d:/i686-4.9.0-snapshot-20131119-rev205009-posix-sjlj-rt_v4/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.0/../../../../i686-w64-mingw32/lib/../lib/libmingw32.a(lib32_libmingw32_a-merr.o):merr.c:(.text+0x60): multiple definition of `_matherr' d:/i686-4.9.0-snapshot-20131119-rev205009-posix-sjlj-rt_v4/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.0/../../../../i686-w64-mingw32/lib/../lib/libcrtdll.a(dwdis00177.o):(.text+0x0): first defined here df.o:df.cpp:(.text+0x270c): undefined reference to `_imp__SHValidateUNC@12' collect2.exe: error: ld returned 1 exit status I have no idea how I could get a multiple definition of _matherr or any of these other errors with a simple include and I think I am correctly using the libs (but I could be wrong). From: Ruben Van Boxem vanboxem.ru...@gmail.com To: mingw-w64-public@lists.sourceforge.net mingw-w64-public@lists.sourceforge.net Sent: Thursday, January 16, 2014 12:51 AM Subject: Re: [Mingw-w64-public] (no subject) 2014/1/16 Jim Michaels jmich...@yahoo.com ntstatus.h:#define STATUS_INVALID_IMAGE_FORMAT ((NTSTATUS)0xC07B) when I run my 64-bit exe, I get this windows error dialog box with the above error number saying the application cannot start in windows 64-bit. in 32-bit, it refuses to link due to 2 library coding error2 in the compiler (the 2nd error I don't know what it means): d:/i686-4.8.2-release-win32-sjlj-rt_v3-rev0/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/lib/../lib/libmingw32.a(lib32_libmingw32_a-merr.o):merr.c:(.text+0x60): multiple definition of `_matherr' d:/i686-4.8.2-release-win32-sjlj-rt_v3-rev0/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/lib/../lib/libcrtdll.a(dqkfs00177.o):(.text+0x0): first defined here df.o:df.cpp:(.text+0x2a01): undefined reference to `_imp__SHValidateUNC@12' collect2.exe: error: ld returned 1 exit status _SHValidateUNC is defined in libshell32: http://msdn.microsoft.com/en-us/library/windows/desktop/bb762259%28v=vs.85%29.aspx The other error might be a bug in MinGW-w64, or it might be a bug in your compilation options. Do you have a SSCCE? the compilers I am using, personal build of experimental posix 4.9.0: i686-4.8.2-release-posix-sjlj-rt_v3-rev0 x86_64-4.8.2-release-posix-sjlj-rt_v3-rev0 This looks like GCC 4.8.2, not 4.9. the crtdll.dll gave me an error on start saying it was missing because it's ONLY in %SystemRoot%\SysWOW64 on 64-bit (maybe win7 and up?) and this is not in the default PATH you get with a windows install. so a lot of people think they have a virus (there are pages to this effect) or they need to do a system restore due to an about.com web page that makes assumptions... In general, Windows has very complicated system DLL search stuff. This includes winsxs, which is so complicated you should never muck with any of it yourself, and let Windows handle it. Anyways, on Windows 7 x64 Pro SP1, I've got a 32-bit crtdll.dll in some winsxs directory, and one in SysWOW64. This last directory is definitely searched for system DLLs in 32-bit applications (just check with Dependency Walker). I don't know where you get the information this is not the case. Ruben -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
Re: [Mingw-w64-public] (no subject)
the 0XC07B incorrect image error dialog I am geting on startup of my 64-bit program leads me to conclude that: - since crtdll.dll is a 32-bit dll (ms stored 32-bit dll's and exes in c:\windows\SysWOW64 and 64-bit stuff in c:\windows\system32 go figure), - and crtdll.dll is not available in system32 but only in syswow64 on win7, - and %systemroot%\syswow64 is not in the path when you install windows, the 64-bit compilers should not use this DLL (mixing 32-bit DLL with 64-bit exe can't be good???). the incorrect image error I wonder about. perhaps it'f elf or coff when it should be something else, or is not in proper exe format for 64-bit? or is it the mixture of 64-bit exe with dll? or both? From: Ruben Van Boxem vanboxem.ru...@gmail.com To: mingw-w64-public@lists.sourceforge.net mingw-w64-public@lists.sourceforge.net Sent: Thursday, January 16, 2014 12:51 AM Subject: Re: [Mingw-w64-public] (no subject) 2014/1/16 Jim Michaels jmich...@yahoo.com ntstatus.h:#define STATUS_INVALID_IMAGE_FORMAT ((NTSTATUS)0xC07B) when I run my 64-bit exe, I get this windows error dialog box with the above error number saying the application cannot start in windows 64-bit. in 32-bit, it refuses to link due to 2 library coding error2 in the compiler (the 2nd error I don't know what it means): d:/i686-4.8.2-release-win32-sjlj-rt_v3-rev0/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/lib/../lib/libmingw32.a(lib32_libmingw32_a-merr.o):merr.c:(.text+0x60): multiple definition of `_matherr' d:/i686-4.8.2-release-win32-sjlj-rt_v3-rev0/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/lib/../lib/libcrtdll.a(dqkfs00177.o):(.text+0x0): first defined here df.o:df.cpp:(.text+0x2a01): undefined reference to `_imp__SHValidateUNC@12' collect2.exe: error: ld returned 1 exit status _SHValidateUNC is defined in libshell32: http://msdn.microsoft.com/en-us/library/windows/desktop/bb762259%28v=vs.85%29.aspx The other error might be a bug in MinGW-w64, or it might be a bug in your compilation options. Do you have a SSCCE? the compilers I am using, personal build of experimental posix 4.9.0: i686-4.8.2-release-posix-sjlj-rt_v3-rev0 x86_64-4.8.2-release-posix-sjlj-rt_v3-rev0 This looks like GCC 4.8.2, not 4.9. the crtdll.dll gave me an error on start saying it was missing because it's ONLY in %SystemRoot%\SysWOW64 on 64-bit (maybe win7 and up?) and this is not in the default PATH you get with a windows install. so a lot of people think they have a virus (there are pages to this effect) or they need to do a system restore due to an about.com web page that makes assumptions... In general, Windows has very complicated system DLL search stuff. This includes winsxs, which is so complicated you should never muck with any of it yourself, and let Windows handle it. Anyways, on Windows 7 x64 Pro SP1, I've got a 32-bit crtdll.dll in some winsxs directory, and one in SysWOW64. This last directory is definitely searched for system DLLs in 32-bit applications (just check with Dependency Walker). I don't know where you get the information this is not the case. Ruben -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
[Mingw-w64-public] Memory leaks in exception handling? The third example(test suites).
No std::exception_ptr invoked, still there seems to be memory leaks. Run make_test.cmd and you will get a.exe. Then run a.exe. I got the following results: thread 10256: malloc(8) = 00474730 // This leaked. thread 10256: malloc(2) = 00474740 thread thread 10820: malloc(100) = 004749C8 thread 10820: calloc(12) = 00474A38 // Ditto. thread 10820: calloc(136) = 00474A50 thread 10820: malloc(12) = 00474AE0 thread 10820: free(004749C8) thread 10820: free(00474AE0) thread 10820: free(00474A50) main thread 10256: malloc(100) = 00474750 thread 10256: calloc(136) = 004747C0 thread 10256: malloc(12) = 00474850 thread 10256: free(00474750) thread 10256: free(00474850) thread 10256: free(004747C0) Best regards. 2014-01-17 lh_mouse test.cpp Description: Binary data mem.c Description: Binary data make_test.cmd_ Description: Binary data -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] Memory leaks in exception handling? The third example(test suites).
lh_mouse lh_mo...@126.com schrieb am 15:06 Freitag, 17.Januar 2014: No std::exception_ptr invoked, still there seems to be memory leaks. Run make_test.cmd and you will get a.exe. Then run a.exe. I got the following results: I've tried now your example and came to the same(?) result. These were the leaks I detected: calloc(12) 0x0040D743: c:/gcc/src/mingw-w64/mingw-w64-crt/crt/tlsthrd.c:47 0x0040E9EC: c:\gcc\build32\gcc\i686-w64-mingw32\libgcc/./gthr-default.h:596 0x0040E9EC: c:/gcc/src/gcc-4.8.2/libgcc/emutls.c:87 0x0040EC25: c:\gcc\build32\gcc\i686-w64-mingw32\libgcc/./gthr-default.h:563 0x0040EC25: c:/gcc/src/gcc-4.8.2/libgcc/emutls.c:144 0x004106AE: C:\qiewer-git\dwarfstack\examples\leak-detector\inc\tl.exe 0x7C80B728: C:\WINDOWS\system32\kernel32.dll malloc(12) 0x00410DCC: c:/gcc/src/gcc-4.8.2/libgcc/emutls.c:102 0x004106AE: C:\qiewer-git\dwarfstack\examples\leak-detector\inc\tl.exe 0x0040140D: c:/gcc/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:352 0x7C817076: C:\WINDOWS\system32\kernel32.dll calloc(136) 0x0040EB35: c:/gcc/src/gcc-4.8.2/libgcc/emutls.c:159 0x004106AE: C:\qiewer-git\dwarfstack\examples\leak-detector\inc\tl.exe 0x0040140D: c:/gcc/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:352 0x7C817076: C:\WINDOWS\system32\kernel32.dll Regards Domani Hannes -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] Linker crash
-- Subject: Re: [Mingw-w64-public] Linker crash To: mingw-w64-public@lists.sourceforge.net mingw-w64-public@lists.sourceforge.net Message-ID: calc40c88ap2_vggkhgwp3dahb6nx-rgkdffhezn+lof16td...@mail.gmail.com Content-Type: text/plain; charset=utf-8 Hi, I'm trying to crosscompile robovm library (from robovm.org) on Linux to a windows dll. All small dlls and test work/run great on windows, but compiling basically LLVM to a dll seems too much for the linker. The linker crashes immediately with core dump, as seen below. Steps I took are explained at: https://groups.google.com/forum/#!topic/robovm/-ysEgS_8J54 Any suggestions? What version of ld is crashing? If it's not 2.24, I'd try with this version. How much memory is it using at the moment of the crash (roughly)? If it is a lot, is it a 32-bit or 64-bit executable? It sounds like an out-of-memory issue. If x86_64-w64-mingw32-ld is a 32-bit executable and ld is using almost 2GB of memory, I'd suggest trying with a 64-bit linker. Ruben It crashes so fast that I don't see significant memory use I'm on latest Ubuntu, 64bit machine, 64 bit linker, 4GB mem Linker option --no-keep-memory does not make any difference, not so sure is mem problem... When playing more with linker options, it seems to help to put -Wl,--whole-archive archive as last parameter solves the crash!? Anyway thanks for the quick response Regards Jan --- Linking CXX shared library librobovm-llvm.dll *** Error in `/usr/bin/x86_64-w64-mingw32-ld': free(): invalid pointer: 0x01219888 *** === Backtrace: = /lib/x86_64-linux-gnu/libc.so.6(+0x73baf)[0x2ab75b41fbaf] /lib/x86_64-linux-gnu/libc.so.6(+0x8067a)[0x2ab75b42c67a] /usr/bin/x86_64-w64-mingw32-ld[0x43ad15] -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
[Mingw-w64-public] there is lib and lib64, how target 32-bit/64-bit?
there is lib and lib64, how do I target specific cpu type (32-bit/64-bit)? am using i686-4.9.0-snapshot-20131119-rev205009-posix-sjlj-rt_v4 x86_64-4.9.0-snapshot-20131119-rev205009-posix-sjlj-rt_v4 which of these compilers is hosted on x64? does posix mean the posix subsystem of windows be installed for it to work (already did, but need to know for customers)? in the 64-bit compiler, it has lib and lib32. in the 32-bit compiler, it has lib and lib64.so now curious what this all now means. thanks. - Jim Michaels jmich...@yahoo.com j...@renewalcomputerservices.com http://RenewalComputerServices.com http://JesusnJim.com (my personal site, has software) --- IEC Units: Computer RAM SSD measurements, microsoft disk size measurements (note: they will say GB or MB or KB or TB when it is IEC Units!): [KiB] [MiB] [GiB] [TiB] [2^10B=1,024^1B=1KiB] [2^20B=1,024^2B=1,048,576B=1MiB] [2^30B=1,024^3B=1,073,741,824B=1GiB] [2^40B=1,024^4B=1,099,511,627,776B=1TiB] [2^50B=1,024^5B=1,125,899,906,842,624B=1PiB] SI Units: Hard disk industry disk size measurements: [kB] [MB] [GB] [TB] [10^3B=1,000B=1kB] [10^6B=1,000,000B=1MB] [10^9B=1,000,000,000B=1GB] [10^12B=1,000,000,000,000B=1TB] [10^15B=1,000,000,000,000,000B=1PB]-- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] there is lib and lib64, how target 32-bit/64-bit?
You have to use the flags -m32 or -m64 to specify the target. The i686 will target 32bit by default, the same happens with the x86_64, it defaults to 64bit. 2014/1/17 Jim Michaels jmich...@yahoo.com there is lib and lib64, how do I target specific cpu type (32-bit/64-bit)? am using i686-4.9.0-snapshot-20131119-rev205009-posix-sjlj-rt_v4 x86_64-4.9.0-snapshot-20131119-rev205009-posix-sjlj-rt_v4 which of these compilers is hosted on x64? does posix mean the posix subsystem of windows be installed for it to work (already did, but need to know for customers)? in the 64-bit compiler, it has lib and lib32. in the 32-bit compiler, it has lib and lib64. so now curious what this all now means. thanks. - Jim Michaels jmich...@yahoo.com jmich...@yahoo.com j...@renewalcomputerservices.com http:// http://renewalcomputerservices.com/RenewalComputerServices.comhttp://renewalcomputerservices.com/ http://JesusnJim.com http://jesusnjim.com/ (my personal site, has software) --- IEC Units: Computer RAM SSD measurements, microsoft disk size measurements (note: they will say GB or MB or KB or TB when it is IEC Units!): [KiB] [MiB] [GiB] [TiB] [2^10B=1,024^1B=1KiB] [2^20B=1,024^2B=1,048,576B=1MiB] [2^30B=1,024^3B=1,073,741,824B=1GiB] [2^40B=1,024^4B=1,099,511,627,776B=1TiB] [2^50B=1,024^5B=1,125,899,906,842,624B=1PiB] SI Units: Hard disk industry disk size measurements: [kB] [MB] [GB] [TB] [10^3B=1,000B=1kB] [10^6B=1,000,000B=1MB] [10^9B=1,000,000,000B=1GB] [10^12B=1,000,000,000,000B=1TB] [10^15B=1,000,000,000,000,000B=1PB] -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public