DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 10th July 2018
gustaf gustaf is offline
Port Guard
 
Join Date: Dec 2016
Posts: 45
Default Can't build SQLiteStudio with clang

[Continued from Where is Qt uiTools module?]


I've tried building SQLiteStudio with clang,
Code:
$ cc --version
$ c++ --version
OpenBSD clang version 6.0.0 (tags/RELEASE_600/final) (based on LLVM 6.0.0)
Target: amd64-unknown-openbsd6.3
Thread model: posix
InstalledDir: /usr/bin
using two different commands:

$ qmake-qt5 ../../SQLiteStudio3 ; make

$ export CC=cc; export CXX=c++; qmake-qt5 ../../SQLiteStudio3 ; make


They both generate the same error:
Code:
c++ -c -pipe -pedantic -O2 -std=gnu++11 -Wall -W -pthread -fPIC -DCORESQLITESTUDIO_LIBRARY -DQT_NO_DEBUG -DQT_SCRIPT_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB  -isystem /usr/include/c++/v1 -I../../../SQLiteStudio3/coreSQLiteStudio -I. -I../../../SQLiteStudio3/coreSQLiteStudio -I../../../SQLiteStudio3/guiSQLiteStudio -I/home/gustaf/Source/SQLiteStudio/SQLiteStudio3/../output/build/guiSQLiteStudio -I/usr/local/include/X11/qt5 -I/usr/local/include/X11/qt5/QtScript -I/usr/local/include/X11/qt5/QtNetwork -I/usr/local/include/X11/qt5/QtCore -I. -I/usr/local/include -I/usr/local/lib/qt5/mkspecs/openbsd-clang -o ./utils_sql.o ../../../SQLiteStudio3/coreSQLiteStudio/common/utils_sql.cpp
In file included from ../../../SQLiteStudio3/coreSQLiteStudio/common/utils_sql.cpp:1:
In file included from ../../../SQLiteStudio3/coreSQLiteStudio/common/utils_sql.h:5:
In file included from ../../../SQLiteStudio3/coreSQLiteStudio/parser/token.h:4:
In file included from ../../../SQLiteStudio3/coreSQLiteStudio/common/utils.h:4:
In file included from ../../../SQLiteStudio3/coreSQLiteStudio/coreSQLiteStudio_global.h:4:
In file included from /usr/local/include/X11/qt5/QtCore/qglobal.h:45:
/usr/include/c++/v1/type_traits:4287:23: error: calling 'operator()' with incomplete return type 'QVariant'
_LIBCPP_INVOKE_RETURN(_VSTD::forward<_Fp>(__f)(_VSTD::forward<_Args>(__args)...))
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/v1/__config:462:15: note: expanded from macro '_VSTD'
#define _VSTD std::_LIBCPP_NAMESPACE
              ^
/usr/include/c++/v1/type_traits:4184:23: note: expanded from macro '_LIBCPP_INVOKE_RETURN'
    noexcept(noexcept(__VA_ARGS__)) -> decltype(__VA_ARGS__) \
                      ^~~~~~~~~~~
/usr/include/c++/v1/type_traits:4304:9: note: in instantiation of exception specification for '__invoke<std::__1::function<QVariant
      (const QList<QVariant> &, Db *, bool &)> &, const QList<QVariant> &, Db *, bool &>' requested here
        _VSTD::__invoke(_VSTD::declval<_Fp>(), _VSTD::declval<_Args>()...));
        ^
/usr/include/c++/v1/__config:462:15: note: expanded from macro '_VSTD'
#define _VSTD std::_LIBCPP_NAMESPACE
              ^
/usr/include/c++/v1/functional:1574:33: note: in instantiation of template class 'std::__1::__invokable_r<void, std::__1::function<QVariant
      (const QList<QVariant> &, Db *, bool &)> &, const QList<QVariant> &, Db *, bool &>' requested here
                                __invokable<_Fp&, _ArgTypes...>::value>
                                ^
/usr/include/c++/v1/functional:1601:41: note: in instantiation of default argument for '__callable<std::__1::function<QVariant
      (const QList<QVariant> &, Db *, bool &)> >' required here
                                        __callable<_Fp>::value &&
                                        ^~~~~~~~~~~~~~~
/usr/include/c++/v1/functional:1561:29: note: while substituting deduced template arguments into function template 'function' [with _Fp =
      std::__1::function<QVariant (const QList<QVariant> &, Db *, bool &)>]
class _LIBCPP_TYPE_VIS_ONLY function<_Rp(_ArgTypes...)>
../../../SQLiteStudio3/coreSQLiteStudio/services/functionmanager.h:51:27: note: while declaring the implicit copy constructor for 'NativeFunction'
        struct API_EXPORT NativeFunction : public FunctionBase
                          ^
/usr/include/c++/v1/functional:1654:9: note: 'operator()' declared here
    _Rp operator()(_ArgTypes...) const;
        ^
/usr/local/include/X11/qt5/QtCore/qmetatype.h:1881:1: note: forward declaration of 'QVariant'
QT_FOR_EACH_STATIC_CORE_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER)
^
/usr/local/include/X11/qt5/QtCore/qmetatype.h:114:21: note: expanded from macro 'QT_FOR_EACH_STATIC_CORE_CLASS'
    F(QVariant, 41, QVariant) \
                    ^
1 error generated.
*** Error 1 in coreSQLiteStudio (Makefile:8630 './utils_sql.o')
*** Error 1 in /home/gustaf/Source/SQLiteStudio/output/build (Makefile:51 'sub-coreSQLiteStudio-make_first')
Can I fix this and get the program to build or do I need to contact the developer?


PS -- I'm not sure where to post this thread. There doesn't seem to be a category for building things outside the ports tree.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
x11/tint2 port using clang shep OpenBSD Packages and Ports 2 3rd August 2017 04:22 AM
clang/llvm lumiwa FreeBSD General 3 21st February 2013 12:30 AM
clang -v lumiwa FreeBSD General 4 16th January 2013 03:26 PM
FreeBSD FreeBSD 10 will be using Clang instead of GCC J65nko News 0 15th May 2012 09:10 PM
LLVM Clang Vs gcc aleunix OpenBSD General 8 22nd February 2012 10:24 AM


All times are GMT. The time now is 03:07 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick