Opened 11 years ago

Closed 11 years ago

#38526 closed defect (worksforme)

ffmeg Not Build on 10.8.3

Reported by: chicagotripp (Altoine Barker) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia)
Port: ffmpeg

Description (last modified by larryv (Lawrence Velázquez))

My Setup is a Mac OSX 10.8.3 running MacPorts 2.1.3 using Xcode 4.6.1 gcc version 4.2.1 by Apple. I receive the following error message building ffmpeg:

Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_ffmpeg/ffmpeg/work/ffmpeg-1.1.4" && ./configure --prefix=/opt/local --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex --enable-libfreetype --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid 
Exit code: 1
Error: org.macports.configure for port ffmpeg returned: configure failure: command execution failed
DEBUG: Error code: NONE
DEBUG: Backtrace: configure failure: command execution failed
    while executing
"$procedure $targetname"
Warning: targets not executed for ffmpeg: org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
Error: Failed to install ffmpeg
DEBUG: could not read "/opt/local/lib/pkgconfig/x264.pc": no such file or directory
    while executing
"::file type $file"

Attachments (4)

main.log (5.3 KB) - added by chicagotripp (Altoine Barker) 11 years ago.
FFMPEG Main Log File
config.log (113.1 KB) - added by chicagotripp (Altoine Barker) 11 years ago.
Config Log File
main.2.log (3.3 KB) - added by chicagotripp (Altoine Barker) 11 years ago.
Error After yasm port install
config.2.log (244.1 KB) - added by chicagotripp (Altoine Barker) 11 years ago.
After yasm Port

Download all attachments as: .zip

Change History (15)

comment:1 Changed 11 years ago by larryv (Lawrence Velázquez)

Cc: jeremyhu@… added; nDiScReEt@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to devans@…

Thanks for the ticket. In the future, please Cc relevant port maintainers. Also, you don’t have to Cc yourself.

comment:2 Changed 11 years ago by cooljeanius (Eric Gallager)

Also could you attach a full main.log please?

comment:3 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

"using Xcode 4.6.1 gcc version 4.2.1 by Apple" ... that's not possible.

comment:4 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Also:

~ $ port provides /opt/local/lib/pkgconfig/x264.pc
/opt/local/lib/pkgconfig/x264.pc is provided by: x264

port:x264 is a dependency in the +gpl2 variant ...

I can't reproduce the issue. Please attach your log.

Changed 11 years ago by chicagotripp (Altoine Barker)

Attachment: main.log added

FFMPEG Main Log File

comment:5 in reply to:  3 ; Changed 11 years ago by chicagotripp (Altoine Barker)

Replying to jeremyhu@…:

"using Xcode 4.6.1 gcc version 4.2.1 by Apple" ... that's not possible.

gcc -v

Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~148/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~148/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)}}}

comment:6 in reply to:  5 Changed 11 years ago by larryv (Lawrence Velázquez)

This is LLVM-GCC 4.2, which is not the same as GCC 4.2.

comment:7 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

:info:configure yasm not found, use --disable-yasm for a crippled build

port:yasm is a dependency.

Please attach your config.log.

Changed 11 years ago by chicagotripp (Altoine Barker)

Attachment: config.log added

Config Log File

comment:8 in reply to:  7 Changed 11 years ago by chicagotripp (Altoine Barker)

Replying to jeremyhu@…:

:info:configure yasm not found, use --disable-yasm for a crippled build

port:yasm is a dependency.

Please attach your config.log.

I installed yasm. Now, I receive a new error message:

Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_ffmpeg/ffmpeg/work/ffmpeg-1.1.4" && /opt/local/bin/gmake -j8 -w all 
Exit code: 127
Error: org.macports.build for port ffmpeg returned: command execution failed
DEBUG: Error code: CHILDSTATUS 6127 127
DEBUG: Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
Warning: targets not executed for ffmpeg: org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Failed to install ffmpeg
DEBUG: couldn't open "/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tclIndex": no such file or directory
    while executing
"open [file join $dir tclIndex]"
Please see the log file for port ffmpeg for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_ffmpeg/ffmpeg/main.log

I will include an updated main.log and config.log file. I had cleaned all installed ports before running my install and I did a sync and upgrade all, as well. Ultimately, I am trying to install gimp2 but it fails currently on the ffmpeg port build.

Last edited 11 years ago by chicagotripp (Altoine Barker) (previous) (diff)

Changed 11 years ago by chicagotripp (Altoine Barker)

Attachment: main.2.log added

Error After yasm port install

Changed 11 years ago by chicagotripp (Altoine Barker)

Attachment: config.2.log added

After yasm Port

comment:9 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Why didn't you have yasm to begin with? It's a dependency of ffmpeg.

This new error is also caused by a missing dependency:

/opt/local/bin/gmake: No such file or directory

but port:gmake is also a dependency.

What is the output of:

port installed gmake
port contents gmake

comment:10 in reply to:  9 Changed 11 years ago by chicagotripp (Altoine Barker)

Replying to jeremyhu@…:

Why didn't you have yasm to begin with? It's a dependency of ffmpeg.

This new error is also caused by a missing dependency:

/opt/local/bin/gmake: No such file or directory

but port:gmake is also a dependency.

What is the output of:

port installed gmake
port contents gmake

My output for "port installed gmake" is:

None of the specified ports are installed.

And my output for "port contents gmake" is:

Port gmake is not installed.

Why those ports weren't installed is beyond me. I have a new OS installed with all the latest updates running the latest (I hope) XCode and I simply installed nc6, nano, sshfs-gui, and python33 without any issues but when I went about installed gimp with the quartz variant, I find myself with ffmpeg not build. I reran the installation after adding gmake and I report, yet, another new era:

DEBUG: Starting logging for cairo
DEBUG: changing euid/egid - current euid: 0 - current egid: 0
DEBUG: egid changed to: 501
DEBUG: euid changed to: 501
Error: Requested variants "+quartz+x11" do not match original selection "+x11".
Please use the same variants again, perform 'port clean cairo' or specify the force option (-f).
Error: Failed to install cairo
DEBUG: Registry error: libproxy not registered as installed & active.
    invoked from within
"registry_active ${subport}"
    invoked from within
"$workername eval registry_active \${subport}"
Please see the log file for port cairo for details:

I'm happy to report that ffmpeg now builds. I think my issue may be with macports itself and not the port at all. I will wipe everything and try again. I will report my findings real soon. Thank you all for your time.

After, totally removing all ports and then removing macports itself using the MacPorts Removal instructions from the Wiki I was able to build ffmpeg without any incident. Now, I have an error with another port: py27-cairo. Just in case this matter isn't a port issue my error message is:

DEBUG: Executing org.macports.main (py27-cairo)
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: archivefetch phase started at Sat Mar 30 08:21:51 CDT 2013
--->  Fetching archive for py27-cairo
DEBUG: Executing proc-pre-org.macports.archivefetch-archivefetch-0
DEBUG: cairo is installed with the following variants: +quartz+x11
DEBUG:   required: x11, forbidden: quartz
DEBUG:   rejected, because forbidden variant quartz is present
Error: org.macports.archivefetch for port py27-cairo returned: cairo must be installed with +x11 and without +quartz.
DEBUG: Error code: NONE
DEBUG: Backtrace: cairo must be installed with +x11 and without +quartz.
    while executing
"$pre $targetname"
Warning: targets not executed for py27-cairo: org.macports.activate org.macports.archivefetch org.macports.fetch org.macports.checksum org.macports.extract org.macports.patch org.macports.configure org.macports.build org.macports.destroot org.macports.install
Error: Failed to install py27-cairo
DEBUG: could not read "/opt/local/share/man/man1/pdfunite.1.gz": no such file or directory
    while executing
"::file type $file"
Please see the log file for port py27-cairo for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-cairo/py27-cairo/main.log

What I am really trying to do:

port -d install gimp2 +quartz
Last edited 11 years ago by chicagotripp (Altoine Barker) (previous) (diff)

comment:11 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: worksforme
Status: newclosed

Something is wrong which has nothing to do with this port. Your ports' dependencies aren't being installed.

Run 'sudo port selfupdate' and see if it is fixed with the sync.

If you still have issues, please ask for help on the mailing list.

Note: See TracTickets for help on using tickets.