Bug 157885 - multimedia/mjpegtools 2.0.0 triggers gcc internal compiler error
Summary: multimedia/mjpegtools 2.0.0 triggers gcc internal compiler error
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Eitan Adler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-14 21:00 UTC by JImmie James
Modified: 2011-10-02 22:44 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description JImmie James 2011-06-14 21:00:19 UTC
Making all in yuvdeinterlace
gmake[2]: Entering directory `/usr/ports/multimedia/mjpegtools/work/mjpegtools-2.0.0/yuvdeinterlace'
c++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils  -I/usr/local/include   -O2 -pipe -fno-strict-aliasing -D_THREAD_SAFE   -MT yuvdeinterlace.o -MD -MP -MF .deps/yuvdeinterlace.Tpo -c -o yuvdeinterlace.o yuvdeinterlace.cc
mv -f .deps/yuvdeinterlace.Tpo .deps/yuvdeinterlace.Po
/bin/sh /usr/local/bin/libtool --tag=CXX   --mode=link c++  -O2 -pipe -fno-strict-aliasing -D_THREAD_SAFE    -L/usr/local/lib -pthread -o yuvdeinterlace yuvdeinterlace.o ../utils/libmjpegutils.la  -lm 
libtool: link: c++ -O2 -pipe -fno-strict-aliasing -D_THREAD_SAFE -pthread -o .libs/yuvdeinterlace yuvdeinterlace.o  -L/usr/local/lib ../utils/.libs/libmjpegutils.so -lm -pthread -Wl,-rpath -Wl,/usr/local/lib
gmake[2]: Leaving directory `/usr/ports/multimedia/mjpegtools/work/mjpegtools-2.0.0/yuvdeinterlace'
Making all in y4mdenoise
gmake[2]: Entering directory `/usr/ports/multimedia/mjpegtools/work/mjpegtools-2.0.0/y4mdenoise'
cc -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include -I../utils  -I/usr/local/include  -DNDEBUG -finline-functions -fno-PIC -O2 -pipe -fno-strict-aliasing -D_THREAD_SAFE  -Wall -Wunused -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
mv -f .deps/main.Tpo .deps/main.Po
c++ -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/local/include -I../utils  -I/usr/local/include  -DNDEBUG -finline-functions -fno-PIC -O2 -pipe -fno-strict-aliasing -D_THREAD_SAFE   -MT newdenoise.o -MD -MP -MF .deps/newdenoise.Tpo -c -o newdenoise.o newdenoise.cc
SkipList.hh: In member function 'void SkipList<KEY, VALUE, KEYFN, PRED, HC, ALLOC>::Init(Status_t&, bool, const SkipList<KEY, VALUE, KEYFN, PRED, HC, ALLOC>::InitParams&) [with KEY = VariableSizeAllocator::Block, VALUE = VariableSizeAllocator::Block, KEYFN = Ident<VariableSizeAllocator::Block, VariableSizeAllocator::Block>, PRED = VariableSizeAllocator::Block::SortBySize, int HC = 10, ALLOC = PlacementAllocator]':
SkipList.hh:546: internal compiler error: in do_SUBST, at combine.c:502
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
gmake[2]: *** [newdenoise.o] Error 1
gmake[2]: Leaving directory `/usr/ports/multimedia/mjpegtools/work/mjpegtools-2.0.0/y4mdenoise'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/multimedia/mjpegtools/work/mjpegtools-2.0.0'

Fix: 

Unsure. I've tried the base GCC, 4.2.2 20070831, as well as gcc-4.4.7.20110531, gcc-4.5.4.20110609, gcc-4.6.1.20110610 and they all fail.  4.4, 4.5 and 4.6 all fail in different places with different errors. 

Others have the same error (rules out HW issues).
http://docs.freebsd.org/cgi/getmsg.cgi?fetch=311791+0+/usr/local/www/db/text/2011/freebsd-ports/20110612.freebsd-ports
How-To-Repeat: run make in /usr/ports/multimedia/mjpegtools/
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2011-06-14 22:04:03 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-multimedia

Fix synopsis and assign.
Comment 2 Cy Schubert 2011-08-20 01:00:02 UTC
Different versions of gcc will not work however the following patch does 
circumvent the problem.

ndex: Makefile
===================================================================
RCS file: /home/pcvs/ports/multimedia/mjpegtools/Makefile,v
retrieving revision 1.74
diff -u -r1.74 Makefile
--- Makefile	2 Jul 2011 19:59:19 -0000	1.74
+++ Makefile	19 Aug 2011 23:58:05 -0000
@@ -30,7 +30,9 @@
 WANT_SDL=	yes
 USE_GMAKE=	yes
 USE_AUTOTOOLS=	libtool
+CFLAGS=		-O0
 CONFIGURE_ENV=	LDFLAGS="${LDFLAGS}" \
+		CFLAGS="${CFLAGS}" \
 		PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
 		PTHREAD_LIBS="${PTHREAD_LIBS}" \
 		ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no



-- 
Cheers,
Cy Schubert <Cy.Schubert@komquats.com>
FreeBSD UNIX:  <cy@FreeBSD.org>   Web:  http://www.FreeBSD.org

	The need of the many outweighs the greed of the few.
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2011-09-08 13:55:42 UTC
Class Changed
From-To: sw-bug->change-request

synopsis
Comment 4 Eitan Adler freebsd_committer freebsd_triage 2011-09-22 21:23:01 UTC
Responsible Changed
From-To: freebsd-multimedia->eadler

take (approved by multimedia@)
Comment 5 Eitan Adler freebsd_committer freebsd_triage 2011-09-25 21:31:35 UTC
State Changed
From-To: open->analyzed

-
Comment 6 dfilter service freebsd_committer freebsd_triage 2011-10-02 22:36:16 UTC
eadler      2011-10-02 21:36:02 UTC

  FreeBSD ports repository

  Modified files:
    multimedia/mjpegtools Makefile 
  Log:
  -resolve ICE on i386
  
  PR:             ports/157885
  Submitted by:   Jimmie James <jimmiejaz@gmail.com>
  Approved by:    multimedia (kwm)
  Approved by:    sahil (mentor)
  
  Revision  Changes    Path
  1.76      +4 -0      ports/multimedia/mjpegtools/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 7 Eitan Adler freebsd_committer freebsd_triage 2011-10-02 22:44:00 UTC
State Changed
From-To: analyzed->closed

Fixed, thanks for making FreeBSD better.