Opened 7 years ago

Closed 7 years ago

#54390 closed defect (fixed)

codeblocks: build error

Reported by: mf2k (Frank Schima) Owned by: mojca (Mojca Miklavec)
Priority: Normal Milestone:
Component: ports Version: 2.4.99
Keywords: Cc:
Port: codeblocks

Description

It looks like the error is here:

:info:build 	/bin/sh ../../../libtool  --tag=CXX   --mode=compile /usr/bin/clang++ -DHAVE_CONFIG_H -I. -I../../../src/include  -I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib/wx/include/osx_cocoa-unicode-3.0 -I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__  -I../../../src/include -I../../../src/sdk/wxscintilla/include -I../../../src/include/scripting/include -I../../../src/include/scripting/sqplus -I/opt/local/include -ansi -DTIXML_USE_STL  -O2 -ffast-math -DCB_AUTOCONF -pipe -Os -stdlib=libc++ -arch x86_64 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT editwatchdlg.lo -MD -MP -MF $depbase.Tpo -c -o editwatchdlg.lo editwatchdlg.cpp &&\
:info:build 	mv -f $depbase.Tpo $depbase.Plo
:info:build In file included from debuggerstate.cpp:10:
:info:build In file included from ../../../src/include/sdk.h:17:
:info:build In file included from ../../../src/include/sdk_precomp.h:13:
:info:build In file included from ../../../src/include/sdk_common.h:150:
:info:build In file included from ../../../src/include/filemanager.h:13:
:info:build ../../../src/include/backgroundthread.h:143:13: warning: 'this' pointer cannot be null in well-defined C++ code; pointer may be assumed to always convert to true [-Wundefined-bool-conversion]
:info:build         if (this && IsRunning())
:info:build             ^~~~ ~~
:info:build In file included from debuggergdb.cpp:10:
:info:build In file included from ../../../src/include/sdk.h:17:
:info:build In file included from ../../../src/include/sdk_precomp.h:13:
:info:build In file included from ../../../src/include/sdk_common.h:43:
:info:build ../../../src/include/prep.h:33:75: error: use of overloaded operator '==' is ambiguous (with operand types 'const std::__1::shared_ptr<GDBWatch>' and 'int')
$ port installed wxWidgets-3.0
The following ports are currently installed:
  wxWidgets-3.0 @3.0.2_4 (active)

Attachments (1)

main.log (3.4 MB) - added by mf2k (Frank Schima) 7 years ago.

Change History (11)

Changed 7 years ago by mf2k (Frank Schima)

Attachment: main.log added

comment:1 Changed 7 years ago by mojca (Mojca Miklavec)

Did codeblocks ever work on 10.9 and newer for you? See #43214, #51233, ...

https://sourceforge.net/p/codeblocks/tickets/322/

And what's the relation of this problem to wxWidgets?

While this looks like a slightly different form of the error, I kind of gave up if upstream is not responding. (I'm not too eager to go and debug the software I'm not even using myself, in particular if even merging patches could take "forever".)

I ended up being maintainer of this port more or less by accident and I'll probably remove myself from this port.

comment:2 Changed 7 years ago by mojca (Mojca Miklavec)

Just to correct myself: upstream is following the tracker, but with kind of the same pace as MacPorts devs do. Old tickets that stay open forever. Nobody from the core dev team uses a mac and that shows up.

You have sufficient mileage with MacPorts. I would suggest you to try the latest version from trunk/master to check if that one works any better.

comment:3 Changed 7 years ago by mf2k (Frank Schima)

This is the first time I have tried to install it. I'm on 10.12.

Scroll to the right of the error message I posted in the description. It seems to be trying and failing to use wxWidgets-3.0.

I will see if I can try building the latest source code version.

comment:4 Changed 7 years ago by mojca (Mojca Miklavec)

The error I see is

../../../src/include/prep.h:33:75: error: use of overloaded operator '==' is ambiguous \
(with operand types 'const std::__1::shared_ptr<GDBWatch>' and 'int')

I fail to see the connection with wxWidgets.

I see -I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib/wx/include/osx_cocoa-unicode-3.0, but why would this be relevant? Is an overload coming from wxWidgets somewhere?

comment:5 Changed 7 years ago by mojca (Mojca Miklavec)

Keep in mind that the released version of Codeblocks is super old (January 2016). I didn't touch it since and when I last tried it, it had problems with wxWidgets 3.0 (at runtime though, not at build time), so it couldn't have magically fixed itself.

I suspect that trunk must be much better. If you take a look at the last commit messages, they talk about C++11 and wx30, so there's some hope :)

If you plan to use it or have at least some minor interest in doing anything about this port, feel free to take it over, I'll be super glad.

comment:6 Changed 7 years ago by mf2k (Frank Schima)

Well, I'm probably just incorrect about it being a wxWidgets issue. I just want it working! I tried building with the +wxgtk30 variant and that failed too.

My next step is to build from the latest trunk revision as you suggest. I will update the Portfile if it works for me. I am not planning on being maintainer though. I don't really know much about this port.

comment:7 Changed 7 years ago by mf2k (Frank Schima)

My first attempt failed because the patch no longer applies.

--->  Applying patches to codeblocks
Error: Failed to patch codeblocks: command execution failed

comment:8 Changed 7 years ago by mf2k (Frank Schima)

Never mind. It appears that the patch was incorporated upstream. Building...

comment:9 Changed 7 years ago by mf2k (Frank Schima)

Summary: codeblocks: build error with wxwidgets 3.0codeblocks: build error

comment:10 Changed 7 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: newclosed

In 788db542d18dbb325925b2428837ce0b4b985dee/macports-ports:

codeblocks: Fix building up to Sierra

  • Update to svn revision 11098.
  • Remove no longer needed patch files.

Fixes: #40390
Fixes: #43214
Fixes: #54390

Note: See TracTickets for help on using tickets.