Opened 13 years ago

Closed 12 years ago

#31577 closed defect (duplicate)

wxWidgets-devel building error

Reported by: stanpol@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: 64bit error building Cc: jjstickel@…
Port: wxWidgets-devel

Description

In the terminal I have this:

$ sudo port install wxwidgets-devel
--->  Computing dependencies for wxwidgets-devel
--->  Fetching archive for wxwidgets-devel
--->  Attempting to fetch wxwidgets-devel-2.9.2_1+sdl.darwin_10.x86_64.tbz2 from http://packages.macports.org/wxwidgets-devel
--->  Fetching wxwidgets-devel
--->  Verifying checksum(s) for wxwidgets-devel
--->  Extracting wxwidgets-devel
--->  Applying patches to wxwidgets-devel
--->  Configuring wxwidgets-devel
--->  Building wxwidgets-devel
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for wxwidgets-devel is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_wxWidgets-devel/wxwidgets-devel/main.log
Error: Status 1 encountered during processing.

I've checked the log and I've found this strange:

:info:archivefetch --->  wxwidgets-devel-2.9.2_1+sdl.darwin_10.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/software/wxwidgets-devel
:msg:archivefetch --->  Attempting to fetch wxwidgets-devel-2.9.2_1+sdl.darwin_10.x86_64.tbz2 from http://packages.macports.org/wxwidgets-devel
:debug:archivefetch Fetching archive failed:: The requested URL returned error: 404
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:fetch fetch phase started at Wed Oct 12 00:05:41 CEST 2011
:notice:fetch --->  Fetching wxwidgets-devel

And the final error:

:info:build ld: warning: ignoring file /System/Library/Frameworks//QuickTime.framework/QuickTime, missing required architecture x86_64 in file
:info:build Undefined symbols for architecture x86_64:
:info:build   "wxArgNormalizerUtf8<wxCStrData const&>::get() const", referenced from:
:info:build       int wxString::Printf<wxCStrData>(wxFormatString const&, wxCStrData) in netdll_ftp.o
:info:build       void wxLogger::Log<wxCStrData>(wxFormatString const&, wxCStrData) in netdll_ftp.o
:info:build       int wxString::Printf<wxCStrData, wxCStrData>(wxFormatString const&, wxCStrData, wxCStrData) in netdll_http.o
:info:build       int wxString::Printf<wchar_t const*, wxCStrData>(wxFormatString const&, wchar_t const*, wxCStrData) in netdll_http.o
:info:build       void wxLogger::Log<wxCStrData>(wxFormatString const&, wxCStrData) in netdll_sckipc.o
:info:build   "wxArgNormalizerWchar<wxCStrData const&>::wxArgNormalizerWchar(wxCStrData const&, wxFormatString const*, unsigned int)", referenced from:
:info:build       int wxString::Printf<wxCStrData>(wxFormatString const&, wxCStrData) in netdll_ftp.o
:info:build       void wxLogger::Log<wxCStrData>(wxFormatString const&, wxCStrData) in netdll_ftp.o
:info:build       int wxString::Printf<wxCStrData, wxCStrData>(wxFormatString const&, wxCStrData, wxCStrData) in netdll_http.o
:info:build       int wxString::Printf<wchar_t const*, wxCStrData>(wxFormatString const&, wchar_t const*, wxCStrData) in netdll_http.o
:info:build       void wxLogger::Log<wxCStrData>(wxFormatString const&, wxCStrData) in netdll_sckipc.o
:info:build   "wxArgNormalizerUtf8<wxString const&>::get() const", referenced from:
:info:build       void wxLogger::Log<wxString>(wxFormatString const&, wxString) in netdll_ftp.o
:info:build       void wxLogger::LogTrace<wxString>(wxString const&, wxFormatString const&, wxString) in netdll_protocol.o
:info:build   "wxArgNormalizerWchar<wxString const&>::wxArgNormalizerWchar(wxString const&, wxFormatString const*, unsigned int)", referenced from:
:info:build       void wxLogger::Log<wxString>(wxFormatString const&, wxString) in netdll_ftp.o
:info:build       void wxLogger::LogTrace<wxString>(wxString const&, wxFormatString const&, wxString) in netdll_protocol.o
:info:build ld: symbol(s) not found for architecture x86_64

I am on Mac OS X 10.6.8. I need wxWidgets-devel to install py27-wxpython-devel. I'd like to run the new wxpython because it supports 64 bit OS.

I guess some of the libraries are for the 32 bit version and that's a problem, but I don't know how to solve it.

Any ideas? Thanks a lot!

Attachments (1)

main.log (846.3 KB) - added by stanpol@… 13 years ago.
full log with error

Download all attachments as: .zip

Change History (8)

Changed 13 years ago by stanpol@…

Attachment: main.log added

full log with error

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

Milestone: MacPorts 2.0.4

Replying to stanpol@…:

I've checked the log and I've found this strange:

:info:archivefetch --->  wxwidgets-devel-2.9.2_1+sdl.darwin_10.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/software/wxwidgets-devel
:msg:archivefetch --->  Attempting to fetch wxwidgets-devel-2.9.2_1+sdl.darwin_10.x86_64.tbz2 from http://packages.macports.org/wxwidgets-devel
:debug:archivefetch Fetching archive failed:: The requested URL returned error: 404
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:fetch fetch phase started at Wed Oct 12 00:05:41 CEST 2011
:notice:fetch --->  Fetching wxwidgets-devel

Nothing strange there. MacPorts tried to fetch a pre-built binary of this port. None existed. Therefore it proceeded to try to fetch and compile the source.

And the final error:

...which failed. Have you already verified that none of the existing tickets about wxwidgets-devel match the problem you're seeing?

comment:2 Changed 13 years ago by stanpol@…

This ticket #31054 seems to have the same error, but caused by another library, not QuickTime. It was updated just now, and I see that I have the same thing as in that ticket — Xcode 4.2 on Snow Leopard. However I don't use "clang" or I don't know that it is used.

I've checked the internet and the typical advice for this type of problems is to compile wxWidgets in 32bit mode. However, I don't know how to do it with macports. Will it work later correctly with 64 bit python?

comment:3 Changed 13 years ago by stanpol@…

Just built it.

Xcode 4.2 uses new compiler called "clang" by the default. We don't need it. We need to use gcc:

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

Thanks to the guys in #31054 ticket. This one could be closed.

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

Replying to stanpol@…:

Xcode 4.2 uses new compiler called "clang" by the default. We don't need it. We need to use gcc:

But you show that you used llvm-gcc, not gcc.

comment:5 Changed 13 years ago by stanpol@…

Yes, it's my fault — I used llvm-gcc I don't know the result with gcc.

comment:6 Changed 13 years ago by jjstickel@…

Cc: jjstickel@… added

Cc Me!

comment:7 Changed 12 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.