[MacPorts] #31775: wxWidgets @2.8.12 not compiling with llvm from Xcode 4.2
#31775: wxWidgets @2.8.12 not compiling with llvm from Xcode 4.2 ----------------------------------------+----------------------------------- Reporter: philippe.bernery@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: ----------------------------------------+----------------------------------- Here is an exract of the error: make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_wxWidgets/wxWidgets/work/wxWidgets-2.8.12/build' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_wxWidgets/wxWidgets/work/wxWidgets-2.8.12/build /bk-deps /Developer/usr/bin/clang++ -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -c -o coredll_carbon_graphics.o -I./.pch/wxprec_coredll -D__WXMAC__ -DWXBUILDING -I../src/regex -DWXUSINGDLL -DWXMAKINGDLL_CORE -DwxUSE_BASE=0 -dynamic -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_wxWidgets/wxWidgets/work/wxWidgets-2.8.12/build/lib/wx/include /mac-unicode-release-2.8 -I../include -fpascal-strings -I../src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon -I/opt/local/include -arch i386 -I/opt/local/include -DWX_PRECOMP -Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -pipe -O2 -arch i386 -fno-common ../src/mac/carbon/graphics.cpp clang: warning: argument unused during compilation: '-no-cpp-precomp' In file included from ../src/mac/carbon/graphics.cpp:27: In file included from ../include/wx/mac/uma.h:4: In file included from ../include/wx/mac/carbon/uma.h:15: In file included from ../include/wx/mac/private.h:4: ../include/wx/mac/carbon/private.h:617:18: warning: unused variable 'err' [-Wunused-variable] OSStatus err = GetData<T>( inPartCode , inTag , &value ); ^ ../include/wx/mac/carbon/private.h:1375:16: warning: 'QDGetPictureBounds' is deprecated [-Wdeprecated-declarations] return QDGetPictureBounds( pict , rect ); ^ ../src/mac/carbon/graphics.cpp:751:14: warning: 'ATSUCreateAndCopyStyle' is deprecated [-Wdeprecated-declarations] status = ATSUCreateAndCopyStyle( (ATSUStyle) font.MacGetATSUStyle() , &m_macATSUIStyle ); ^ ../src/mac/carbon/graphics.cpp:775:16: warning: 'ATSUSetAttributes' is deprecated [-Wdeprecated-declarations] status = ::ATSUSetAttributes( ^ ../src/mac/carbon/graphics.cpp:786:11: warning: 'ATSUDisposeStyle' is deprecated [-Wdeprecated-declarations] ::ATSUDisposeStyle((ATSUStyle)m_macATSUIStyle); ^ ../src/mac/carbon/graphics.cpp:1072:74: error: redefinition of parameter 'y' virtual void GetBox(wxDouble *x, wxDouble *y, wxDouble *w, wxDouble *y) const; ^ ../src/mac/carbon/graphics.cpp:1072:48: note: previous declaration is here virtual void GetBox(wxDouble *x, wxDouble *y, wxDouble *w, wxDouble *y) const; ^ ../src/mac/carbon/graphics.cpp:1099:12: error: cannot initialize return object of type 'wxGraphicsObjectRefData *' with an lvalue of type 'wxMacCoreGraphicsPathData *' return clone ; The package compiles when using llvm-gcc-4.2 as the compiler. -- Ticket URL: <https://trac.macports.org/ticket/31775> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31775: wxWidgets @2.8.12 not compiling with llvm from Xcode 4.2 ----------------------------------------+----------------------------------- Reporter: philippe.bernery@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: wxWidgets ----------------------------------------+----------------------------------- Changes (by macsforever2000@…): * owner: macports-tickets@… => jwa@… * port: => wxWidgets Old description:
Here is an exract of the error:
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_wxWidgets/wxWidgets/work/wxWidgets-2.8.12/build' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_wxWidgets/wxWidgets/work/wxWidgets-2.8.12/build /bk-deps /Developer/usr/bin/clang++ -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -c -o coredll_carbon_graphics.o -I./.pch/wxprec_coredll -D__WXMAC__ -DWXBUILDING -I../src/regex -DWXUSINGDLL -DWXMAKINGDLL_CORE -DwxUSE_BASE=0 -dynamic -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_wxWidgets/wxWidgets/work/wxWidgets-2.8.12/build/lib/wx/include /mac-unicode-release-2.8 -I../include -fpascal-strings -I../src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon -I/opt/local/include -arch i386 -I/opt/local/include -DWX_PRECOMP -Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -pipe -O2 -arch i386 -fno-common ../src/mac/carbon/graphics.cpp clang: warning: argument unused during compilation: '-no-cpp-precomp' In file included from ../src/mac/carbon/graphics.cpp:27: In file included from ../include/wx/mac/uma.h:4: In file included from ../include/wx/mac/carbon/uma.h:15: In file included from ../include/wx/mac/private.h:4: ../include/wx/mac/carbon/private.h:617:18: warning: unused variable 'err' [-Wunused-variable] OSStatus err = GetData<T>( inPartCode , inTag , &value ); ^ ../include/wx/mac/carbon/private.h:1375:16: warning: 'QDGetPictureBounds' is deprecated [-Wdeprecated-declarations] return QDGetPictureBounds( pict , rect ); ^ ../src/mac/carbon/graphics.cpp:751:14: warning: 'ATSUCreateAndCopyStyle' is deprecated [-Wdeprecated-declarations] status = ATSUCreateAndCopyStyle( (ATSUStyle) font.MacGetATSUStyle() , &m_macATSUIStyle ); ^ ../src/mac/carbon/graphics.cpp:775:16: warning: 'ATSUSetAttributes' is deprecated [-Wdeprecated-declarations] status = ::ATSUSetAttributes( ^ ../src/mac/carbon/graphics.cpp:786:11: warning: 'ATSUDisposeStyle' is deprecated [-Wdeprecated-declarations] ::ATSUDisposeStyle((ATSUStyle)m_macATSUIStyle); ^ ../src/mac/carbon/graphics.cpp:1072:74: error: redefinition of parameter 'y' virtual void GetBox(wxDouble *x, wxDouble *y, wxDouble *w, wxDouble *y) const; ^ ../src/mac/carbon/graphics.cpp:1072:48: note: previous declaration is here virtual void GetBox(wxDouble *x, wxDouble *y, wxDouble *w, wxDouble *y) const; ^ ../src/mac/carbon/graphics.cpp:1099:12: error: cannot initialize return object of type 'wxGraphicsObjectRefData *' with an lvalue of type 'wxMacCoreGraphicsPathData *' return clone ;
The package compiles when using llvm-gcc-4.2 as the compiler.
New description: Here is an exract of the error: {{{ make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_wxWidgets/wxWidgets/work/wxWidgets-2.8.12/build' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_wxWidgets/wxWidgets/work/wxWidgets-2.8.12/build /bk-deps /Developer/usr/bin/clang++ -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -c -o coredll_carbon_graphics.o -I./.pch/wxprec_coredll -D__WXMAC__ -DWXBUILDING -I../src/regex -DWXUSINGDLL -DWXMAKINGDLL_CORE -DwxUSE_BASE=0 -dynamic -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_wxWidgets/wxWidgets/work/wxWidgets-2.8.12/build/lib/wx/include /mac-unicode-release-2.8 -I../include -fpascal-strings -I../src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon -I/opt/local/include -arch i386 -I/opt/local/include -DWX_PRECOMP -Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -pipe -O2 -arch i386 -fno-common ../src/mac/carbon/graphics.cpp clang: warning: argument unused during compilation: '-no-cpp-precomp' In file included from ../src/mac/carbon/graphics.cpp:27: In file included from ../include/wx/mac/uma.h:4: In file included from ../include/wx/mac/carbon/uma.h:15: In file included from ../include/wx/mac/private.h:4: ../include/wx/mac/carbon/private.h:617:18: warning: unused variable 'err' [-Wunused-variable] OSStatus err = GetData<T>( inPartCode , inTag , &value ); ^ ../include/wx/mac/carbon/private.h:1375:16: warning: 'QDGetPictureBounds' is deprecated [-Wdeprecated-declarations] return QDGetPictureBounds( pict , rect ); ^ ../src/mac/carbon/graphics.cpp:751:14: warning: 'ATSUCreateAndCopyStyle' is deprecated [-Wdeprecated-declarations] status = ATSUCreateAndCopyStyle( (ATSUStyle) font.MacGetATSUStyle() , &m_macATSUIStyle ); ^ ../src/mac/carbon/graphics.cpp:775:16: warning: 'ATSUSetAttributes' is deprecated [-Wdeprecated-declarations] status = ::ATSUSetAttributes( ^ ../src/mac/carbon/graphics.cpp:786:11: warning: 'ATSUDisposeStyle' is deprecated [-Wdeprecated-declarations] ::ATSUDisposeStyle((ATSUStyle)m_macATSUIStyle); ^ ../src/mac/carbon/graphics.cpp:1072:74: error: redefinition of parameter 'y' virtual void GetBox(wxDouble *x, wxDouble *y, wxDouble *w, wxDouble *y) const; ^ ../src/mac/carbon/graphics.cpp:1072:48: note: previous declaration is here virtual void GetBox(wxDouble *x, wxDouble *y, wxDouble *w, wxDouble *y) const; ^ ../src/mac/carbon/graphics.cpp:1099:12: error: cannot initialize return object of type 'wxGraphicsObjectRefData *' with an lvalue of type 'wxMacCoreGraphicsPathData *' return clone ; }}} The package compiles when using llvm-gcc-4.2 as the compiler. -- Comment: In the future, please use WikiFormatting, fill in the Port field and Cc the maintainer. -- Ticket URL: <https://trac.macports.org/ticket/31775#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31775: wxWidgets @2.8.12 not compiling with llvm from Xcode 4.2 ----------------------------------------+----------------------------------- Reporter: philippe.bernery@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: wxWidgets ----------------------------------------+----------------------------------- Comment(by philippe.bernery@…): Ok, got it -- Ticket URL: <https://trac.macports.org/ticket/31775#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31775: wxWidgets @2.8.12 not compiling with llvm from Xcode 4.2 ----------------------------------------+----------------------------------- Reporter: philippe.bernery@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: wxWidgets ----------------------------------------+----------------------------------- Comment(by calvin@…): Cc me -- Ticket URL: <https://trac.macports.org/ticket/31775#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31775: wxWidgets @2.8.12 not compiling with llvm from Xcode 4.2 ----------------------------------------+----------------------------------- Reporter: philippe.bernery@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: wxWidgets ----------------------------------------+----------------------------------- Comment(by benshimo@…): I noticed that the solution given in ticket #31054 (for wxwidgets- develop) worked for me as well. I had the very same situation as noted in the present ticket My system is Lion + Xcode 4.2 try sudo port - v install wxwidgets configure.compiler=llvm-gcc-4.2 hopes this works for you -- Ticket URL: <https://trac.macports.org/ticket/31775#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31775: wxWidgets @2.8.12 not compiling with llvm from Xcode 4.2 ----------------------------------------+----------------------------------- Reporter: philippe.bernery@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: wxWidgets ----------------------------------------+----------------------------------- Comment(by gunnlaugur@…): Yep, worked for me too — specifically: `sudo port -d install wxwidgets configure.compiler=llvm-gcc-4.2` -- Ticket URL: <https://trac.macports.org/ticket/31775#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31775: wxWidgets @2.8.12 not compiling with llvm from Xcode 4.2 ----------------------------------------+----------------------------------- Reporter: philippe.bernery@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: wxWidgets ----------------------------------------+----------------------------------- Changes (by ryandesign@…): * cc: romoli@… (added) Comment: Has duplicate #32344. -- Ticket URL: <https://trac.macports.org/ticket/31775#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31775: wxWidgets @2.8.12 not compiling with llvm from Xcode 4.2 -----------------------------------------+---------------------------------- Reporter: philippe.bernery@… | Owner: jwa@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: fixed | Keywords: Port: wxWidgets | -----------------------------------------+---------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: r87657. -- Ticket URL: <https://trac.macports.org/ticket/31775#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31775: wxWidgets @2.8.12 not compiling with clang from Xcode 4.2 -----------------------------------------+---------------------------------- Reporter: philippe.bernery@… | Owner: jwa@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: fixed | Keywords: clang Port: wxWidgets | -----------------------------------------+---------------------------------- Changes (by ryandesign@…): * keywords: => clang -- Ticket URL: <https://trac.macports.org/ticket/31775#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts