Page 1 of 2

Strange error in codelite_make

Posted: Sun Oct 13, 2013 9:01 pm
by solewalker
I tried to compile the latest git head, and faced this error, I have never encountered this problem before, I might have messed up my mingw32_make, but I have no clue where should I look at, I can run and build other C++ projects of mine just fine.

Code: Select all

"----------Building project:[ codelite_make - Release ]----------"
mingw32-make.exe[1]: Entering directory `E:/codelite_wx295/codelitegit/codelite_make'
g++ -o ./Release/codelite-make ./Release/cl_make_generator_app.o   -L. -L../lib/gcc_lib  -lcodeliteu -lplugin_sdku -lwxsqlite3u  -s  -mthreads -LE:\wxWidgets-2.9.5\lib\gcc_dll -lwxmsw29u_xrc -lwxmsw29u_aui -lwxmsw29u_html -lwxmsw29u_adv -lwxmsw29u_core -lwxbase29u_xml -lwxbase29u_net -lwxmsw29u_richtext -lwxbase29u -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexu -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
E:\MinGW-4.7.1\bin/ld.exe: cannot find -lcodeliteu
E:\MinGW-4.7.1\bin/ld.exe: cannot find -lplugin_sdku
E:\MinGW-4.7.1\bin/ld.exe: cannot find -lwxsqlite3u
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[1]: *** [Release/codelite-make] Error 1
mingw32-make.exe: *** [All] Error 2
codelite_make.mk:82: recipe for target `Release/codelite-make' failed
mingw32-make.exe[1]: Leaving directory `E:/codelite_wx295/codelitegit/codelite_make'
Makefile:4: recipe for target `All' failed
0 errors, 0 warnings
Any help on where should I look for, or should I reinstall mingw.

Re: Strange error in codelite_make

Posted: Sun Oct 13, 2013 9:29 pm
by eranif
You should build codelite first, following by the codelite_utils.workspace

I have updated the file BuildInfo.txt ( you can do git pull to get the latest version )
Eran

Re: Strange error in codelite_make

Posted: Sun Oct 13, 2013 11:22 pm
by solewalker
Thanks, that did the trick :) Till now, I was compiling utils first before codelite, either I was doing it wrong or build order is changed, anyway the problem is solved.

Re: Strange error in codelite_make

Posted: Thu Oct 17, 2013 3:57 pm
by solewalker
I tried to build git head today, but now my codelite crashes with an error. I first tried to build lite_editor after that tried building codelite_utils. I also deleted 'codelite' folder in my 'appdata' folder. I must be doing something wrong. I am on windows 7 64bit

Image

Re: Strange error in codelite_make

Posted: Thu Oct 17, 2013 4:08 pm
by eranif
Try running it under gdb I cant figure out why it crashes from that dialog ..

Eran

Re: Strange error in codelite_make

Posted: Thu Oct 17, 2013 4:11 pm
by solewalker
Please excuse my ignorance but I don't know how to run codelite.exe under gdb, is there any command to do so ?

Edit: I built codelite in 'windows release unicode', do I need to build it in 'Debug' mode ?

Re: Strange error in codelite_make

Posted: Thu Oct 17, 2013 4:15 pm
by eranif
You should have a gdb installed (it comes with MinGW)

open CMD.EXE and type:

Code: Select all

gdb /path/to/codelite.exe
(gdb) run
When codelite crashes, type in the cmd shell:
bt

copy paste the output here

Eran

Re: Strange error in codelite_make

Posted: Thu Oct 17, 2013 4:22 pm
by solewalker
Okay, here it is

Code: Select all

(gdb) bt
#0  0x77600475 in ntdll!TpWaitForAlpcCompletion ()
   from C:\Windows\system32\ntdll.dll
#1  0x0028f3b0 in ?? ()
#2  0x775c29c0 in ntdll!RtlCopyExtendedContext ()
   from C:\Windows\system32\ntdll.dll
#3  0x00882ba8 in ?? ()
#4  0x776014cf in ntdll!TpQueryPoolStackInformation ()
   from C:\Windows\system32\ntdll.dll
#5  0x00ff0000 in ?? ()
#6  0x775bab3a in ntdll!AlpcMaxAllowedMessageLength ()
   from C:\Windows\system32\ntdll.dll
#7  0x00ff0000 in ?? ()
#8  0x77563472 in ntdll!RtlLargeIntegerShiftRight ()
   from C:\Windows\system32\ntdll.dll
#9  0x00882ba8 in ?? ()
#10 0x752398cd in msvcrt!free () from C:\Windows\syswow64\msvcrt.dll
#11 0x00ff0000 in ?? ()
#12 0x6388a242 in std::basic_string<wchar_t, std::char_traits<wchar_t>, std::all
ocator<wchar_t> >::assign(std::basic_string<wchar_t, std::char_traits<wchar_t>,
std::allocator<wchar_t> > const&) ()
   from e:\ProgramFiles(x86)\CodeLite\wxbase295u_gcc_cl.dll
#13 0x00000003 in ?? ()
#14 0x63924e48 in vtable for wxObject ()
   from e:\ProgramFiles(x86)\CodeLite\wxbase295u_gcc_cl.dll
#15 0x00000000 in ?? ()

Re: Strange error in codelite_make

Posted: Thu Oct 17, 2013 4:29 pm
by eranif
I failed to mention this, but you will need to build codelite in debug (select the WinDebugUnicode configuration in codelite)
in order to get some useful information

Eran

Re: Strange error in codelite_make

Posted: Thu Oct 17, 2013 4:50 pm
by solewalker
Now there is a problem, after building it in debug mode, codelite starts just fine, no more errors or anything. Now what to do :?