Summary: | can't emerge avifile-0.7.15.20020816 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Martin Holzer (RETIRED) <mholzer> |
Component: | New packages | Assignee: | Martin Schlemmer (RETIRED) <azarah> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | mholzer |
Priority: | High | ||
Version: | 1.2 | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
errorlog
Makefile avifile-exceptions.patch the errorlog with applied patch |
Description
Martin Holzer (RETIRED)
![]() Created attachment 3884 [details]
errorlog
Check your CFLAGS, or CXXFLAGS, and then take out '-fno-rtti' from at least the CFLAGS. Relevant log output: --------------------------------------------------------------- cc1: Invalid option `-fno-rtti' make[2]: *** [ac3-iec958.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/avifile --------------------------------------------------------------- in make.global: CFLAGS="-O2 -mcpu=i686 -pipe" CXXFLAGS=${CFLAGS} in make.conf: no CFLAGS CXXFLAGS="${CFLAGS}" make.conf.build:CFLAGS="-march=i586 -O3 -pipe" so there is no such flag Created attachment 3937 [details]
Makefile
Here's the makefile from
/var/tmp/portage/avifile-0.7.15.20020816/work/avifile0.7-0.7.15/plugins/libac3pass/
make.conf:CFLAGS="-march=i586 -O3 -pipe"
make.conf:CXXFLAGS="${CFLAGS}"
make.conf.build:CFLAGS="-march=i586 -O3 -pipe"
make.globals:CFLAGS="-O2 -march=i586 -pipe"
make.globals:CXXFLAGS=${CFLAGS}
This flag is in the Makefile !!! Created attachment 3944 [details, diff]
avifile-exceptions.patch
copy to /usr/portage/media-video/avifile/files, and then apply this in
src_unpack() in the ebuild like so:
src_unpack() {
unpack ${A}
cd ${S}
patch -p1 < ${FILESDIR}/avifile-exceptions.patch || die
}
Just integrate if it already have a src_unpack.
Let me know if it fixes it for you.
BTW: what version gcc ? both 2.95.3 and 3.2 support those options here ... gentoo root # gcc -v Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnu/2.95.3/specs gcc version 2.95.3 20010315 (release) when i apply the patch, compiling stops very short after starting emerge Making all in ffmpeg make[1]: Entering directory `/var/tmp/portage/avifile- 0.7.15.20020816/work/avifile0.7-0.7.15/ffmpeg' cd .. && \ /bin/sh /var/tmp/portage/avifile-0.7.15.20020816/work/avifile0.7- 0.7.15/admin/missing --run automake-1.6 --foreign ffmpeg/Makefile cd .. && /bin/sh ./config.status ffmpeg/Makefile depfiles config.status: creating ffmpeg/Makefile config.status: executing depfiles commands make[1]: Leaving directory `/var/tmp/portage/avifile- 0.7.15.20020816/work/avifile0.7-0.7.15/ffmpeg' make[1]: Entering directory `/var/tmp/portage/avifile- 0.7.15.20020816/work/avifile0.7-0.7.15/ffmpeg' Making all in libav make[2]: Entering directory `/var/tmp/portage/avifile- 0.7.15.20020816/work/avifile0.7-0.7.15/ffmpeg/libav' cd ../.. && \ /bin/sh /var/tmp/portage/avifile-0.7.15.20020816/work/avifile0.7- 0.7.15/admin/missing --run automake-1.6 --foreign ffmpeg/libav/Makefile cd ../.. && /bin/sh ./config.status ffmpeg/libav/Makefile depfiles config.status: creating ffmpeg/libav/Makefile config.status: executing depfiles commands make[2]: Leaving directory `/var/tmp/portage/avifile- 0.7.15.20020816/work/avifile0.7-0.7.15/ffmpeg/libav' make[2]: Entering directory `/var/tmp/portage/avifile- 0.7.15.20020816/work/avifile0.7-0.7.15/ffmpeg/libav' source='allformats.c' object='allformats.lo' libtool=yes \ depfile='.deps/allformats.Plo' tmpdepfile='.deps/allformats.TPlo' \ depmode=gcc /bin/sh ../../admin/depcomp \ /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. - I../../include -DHAVE_AV_CONFIG_H -I./../libavcodec -I./.. -Wall -Wno-unused - I../../include -g -O2 -mcpu=i586 -march=i586 -ffast-math -pipe -c -o allformats.lo `test -f 'allformats.c' || echo './'`allformats.c ../../libtool: s%^.*/%%: No such file or directory ../../libtool: -e: command not found ../../libtool: -e: command not found ../../libtool: -e: command not found ../../libtool: -e: command not found ../../libtool: -e: command not found ../../libtool: -e: command not found ../../libtool: -e: command not found ../../libtool: -e: command not found ../../libtool: -e: command not found ../../libtool: -e: command not found ../../libtool: -e: command not found ../../libtool: -e: command not found ../../libtool: -e: command not found ../../libtool: -e: command not found ../../libtool: -e: command not found ../../libtool: -e: command not found ../../libtool: -e: command not found ../../libtool: -e: command not found ../../libtool: -e: command not found ../../libtool: -e: command not found ../../libtool: -e: command not found : compile: cannot determine name of library object from `' make[2]: *** [allformats.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/avifile- 0.7.15.20020816/work/avifile0.7-0.7.15/ffmpeg/libav' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/avifile- 0.7.15.20020816/work/avifile0.7-0.7.15/ffmpeg' make: *** [all-recursive] Error 1 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line -103, Exitcode 2 !!! (no error message) gentoo root # Created attachment 3951 [details]
the errorlog with applied patch
when i remove -fno-rtti from the Makefile in libac3pass, emerge stops in libaudiocodecs i've found Makefile:CXXRTTIEXCEPT = -fno-exceptions -fno-rtti in the plugins directory, where both libs are located and this error happens watch out 'emerge pango' it does: checking if gcc supports -fno-rtti -fno-exceptions... no maybe avifile should also do this check ? Is this still a problem for you ? To be honest, both gcc-3.x and gcc-2.95.3 support "-fno-rtti -fno-exceptions" just fine this side, so not sure ... still a issue. maybe gcc could do it, but it fails the error was in gcc reemerged gcc, now works fine |