Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#31775 closed defect (fixed)

wxWidgets @2.8.12 not compiling with clang from Xcode 4.2

Reported by: philippe.bernery@… Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: clang Cc: nickbroon@…, romoli@…
Port: wxWidgets

Description (last modified by mf2k (Frank Schima))

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.

Attachments (1)

main.log (277.7 KB) - added by calvin@… 13 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 Changed 13 years ago by mf2k (Frank Schima)

Description: modified (diff)
Owner: changed from macports-tickets@… to jwa@…
Port: wxWidgets added

In the future, please use WikiFormatting, fill in the Port field and Cc the maintainer.

comment:2 Changed 13 years ago by philippe.bernery@…

Ok, got it

comment:3 Changed 13 years ago by calvin@…

Cc me

Changed 13 years ago by calvin@…

Attachment: main.log added

comment:4 Changed 13 years ago 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

comment:5 Changed 13 years ago by gthb (Gunnlaugur Thor Briem)

Yep, worked for me too — specifically:

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

comment:6 Changed 13 years ago by nickbroon@…

Cc: nickbroon@… added

Cc Me!

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

Cc: romoli@… added

Has duplicate #32344.

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

Resolution: fixed
Status: newclosed

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

Keywords: clang added
Summary: wxWidgets @2.8.12 not compiling with llvm from Xcode 4.2wxWidgets @2.8.12 not compiling with clang from Xcode 4.2
Note: See TracTickets for help on using tickets.