Skip to content

Fail to build from source #694

@bioinfornatics

Description

@bioinfornatics

Dear,

I tried without success to build DCD 0.15.0 beta1 with thoses depencies.

  • containers: 0.9.0
  • dparse: 0.20.0
  • dsymbol: 0.14.1
  • mir-core: 1.3.14
  • mspack-d: 1.0.4
  • stdxallocator: 3.0.2

bellow the build log

+ cd /home/jmercier/rpmbuild/BUILD
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules'
+ export FCFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -Wl,-dT,/home/jmercier/rpmbuild/BUILD/DCD-0.15.0-beta.1/.package_note-dlang-DCD-0.15.0-1.fc36.x86_64.ld'
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ '[' -f /usr/lib/rpm/generate-rpm-note.sh ']'
+ /usr/lib/rpm/generate-rpm-note.sh dlang-DCD 0.15.0-1.fc36 x86_64
+ cd DCD-0.15.0-beta.1
+ export 'DFLAGS=-O -g -release -wi -I/usr/include/d/mir-core'
+ DFLAGS='-O -g -release -wi -I/usr/include/d/mir-core'
+ export 'LDFLAGS=-Wl,-z,relro -Wl,-z,now'
+ LDFLAGS='-Wl,-z,relro -Wl,-z,now'
++ find common/src/dcd/common -name '*.d'
+ commons='common/src/dcd/common/constants.d
common/src/dcd/common/constants2.d
common/src/dcd/common/dcd_version.d
common/src/dcd/common/messages.d
common/src/dcd/common/socket.d'
++ find src/dcd/client -name '*.d'
+ clients=src/dcd/client/client.d
++ find src/dcd/server -name '*.d'
+ servers='src/dcd/server/autocomplete/complete.d
src/dcd/server/autocomplete/doc.d
src/dcd/server/autocomplete/localuse.d
src/dcd/server/autocomplete/package.d
src/dcd/server/autocomplete/symbols.d
src/dcd/server/autocomplete/util.d
src/dcd/server/main.d
src/dcd/server/server.d'
+ ldc2 common/src/dcd/common/constants.d common/src/dcd/common/constants2.d common/src/dcd/common/dcd_version.d common/src/dcd/common/messages.d common/src/dcd/common/socket.d src/dcd/client/client.d -O -g -release -wi -I/usr/include/d/mir-core -I/usr/include/d/msgpack -L-lmsgpack-d -Jbin -of=bin/dcd-client
+ ldc2 common/src/dcd/common/constants.d common/src/dcd/common/constants2.d common/src/dcd/common/dcd_version.d common/src/dcd/common/messages.d common/src/dcd/common/socket.d src/dcd/server/autocomplete/complete.d src/dcd/server/autocomplete/doc.d src/dcd/server/autocomplete/localuse.d src/dcd/server/autocomplete/package.d src/dcd/server/autocomplete/symbols.d src/dcd/server/autocomplete/util.d src/dcd/server/main.d src/dcd/server/server.d -O -g -release -wi -I/usr/include/d/mir-core -I/usr/include/d/dsymbol -L-ldsymbol -I/usr/include/d/dparse -L-ldparse -I/usr/include/d/containers -L-ldcontainers -I/usr/include/d/stdx-allocator -L-lstdx-allocator -I/usr/include/d/msgpack -L-lmsgpack-d -Jbin -of=bin/dcd-server
src/dcd/server/autocomplete/complete.d(327): Deprecation: Usage of the `body` keyword is deprecated. Use `do` instead.
src/dcd/server/autocomplete/complete.d(672): Deprecation: Usage of the `body` keyword is deprecated. Use `do` instead.
src/dcd/server/autocomplete/util.d(653): Deprecation: Usage of the `body` keyword is deprecated. Use `do` instead.
src/dcd/server/autocomplete/complete.d(303): Error: function `dsymbol.conversion.generateAutocompleteTrees(const(TokenStructure!(ubyte, "import dparse.lexer:TokenTriviaFields; mixin TokenTriviaFields;"))[] tokens, RCIAllocator symbolAllocator, RollbackAllocator* parseAllocator, ulong cursorPosition, ref ModuleCache cache)` is not callable using argument types `(const(TokenStructure!(ubyte, "import dparse.lexer:TokenTriviaFields; mixin TokenTriviaFields;"))[], RollbackAllocator*, ulong, ModuleCache)`
src/dcd/server/autocomplete/complete.d(303):        cannot pass argument `& rba` of type `RollbackAllocator*` to parameter `RCIAllocator symbolAllocator`
src/dcd/server/autocomplete/complete.d(136): Error: template instance `dcd.server.autocomplete.complete.parenCompletion!(SortedRange!(const(TokenStructure!(ubyte, "import dparse.lexer:TokenTriviaFields; mixin TokenTriviaFields;"))[], "a < b", SortedRangeOptions.assumeSorted))` error instantiating
src/dcd/server/autocomplete/complete.d(218): Error: function `dsymbol.conversion.generateAutocompleteTrees(const(TokenStructure!(ubyte, "import dparse.lexer:TokenTriviaFields; mixin TokenTriviaFields;"))[] tokens, RCIAllocator symbolAllocator, RollbackAllocator* parseAllocator, ulong cursorPosition, ref ModuleCache cache)` is not callable using argument types `(const(TokenStructure!(ubyte, "import dparse.lexer:TokenTriviaFields; mixin TokenTriviaFields;"))[], RollbackAllocator*, ulong, ModuleCache)`
src/dcd/server/autocomplete/complete.d(218):        cannot pass argument `& rba` of type `RollbackAllocator*` to parameter `RCIAllocator symbolAllocator`
src/dcd/server/autocomplete/complete.d(232): Error: function `dsymbol.conversion.generateAutocompleteTrees(const(TokenStructure!(ubyte, "import dparse.lexer:TokenTriviaFields; mixin TokenTriviaFields;"))[] tokens, RCIAllocator symbolAllocator, RollbackAllocator* parseAllocator, ulong cursorPosition, ref ModuleCache cache)` is not callable using argument types `(const(TokenStructure!(ubyte, "import dparse.lexer:TokenTriviaFields; mixin TokenTriviaFields;"))[], RollbackAllocator*, int, ModuleCache)`
src/dcd/server/autocomplete/complete.d(232):        cannot pass argument `& rba` of type `RollbackAllocator*` to parameter `RCIAllocator symbolAllocator`
src/dcd/server/autocomplete/complete.d(146): Error: template instance `dcd.server.autocomplete.complete.dotCompletion!(SortedRange!(const(TokenStructure!(ubyte, "import dparse.lexer:TokenTriviaFields; mixin TokenTriviaFields;"))[], "a < b", SortedRangeOptions.assumeSorted))` error instantiating
src/dcd/server/autocomplete/localuse.d(63): Error: function `dsymbol.conversion.generateAutocompleteTrees(const(TokenStructure!(ubyte, "import dparse.lexer:TokenTriviaFields; mixin TokenTriviaFields;"))[] tokens, RCIAllocator symbolAllocator, RollbackAllocator* parseAllocator, ulong cursorPosition, ref ModuleCache cache)` is not callable using argument types `(const(TokenStructure!(ubyte, "import dparse.lexer:TokenTriviaFields; mixin TokenTriviaFields;"))[], RollbackAllocator*, ulong, ModuleCache)`
src/dcd/server/autocomplete/localuse.d(63):        cannot pass argument `& rba` of type `RollbackAllocator*` to parameter `RCIAllocator symbolAllocator`
src/dcd/server/autocomplete/symbols.d(79): Error: function `dsymbol.conversion.generateAutocompleteTrees(const(TokenStructure!(ubyte, "import dparse.lexer:TokenTriviaFields; mixin TokenTriviaFields;"))[] tokens, RCIAllocator symbolAllocator, RollbackAllocator* parseAllocator, ulong cursorPosition, ref ModuleCache cache)` is not callable using argument types `(const(TokenStructure!(ubyte, "import dparse.lexer:TokenTriviaFields; mixin TokenTriviaFields;"))[], RollbackAllocator*, const(ulong), ModuleCache)`
src/dcd/server/autocomplete/symbols.d(79):        cannot pass argument `& rba` of type `RollbackAllocator*` to parameter `RCIAllocator symbolAllocator`
src/dcd/server/autocomplete/util.d(143): Error: function `dsymbol.conversion.generateAutocompleteTrees(const(TokenStructure!(ubyte, "import dparse.lexer:TokenTriviaFields; mixin TokenTriviaFields;"))[] tokens, RCIAllocator symbolAllocator, RollbackAllocator* parseAllocator, ulong cursorPosition, ref ModuleCache cache)` is not callable using argument types `(const(TokenStructure!(ubyte, "import dparse.lexer:TokenTriviaFields; mixin TokenTriviaFields;"))[], RollbackAllocator*, const(ulong), ModuleCache)`
src/dcd/server/autocomplete/util.d(143):        cannot pass argument `rba` of type `RollbackAllocator*` to parameter `RCIAllocator symbolAllocator`
src/dcd/server/main.d(179): Error: variable `dcd.server.main.runServer.cache` default construction is disabled for type `ModuleCache`

Could you update DCD code in order to match latest API of these dependencies?

Thanks for your help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions