Bug 192437 - audio/deadbeef build error with OPTIONS_FILE_SET+=SID
Summary: audio/deadbeef build error with OPTIONS_FILE_SET+=SID
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Veniamin Gvozdikov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-06 14:42 UTC by Ivan Klymenko
Modified: 2014-08-07 19:36 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 Ivan Klymenko 2014-08-06 14:42:33 UTC
...
cpp  -fPIC -DPIC -o .libs/mos6510.o
libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../.. -O2 -pipe -march=native -I/usr/local/include -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing -DLIBICONV_PLUG -D_GNU_SOURCE -DLIBDIR=\"/usr/local/lib\" -DPREFIX=\"/usr/local\" -DDOCDIR=\"/usr/local/share/doc/deadbeef\" -DDDB_WARN_DEPRECATED=1 -DHAVE_UNIX -I../../plugins/sid/sidplay-libs -I../../plugins/sid/sidplay-libs/unix -I../../plugins/sid/sidplay-libs/libsidplay -I../../plugins/sid/sidplay-libs/libsidplay/include -I../../plugins/sid/sidplay-libs/libsidplay/include/sidplay -I../../plugins/sid/sidplay-libs/libsidutils/include/sidplay/utils -I../../plugins/sid/sidplay-libs/builders/resid-builder/include/sidplay/builders -I../../plugins/sid/sidplay-libs/builders/resid-builder/include -DHAVE_STRCASECMP -DHAVE_STRNCASECMP -fno-exceptions -fno-rtti -fno-unwind-tables -I../dumb/dumb-kode54/include -I../../plugins/libmp4ff -I../../plugins/gme/game-music-emu-0.6pre -I/usr/local/include -I/usr/local/include -DLIBICONV_PLUG -D_THREAD_SAFE -O2 -pipe -march=native -I/usr/local/include -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing -DLIBICONV_PLUG -D_GNU_SOURCE -DLIBDIR=\"/usr/local/lib\" -DPREFIX=\"/usr/local\" -DDOCDIR=\"/usr/local/share/doc/deadbeef\" -DDDB_WARN_DEPRECATED=1 -MT sid6526.lo -MD -MP -MF .deps/sid6526.Tpo -c sidplay-libs/libsidplay/src/sid6526/sid6526.cpp  -fPIC -DPIC -o .libs/sid6526.o
libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../.. -O2 -pipe -march=native -I/usr/local/include -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing -DLIBICONV_PLUG -D_GNU_SOURCE -DLIBDIR=\"/usr/local/lib\" -DPREFIX=\"/usr/local\" -DDOCDIR=\"/usr/local/share/doc/deadbeef\" -DDDB_WARN_DEPRECATED=1 -DHAVE_UNIX -I../../plugins/sid/sidplay-libs -I../../plugins/sid/sidplay-libs/unix -I../../plugins/sid/sidplay-libs/libsidplay -I../../plugins/sid/sidplay-libs/libsidplay/include -I../../plugins/sid/sidplay-libs/libsidplay/include/sidplay -I../../plugins/sid/sidplay-libs/libsidutils/include/sidplay/utils -I../../plugins/sid/sidplay-libs/builders/resid-builder/include/sidplay/builders -I../../plugins/sid/sidplay-libs/builders/resid-builder/include -DHAVE_STRCASECMP -DHAVE_STRNCASECMP -fno-exceptions -fno-rtti -fno-unwind-tables -I../dumb/dumb-kode54/include -I../../plugins/libmp4ff -I../../plugins/gme/game-music-emu-0.6pre -I/usr/local/include -I/usr/local/include -DLIBICONV_PLUG -D_THREAD_SAFE -O2 -pipe -march=native -I/usr/local/include -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing -DLIBICONV_PLUG -D_GNU_SOURCE -DLIBDIR=\"/usr/local/lib\" -DPREFIX=\"/usr/local\" -DDOCDIR=\"/usr/local/share/doc/deadbeef\" -DDDB_WARN_DEPRECATED=1 -MT MUS.lo -MD -MP -MF .deps/MUS.Tpo -c sidplay-libs/libsidplay/src/sidtune/MUS.cpp  -fPIC -DPIC -o .libs/MUS.o
In file included from sidplay-libs/libsidplay/src/mos656x/mos656x.cpp:20:
sidplay-libs/libsidplay/src/mos656x/mos656x.h:32:41: error: unknown class name 'Event'; did you mean 'event'?
class MOS656X: public component, public Event
                                        ^~~~~
                                        event
/usr/local/include/event2/event.h:272:8: note: 'event' declared here
struct event
       ^
In file included from sidplay-libs/libsidplay/src/mos656x/mos656x.cpp:20:
sidplay-libs/libsidplay/src/mos656x/mos656x.h:45:5: error: unknown type name 'event_clock_t'
    event_clock_t m_accessClk;
    ^
sidplay-libs/libsidplay/src/mos656x/mos656x.h:46:5: error: unknown type name 'EventContext'
    EventContext &event_context;
    ^
sidplay-libs/libsidplay/src/mos656x/mos656x.h:49:14: error: unknown type name 'EventContext'
    MOS656X (EventContext *context);
             ^
sidplay-libs/libsidplay/src/mos656x/mos656x.cpp:38:19: error: unknown type name 'EventContext'
MOS656X::MOS656X (EventContext *context)
                  ^
sidplay-libs/libsidplay/src/mos656x/mos656x.cpp:39:2: error: member initializer 'Event' does not name a non-static data member or base class
:Event("VIC Raster"),
 ^~~~~~~~~~~~~~~~~~~
sidplay-libs/libsidplay/src/mos656x/mos656x.cpp:184:5: error: unknown type name 'event_clock_t'
    event_clock_t delay = 1;
    ^
7 errors generated.
gmake[4]: *** [mos656x.lo] Ошибка 1
gmake[4]: *** Ожидание завершения заданий...
libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../.. -O2 -pipe -march=native -I/usr/local/include -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing -DLIBICONV_PLUG -D_GNU_SOURCE -DLIBDIR=\"/usr/local/lib\" -DPREFIX=\"/usr/local\" -DDOCDIR=\"/usr/local/share/doc/deadbeef\" -DDDB_WARN_DEPRECATED=1 -DHAVE_UNIX -I../../plugins/sid/sidplay-libs -I../../plugins/sid/sidplay-libs/unix -I../../plugins/sid/sidplay-libs/libsidplay -I../../plugins/sid/sidplay-libs/libsidplay/include -I../../plugins/sid/sidplay-libs/libsidplay/include/sidplay -I../../plugins/sid/sidplay-libs/libsidutils/include/sidplay/utils -I../../plugins/sid/sidplay-libs/builders/resid-builder/include/sidplay/builders -I../../plugins/sid/sidplay-libs/builders/resid-builder/include -DHAVE_STRCASECMP -DHAVE_STRNCASECMP -fno-exceptions -fno-rtti -fno-unwind-tables -I../dumb/dumb-kode54/include -I../../plugins/libmp4ff -I../../plugins/gme/game-music-emu-0.6pre -I/usr/local/include -I/usr/local/include -DLIBICONV_PLUG -D_THREAD_SAFE -O2 -pipe -march=native -I/usr/local/include -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing -DLIBICONV_PLUG -D_GNU_SOURCE -DLIBDIR=\"/usr/local/lib\" -DPREFIX=\"/usr/local\" -DDOCDIR=\"/usr/local/share/doc/deadbeef\" -DDDB_WARN_DEPRECATED=1 -MT sid6526.lo -MD -MP -MF .deps/sid6526.Tpo -c sidplay-libs/libsidplay/src/sid6526/sid6526.cpp -o sid6526.o >/dev/null 2>&1
In file included from sidplay-libs/libsidplay/src/mos6510/mos6510.cpp:53:
In file included from sidplay-libs/libsidplay/src/mos6510/mos6510.h:66:
In file included from sidplay-libs/libsidplay/src/mos6510/cycle_based/sid6510c.h:76:
sidplay-libs/libsidplay/src/mos6510/cycle_based/mos6510c.h:76:46: error: unknown class name 'Event'; did you mean 'event'?
class MOS6510: public C64Environment, public Event
                                             ^~~~~
                                             event
/usr/local/include/event2/event.h:272:8: note: 'event' declared here
struct event
       ^
In file included from sidplay-libs/libsidplay/src/mos6510/mos6510.cpp:53:
In file included from sidplay-libs/libsidplay/src/mos6510/mos6510.h:66:
In file included from sidplay-libs/libsidplay/src/mos6510/cycle_based/sid6510c.h:76:
sidplay-libs/libsidplay/src/mos6510/cycle_based/mos6510c.h:87:5: error: unknown type name 'EventContext'
    EventContext &eventContext;
    ^
sidplay-libs/libsidplay/src/mos6510/cycle_based/mos6510c.h:130:9: error: unknown type name 'event_clock_t'
        event_clock_t  nmiClock;
        ^
sidplay-libs/libsidplay/src/mos6510/cycle_based/mos6510c.h:131:9: error: unknown type name 'event_clock_t'
        event_clock_t  irqClock;
        ^
sidplay-libs/libsidplay/src/mos6510/cycle_based/mos6510c.h:132:9: error: unknown type name 'event_clock_t'
        event_clock_t  delay;
        ^
sidplay-libs/libsidplay/src/mos6510/cycle_based/mos6510c.h:275:14: error: unknown type name 'EventContext'
    MOS6510 (EventContext *context);
             ^
In file included from sidplay-libs/libsidplay/src/mos6510/mos6510.cpp:57:
sidplay-libs/libsidplay/src/mos6510/cycle_based/mos6510c.i:219:9: error: cannot initialize object parameter of type 'C64Environment' with an expression of type 'MOS6510'
        envWriteMemByte (addr, Register_Status & ~((!b_flag) << SR_BREAK));
        ^~~~~~~~~~~~~~~
sidplay-libs/libsidplay/src/mos6510/cycle_based/mos6510c.i:246:31: error: cannot initialize object parameter of type 'C64Environment' with an expression of type 'MOS6510'
            Register_Status = envReadMemByte (addr);
                              ^~~~~~~~~~~~~~
sidplay-libs/libsidplay/src/mos6510/cycle_based/mos6510c.i:409:5: error: cannot initialize object parameter of type 'C64Environment' with an expression of type 'MOS6510'
    envReset ();
    ^~~~~~~~
sidplay-libs/libsidplay/src/mos6510/cycle_based/mos6510c.i:415:47: error: cannot initialize object parameter of type 'C64Environment' with an expression of type 'MOS6510'
        endian_16lo8 (Cycle_EffectiveAddress, envReadMemDataByte (0xFFFA));
                                              ^~~~~~~~~~~~~~~~~~
sidplay-libs/libsidplay/src/mos6510/cycle_based/mos6510c.i:426:48: error: cannot initialize object parameter of type 'C64Environment' with an expression of type 'MOS6510'
        endian_16hi8  (Cycle_EffectiveAddress, envReadMemDataByte (0xFFFB));
                                               ^~~~~~~~~~~~~~~~~~
sidplay-libs/libsidplay/src/mos6510/cycle_based/mos6510c.i:445:47: error: cannot initialize object parameter of type 'C64Environment' with an expression of type 'MOS6510'
        endian_16lo8 (Cycle_EffectiveAddress, envReadMemDataByte (0xFFFE));
                                              ^~~~~~~~~~~~~~~~~~
sidplay-libs/libsidplay/src/mos6510/cycle_based/mos6510c.i:456:48: error: cannot initialize object parameter of type 'C64Environment' with an expression of type 'MOS6510'
        endian_16hi8  (Cycle_EffectiveAddress, envReadMemDataByte (0xFFFF));
                                               ^~~~~~~~~~~~~~~~~~
sidplay-libs/libsidplay/src/mos6510/cycle_based/mos6510c.i:490:25: error: cannot initialize object parameter of type 'C64Environment' with an expression of type 'MOS6510'
        instrOpcode   = envReadMemByte (instrStartPC);
                        ^~~~~~~~~~~~~~
sidplay-libs/libsidplay/src/mos6510/cycle_based/mos6510c.i:510:18: error: cannot initialize object parameter of type 'C64Environment' with an expression of type 'MOS6510'
    Cycle_Data = envReadMemByte (endian_32lo16 (Register_ProgramCounter));
                 ^~~~~~~~~~~~~~
sidplay-libs/libsidplay/src/mos6510/cycle_based/mos6510c.i:529:34: error: cannot initialize object parameter of type 'C64Environment' with an expression of type 'MOS6510'
        Cycle_EffectiveAddress = envReadMemByte (endian_32lo16 (Register_ProgramCounter));
                                 ^~~~~~~~~~~~~~
sidplay-libs/libsidplay/src/mos6510/cycle_based/mos6510c.i:564:47: error: cannot initialize object parameter of type 'C64Environment' with an expression of type 'MOS6510'
        endian_16hi8 (Cycle_EffectiveAddress, envReadMemByte (endian_32lo16 (Register_ProgramCounter)));
                                              ^~~~~~~~~~~~~~
sidplay-libs/libsidplay/src/mos6510/cycle_based/mos6510c.i:634:25: error: cannot initialize object parameter of type 'C64Environment' with an expression of type 'MOS6510'
        Cycle_Pointer = envReadMemByte (endian_32lo16 (Register_ProgramCounter));
                        ^~~~~~~~~~~~~~
sidplay-libs/libsidplay/src/mos6510/cycle_based/mos6510c.i:651:38: error: cannot initialize object parameter of type 'C64Environment' with an expression of type 'MOS6510'
        endian_16hi8 (Cycle_Pointer, envReadMemDataByte (Cycle_Pointer));
                                     ^~~~~~~~~~~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
gmake[4]: *** [mos6510.lo] Ошибка 1
libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../.. -O2 -pipe -march=native -I/usr/local/include -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing -DLIBICONV_PLUG -D_GNU_SOURCE -DLIBDIR=\"/usr/local/lib\" -DPREFIX=\"/usr/local\" -DDOCDIR=\"/usr/local/share/doc/deadbeef\" -DDDB_WARN_DEPRECATED=1 -DHAVE_UNIX -I../../plugins/sid/sidplay-libs -I../../plugins/sid/sidplay-libs/unix -I../../plugins/sid/sidplay-libs/libsidplay -I../../plugins/sid/sidplay-libs/libsidplay/include -I../../plugins/sid/sidplay-libs/libsidplay/include/sidplay -I../../plugins/sid/sidplay-libs/libsidutils/include/sidplay/utils -I../../plugins/sid/sidplay-libs/builders/resid-builder/include/sidplay/builders -I../../plugins/sid/sidplay-libs/builders/resid-builder/include -DHAVE_STRCASECMP -DHAVE_STRNCASECMP -fno-exceptions -fno-rtti -fno-unwind-tables -I../dumb/dumb-kode54/include -I../../plugins/libmp4ff -I../../plugins/gme/game-music-emu-0.6pre -I/usr/local/include -I/usr/local/include -DLIBICONV_PLUG -D_THREAD_SAFE -O2 -pipe -march=native -I/usr/local/include -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing -DLIBICONV_PLUG -D_GNU_SOURCE -DLIBDIR=\"/usr/local/lib\" -DPREFIX=\"/usr/local\" -DDOCDIR=\"/usr/local/share/doc/deadbeef\" -DDDB_WARN_DEPRECATED=1 -MT MUS.lo -MD -MP -MF .deps/MUS.Tpo -c sidplay-libs/libsidplay/src/sidtune/MUS.cpp -o MUS.o >/dev/null 2>&1
mv -f .deps/sid6526.Tpo .deps/sid6526.Plo
mv -f .deps/MUS.Tpo .deps/MUS.Plo
gmake[4]: Выход из каталога `/media/da0s1/obj/usr/ports/audio/deadbeef/work/deadbeef-0.6.2-rc5/plugins/sid'
gmake[3]: *** [all-recursive] Ошибка 1
gmake[3]: Выход из каталога `/media/da0s1/obj/usr/ports/audio/deadbeef/work/deadbeef-0.6.2-rc5'
gmake[2]: *** [all] Ошибка 2
gmake[2]: Выход из каталога `/media/da0s1/obj/usr/ports/audio/deadbeef/work/deadbeef-0.6.2-rc5'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/audio/deadbeef
*** Error code 1

Stop.
make: stopped in /usr/ports/audio/deadbeef

===>>> make build failed for audio/deadbeef
===>>> Aborting update


===>>> You can restart from the point of failure with this command line:
       portmaster <flags> audio/deadbeef
Comment 1 John Marino freebsd_committer freebsd_triage 2014-08-06 21:06:30 UTC
over to maintainer
Comment 2 Veniamin Gvozdikov freebsd_committer freebsd_triage 2014-08-06 21:27:47 UTC
(In reply to Ivan Klymenko from comment #0)
> ...

> 
> ===>>> make build failed for audio/deadbeef
> ===>>> Aborting update
> 
> 
> ===>>> You can restart from the point of failure with this command line:
>        portmaster <flags> audio/deadbeef

Check UPDATING and remove old libevent then try again.
Comment 3 Ivan Klymenko 2014-08-06 21:32:50 UTC
(In reply to Veniamin Gvozdikov from comment #2)
> (In reply to Ivan Klymenko from comment #0)
> > ...
> 
> > 
> > ===>>> make build failed for audio/deadbeef
> > ===>>> Aborting update
> > 
> > 
> > ===>>> You can restart from the point of failure with this command line:
> >        portmaster <flags> audio/deadbeef
> 
> Check UPDATING and remove old libevent then try again.

pkg info | grep libevent
libevent2-2.0.21_2             API for executing callback functions on events or timeouts
root@nonamehost:/ #
Comment 4 Veniamin Gvozdikov freebsd_committer freebsd_triage 2014-08-06 21:37:13 UTC
(In reply to Ivan Klymenko from comment #3)

> 
> pkg info | grep libevent
> libevent2-2.0.21_2             API for executing callback functions on
> events or timeouts
> root@nonamehost:/ #

Try this, and show me output:

pkg which /usr/local/include/event.h
Comment 5 Ivan Klymenko 2014-08-06 21:41:24 UTC
(In reply to Veniamin Gvozdikov from comment #4)
> (In reply to Ivan Klymenko from comment #3)
> 
> > 
> > pkg info | grep libevent
> > libevent2-2.0.21_2             API for executing callback functions on
> > events or timeouts
> > root@nonamehost:/ #
> 
> Try this, and show me output:
> 
> pkg which /usr/local/include/event.h

pkg which /usr/local/include/event.h
/usr/local/include/event.h was installed by package libevent2-2.0.21_2
Comment 6 Veniamin Gvozdikov freebsd_committer freebsd_triage 2014-08-06 21:48:25 UTC
(In reply to Ivan Klymenko from comment #5)
> pkg which /usr/local/include/event.h
> /usr/local/include/event.h was installed by package libevent2-2.0.21_2

Ok, I'll fix it as soon as possible.
Comment 7 Veniamin Gvozdikov freebsd_committer freebsd_triage 2014-08-07 11:05:17 UTC
(In reply to Ivan Klymenko from comment #5)
> (In reply to Veniamin Gvozdikov from comment #4)
> > (In reply to Ivan Klymenko from comment #3)
> > 
> > > 
> > > pkg info | grep libevent
> > > libevent2-2.0.21_2             API for executing callback functions on
> > > events or timeouts
> > > root@nonamehost:/ #
> > 
> > Try this, and show me output:
> > 
> > pkg which /usr/local/include/event.h
> 
> pkg which /usr/local/include/event.h
> /usr/local/include/event.h was installed by package libevent2-2.0.21_2

Upgrade ports tree and try this patch:

--- Makefile	(revision 364259)
+++ Makefile	(working copy)
@@ -80,8 +80,8 @@
 LASTFM_CONFIGURE_OFF=	--disable-lfm
 
 ART_LIB_DEPENDS=	libcurl.so:${PORTSDIR}/ftp/curl \
+			libImlib2.so:${PORTSDIR}/graphics/imlib2 \
 			libjpeg.so:${PORTSDIR}/graphics/jpeg
-ART_USE=	efl=imlib2
 ART_CONFIGURE_OFF=	--disable-artwork --disable-artwork-imlib2
 
 EQ_CONFIGURE_OFF=	--disable-supereq
Comment 8 Ivan Klymenko 2014-08-07 18:21:36 UTC
(In reply to Veniamin Gvozdikov from comment #7)
> (In reply to Ivan Klymenko from comment #5)
> > (In reply to Veniamin Gvozdikov from comment #4)
> > > (In reply to Ivan Klymenko from comment #3)
> > > 
> > > > 
> > > > pkg info | grep libevent
> > > > libevent2-2.0.21_2             API for executing callback functions on
> > > > events or timeouts
> > > > root@nonamehost:/ #
> > > 
> > > Try this, and show me output:
> > > 
> > > pkg which /usr/local/include/event.h
> > 
> > pkg which /usr/local/include/event.h
> > /usr/local/include/event.h was installed by package libevent2-2.0.21_2
> 
> Upgrade ports tree and try this patch:
> 
> --- Makefile	(revision 364259)
> +++ Makefile	(working copy)
> @@ -80,8 +80,8 @@
>  LASTFM_CONFIGURE_OFF=	--disable-lfm
>  
>  ART_LIB_DEPENDS=	libcurl.so:${PORTSDIR}/ftp/curl \
> +			libImlib2.so:${PORTSDIR}/graphics/imlib2 \
>  			libjpeg.so:${PORTSDIR}/graphics/jpeg
> -ART_USE=	efl=imlib2
>  ART_CONFIGURE_OFF=	--disable-artwork --disable-artwork-imlib2
>  
>  EQ_CONFIGURE_OFF=	--disable-supereq

Upgrade to http://svnweb.freebsd.org/ports?view=revision&revision=364259 and patch solved the problem.
Comment 9 commit-hook freebsd_committer freebsd_triage 2014-08-07 19:26:50 UTC
A commit references this bug:

Author: vg
Date: Thu Aug  7 19:26:40 UTC 2014
New revision: 364315
URL: http://svnweb.freebsd.org/changeset/ports/364315

Log:
  - Fix build SID plugin

  PR:		ports/192437

Changes:
  head/audio/deadbeef/Makefile
Comment 10 Veniamin Gvozdikov freebsd_committer freebsd_triage 2014-08-07 19:34:58 UTC
Fixed. Thank you!
Comment 11 Ivan Klymenko 2014-08-07 19:36:58 UTC
(In reply to Veniamin Gvozdikov from comment #10)
> Fixed. Thank you!

Thank you!