Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 Oct 2018 00:24:21 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 231989] lang/swift: /usr/include/c++/v1/type_traits:1366:38: error: incomplete type 'swift::Expr' used in type trait expression : public integral_constant<bool, __is_abstract(_Tp)> {};
Message-ID:  <bug-231989-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231989

            Bug ID: 231989
           Summary: lang/swift: /usr/include/c++/v1/type_traits:1366:38:
                    error: incomplete type 'swift::Expr' used in type
                    trait expression : public integral_constant<bool,
                    __is_abstract(_Tp)> {};
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: swills@FreeBSD.org
          Reporter: mauro.risonho@gmail.com
             Flags: maintainer-feedback?(swills@FreeBSD.org)
          Assignee: swills@FreeBSD.org

I have a Dell laptop 5470 8GB of RAM and custom kernel updated via svn Free=
BSD
11.2-RELEASE-p4 #1 r339175M: Wed Oct 3 23:26:44 -03 2018

Updated portsnap:

$ sudo portsnap fetch update

$ cd /usr/ports/lang/swift/

$ sudo make install
=3D=3D=3D>  Building for swift-3.1.1_7
cd /usr/ports/lang/swift/work/swift-3.1.1; /usr/bin/env PERL_USE_UNSAFE_INC=
=3D1
XDG_DATA_HOME=3D/usr/ports/lang/swift/work=20
XDG_CONFIG_HOME=3D/usr/ports/lang/swift/work  HOME=3D/usr/ports/lang/swift/=
work
PATH=3D/usr/ports/lang/swift/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/l=
ocal/sbin:/usr/local/bin:/home/test/bin
NO_PIE=3Dyes MK_DEBUG_FILES=3Dno MK_KERNEL_SYMBOLS=3Dno SHELL=3D/bin/sh NO_=
LINT=3DYES
DESTDIR=3D/usr/ports/lang/swift/work/stage LANG=3Den_US.UTF-8 LC_ALL=3Den_U=
S.UTF-8
PREFIX=3D/usr/local  LOCALBASE=3D/usr/local  CC=3D"cc" CFLAGS=3D"-O2 -pipe=
=20
-DLIBICONV_PLUG -fstack-protector -isystem /usr/local/include
-fno-strict-aliasing "  CPP=3D"cpp" CPPFLAGS=3D"-DLIBICONV_PLUG -isystem
/usr/local/include"  LDFLAGS=3D" -lobjc -fstack-protector -L/usr/local/lib "
LIBS=3D""  CXX=3D"c++" CXXFLAGS=3D"-O2 -pipe -DLIBICONV_PLUG -fstack-protec=
tor
-isystem /usr/local/include -fno-strict-aliasing  -DLIBICONV_PLUG -isystem
/usr/local/include "  MANPREFIX=3D"/usr/local" BSD_INSTALL_PROGRAM=3D"insta=
ll  -s
-m 555"  BSD_INSTALL_LIB=3D"install  -s -m 0644"  BSD_INSTALL_SCRIPT=3D"ins=
tall  -m
555"  BSD_INSTALL_DATA=3D"install  -m 0644"  BSD_INSTALL_MAN=3D"install  -m=
 444"=20
./swift/utils/build-script --preset=3Dmixin_freebsd_installation  -j 4=20
install_destdir=3D/usr/ports/lang/swift/work/stage  --    --skip-build-llvm=
=3D1=20
--install_prefix=3D/usr/local  --install_destdir=3D/usr/ports/lang/swift/wo=
rk/stage
 --verbose-build=3D1  --install-llbuild=3D1  --skip-test-llbuild=3D1
./swift/utils/build-script: note: using preset 'mixin_freebsd_installation',
which expands to=20

./swift/utils/build-script --assertions --no-swift-stdlib-assertions --llbu=
ild
--release -- --swift-enable-ast-verifier=3D0 --install-swift --install-lldb
--install-llbuild --install-xctest --install-prefix=3D/usr/local
'--swift-install-components=3Dautolink-driver;compiler;clang-builtin-header=
s;stdlib;swift-remote-mirror;sdk-overlay;license;tools;editor-integration'
--skip-build-libdispatch --build-swift-static-stdlib
--build-swift-static-sdk-overlay --build-swift-stdlib-unittest-extra
--install-destdir=3D/usr/ports/lang/swift/work/stage --jobs 4

Building the standard library for: swift-stdlib-freebsd-x86_64
cmark: using gold linker
ninja: no work to do.
llvm: using gold linker
symlinking the system headers (/usr/include/c++) into the local clang build
directory
(/usr/ports/lang/swift/work/swift-3.1.1/build/Ninja-ReleaseAssert+stdlib-Re=
lease/llvm-freebsd-x86_64/include).
ninja: no work to do.
swift: using gold linker
[1/590] Building CXX object lib/AST/CMakeFiles/swiftAST.dir/TypeWalker.cpp.o
[2/590] Building CXX object lib/AST/CMakeFiles/swiftAST.dir/Stmt.cpp.o
FAILED: lib/AST/CMakeFiles/swiftAST.dir/Stmt.cpp.o=20
/usr/bin/clang++  -DGTEST_HAS_RTTI=3D0 -D_DEBUG -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/AST
-I/usr/ports/lang/swift/work/swift-3.1.1/swift/lib/AST
-I/usr/ports/lang/swift/work/swift-3.1.1/swift/include -Iinclude
-I/usr/ports/lang/swift/work/swift-3.1.1/llvm/include
-I/usr/ports/lang/swift/work/swift-3.1.1/build/Ninja-ReleaseAssert+stdlib-R=
elease/llvm-freebsd-x86_64/include
-I/usr/ports/lang/swift/work/swift-3.1.1/build/Ninja-ReleaseAssert+stdlib-R=
elease/llvm-freebsd-x86_64/tools/clang/include
-I/usr/ports/lang/swift/work/swift-3.1.1/llvm/tools/clang/include
-I/usr/ports/lang/swift/work/swift-3.1.1/cmark/src
-I/usr/ports/lang/swift/work/swift-3.1.1/build/Ninja-ReleaseAssert+stdlib-R=
elease/cmark-freebsd-x86_64/src
-fno-stack-protector -fPIC -fvisibility-inlines-hidden -Wall -W
-Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializ=
ers
-Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor
-Werror=3Ddate-time -std=3Dc++11 -fcolor-diagnostics -ffunction-sections
-fdata-sections -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code
-Woverloaded-virtual -O3    -UNDEBUG  -fno-exceptions -fno-rtti -target
x86_64-unknown-freebsd11.2-RELEASE-p4 -O2 -momit-leaf-frame-pointer -g0
-UNDEBUG -MD -MT lib/AST/CMakeFiles/swiftAST.dir/Stmt.cpp.o -MF
lib/AST/CMakeFiles/swiftAST.dir/Stmt.cpp.o.d -o
lib/AST/CMakeFiles/swiftAST.dir/Stmt.cpp.o -c
/usr/ports/lang/swift/work/swift-3.1.1/swift/lib/AST/Stmt.cpp
In file included from
/usr/ports/lang/swift/work/swift-3.1.1/swift/lib/AST/Stmt.cpp:17:
In file included from
/usr/ports/lang/swift/work/swift-3.1.1/swift/include/swift/AST/Stmt.h:20:
In file included from
/usr/ports/lang/swift/work/swift-3.1.1/swift/include/swift/AST/Availability=
.h:20:
In file included from
/usr/ports/lang/swift/work/swift-3.1.1/swift/include/swift/AST/Type.h:20:
In file included from
/usr/ports/lang/swift/work/swift-3.1.1/llvm/include/llvm/ADT/DenseMap.h:17:
In file included from
/usr/ports/lang/swift/work/swift-3.1.1/llvm/include/llvm/ADT/DenseMapInfo.h=
:17:
In file included from
/usr/ports/lang/swift/work/swift-3.1.1/llvm/include/llvm/ADT/ArrayRef.h:13:
In file included from
/usr/ports/lang/swift/work/swift-3.1.1/llvm/include/llvm/ADT/Hashing.h:48:
In file included from
/usr/ports/lang/swift/work/swift-3.1.1/build/Ninja-ReleaseAssert+stdlib-Rel=
ease/llvm-freebsd-x86_64/include/llvm/Support/DataTypes.h:33:
In file included from /usr/include/c++/v1/cmath:305:
In file included from /usr/include/c++/v1/math.h:309:
/usr/include/c++/v1/type_traits:1366:38: error: incomplete type 'swift::Exp=
r'
used in type trait expression
    : public integral_constant<bool, __is_abstract(_Tp)> {};
                                     ^
/usr/include/c++/v1/type_traits:1456:39: note: in instantiation of template
class 'std::__1::is_abstract<swift::Expr>' requested here
                                     !is_abstract<_T2>::value> {};
                                      ^
/usr/ports/lang/swift/work/swift-3.1.1/swift/include/swift/Basic/NullablePt=
r.h:40:22:
note: in instantiation of template class 'std::__1::is_convertible<swift::E=
xpr,
swift::Expr>' requested here
                std::is_convertible<OtherT, T>::value,
                     ^
/usr/ports/lang/swift/work/swift-3.1.1/swift/include/swift/Basic/NullablePt=
r.h:30:7:
note: while substituting deduced template arguments into function template
'NullablePtr' [with OtherT =3D swift::Expr]
class NullablePtr {
      ^
/usr/ports/lang/swift/work/swift-3.1.1/swift/include/swift/AST/Stmt.h:772:7:
note: while declaring the implicit copy constructor for 'ForStmt'
class ForStmt : public LabeledStmt {
      ^
/usr/ports/lang/swift/work/swift-3.1.1/swift/include/swift/AST/TypeAlignmen=
ts.h:35:9:
note: forward declaration of 'swift::Expr'
  class Expr;
        ^
1 error generated.
[3/590] Building CXX object
lib/AST/CMakeFiles/swiftAST.dir/TypeRefinementContext.cpp.o
FAILED: lib/AST/CMakeFiles/swiftAST.dir/TypeRefinementContext.cpp.o=20
/usr/bin/clang++  -DGTEST_HAS_RTTI=3D0 -D_DEBUG -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/AST
-I/usr/ports/lang/swift/work/swift-3.1.1/swift/lib/AST
-I/usr/ports/lang/swift/work/swift-3.1.1/swift/include -Iinclude
-I/usr/ports/lang/swift/work/swift-3.1.1/llvm/include
-I/usr/ports/lang/swift/work/swift-3.1.1/build/Ninja-ReleaseAssert+stdlib-R=
elease/llvm-freebsd-x86_64/include
-I/usr/ports/lang/swift/work/swift-3.1.1/build/Ninja-ReleaseAssert+stdlib-R=
elease/llvm-freebsd-x86_64/tools/clang/include
-I/usr/ports/lang/swift/work/swift-3.1.1/llvm/tools/clang/include
-I/usr/ports/lang/swift/work/swift-3.1.1/cmark/src
-I/usr/ports/lang/swift/work/swift-3.1.1/build/Ninja-ReleaseAssert+stdlib-R=
elease/cmark-freebsd-x86_64/src
-fno-stack-protector -fPIC -fvisibility-inlines-hidden -Wall -W
-Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializ=
ers
-Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor
-Werror=3Ddate-time -std=3Dc++11 -fcolor-diagnostics -ffunction-sections
-fdata-sections -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code
-Woverloaded-virtual -O3    -UNDEBUG  -fno-exceptions -fno-rtti -target
x86_64-unknown-freebsd11.2-RELEASE-p4 -O2 -momit-leaf-frame-pointer -g0
-UNDEBUG -MD -MT lib/AST/CMakeFiles/swiftAST.dir/TypeRefinementContext.cpp.o
-MF lib/AST/CMakeFiles/swiftAST.dir/TypeRefinementContext.cpp.o.d -o
lib/AST/CMakeFiles/swiftAST.dir/TypeRefinementContext.cpp.o -c
/usr/ports/lang/swift/work/swift-3.1.1/swift/lib/AST/TypeRefinementContext.=
cpp
In file included from
/usr/ports/lang/swift/work/swift-3.1.1/swift/lib/AST/TypeRefinementContext.=
cpp:17:
In file included from
/usr/ports/lang/swift/work/swift-3.1.1/swift/include/swift/AST/ASTContext.h=
:20:
In file included from
/usr/ports/lang/swift/work/swift-3.1.1/build/Ninja-ReleaseAssert+stdlib-Rel=
ease/llvm-freebsd-x86_64/include/llvm/Support/DataTypes.h:33:
In file included from /usr/include/c++/v1/cmath:305:
In file included from /usr/include/c++/v1/math.h:309:
/usr/include/c++/v1/type_traits:1366:38: error: incomplete type 'swift::Exp=
r'
used in type trait expression
    : public integral_constant<bool, __is_abstract(_Tp)> {};
                                     ^
/usr/include/c++/v1/type_traits:1456:39: note: in instantiation of template
class 'std::__1::is_abstract<swift::Expr>' requested here
                                     !is_abstract<_T2>::value> {};
                                      ^
/usr/ports/lang/swift/work/swift-3.1.1/swift/include/swift/Basic/NullablePt=
r.h:40:22:
note: in instantiation of template class 'std::__1::is_convertible<swift::E=
xpr,
swift::Expr>' requested here
                std::is_convertible<OtherT, T>::value,
                     ^
/usr/ports/lang/swift/work/swift-3.1.1/swift/include/swift/Basic/NullablePt=
r.h:30:7:
note: while substituting deduced template arguments into function template
'NullablePtr' [with OtherT =3D swift::Expr]
class NullablePtr {
      ^
/usr/ports/lang/swift/work/swift-3.1.1/swift/include/swift/AST/Stmt.h:772:7:
note: while declaring the implicit copy constructor for 'ForStmt'
class ForStmt : public LabeledStmt {
      ^
/usr/ports/lang/swift/work/swift-3.1.1/swift/include/swift/AST/TypeAlignmen=
ts.h:35:9:
note: forward declaration of 'swift::Expr'
  class Expr;
        ^
1 error generated.
[4/590] Building CXX object lib/AST/CMakeFiles/swiftAST.dir/TypeRepr.cpp.o
[5/590] Building CXX object lib/AST/CMakeFiles/swiftAST.dir/USRGeneration.c=
pp.o
ninja: build stopped: subcommand failed.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/lang/swift
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/swift

the build is broken and does not generate the binary package.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-231989-7788>