Problems compiling in snow leopard

nunosantos at imaginando.net nunosantos at imaginando.net
Mon Apr 26 08:48:11 PDT 2010


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.
If you think configure made a mistake, make sure you are using the latest
version from SVN.  If the latest version fails, report the problem to the
ffmpeg-user at mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.err" produced by configure as this will help
solving the problem.
Error: Target org.macports.configure returned: configure failure: shell
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 " returned error 1
DEBUG: Backtrace: configure failure: shell 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 " returned error 1
    while executing
"$procedure $targetname"
Warning: the following items did not execute (for ffmpeg):
org.macports.activate org.macports.configure org.macports.build
org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Any tips?

Thanks,

Nuno


On Mon, 26 Apr 2010 16:06:35 +0100, Nuno Santos
<nunosantos at imaginando.net>
wrote:
> Hi Rainer,
> 
> 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.
> 
> 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...
> 
> i have also made that change for build_arch setting and the error i 
> specified happens with that enabled...
> 
> any further tips?
> 
> Thanks,
> 
> Nuno
> 
> Rainer Müller wrote:
>> On 2010-04-26 16:55 , Nuno Santos wrote:
>>   
>>> I need to compile packages in snow leopard but it seems that by
default 
>>> snow leopard compiles in 64 bits.
>>>     
>>
>> Yes, MacPorts uses 64-bit by default on Snow Leopard if your hardware
>> supports it. Why do you want to force 32-bit?
>>
>>   
>>> I'm forcing 32 bit compiling by modifying /opt/local/etc/macports.conf

>>> variable
>>>
>>> universal_archs   x86_32   i386
>>>     
>>                     ^^^^^^
>>
>> This is an invalid architecture. Intel 32-bit is i386, Intel 64-bit is
>> x86_64.
>>
>> You probably don't want to change universal_archs, which is only used
>> when building +universal. You seem to be looking for the build_arch
>> setting.
>>
>> Rainer
>>   
> 
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


More information about the macports-users mailing list