For some reason I always compile some components as 64-bit...
Ryan Schmidt
ryandesign at macports.org
Sat May 15 21:31:01 PDT 2010
Remember to Reply All so this conversation stays on the mailing list and doesn't get stuck in private email.
On May 15, 2010, at 21:48, Yves S. Garret wrote:
> I did what you suggested. I followed the directions on the MacPorts website and uninstalled MacPorts. I then re-installed it, changed build_arch by uncommenting it, did sudo port -v selfupdate and then sudo port install couchdb and I got the below:
>
> ---> Building erlang
> 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
> Command output: from /usr/include/wx-2.8/wx/glcanvas.h:60,
> from wxe_impl.h:23,
> from wxe_gl.cpp:22:
> /usr/include/wx-2.8/wx/mac/carbon/glcanvas.h:49: warning: 'AGLDrawable' is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:48)
> /usr/include/wx-2.8/wx/mac/carbon/glcanvas.h:53: warning: 'AGLDrawable' is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:48)
> wxe_gl.cpp: In function 'int initOpenGL()':
> wxe_gl.cpp:78: warning: deprecated conversion from string constant to 'char*'
> wxe_gl.cpp:129: warning: deprecated conversion from string constant to 'char*'
> 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: The following dependencies failed to build: erlang icu libtool spidermonkey nspr readline
> Error: Status 1 encountered during processing.
> Before reporting a bug, first run the command again with the -d flag to get complete output.
Looks kind of the same as before. I don't know what's happening. Try cleaning the port and trying again with the debug flag from the beginning so we get the complete output:
sudo port clean erlang
sudo port -d install erlang 2>&1 | tee ~/Desktop/erlang.txt
bzip2 ~/Desktop/erlang.txt
Then file a ticket in the issue tracker and attach the file erlang.txt.bz2 from your desktop to the ticket.
> I'm running Snow Leopard, but it's only a 32-bit OS, which prevents me from running 64-bit apps.
What do you mean? Snow Leopard runs 32-bit on 32-bit Macs and 64-bit on 64-bit Macs, and on 64-bit Macs, you can run 64-bit or 32-bit software. What kind of Mac do you have, with what processor?
> One weird thing, I can compile the source for erlang that I get from the official website just fine, it fails to build only in MacPorts...
>
> Doubly weird... it seems that the erlang app is compiled as a 64-bit app??? How would I make it not be 64-bit? Set the universal_archs to only i386?
On my system, when I installed the erlang port, I did not get any app. Which app are you talking about and how did you install it? And is it actually a problem that it's 64-bit? Does it not work? What error message is produced?
Do not set universal_archs to only a single architecture; that's not supported. The purpose of the universal variant is to build for multiple architectures.
More information about the macports-users
mailing list