On 2014-07-30 01:44, Jens Steinhauser wrote: > On 07/30/2014 12:38 AM, Uffe Jakobsen wrote: >> On 2014-07-29 00:21, Bert Vermeulen wrote: >>> On 07/28/2014 11:34 PM, Uffe Jakobsen wrote: >>> >>>> pulseview does not compile with clang on FreeBSD 10 (clang 3.3) >>>> >>>> I tested the following versions pulseview-0.1.0, pulseview-0.2.0 and >>>> pulseview-head as of this evening. >>>> >>>> Can any of you report compile success with FreeBSD 10 ? >>> >>> Compiles fine for me on FreeBSD 10. >>> >> >> That is great news - I'm the FreeBSD port maintainer of the sigrok core >> components and would like to provide pulseview as well. >> >> Would you mind sharing some more detials ? >> >> What versions of pulseview compile (0.1.0 or 0.2.0) - if on master >> branch what revision works for you ? >> >> What compiler do you use ? stock clang 3.3 from FreeBSD base or ? >> >> Besides the obvious cmake/gmake command combination do anything else ? >> >> Also the output of command: "uname -aKU" would be useful (to establish >> os patch level). >> >> Thanks in advance. >> >> /Uffe > > > Would you mind sharing some more details? "does not compile" is not very > detailed, what's the error message you get? >
Sure - I just didn't want to spam this list with something that I meant was easily reprodusable by anyone with a FreeBSD 10 system. pulseview-0.1.0, pulseview-0.2.0 and pulseview-master (head) each fails with different compile errors - I'll ignore pulseview-0.1.0 - as it is outdated. *** System info: # uname -aKU FreeBSD asus-u32u 10.0-RELEASE-p7 FreeBSD 10.0-RELEASE-p7 #0: Tue Jul 8 06:37:44 UTC 2014 [email protected]:/usr/obj/usr/src/sys/GENERIC amd64 1000510 1000510 # freebsd-version -ku 10.0-RELEASE-p7 10.0-RELEASE-p7 *** BEGIN pulseview master/head *** _build 0 (master) $ cmake .. -- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.28") -- The C compiler identification is Clang 3.3.0 -- The CXX compiler identification is Clang 3.3.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/CC -- Check for working CXX compiler: /usr/bin/CC -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- checking for modules 'libsigrok>=0.3.0;libsigrokdecode>=0.3.0' -- found libsigrok, version 0.3.0 -- found libsigrokdecode, version 0.3.0 -- Using Qt5 -- Boost version: 1.55.0 -- Found the following Boost libraries: -- filesystem -- system -- Performing Test HAVE_UNALIGNED_LITTLE_ENDIAN_ACCESS -- Performing Test HAVE_UNALIGNED_LITTLE_ENDIAN_ACCESS - Success -- Configuring done -- Generating done -- Build files have been written to: /home/wuffe/_ext.tmp/sigrok-pulseview.git/_build _build 0 (master) $ gmake [ 1%] Generating qrc_pulseview.cpp [ 1%] Generating pv/moc_mainwindow.cpp [ 2%] Generating pv/moc_sigsession.cpp [ 3%] Generating pv/moc_storesession.cpp [ 3%] Generating pv/device/moc_devinst.cpp [ 4%] Generating pv/dialogs/moc_about.cpp [ 5%] Generating pv/dialogs/moc_connect.cpp [ 5%] Generating pv/dialogs/moc_storeprogress.cpp [ 6%] Generating pv/popups/moc_probes.cpp [ 7%] Generating pv/popups/moc_deviceoptions.cpp [ 7%] Generating pv/prop/moc_bool.cpp [ 8%] Generating pv/prop/moc_double.cpp [ 9%] Generating pv/prop/moc_enum.cpp [ 10%] Generating pv/prop/moc_int.cpp [ 10%] Generating pv/prop/moc_property.cpp [ 11%] Generating pv/prop/moc_string.cpp [ 12%] Generating pv/toolbars/moc_samplingbar.cpp [ 12%] Generating pv/view/moc_cursor.cpp [ 13%] Generating pv/view/moc_cursorheader.cpp [ 14%] Generating pv/view/moc_header.cpp [ 14%] Generating pv/view/moc_logicsignal.cpp [ 15%] Generating pv/view/moc_marginwidget.cpp [ 16%] Generating pv/view/moc_ruler.cpp [ 17%] Generating pv/view/moc_selectableitem.cpp [ 17%] Generating pv/view/moc_signal.cpp [ 18%] Generating pv/view/moc_timemarker.cpp [ 19%] Generating pv/view/moc_trace.cpp [ 19%] Generating pv/view/moc_view.cpp [ 20%] Generating pv/view/moc_viewport.cpp [ 21%] Generating pv/widgets/moc_colourbutton.cpp [ 21%] Generating pv/widgets/moc_colourpopup.cpp [ 22%] Generating pv/widgets/moc_popup.cpp [ 23%] Generating pv/widgets/moc_popuptoolbutton.cpp [ 24%] Generating pv/widgets/moc_sweeptimingwidget.cpp [ 24%] Generating pv/widgets/moc_wellarray.cpp [ 25%] Generating moc_signalhandler.cpp [ 26%] Generating pv/data/moc_decoderstack.cpp [ 26%] Generating pv/view/moc_decodetrace.cpp [ 27%] Generating pv/widgets/moc_decodergroupbox.cpp [ 28%] Generating pv/widgets/moc_decodermenu.cpp [ 28%] Generating ui_about.h Scanning dependencies of target pulseview [ 29%] Building CXX object CMakeFiles/pulseview.dir/main.cpp.o [ 30%] Building CXX object CMakeFiles/pulseview.dir/pv/devicemanager.cpp.o [ 30%] Building CXX object CMakeFiles/pulseview.dir/pv/mainwindow.cpp.o [ 31%] Building CXX object CMakeFiles/pulseview.dir/pv/sigsession.cpp.o /home/wuffe/_ext.tmp/sigrok-pulseview.git/pv/sigsession.cpp:106:3: error: no matching function for call to 'sr_session_datafeed_callback_remove_all' sr_session_datafeed_callback_remove_all(_sr_session); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/libsigrok/proto.h:95:12: note: candidate function not viable: requires 0 arguments, but 1 was provided SR_API int sr_session_datafeed_callback_remove_all(void); ^ /home/wuffe/_ext.tmp/sigrok-pulseview.git/pv/sigsession.cpp:115:3: error: no matching function for call to 'sr_session_datafeed_callback_add' sr_session_datafeed_callback_add(_sr_session, data_feed_in_proc, NULL); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/libsigrok/proto.h:96:12: note: candidate function not viable: requires 2 arguments, but 3 were provided SR_API int sr_session_datafeed_callback_add(sr_datafeed_callback cb, ^ /home/wuffe/_ext.tmp/sigrok-pulseview.git/pv/sigsession.cpp:200:3: error: no matching function for call to 'sr_session_stop' sr_session_stop(_sr_session); ^~~~~~~~~~~~~~~ /usr/local/include/libsigrok/proto.h:102:12: note: candidate function not viable: requires 0 arguments, but 1 was provided SR_API int sr_session_stop(void); ^ /home/wuffe/_ext.tmp/sigrok-pulseview.git/pv/sigsession.cpp:450:20: error: use of undeclared identifier 'sr_session_trigger_get' set_capture_state(sr_session_trigger_get(_sr_session) ? ^ 4 errors generated. gmake[2]: *** [CMakeFiles/pulseview.dir/pv/sigsession.cpp.o] Error 1 gmake[1]: *** [CMakeFiles/pulseview.dir/all] Error 2 gmake: *** [all] Error 2 _build 2 (master) $ *** END pulseview master/head *** *** BEGIN pulseview-0.2.0 *** _build 0 ((pulseview-0.2.0)) $ cmake .. -- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.28") -- The C compiler identification is Clang 3.3.0 -- The CXX compiler identification is Clang 3.3.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/CC -- Check for working CXX compiler: /usr/bin/CC -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- checking for modules 'libsigrok>=0.3.0;libsigrokdecode>=0.3.0' -- found libsigrok, version 0.3.0 -- found libsigrokdecode, version 0.3.0 -- Looking for Q_WS_X11 -- Looking for Q_WS_X11 - found -- Looking for Q_WS_WIN -- Looking for Q_WS_WIN - not found -- Looking for Q_WS_QWS -- Looking for Q_WS_QWS - not found -- Looking for Q_WS_MAC -- Looking for Q_WS_MAC - not found -- Found Qt4: /usr/local/bin/qmake-qt4 (found version "4.8.6") -- Looking for include file pthread.h -- Looking for include file pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Boost version: 1.55.0 -- Found the following Boost libraries: -- filesystem -- system -- thread -- Performing Test HAVE_UNALIGNED_LITTLE_ENDIAN_ACCESS -- Performing Test HAVE_UNALIGNED_LITTLE_ENDIAN_ACCESS - Success -- Configuring done -- Generating done -- Build files have been written to: /home/wuffe/_ext.tmp/sigrok-pulseview.git/_build _build 0 ((pulseview-0.2.0)) $ gmake [ 0%] Generating qrc_pulseview.cxx [ 0%] Generating pv/moc_mainwindow.cxx [ 1%] Generating pv/moc_sigsession.cxx [ 2%] Generating pv/moc_storesession.cxx [ 2%] Generating pv/device/moc_devinst.cxx [ 3%] Generating pv/dialogs/moc_about.cxx [ 4%] Generating pv/dialogs/moc_connect.cxx [ 5%] Generating pv/dialogs/moc_storeprogress.cxx [ 5%] Generating pv/popups/moc_probes.cxx [ 6%] Generating pv/popups/moc_deviceoptions.cxx [ 7%] Generating pv/prop/moc_bool.cxx [ 7%] Generating pv/prop/moc_double.cxx [ 8%] Generating pv/prop/moc_enum.cxx [ 9%] Generating pv/prop/moc_int.cxx [ 10%] Generating pv/prop/moc_property.cxx [ 10%] Generating pv/prop/moc_string.cxx [ 11%] Generating pv/toolbars/moc_samplingbar.cxx [ 12%] Generating pv/view/moc_cursor.cxx [ 12%] Generating pv/view/moc_header.cxx [ 13%] Generating pv/view/moc_logicsignal.cxx [ 14%] Generating pv/view/moc_marginwidget.cxx [ 15%] Generating pv/view/moc_ruler.cxx [ 15%] Generating pv/view/moc_selectableitem.cxx [ 16%] Generating pv/view/moc_signal.cxx [ 17%] Generating pv/view/moc_timemarker.cxx [ 17%] Generating pv/view/moc_trace.cxx [ 18%] Generating pv/view/moc_view.cxx [ 19%] Generating pv/view/moc_viewport.cxx [ 20%] Generating pv/widgets/moc_colourbutton.cxx [ 20%] Generating pv/widgets/moc_colourpopup.cxx [ 21%] Generating pv/widgets/moc_popup.cxx [ 22%] Generating pv/widgets/moc_popuptoolbutton.cxx [ 23%] Generating pv/widgets/moc_sweeptimingwidget.cxx [ 23%] Generating pv/widgets/moc_wellarray.cxx [ 24%] Generating moc_signalhandler.cxx [ 25%] Generating pv/data/moc_decoderstack.cxx [ 25%] Generating pv/view/moc_decodetrace.cxx [ 26%] Generating pv/widgets/moc_decodergroupbox.cxx [ 27%] Generating pv/widgets/moc_decodermenu.cxx [ 28%] Generating ui_about.h Scanning dependencies of target pulseview [ 29%] Building CXX object CMakeFiles/pulseview.dir/main.cpp.o [ 30%] Building CXX object CMakeFiles/pulseview.dir/pv/devicemanager.cpp.o [ 30%] Building CXX object CMakeFiles/pulseview.dir/pv/mainwindow.cpp.o [ 31%] Building CXX object CMakeFiles/pulseview.dir/pv/sigsession.cpp.o In file included from /home/wuffe/_ext.tmp/sigrok-pulseview.git/pv/sigsession.cpp:25: In file included from /home/wuffe/_ext.tmp/sigrok-pulseview.git/pv/sigsession.h:25: In file included from /usr/local/include/boost/shared_ptr.hpp:17: In file included from /usr/local/include/boost/smart_ptr/shared_ptr.hpp:30: /usr/local/include/boost/checked_delete.hpp:34:5: error: delete called on 'pv::data::Logic' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-virtual-dtor] delete x; ^ /usr/local/include/boost/smart_ptr/detail/shared_count.hpp:134:20: note: in instantiation of function template specialization 'boost::checked_delete<pv::data::Logic>' requested here boost::checked_delete( p ); ^ /usr/local/include/boost/smart_ptr/shared_ptr.hpp:276:5: note: in instantiation of function template specialization 'boost::detail::shared_count::shared_count<pv::data::Logic>' requested here boost::detail::shared_count( p ).swap( pn ); ^ /usr/local/include/boost/smart_ptr/shared_ptr.hpp:354:24: note: in instantiation of function template specialization 'boost::detail::sp_pointer_construct<pv::data::Logic, pv::data::Logic>' requested here boost::detail::sp_pointer_construct( this, p, pn ); ^ /usr/local/include/boost/smart_ptr/shared_ptr.hpp:625:9: note: in instantiation of function template specialization 'boost::shared_ptr<pv::data::Logic>::shared_ptr<pv::data::Logic>' requested here this_type( p ).swap( *this ); ^ /home/wuffe/_ext.tmp/sigrok-pulseview.git/pv/sigsession.cpp:348:16: note: in instantiation of function template specialization 'boost::shared_ptr<pv::data::Logic>::reset<pv::data::Logic>' requested here _logic_data.reset(new data::Logic( ^ In file included from /home/wuffe/_ext.tmp/sigrok-pulseview.git/pv/sigsession.cpp:25: In file included from /home/wuffe/_ext.tmp/sigrok-pulseview.git/pv/sigsession.h:25: In file included from /usr/local/include/boost/shared_ptr.hpp:17: In file included from /usr/local/include/boost/smart_ptr/shared_ptr.hpp:30: /usr/local/include/boost/checked_delete.hpp:34:5: error: delete called on 'pv::data::Analog' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-virtual-dtor] delete x; ^ /usr/local/include/boost/smart_ptr/detail/shared_count.hpp:134:20: note: in instantiation of function template specialization 'boost::checked_delete<pv::data::Analog>' requested here boost::checked_delete( p ); ^ /usr/local/include/boost/smart_ptr/shared_ptr.hpp:276:5: note: in instantiation of function template specialization 'boost::detail::shared_count::shared_count<pv::data::Analog>' requested here boost::detail::shared_count( p ).swap( pn ); ^ /usr/local/include/boost/smart_ptr/shared_ptr.hpp:354:24: note: in instantiation of function template specialization 'boost::detail::sp_pointer_construct<pv::data::Analog, pv::data::Analog>' requested here boost::detail::sp_pointer_construct( this, p, pn ); ^ /home/wuffe/_ext.tmp/sigrok-pulseview.git/pv/sigsession.cpp:379:30: note: in instantiation of function template specialization 'boost::shared_ptr<pv::data::Analog>::shared_ptr<pv::data::Analog>' requested here shared_ptr<data::Analog> data( ^ 2 errors generated. gmake[2]: *** [CMakeFiles/pulseview.dir/pv/sigsession.cpp.o] Error 1 gmake[1]: *** [CMakeFiles/pulseview.dir/all] Error 2 gmake: *** [all] Error 2 _build 2 ((pulseview-0.2.0)) $ *** END pulseview-0.2.0 *** /Uffe ------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk _______________________________________________ sigrok-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sigrok-devel

