Page 1 of 2

Codelite Cannot set Compilers - macOS 11 Big Sur Beta 9

Posted: Thu Oct 01, 2020 4:08 pm
by evstevemd
See the Images. Compilers are detected but After pressing OK It crashes. Apple crash reporter (Whatever its official name) reported the attached Log/Trace
Screen Shot 2020-10-01 at 15.01.44.png
First One clicked OK, remained this one
Screen Shot 2020-10-01 at 15.02.01.png
Clicking OK got a crash!

Could not build and debug myself as always when I follow the Mac Build Guide I get missing library during linking and am yet to get time to fix that!

Re: Codelite Cannot set Compilers - macOS 11 Big Sur Beta 9

Posted: Thu Oct 01, 2020 9:22 pm
by eranif
Sorry, I did not install macOS 11 yet :) still with 10.15 (or is it 10.16? ) :)
As soon as I will upgrade, I will check this

Re: Codelite Cannot set Compilers - macOS 11 Big Sur Beta 9

Posted: Thu Oct 01, 2020 9:26 pm
by evstevemd
eranif wrote: Thu Oct 01, 2020 9:22 pm Sorry, I did not install macOS 11 yet :) still with 10.15 (or is it 10.16? ) :)
As soon as I will upgrade, I will check this
There is funny way apple have played around naming. The 10.16 is the number that never was. They renamed it to 11.0
It is mostly stable now except few (and important) apps are not usable!

I can edit code fine with CL, but cannot compile it since I don't have compiler set.

Is there a way I can manually configure the Compilers? Am sure CL is writing the config somewhere for it to remember!

Re: Codelite Cannot set Compilers - macOS 11 Big Sur Beta 9

Posted: Thu Nov 12, 2020 7:45 pm
by evstevemd
With Big sur release scheduled 12th Nov, any chances to have CL working with that version?

Re: Codelite Cannot set Compilers - macOS 11 Big Sur Beta 9

Posted: Mon Dec 14, 2020 11:46 am
by evstevemd
@eranif Do you have any idea when weekly release woking with MacOS 11 will be released?

Re: Codelite Cannot set Compilers - macOS 11 Big Sur Beta 9

Posted: Wed Dec 16, 2020 1:39 am
by eranif
I will see if I can upgrade my macbook tomorrow
we are working towards 15 to be accepted into debian

Re: Codelite Cannot set Compilers - macOS 11 Big Sur Beta 9

Posted: Thu Dec 17, 2020 9:18 am
by evstevemd
eranif wrote: Wed Dec 16, 2020 1:39 am I will see if I can upgrade my macbook tomorrow
we are working towards 15 to be accepted into debian
Great News!

Today I got some hours and tried to compile the CL and did spent a lot of hours in Linker error for Mac. I finally found that in CMakeFile.txt at the root is not setting richtext library for Mac. I don't know why you do that.

Code: Select all

## build wxCrafter?
if ( WITH_WXC )
    set(BUILD_WXC 1)
    if ( UNIX AND NOT APPLE )
        set(WX_COMPONENTS "std aui propgrid stc richtext ribbon") // I added this to avoid linker error
    endif (UNIX AND NOT APPLE )
endif ( WITH_WXC )
unset(WITH_WXC CACHE)
Then when succeeded I ran CL under debugger to catch the crash. Here is a ST. I couldn't go indepth since I spend most of my time making it compile. I will try to find time and go to specific offending code to see what is the issue. Meanwhile here we go!

Code: Select all

thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
  * frame #0: 0x000000010181ffdd libplugin.dylib`BuildSettingsConfig::SetCompiler(SmartPtr<Compiler>) + 685
    frame #1: 0x000000010001aa1c codelite`CompilerMainPage::Save() + 124
    frame #2: 0x000000010005443d codelite`BuildSettingsDialog::OnApply(wxCommandEvent&) + 45
    frame #3: 0x0000000100052ea2 codelite`BuildSettingsDialog::OnButtonOKClicked(wxCommandEvent&) + 18
    frame #4: 0x00000001015fd864 libwx_baseu-3.1.dylib`wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 88
    frame #5: 0x00000001015fe9cf libwx_baseu-3.1.dylib`wxEvtHandler::SearchDynamicEventTable(wxEvent&) + 119
    frame #6: 0x00000001015fe904 libwx_baseu-3.1.dylib`wxEvtHandler::TryHereOnly(wxEvent&) + 40
    frame #7: 0x00000001015fe854 libwx_baseu-3.1.dylib`wxEvtHandler::ProcessEventLocally(wxEvent&) + 34
    frame #8: 0x00000001015fe760 libwx_baseu-3.1.dylib`wxEvtHandler::ProcessEvent(wxEvent&) + 40
    frame #9: 0x00000001015feb16 libwx_baseu-3.1.dylib`wxEvtHandler::SafelyProcessEvent(wxEvent&) + 12
    frame #10: 0x0000000100ec2309 libwx_osx_cocoau_core-3.1.dylib`wxButton::OSXHandleClicked(double) + 117
    frame #11: 0x00007fff22e92c4a AppKit`-[NSApplication(NSResponder) sendAction:to:from:] + 283
    frame #12: 0x00007fff22e92af5 AppKit`-[NSControl sendAction:to:] + 86
    frame #13: 0x00007fff22e92a27 AppKit`__26-[NSCell _sendActionFrom:]_block_invoke + 131
    frame #14: 0x00007fff22e9292e AppKit`-[NSCell _sendActionFrom:] + 171
    frame #15: 0x00007fff22e92875 AppKit`-[NSButtonCell _sendActionFrom:] + 96
    frame #16: 0x00007fff22e8f981 AppKit`NSControlTrackMouse + 1757
    frame #17: 0x00007fff22e8f27c AppKit`-[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 130
    frame #18: 0x00007fff22e8f141 AppKit`-[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 697
    frame #19: 0x00007fff22e8e47b AppKit`-[NSControl mouseDown:] + 722
    frame #20: 0x0000000100f4ff8f libwx_osx_cocoau_core-3.1.dylib`wxWidgetCocoaImpl::mouseEvent(NSEvent*, NSView*, void*) + 261
    frame #21: 0x00007fff22e8c908 AppKit`-[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 4956
    frame #22: 0x00007fff22dfc784 AppKit`-[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2594
    frame #23: 0x00007fff22dfbb46 AppKit`-[NSWindow(NSEventRouting) sendEvent:] + 347
    frame #24: 0x0000000100f3ea0b libwx_osx_cocoau_core-3.1.dylib`-[wxNSPanel sendEvent:] + 122
    frame #25: 0x00007fff22df9f2c AppKit`-[NSApplication(NSEvent) sendEvent:] + 352
    frame #26: 0x0000000100ea4352 libwx_osx_cocoau_core-3.1.dylib`-[wxNSApplication sendEvent:] + 96
    frame #27: 0x00007fff22f48a34 AppKit`-[NSApplication _doModalLoop:peek:] + 366
    frame #28: 0x00007fff230d1a39 AppKit`__33-[NSApplication runModalSession:]_block_invoke_2 + 69
    frame #29: 0x00007fff230d19e1 AppKit`__33-[NSApplication runModalSession:]_block_invoke + 78
    frame #30: 0x00007fff22f46fb3 AppKit`_NSTryRunModal + 100
    frame #31: 0x00007fff230d18dc AppKit`-[NSApplication runModalSession:] + 128
    frame #32: 0x0000000100f35892 libwx_osx_cocoau_core-3.1.dylib`wxGUIEventLoop::DoDispatchTimeout(unsigned long) + 64
    frame #33: 0x00000001015d6c47 libwx_baseu-3.1.dylib`wxCFEventLoop::DispatchTimeout(unsigned long) + 35
    frame #34: 0x00000001015d6d58 libwx_baseu-3.1.dylib`wxCFEventLoop::OSXDoRun() + 92
    frame #35: 0x0000000100f35e24 libwx_osx_cocoau_core-3.1.dylib`wxModalEventLoop::OSXDoRun() + 110
    frame #36: 0x00000001015d6da5 libwx_baseu-3.1.dylib`wxCFEventLoop::DoRun() + 29
    frame #37: 0x0000000101539991 libwx_baseu-3.1.dylib`wxEventLoopBase::Run() + 161
    frame #38: 0x0000000100ea6825 libwx_osx_cocoau_core-3.1.dylib`wxDialog::ShowModal() + 101
    frame #39: 0x00000001001bd810 codelite`clMainFrame::OnAdvanceSettings(wxCommandEvent&) + 368
    frame #40: 0x00000001015fd864 libwx_baseu-3.1.dylib`wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 88
    frame #41: 0x00000001015fd763 libwx_baseu-3.1.dylib`wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 119
    frame #42: 0x00000001015fe922 libwx_baseu-3.1.dylib`wxEvtHandler::TryHereOnly(wxEvent&) + 70
    frame #43: 0x00000001015fe854 libwx_baseu-3.1.dylib`wxEvtHandler::ProcessEventLocally(wxEvent&) + 34
    frame #44: 0x00000001015fe760 libwx_baseu-3.1.dylib`wxEvtHandler::ProcessEvent(wxEvent&) + 40
    frame #45: 0x00000001015fe561 libwx_baseu-3.1.dylib`wxEvtHandler::ProcessPendingEvents() + 669
    frame #46: 0x00000001015102c0 libwx_baseu-3.1.dylib`wxAppConsoleBase::ProcessPendingEvents() + 188
    frame #47: 0x00000001015d6875 libwx_baseu-3.1.dylib`wxCFEventLoop::CommonModeObserverCallBack(__CFRunLoopObserver*, int) + 49
    frame #48: 0x00007fff2045fd9d CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
    frame #49: 0x00007fff2045fc2d CoreFoundation`__CFRunLoopDoObservers + 549
    frame #50: 0x00007fff2045f0dd CoreFoundation`__CFRunLoopRun + 838
    frame #51: 0x00007fff2045e6be CoreFoundation`CFRunLoopRunSpecific + 563
    frame #52: 0x00007fff286c2fd0 HIToolbox`RunCurrentEventLoopInMode + 292
    frame #53: 0x00007fff286c2c22 HIToolbox`ReceiveNextEventCommon + 283
    frame #54: 0x00007fff286c2aef HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 64
    frame #55: 0x00007fff22c71f85 AppKit`_DPSNextEvent + 883
    frame #56: 0x00007fff22c7074b AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1366
    frame #57: 0x00007fff22f489f5 AppKit`-[NSApplication _doModalLoop:peek:] + 303
    frame #58: 0x00007fff230d1a39 AppKit`__33-[NSApplication runModalSession:]_block_invoke_2 + 69
    frame #59: 0x00007fff230d19e1 AppKit`__33-[NSApplication runModalSession:]_block_invoke + 78
    frame #60: 0x00007fff22f46fb3 AppKit`_NSTryRunModal + 100
    frame #61: 0x00007fff230d18dc AppKit`-[NSApplication runModalSession:] + 128
    frame #62: 0x0000000100f35892 libwx_osx_cocoau_core-3.1.dylib`wxGUIEventLoop::DoDispatchTimeout(unsigned long) + 64
    frame #63: 0x00000001015d6c47 libwx_baseu-3.1.dylib`wxCFEventLoop::DispatchTimeout(unsigned long) + 35
    frame #64: 0x00000001015d6d58 libwx_baseu-3.1.dylib`wxCFEventLoop::OSXDoRun() + 92
    frame #65: 0x0000000100f35e24 libwx_osx_cocoau_core-3.1.dylib`wxModalEventLoop::OSXDoRun() + 110
    frame #66: 0x00000001015d6da5 libwx_baseu-3.1.dylib`wxCFEventLoop::DoRun() + 29
    frame #67: 0x0000000101539991 libwx_baseu-3.1.dylib`wxEventLoopBase::Run() + 161
    frame #68: 0x0000000100ea6825 libwx_osx_cocoau_core-3.1.dylib`wxDialog::ShowModal() + 101
    frame #69: 0x00000001001bd810 codelite`clMainFrame::OnAdvanceSettings(wxCommandEvent&) + 368
    frame #70: 0x00000001015fd864 libwx_baseu-3.1.dylib`wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 88
    frame #71: 0x00000001015fd763 libwx_baseu-3.1.dylib`wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 119
    frame #72: 0x00000001015fe922 libwx_baseu-3.1.dylib`wxEvtHandler::TryHereOnly(wxEvent&) + 70
    frame #73: 0x00000001015fe854 libwx_baseu-3.1.dylib`wxEvtHandler::ProcessEventLocally(wxEvent&) + 34
    frame #74: 0x00000001015fe760 libwx_baseu-3.1.dylib`wxEvtHandler::ProcessEvent(wxEvent&) + 40
    frame #75: 0x0000000101046b05 libwx_osx_cocoau_core-3.1.dylib`wxWindowBase::TryAfter(wxEvent&) + 149
    frame #76: 0x00000001015feb16 libwx_baseu-3.1.dylib`wxEvtHandler::SafelyProcessEvent(wxEvent&) + 12
    frame #77: 0x0000000101009b7b libwx_osx_cocoau_core-3.1.dylib`wxMenuBase::DoProcessEvent(wxMenuBase*, wxEvent&, wxWindow*) + 125
    frame #78: 0x0000000101009a96 libwx_osx_cocoau_core-3.1.dylib`wxMenuBase::SendEvent(int, int) + 164
    frame #79: 0x0000000100ec8369 libwx_osx_cocoau_core-3.1.dylib`wxMenu::HandleCommandProcess(wxMenuItem*, wxWindow*) + 121
    frame #80: 0x00007fff22e92c4a AppKit`-[NSApplication(NSResponder) sendAction:to:from:] + 283
    frame #81: 0x00007fff22f956f1 AppKit`-[NSMenuItem _corePerformAction] + 413
    frame #82: 0x00007fff22f95410 AppKit`-[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 95
    frame #83: 0x00007fff22fe146c AppKit`-[NSMenu performActionForItemAtIndex:] + 113
    frame #84: 0x00007fff22fe13f2 AppKit`-[NSMenu _internalPerformActionForItemAtIndex:] + 82
    frame #85: 0x00007fff22fe123a AppKit`-[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 101
    frame #86: 0x00007fff22f78085 AppKit`NSSLMMenuEventHandler + 889
    frame #87: 0x00007fff2869be60 HIToolbox`DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1431
    frame #88: 0x00007fff2869b239 HIToolbox`SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 329
    frame #89: 0x00007fff286b0a5a HIToolbox`SendEventToEventTarget + 39
    frame #90: 0x00007fff28710c47 HIToolbox`SendHICommandEvent(unsigned int, HICommand const*, unsigned int, unsigned int, unsigned char, void const*, OpaqueEventTargetRef*, OpaqueEventTargetRef*, OpaqueEventRef**) + 368
    frame #91: 0x00007fff28738141 HIToolbox`SendMenuCommandWithContextAndModifiers + 45
    frame #92: 0x00007fff287380ec HIToolbox`SendMenuItemSelectedEvent + 346
    frame #93: 0x00007fff28737f35 HIToolbox`FinishMenuSelection(SelectionData*, MenuResult*, MenuResult*) + 96
    frame #94: 0x00007fff28738939 HIToolbox`MenuSelectCore(MenuData*, Point, double, unsigned int, OpaqueMenuRef**, unsigned short*) + 613
    frame #95: 0x00007fff2873863f HIToolbox`_HandleMenuSelection2 + 460
    frame #96: 0x00007fff22e2af45 AppKit`_NSHandleCarbonMenuEvent + 215
    frame #97: 0x00007fff22e2adb2 AppKit`_DPSEventHandledByCarbon + 54
    frame #98: 0x00007fff22c70df1 AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3068
    frame #99: 0x00007fff22c62bda AppKit`-[NSApplication run] + 586
    frame #100: 0x0000000100f35aa9 libwx_osx_cocoau_core-3.1.dylib`wxGUIEventLoop::OSXDoRun() + 165
    frame #101: 0x00000001015d6da5 libwx_baseu-3.1.dylib`wxCFEventLoop::DoRun() + 29
    frame #102: 0x0000000101539991 libwx_baseu-3.1.dylib`wxEventLoopBase::Run() + 161
    frame #103: 0x000000010150fa50 libwx_baseu-3.1.dylib`wxAppConsoleBase::MainLoop() + 90
    frame #104: 0x0000000100edfccc libwx_osx_cocoau_core-3.1.dylib`wxApp::OnRun() + 26
    frame #105: 0x000000010156d270 libwx_baseu-3.1.dylib`wxEntry(int&, wchar_t**) + 63
    frame #106: 0x0000000100054fd0 codelite`main + 48
    frame #107: 0x00007fff20383631 libdyld.dylib`start + 1
    frame #108: 0x00007fff20383631 libdyld.dylib`start + 1

Re: Codelite Cannot set Compilers - macOS 11 Big Sur Beta 9

Posted: Fri Dec 18, 2020 2:14 am
by eranif
I committed a fix that should fix this. please give it a try

Re: Codelite Cannot set Compilers - macOS 11 Big Sur Beta 9

Posted: Fri Dec 18, 2020 2:22 pm
by evstevemd
eranif wrote: Fri Dec 18, 2020 2:14 am I committed a fix that should fix this. please give it a try
Thanks. Let me try it out!

Re: Codelite Cannot set Compilers - macOS 11 Big Sur Beta 9

Posted: Fri Dec 18, 2020 3:04 pm
by evstevemd
The CMakefile.txt is still not fixed for Mac to include richtext library. I still get the error with command

Code: Select all

cmake .. -DCMAKE_BUILD_TYPE=Build -DWITH_WXC=1 -DCOPY_WX_LIBS=1 -DWITH_PCH=0 && make -j16
Error

Code: Select all

[100%] Linking CXX executable ../bin/codelite
Undefined symbols for architecture x86_64:
  "wxRichTextCtrl::wxRichTextCtrl(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, long, wxValidator const&, wxString const&)", referenced from:
      PluginMgrDlgBase::PluginMgrDlgBase(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, long) in plugindlgbase.cpp.o
  "wxRichTextBuffer::BeginBold()", referenced from:
      PluginMgrDlg::CreateInfoPage(unsigned int) in pluginmgrdlg.cpp.o
      PluginMgrDlg::WritePropertyLine(wxString const&, wxString const&) in pluginmgrdlg.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [bin/codelite] Error 1
make[1]: *** [LiteEditor/CMakeFiles/codelite.dir/all] Error 2
make: *** [all] Error 2