Problems compiling in snow leopard

Ryan Schmidt ryandesign at
Mon Apr 26 11:39:45 PDT 2010

On Apr 26, 2010, at 10:06, Nuno Santos wrote:

> Thanks for the quick reply. It happens that i'«m working on a qt project which depends on external libs and i want it to compile on windows, mac and linux.

Ok, so what? Mac OS X is 64-bit now, so are some versions of Windows and Linux, so get used to it. :)

> the problem is that for that i have a brand new mac which comes with snow leopard installled but when i make uname -a the architecture is i386. so the kernel is running in 32 bit mode...

Again, so what? "i386" in "uname -a" is pretty much irrelevant to everything. I'm not even sure that has anything to do with whether the kernel is running 32-bit or 64-bit. Even if it does, that's also irrelevant to whether you can run 64-bit software. You can run 64-bit software with a 32-bit kernel. I'm doing it right now.

> i have also made that change for build_arch setting and the error i specified happens with that enabled...

> This is currently on of my problems:
> --->  Configuring ffmpeg
> DEBUG: Using compiler 'Mac OS X gcc 4.2'
> DEBUG: Executing proc-pre-org.macports.configure-configure-0
> DEBUG: Executing org.macports.configure (ffmpeg)
> DEBUG: Environment: CFLAGS='-O2 -DHAVE_LRINTF -I/opt/local/include -arch
> i386' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-O2 -arch i386'
> MACOSX_DEPLOYMENT_TARGET='10.6' CXX='/usr/bin/g++-4.2' F90FLAGS='-O2 -m32'
> LDFLAGS='-L/opt/local/lib' OBJC='/usr/bin/gcc-4.2' FCFLAGS='-O2 -m32'
> INSTALL='/usr/bin/install -c' OBJCFLAGS='-O2 -arch i386' FFLAGS='-O2 -m32'
> CC='/usr/bin/gcc-4.2'
> DEBUG: Assembled command: 'cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/work/ffmpeg-0.5.1"
> && ./configure --prefix=/opt/local --disable-vhook --enable-gpl
> --enable-postproc --enable-avfilter --enable-avfilter-lavf
> --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libdirac
> --enable-libschroedinger --enable-libfaac --enable-libfaad --enable-libxvid
> --enable-libx264 --enable-nonfree --mandir=/opt/local/share/man
> --enable-shared --enable-pthreads --cc=/usr/bin/gcc-4.2 --arch=i386
> --disable-mmx --disable-mmx2 --disable-sse --disable-ssse3
> --disable-amd3dnow --disable-amd3dnowext'
> /usr/bin/gcc-4.2 is unable to create an executable file.
> If /usr/bin/gcc-4.2 is a cross-compiler, use the --enable-cross-compile
> option.
> Only do this if you know what cross compiling means.
> C compiler test failed.

Yes, sorry, ffmpeg does not support changing build_arch:

But it should build fine for x86_64. Have you tried that?

More information about the macports-users mailing list