wxc fails to compile #8

Open
mikeplus64 opened this Issue May 17, 2012 · 0 comments

Comments

Projects
None yet
1 participant
@mikeplus64

Using wxgtk-2.9 from the AUR in Arch Linux, which simply installs http://downloads.sourceforge.net/wxwindows/wxWidgets-2.9.3.tar.bz2 as far as I can tell, if I try to install wxc via cabal install wxc, the following output is produced:

~> cabal install wxc
Resolving dependencies...
[1 of 1] Compiling Main             ( /tmp/wxc-0.90.0.3-1286/wxc-0.90.0.3/Setup.hs, /tmp/wxc-0.90.0.3-1286/wxc-0.90.0.3/dist/setup/Main.o )
Linking /tmp/wxc-0.90.0.3-1286/wxc-0.90.0.3/dist/setup/setup ...
Configuring wxc-0.90.0.3...
Configuring wxc to build against wxWidgets 2.9.3.0

Building wxc
/usr/bin/gcc -Wl,--hash-size=31 -Wl,--reduce-memory-overheads -Isrc/include -I/usr/include/wx-2.9 -I/usr/lib/wx/include/gtk2-unicode-2.9 -D__WXGTK__ -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -DwxcREFUSE_MEDIACTRL -fPIC -c src/cpp/apppath.cpp -o dist/build/src/cpp/apppath.o
/usr/bin/gcc -Wl,--hash-size=31 -Wl,--reduce-memory-overheads -Isrc/include -I/usr/include/wx-2.9 -I/usr/lib/wx/include/gtk2-unicode-2.9 -D__WXGTK__ -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -DwxcREFUSE_MEDIACTRL -fPIC -c src/cpp/dragimage.cpp -o dist/build/src/cpp/dragimage.o
/usr/bin/gcc -Wl,--hash-size=31 -Wl,--reduce-memory-overheads -Isrc/include -I/usr/include/wx-2.9 -I/usr/lib/wx/include/gtk2-unicode-2.9 -D__WXGTK__ -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -DwxcREFUSE_MEDIACTRL -fPIC -c src/cpp/eljaccelerator.cpp -o dist/build/src/cpp/eljaccelerator.o
/usr/bin/gcc -Wl,--hash-size=31 -Wl,--reduce-memory-overheads -Isrc/include -I/usr/include/wx-2.9 -I/usr/lib/wx/include/gtk2-unicode-2.9 -D__WXGTK__ -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -DwxcREFUSE_MEDIACTRL -fPIC -c src/cpp/eljartprov.cpp -o dist/build/src/cpp/eljartprov.o
/usr/bin/gcc -Wl,--hash-size=31 -Wl,--reduce-memory-overheads -Isrc/include -I/usr/include/wx-2.9 -I/usr/lib/wx/include/gtk2-unicode-2.9 -D__WXGTK__ -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -DwxcREFUSE_MEDIACTRL -fPIC -c src/cpp/eljbitmap.cpp -o dist/build/src/cpp/eljbitmap.o
/usr/bin/gcc -Wl,--hash-size=31 -Wl,--reduce-memory-overheads -Isrc/include -I/usr/include/wx-2.9 -I/usr/lib/wx/include/gtk2-unicode-2.9 -D__WXGTK__ -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -DwxcREFUSE_MEDIACTRL -fPIC -c src/cpp/eljbrush.cpp -o dist/build/src/cpp/eljbrush.o
/usr/bin/gcc -Wl,--hash-size=31 -Wl,--reduce-memory-overheads -Isrc/include -I/usr/include/wx-2.9 -I/usr/lib/wx/include/gtk2-unicode-2.9 -D__WXGTK__ -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -DwxcREFUSE_MEDIACTRL -fPIC -c src/cpp/eljbusyinfo.cpp -o dist/build/src/cpp/eljbusyinfo.o
/usr/bin/gcc -Wl,--hash-size=31 -Wl,--reduce-memory-overheads -Isrc/include -I/usr/include/wx-2.9 -I/usr/lib/wx/include/gtk2-unicode-2.9 -D__WXGTK__ -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -DwxcREFUSE_MEDIACTRL -fPIC -c src/cpp/eljbutton.cpp -o dist/build/src/cpp/eljbutton.o
/usr/bin/gcc -Wl,--hash-size=31 -Wl,--reduce-memory-overheads -Isrc/include -I/usr/include/wx-2.9 -I/usr/lib/wx/include/gtk2-unicode-2.9 -D__WXGTK__ -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -DwxcREFUSE_MEDIACTRL -fPIC -c src/cpp/eljcalendarctrl.cpp -o dist/build/src/cpp/eljcalendarctrl.o
/usr/bin/gcc -Wl,--hash-size=31 -Wl,--reduce-memory-overheads -Isrc/include -I/usr/include/wx-2.9 -I/usr/lib/wx/include/gtk2-unicode-2.9 -D__WXGTK__ -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -DwxcREFUSE_MEDIACTRL -fPIC -c src/cpp/eljcaret.cpp -o dist/build/src/cpp/eljcaret.o
/usr/bin/gcc -Wl,--hash-size=31 -Wl,--reduce-memory-overheads -Isrc/include -I/usr/include/wx-2.9 -I/usr/lib/wx/include/gtk2-unicode-2.9 -D__WXGTK__ -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -DwxcREFUSE_MEDIACTRL -fPIC -c src/cpp/eljcheckbox.cpp -o dist/build/src/cpp/eljcheckbox.o
/usr/bin/gcc -Wl,--hash-size=31 -Wl,--reduce-memory-overheads -Isrc/include -I/usr/include/wx-2.9 -I/usr/lib/wx/include/gtk2-unicode-2.9 -D__WXGTK__ -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -DwxcREFUSE_MEDIACTRL -fPIC -c src/cpp/eljchecklistbox.cpp -o dist/build/src/cpp/eljchecklistbox.o
/usr/bin/gcc -Wl,--hash-size=31 -Wl,--reduce-memory-overheads -Isrc/include -I/usr/include/wx-2.9 -I/usr/lib/wx/include/gtk2-unicode-2.9 -D__WXGTK__ -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -DwxcREFUSE_MEDIACTRL -fPIC -c src/cpp/eljchoice.cpp -o dist/build/src/cpp/eljchoice.o
/usr/bin/gcc -Wl,--hash-size=31 -Wl,--reduce-memory-overheads -Isrc/include -I/usr/include/wx-2.9 -I/usr/lib/wx/include/gtk2-unicode-2.9 -D__WXGTK__ -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -DwxcREFUSE_MEDIACTRL -fPIC -c src/cpp/eljclipboard.cpp -o dist/build/src/cpp/eljclipboard.o
/usr/bin/gcc -Wl,--hash-size=31 -Wl,--reduce-memory-overheads -Isrc/include -I/usr/include/wx-2.9 -I/usr/lib/wx/include/gtk2-unicode-2.9 -D__WXGTK__ -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -DwxcREFUSE_MEDIACTRL -fPIC -c src/cpp/eljcoldata.cpp -o dist/build/src/cpp/eljcoldata.o
/usr/bin/gcc -Wl,--hash-size=31 -Wl,--reduce-memory-overheads -Isrc/include -I/usr/include/wx-2.9 -I/usr/lib/wx/include/gtk2-unicode-2.9 -D__WXGTK__ -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -DwxcREFUSE_MEDIACTRL -fPIC -c src/cpp/eljcolour.cpp -o dist/build/src/cpp/eljcolour.o
/usr/bin/gcc -Wl,--hash-size=31 -Wl,--reduce-memory-overheads -Isrc/include -I/usr/include/wx-2.9 -I/usr/lib/wx/include/gtk2-unicode-2.9 -D__WXGTK__ -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -DwxcREFUSE_MEDIACTRL -fPIC -c src/cpp/eljcolourdlg.cpp -o dist/build/src/cpp/eljcolourdlg.o
/usr/bin/gcc -Wl,--hash-size=31 -Wl,--reduce-memory-overheads -Isrc/include -I/usr/include/wx-2.9 -I/usr/lib/wx/include/gtk2-unicode-2.9 -D__WXGTK__ -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -DwxcREFUSE_MEDIACTRL -fPIC -c src/cpp/eljcombobox.cpp -o dist/build/src/cpp/eljcombobox.o
/usr/bin/gcc -Wl,--hash-size=31 -Wl,--reduce-memory-overheads -Isrc/include -I/usr/include/wx-2.9 -I/usr/lib/wx/include/gtk2-unicode-2.9 -D__WXGTK__ -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -DwxcREFUSE_MEDIACTRL -fPIC -c src/cpp/eljconfigbase.cpp -o dist/build/src/cpp/eljconfigbase.o
/usr/bin/gcc -Wl,--hash-size=31 -Wl,--reduce-memory-overheads -Isrc/include -I/usr/include/wx-2.9 -I/usr/lib/wx/include/gtk2-unicode-2.9 -D__WXGTK__ -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -DwxcREFUSE_MEDIACTRL -fPIC -c src/cpp/eljcontrol.cpp -o dist/build/src/cpp/eljcontrol.o
/usr/bin/gcc -Wl,--hash-size=31 -Wl,--reduce-memory-overheads -Isrc/include -I/usr/include/wx-2.9 -I/usr/lib/wx/include/gtk2-unicode-2.9 -D__WXGTK__ -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -DwxcREFUSE_MEDIACTRL -fPIC -c src/cpp/eljctxhelp.cpp -o dist/build/src/cpp/eljctxhelp.o
/usr/bin/gcc -Wl,--hash-size=31 -Wl,--reduce-memory-overheads -Isrc/include -I/usr/include/wx-2.9 -I/usr/lib/wx/include/gtk2-unicode-2.9 -D__WXGTK__ -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -DwxcREFUSE_MEDIACTRL -fPIC -c src/cpp/eljcursor.cpp -o dist/build/src/cpp/eljcursor.o
In file included from /usr/include/wx-2.9/wx/memory.h:16:0,
                 from /usr/include/wx-2.9/wx/object.h:20,
                 from /usr/include/wx-2.9/wx/wx.h:16,
                 from src/include/wrapper.h:20,
                 from src/cpp/eljcursor.cpp:1:
/usr/include/wx-2.9/wx/string.h: In function ‘wxCursor* Cursor_CreateFromStock(int)’:
/usr/include/wx-2.9/wx/string.h:478:3: error: ‘wxString::wxString(int)’ is private
src/cpp/eljcursor.cpp:8:26: error: within this context
cabal: Error: some packages failed to install:
wxc-0.90.0.3 failed during the building phase. The exception was:
ExitFailure 1

HJvT referenced this issue in wxHaskell/wxHaskell Oct 9, 2013

Added check for the bitness of the wxWidgets dynamic libraries
"wxHaskell and wxWidgets must use the same architecture,
i.e. both 32-bit or both 64-bit". This check is implemented
for Windows, Linux and OS X, on I386 or X86_64 architecture.
See also wxHaskell Feature Request #8.

kowey pushed a commit to kowey/wxHaskell that referenced this issue Oct 3, 2017

Merge pull request #8 from cessationoftime/wxAuiNotebook
added wxAui to wxc, wxAuiNotebook events to wxcore, wx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment