Opened 13 years ago

Closed 12 years ago

#31054 closed defect (fixed)

wxWidgets-devel fails to compile with clang

Reported by: anatol (Anatol Pomozov) Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version:
Keywords: clang Cc: anddam (Andrea D'Amore), ryandesign (Ryan Carsten Schmidt), jjstickel@…
Port: wxWidgets-devel

Description

The latest macports on OSX 10.6 produces following log when I try to install the port:

:info:build /Developer/usr/bin/clang++ -mmacosx-version-min=10.5 -dynamiclib -single_module -headerpad_max_install_names -o /opt/local/var/macports/build/_opt_local_var_macports_sourc
es_rsync.macports.org_release_tarballs_ports_graphics_wxWidgets-devel/wxWidgets-devel/work/wxWidgets-2.9.2/build/lib/libwx_baseu-2.9.2.0.0.dylib  basedll_any.o basedll_appbase.o based
ll_arcall.o basedll_arcfind.o basedll_archive.o basedll_arrstr.o basedll_base64.o basedll_clntdata.o basedll_cmdline.o basedll_config.o basedll_convauto.o basedll_datetime.o basedll_d
atetimefmt.o basedll_datstrm.o basedll_dircmn.o basedll_dynarray.o basedll_dynlib.o basedll_dynload.o basedll_encconv.o basedll_evtloopcmn.o basedll_extended.o basedll_ffile.o basedll
_file.o basedll_fileback.o basedll_fileconf.o basedll_filefn.o basedll_filename.o basedll_filesys.o basedll_filtall.o basedll_filtfind.o basedll_fmapbase.o basedll_fs_arc.o basedll_fs
_filter.o basedll_hash.o basedll_hashmap.o basedll_init.o basedll_intl.o basedll_ipcbase.o basedll_languageinfo.o basedll_list.o basedll_log.o basedll_longlong.o basedll_memory.o base
dll_mimecmn.o basedll_module.o basedll_mstream.o basedll_numformatter.o basedll_object.o basedll_platinfo.o basedll_powercmn.o basedll_process.o basedll_regex.o basedll_stdpbase.o bas
edll_sstream.o basedll_stdstream.o basedll_stopwatch.o basedll_strconv.o basedll_stream.o basedll_string.o basedll_stringimpl.o basedll_stringops.o basedll_strvararg.o basedll_sysopt.
o basedll_tarstrm.o basedll_textbuf.o basedll_textfile.o basedll_timercmn.o basedll_timerimpl.o basedll_tokenzr.o basedll_translation.o basedll_txtstrm.o basedll_unichar.o basedll_uri
.o basedll_ustring.o basedll_variant.o basedll_wfstream.o basedll_wxcrt.o basedll_wxprintf.o basedll_xlocale.o basedll_xti.o basedll_xtistrm.o basedll_zipstrm.o basedll_zstream.o base
dll_fswatchercmn.o basedll_fswatcherg.o basedll_core_mimetype.o basedll_cfstring.o basedll_evtloop_cf.o basedll_stdpaths_cf.o basedll_strconv_cf.o basedll_utilsexc_base.o basedll_fdio
dispatcher.o basedll_selectdispatcher.o basedll_appunix.o basedll_unix_dir.o basedll_dlunix.o basedll_epolldispatcher.o basedll_evtloopunix.o basedll_fdiounix.o basedll_unix_snglinst.
o basedll_unix_stackwalk.o basedll_unix_stdpaths.o basedll_timerunx.o basedll_threadpsx.o basedll_utilsunx.o basedll_fswatcher_kqueue.o basedll_event.o basedll_fs_mem.o basedll_msgout
.o basedll_utilscmn.o  basedll_cocoa_utils.o    -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_wxWidgets-devel/wxWi
dgets-devel/work/wxWidgets-2.9.2/build/lib -install_name /opt/local/lib/libwx_baseu-2.9.2.dylib   -compatibility_version 1.0 -current_version 1.0 -L/opt/local/var/macports/build/_opt_
local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_wxWidgets-devel/wxWidgets-devel/work/wxWidgets-2.9.2/build/lib -L/opt/local/lib -arch x86_64 -L/opt/local
/lib -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -framework QuickTime    -lwxregexu-2.9  -L/opt/local/var/macports/
build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_wxWidgets-devel/wxWidgets-devel/work/wxWidgets-2.9.2/build/lib -L/opt/local/lib -arch x86_64 -
L/opt/local/lib -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -framework QuickTime  -lz -lpthread -liconv  -lz -lpthr
ead -liconv
:info:build In file included from ../src/osx/glcanvas_osx.cpp:20:
:info:build In file included from ../include/wx/wxprec.h:68:
:info:build In file included from ../include/wx/wx.h:25:
:info:build In file included from ../include/wx/event.h:22:
:info:build In file included from ../include/wx/cursor.h:63:
:info:build In file included from ../include/wx/osx/cursor.h:15:
:info:build In file included from ../include/wx/bitmap.h:21:
:info:build In file included from ../include/wx/colour.h:56:
:info:build In file included from ../include/wx/variant.h:24:
:info:build ../include/wx/longlong.h:1100:12: warning: class template 'numeric_limits' was previously declared as a struct template [-Wmismatched-tags]
:info:build template<> class numeric_limits<wxLongLong>
:info:build            ^~~~~
:info:build            struct
:info:build /usr/include/c++/4.2.1/limits:285:12: note: previous use is here
:info:build     struct numeric_limits : public __numeric_limits_base
:info:build            ^

.....


:info:build   "wxAnyValueTypeImpl<void*>::IsSameType(wxAnyValueType const*) const", referenced from:
:info:build       vtable for wxAnyValueTypeImpl<void*> in basedll_variant.o
:info:build   "wxAnyValueTypeImpl<void*>::ConvertValue(wxAnyValueBuffer const&, wxAnyValueType*, wxAnyValueBuffer&) const", referenced from:
:info:build       vtable for wxAnyValueTypeImpl<void*> in basedll_variant.o
:info:build   "wxAnyValueTypeImpl<wxObject*>::~wxAnyValueTypeImpl()", referenced from:
:info:build       vtable for wxAnyValueTypeImpl<wxObject*> in basedll_variant.o
:info:build   "wxAnyValueTypeImpl<wxObject*>::~wxAnyValueTypeImpl()", referenced from:
:info:build       vtable for wxAnyValueTypeImpl<wxObject*> in basedll_variant.o
:info:build   "wxAnyValueTypeImpl<wxObject*>::IsSameType(wxAnyValueType const*) const", referenced from:
:info:build       vtable for wxAnyValueTypeImpl<wxObject*> in basedll_variant.o
:info:build   "wxAnyValueTypeImpl<wxObject*>::ConvertValue(wxAnyValueBuffer const&, wxAnyValueType*, wxAnyValueBuffer&) const", referenced from:
:info:build       vtable for wxAnyValueTypeImpl<wxObject*> in basedll_variant.o
:info:build   "wxAnyValueTypeImpl<wxUniChar>::~wxAnyValueTypeImpl()", referenced from:
:info:build       vtable for wxAnyValueTypeImpl<wxUniChar> in basedll_variant.o
:info:build   "wxAnyValueTypeImpl<wxUniChar>::~wxAnyValueTypeImpl()", referenced from:
:info:build       vtable for wxAnyValueTypeImpl<wxUniChar> in basedll_variant.o
:info:build   "wxAnyValueTypeImpl<wxUniChar>::IsSameType(wxAnyValueType const*) const", referenced from:
:info:build       vtable for wxAnyValueTypeImpl<wxUniChar> in basedll_variant.o
:info:build   "wxAnyValueTypeImpl<wxUniChar>::ConvertValue(wxAnyValueBuffer const&, wxAnyValueType*, wxAnyValueBuffer&) const", referenced from:
:info:build       vtable for wxAnyValueTypeImpl<wxUniChar> in basedll_variant.o
:info:build ld: symbol(s) not found for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)

Change History (9)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: jwa@… removed
Owner: changed from macports-tickets@… to jwa@…

Why is clang being used?

Are you really on OS X 10.6 or did you mean 10.7?

comment:2 Changed 13 years ago by anatol (Anatol Pomozov)

I use 10.6 (snow leopard).

I think it is related somehow to xcode configuration. Right now I use the latest development xcode

$ xcodebuild -version
Xcode 4.2
Build version 4C177

Also I think that all project should compile fine with clang (as clang probably be the default compiler in the future xcode versions).

comment:3 in reply to:  2 Changed 13 years ago by anddam (Andrea D'Amore)

Replying to anatol.pomozov@…:

Also I think that all project should compile fine with clang (as clang probably be the default compiler in the future xcode versions).

That doesn't imply all projects should build now using clang.

You have issues with clang, please try:

sudo port clean wxwidgets-devel
sudo port -d install configure.compiler=llvm-gcc-4.2

comment:4 Changed 13 years ago by anddam (Andrea D'Amore)

Cc: and.damore@… added

Cc Me!

comment:5 Changed 13 years ago by anddam (Andrea D'Amore)

Cc: ryandesign@… added

comment:6 in reply to:  2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to anatol.pomozov@…:

I use 10.6 (snow leopard).

I think it is related somehow to xcode configuration. Right now I use the latest development xcode

$ xcodebuild -version
Xcode 4.2
Build version 4C177

Oh. I was not aware that it was possible to install Xcode > 4.0 on Snow Leopard, since the Mac App Store lists Xcode 4.2 as requiring Lion.

comment:7 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to anatol.pomozov@…:

Also I think that all project should compile fine with clang

That would be nice, but it's simply not true at this point in time. We've already encountered many ports that do not build with clang. As we discover them, we're either fixing them so they build with clang, or making them use a different compiler.

comment:8 Changed 13 years ago by jjstickel@…

Cc: jjstickel@… added

Cc Me!

comment:9 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: clang added
Resolution: fixed
Status: newclosed
Summary: wxWidgets-devel fails to compilewxWidgets-devel fails to compile with clang
Note: See TracTickets for help on using tickets.