Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7863 - can't emerge avifile-0.7.15.20020816
Summary: can't emerge avifile-0.7.15.20020816
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-13 01:53 UTC by Martin Holzer (RETIRED)
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
errorlog (avifile.txt,134.91 KB, text/plain)
2002-09-13 01:53 UTC, Martin Holzer (RETIRED)
Details
Makefile (Makefile,13.58 KB, text/plain)
2002-09-15 05:58 UTC, Martin Holzer (RETIRED)
Details
avifile-exceptions.patch (avifile-exceptions.patch,751 bytes, patch)
2002-09-15 08:06 UTC, Martin Schlemmer (RETIRED)
Details | Diff
the errorlog with applied patch (errorlog_with_patch.txt,45.89 KB, text/plain)
2002-09-16 04:01 UTC, Martin Holzer (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Holzer (RETIRED) gentoo-dev 2002-09-13 01:53:05 UTC
here's a short errorlog. Attachted the complete emerge log

creating libaviplay.la
(cd .libs && rm -f libaviplay.la && ln -s ../libaviplay.la libaviplay.la)
make[2]: Leaving directory `/var/tmp/portage/avifile-
0.7.15.20020816/work/avifile0.7-0.7.15/lib'
make[1]: Leaving directory `/var/tmp/portage/avifile-
0.7.15.20020816/work/avifile0.7-0.7.15/lib'
Making all in plugins
make[1]: Entering directory `/var/tmp/portage/avifile-
0.7.15.20020816/work/avifile0.7-0.7.15/plugins'
Making all in libac3pass
make[2]: Entering directory `/var/tmp/portage/avifile-
0.7.15.20020816/work/avifile0.7-0.7.15/plugins/libac3pass'
source='ac3-iec958.c' object='ac3-iec958.lo' libtool=yes \
depfile='.deps/ac3-iec958.Plo' tmpdepfile='.deps/ac3-iec958.TPlo' \
depmode=gcc /bin/sh ../../admin/depcomp \
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -
I../../include   -fno-exceptions -fno-rtti -Wall -Wno-unused -I../../include  -
g -O2 -mcpu=i586 -march=i586 -ffast-math -pipe  -c -o ac3-iec958.lo `test -
f 'ac3-iec958.c' || echo './'`ac3-iec958.c
gcc -DHAVE_CONFIG_H -I. -I. -I../../include -fno-exceptions -fno-rtti -Wall -
Wno-unused -I../../include -g -O2 -mcpu=i586 -march=i586 -ffast-math -pipe -c 
ac3-iec958.c -Wp,-MD,.deps/ac3-iec958.TPlo  -fPIC -DPIC -o ac3-iec958.lo
cc1: Invalid option `-fno-rtti'
make[2]: *** [ac3-iec958.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/avifile-
0.7.15.20020816/work/avifile0.7-0.7.15/plugins/libac3pass'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/avifile-
0.7.15.20020816/work/avifile0.7-0.7.15/plugins'
make: *** [all-recursive] Error 1

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line -111, Exitcode 2
!!! (no error message)

gentoo tmp #
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2002-09-13 01:53:34 UTC
Created attachment 3884 [details]
errorlog
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2002-09-14 09:04:55 UTC
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
---------------------------------------------------------------
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2002-09-15 05:36:04 UTC
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
Comment 4 Martin Holzer (RETIRED) gentoo-dev 2002-09-15 05:58:48 UTC
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}
Comment 5 Martin Holzer (RETIRED) gentoo-dev 2002-09-15 05:59:20 UTC
This flag is in the Makefile !!!

Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2002-09-15 08:06:38 UTC
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.
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2002-09-15 08:07:20 UTC
BTW: what version gcc ? both 2.95.3 and 3.2 support those options here ...
Comment 8 Martin Holzer (RETIRED) gentoo-dev 2002-09-16 03:59:29 UTC
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 # 
Comment 9 Martin Holzer (RETIRED) gentoo-dev 2002-09-16 04:01:08 UTC
Created attachment 3951 [details]
the errorlog with applied patch
Comment 10 Martin Holzer (RETIRED) gentoo-dev 2002-09-18 02:16:48 UTC
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
Comment 11 Martin Holzer (RETIRED) gentoo-dev 2002-10-18 04:14:47 UTC
watch out 'emerge pango'
it does:

checking if gcc supports -fno-rtti -fno-exceptions... no

maybe avifile should also do this check ?
Comment 12 Martin Schlemmer (RETIRED) gentoo-dev 2002-10-27 10:39:43 UTC
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 ...
Comment 13 Martin Holzer (RETIRED) gentoo-dev 2002-10-28 01:49:42 UTC
still a issue.

maybe gcc could do it, but it fails


Comment 14 Martin Holzer (RETIRED) gentoo-dev 2002-11-06 02:59:14 UTC
the error was in gcc

reemerged gcc, now works fine