For some reason I always compile some components as 64-bit...

Yves S. Garret yoursurrogategod at gmail.com
Thu May 13 18:48:59 PDT 2010


There are two things I'd like to install, couchdb (the erlang database) and
wxwidgets (in hopes of making decent looking GUIs in Erlang.)

I have 10.6 and MacPorts 1.8.2.

Now, here's what happens:
% sudo port -d install wxWidgets
..............
DEBUG: Assembled command: 'cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_smpeg/work/smpeg-0.4.4"
&& /usr/bin/make all'
Making all in audio
make[1]: Nothing to be done for `all'.
Making all in video
make[1]: Nothing to be done for `all'.
/bin/sh ./libtool --mode=link /usr/bin/g++-4.2 -O2 -arch i386
-I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -DTHREADED_AUDIO
-DNDEBUG -I.. -DNOCONTROLS -I. -I./audio -I./video -L/opt/local/lib
-framework OpenGL -o plaympeg plaympeg.o libsmpeg.la -L/opt/local/lib
-lSDLmain -lSDL -Wl,-framework,Cocoa
libtool: link: /usr/bin/g++-4.2 -O2 -arch i386 -I/opt/local/include/SDL
-D_GNU_SOURCE=1 -D_THREAD_SAFE -DTHREADED_AUDIO -DNDEBUG -I.. -DNOCONTROLS
-I. -I./audio -I./video -o .libs/plaympeg plaympeg.o -Wl,-framework
-Wl,Cocoa -L/opt/local/lib ./.libs/libsmpeg.dylib -lSDLmain
/opt/local/lib/libSDL.dylib -framework OpenGL
ld: warning: in /opt/local/lib/libSDL.dylib, file was built for unsupported
file format which is not the architecture being linked (i386)
Undefined symbols:
"_SDL_GetVideoInfo", referenced from:
_SDL_main in plaympeg.o
"_SDL_PollEvent", referenced from:
_SDL_main in plaympeg.o
"_SDL_PushEvent", referenced from:
-[NSApplication(SDLApplication) terminate:] in libSDLmain.a(SDLMain.o)
"_SDL_QuitSubSystem", referenced from:
_SDL_main in plaympeg.o
"_SDL_AudioDriverName", referenced from:
_SDL_main in plaympeg.o
"_SDL_ShowCursor", referenced from:
_SDL_main in plaympeg.o
_SDL_main in plaympeg.o
"_SDL_SetVideoMode", referenced from:
_SDL_main in plaympeg.o
_SDL_main in plaympeg.o
"_SDL_GetError", referenced from:
_SDL_main in plaympeg.o
_SDL_main in plaympeg.o
_SDL_main in plaympeg.o
"_SDL_WM_SetCaption", referenced from:
_SDL_main in plaympeg.o
"_SDL_Flip", referenced from:
update(SDL_Surface*, int, int, unsigned int, unsigned int)in plaympeg.o
"_SDL_Delay", referenced from:
_SDL_main in plaympeg.o
"_SDL_Init", referenced from:
_SDL_main in plaympeg.o
_SDL_main in plaympeg.o
"_SDL_WM_ToggleFullScreen", referenced from:
_SDL_main in plaympeg.o
"_SDL_Linked_Version", referenced from:
_SDL_main in plaympeg.o
"_SDL_Quit", referenced from:
_SDL_main in plaympeg.o
"_SDL_VideoDriverName", referenced from:
_SDL_main in plaympeg.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [plaympeg] Error 1
make: *** [all-recursive] Error 1
Error: Target org.macports.build returned: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_smpeg/work/smpeg-0.4.4"
&& /usr/bin/make all " returned error 2
DEBUG: Backtrace: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_smpeg/work/smpeg-0.4.4"
&& /usr/bin/make all " returned error 2
while executing
"command_exec build"
(procedure "portbuild::build_main" line 9)
invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for smpeg):
org.macports.activate org.macports.build org.macports.destroot
org.macports.install
Error: The following dependencies failed to build: libsdl_mixer smpeg tiff
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

% sudo port -d install couchdb
.............
make[3]: Nothing to be done for `opt'.
=== Leaving application asn1
=== Entering application jinterface
set -e; set -x; \
case "make" in *clearmake*) tflag="-T";; *) tflag="";; esac; \
if test -f com/ericsson/otp/erlang/ignore_config_record.inf; then
xflag=$tflag; fi; \
(cd com/ericsson/otp/erlang && make -f Makefile.otp $xflag opt)
+ case "make" in
+ tflag=
+ test -f com/ericsson/otp/erlang/ignore_config_record.inf
+ xflag=
+ cd com/ericsson/otp/erlang
+ make -f Makefile.otp opt
if [ ! -d
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/work/erlang-R13B04/lib/jinterface/priv/"
];then mkdir
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/work/erlang-R13B04/lib/jinterface/priv/";
fi
make[3]: Nothing to be done for `opt'.
=== Leaving application jinterface
=== Entering application wx
make[3]: Nothing to be done for `opt'.
mkdir -p ../priv/i386-apple-darwin10.3.0
/usr/bin/g++-4.2 -bundle -flat_namespace -undefined warning -fPIC -framework
OpenGL -L/opt/local/lib -framework CoreFoundation
i386-apple-darwin10.3.0/wxe_driver.o i386-apple-darwin10.3.0/wxe_ps_init.o
i386-apple-darwin10.3.0/wxe_impl.o i386-apple-darwin10.3.0/wxePrintout.o
i386-apple-darwin10.3.0/wxe_return.o i386-apple-darwin10.3.0/wxe_funcs.o
i386-apple-darwin10.3.0/wxe_events.o i386-apple-darwin10.3.0/wxe_init.o
i386-apple-darwin10.3.0/gl_funcs.o i386-apple-darwin10.3.0/wxe_gl.o
-framework IOKit -framework Carbon -framework Cocoa -framework System
-framework QuickTime -framework OpenGL -framework AGL -lwx_macud_stc-2.8
-lwx_macud_gl-2.8 -lwx_macud-2.8 -o
../priv/i386-apple-darwin10.3.0/wxe_driver.so
ld: warning: in i386-apple-darwin10.3.0/wxe_driver.o, file was built for
i386 which is not the architecture being linked (x86_64)
ld: warning: in i386-apple-darwin10.3.0/wxe_ps_init.o, file was built for
i386 which is not the architecture being linked (x86_64)
ld: warning: in i386-apple-darwin10.3.0/wxe_impl.o, file was built for i386
which is not the architecture being linked (x86_64)
ld: warning: in i386-apple-darwin10.3.0/wxePrintout.o, file was built for
i386 which is not the architecture being linked (x86_64)
ld: warning: in i386-apple-darwin10.3.0/wxe_return.o, file was built for
i386 which is not the architecture being linked (x86_64)
ld: warning: in i386-apple-darwin10.3.0/wxe_funcs.o, file was built for i386
which is not the architecture being linked (x86_64)
ld: warning: in i386-apple-darwin10.3.0/wxe_events.o, file was built for
i386 which is not the architecture being linked (x86_64)
ld: warning: in i386-apple-darwin10.3.0/wxe_init.o, file was built for i386
which is not the architecture being linked (x86_64)
ld: warning: in i386-apple-darwin10.3.0/gl_funcs.o, file was built for i386
which is not the architecture being linked (x86_64)
ld: warning: in i386-apple-darwin10.3.0/wxe_gl.o, file was built for i386
which is not the architecture being linked (x86_64)
ld: warning: in /System/Library/Frameworks//QuickTime.framework/QuickTime,
missing required architecture x86_64 in file
ld: warning: in /usr/lib/libwx_macud_stc-2.8.dylib, missing required
architecture x86_64 in file
ld: warning: in /usr/lib/libwx_macud_gl-2.8.dylib, missing required
architecture x86_64 in file
ld: warning: in /usr/lib/libwx_macud-2.8.dylib, missing required
architecture x86_64 in file
ld: in /opt/local/lib/libz.1.dylib, file was built for i386 which is not the
architecture being linked (x86_64)
collect2: ld returned 1 exit status
make[3]: *** [../priv/i386-apple-darwin10.3.0/wxe_driver.so] Error 1
make[2]: *** [opt] Error 2
make[1]: *** [opt] Error 2
make: *** [libs] Error 2
Error: Target org.macports.build returned: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/work/erlang-R13B04"
&& /usr/bin/make all " returned error 2
DEBUG: Backtrace: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/work/erlang-R13B04"
&& /usr/bin/make all " returned error 2
while executing
"command_exec build"
(procedure "portbuild::build_main" line 9)
invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for erlang):
org.macports.activate org.macports.build org.macports.destroot
org.macports.install
Error: The following dependencies failed to build: erlang icu spidermonkey
nspr readline
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>


I tried uninstalling and re-installing multiple times, but no go.  Where am
I going wrong?

I went to: /opt/local/etc/macports/macports.conf and uncommented the line
that was commented out about building everything in i386.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20100513/52f14199/attachment.html>


More information about the macports-users mailing list