Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to build on 32-bit systems #219

Closed
mihails-strasuns opened this issue Jun 4, 2015 · 4 comments
Closed

Fails to build on 32-bit systems #219

mihails-strasuns opened this issue Jun 4, 2015 · 4 comments
Assignees

Comments

@mihails-strasuns
Copy link

ldc2 src/actypes.d -Icontainers/src -Imsgpack-d/src -Ilibdparse/src -Isrc -J=. -O5 -release  -od=objs -op -c
ldc2 src/conversion/astconverter.d -Icontainers/src -Imsgpack-d/src -Ilibdparse/src -Isrc -J=. -O5 -release  -od=objs -op -c
ldc2 src/conversion/first.d -Icontainers/src -Imsgpack-d/src -Ilibdparse/src -Isrc -J=. -O5 -release  -od=objs -op -c
containers/src/std/allocator.d(3066): Error: function std.allocator.roundUpToMultipleOf (uint s, uint base) is not callable using argument types (ulong, uint)
containers/src/std/allocator.d(3099): Error: 'std.allocator.InSituRegion!(1024u, 4u).InSituRegion.lazyInit' is not nothrow
containers/src/std/allocator.d(3076): Error: function 'std.allocator.InSituRegion!(1024u, 4u).InSituRegion.allocate' is nothrow yet may throw
containers/src/std/allocator.d(3111): Error: function std.allocator.roundUpToMultipleOf (uint s, uint base) is not callable using argument types (ulong, uint)
containers/src/memory/allocators.d(44): Error: template instance std.allocator.InSituRegion!(1024u, 4u) error instantiating
src/conversion/first.d(675):        instantiated from here: QuickAllocator!1024u
@Hackerpilot Hackerpilot self-assigned this Jun 4, 2015
@Hackerpilot
Copy link
Collaborator

There have been a lot of changes to the allocators code since this issue was opened. Can you confirm that it still fails?

@jordisayol
Copy link

I can confirm it. No problem compiling DCD 0.9.0-alpha3 on Ubuntu 14.04 64-bit, but on Ubuntu 14.04 32-bit:

$ make
[...]
containers/src/containers/ttree.d(458): Error: function core.bitop.bsf (uint v) is not callable using argument types (ulong)
dsymbol/src/dsymbol/symbol.d(269): Error: template instance containers.ttree.TTree!(SymbolOwnership, Mallocator, true, "a < b", false, 64u).TTree.range!(inout(TTree!(SymbolOwnership, Mallocator, true, "a < b", false, 64u))) error instantiating
dsymbol/src/dsymbol/symbol.d(302):        instantiated from here: getParts!(Appender!(DSymbol*[]))
src/server/autocomplete.d(942):        instantiated from here: opSlice!(const(DSymbol))
src/server/autocomplete.d(465):        instantiated from here: setCompletions!(SortedRange!(const(TokenStructure!(ubyte, "\x0a    string comment;\x0a    string trailingComment;\x0a\x0a    int opCmp(size_t i) const pure nothrow @safe {\x0a        if (index < i) return -1;\x0a        if (index > i) return 1;\x0a        return 0;\x0a    }\x0a\x0a    int opCmp(ref const typeof(this) other) const pure nothrow @safe {\x0a        return opCmp(other.index);\x0a    }\x0a"))[], "a < b"))
src/server/autocomplete.d(155):        instantiated from here: parenCompletion!(SortedRange!(const(TokenStructure!(ubyte, "\x0a    string comment;\x0a    string trailingComment;\x0a\x0a    int opCmp(size_t i) const pure nothrow @safe {\x0a        if (index < i) return -1;\x0a        if (index > i) return 1;\x0a        return 0;\x0a    }\x0a\x0a    int opCmp(ref const typeof(this) other) const pure nothrow @safe {\x0a        return opCmp(other.index);\x0a    }\x0a"))[], "a < b"))
dsymbol/src/dsymbol/symbol.d(269): Error: forward reference to inferred return type of function call filter!((a) => a.name != IMPORT_SYMBOL_NAME)(this.parts.range())
dsymbol/src/dsymbol/symbol.d(298): Error: function dsymbol.symbol.DSymbol.opSlice!(const(DSymbol)).opSlice no return exp; or assert(0); at end of function
src/server/autocomplete.d(962): Error: forward reference to inferred return type of function call filter!((a) => isPublicCompletionKind(a.kind) && a.name.toUpper().startsWith(partial.toUpper()))(currentSymbols)
containers/src/containers/ttree.d(458): Error: function core.bitop.bsf (uint v) is not callable using argument types (ulong)
src/server/autocomplete.d(295): Error: invalid foreach aggregate arraySymbols, define opApply(), range primitives, or use .tupleof
src/server/autocomplete.d(169): Error: template instance server.autocomplete.dotCompletion!(SortedRange!(const(TokenStructure!(ubyte, "\x0a    string comment;\x0a    string trailingComment;\x0a\x0a    int opCmp(size_t i) const pure nothrow @safe {\x0a        if (index < i) return -1;\x0a        if (index > i) return 1;\x0a        return 0;\x0a    }\x0a\x0a    int opCmp(ref const typeof(this) other) const pure nothrow @safe {\x0a        return opCmp(other.index);\x0a    }\x0a"))[], "a < b")) error instantiating
dsymbol/src/dsymbol/symbol.d(298): Error: function dsymbol.symbol.DSymbol.opSlice!(DSymbol).opSlice no return exp; or assert(0); at end of function
src/server/autocomplete.d(613): Error: template instance dsymbol.symbol.DSymbol.opSlice!(DSymbol) error instantiating
src/server/autocomplete.d(172):        instantiated from here: importCompletion!(SortedRange!(const(TokenStructure!(ubyte, "\x0a    string comment;\x0a    string trailingComment;\x0a\x0a    int opCmp(size_t i) const pure nothrow @safe {\x0a        if (index < i) return -1;\x0a        if (index > i) return 1;\x0a        return 0;\x0a    }\x0a\x0a    int opCmp(ref const typeof(this) other) const pure nothrow @safe {\x0a        return opCmp(other.index);\x0a    }\x0a"))[], "a < b"))
src/server/autocomplete.d(613): Error: forward reference to inferred return type of function call filter!((a) => !a.skipOver)((*symbols).opSlice())
src/server/autocomplete.d(529): Error: function server.autocomplete.importCompletion!(SortedRange!(const(TokenStructure!(ubyte, "\x0a    string comment;\x0a    string trailingComment;\x0a\x0a    int opCmp(size_t i) const pure nothrow @safe {\x0a        if (index < i) return -1;\x0a        if (index > i) return 1;\x0a        return 0;\x0a    }\x0a\x0a    int opCmp(ref const typeof(this) other) const pure nothrow @safe {\x0a        return opCmp(other.index);\x0a    }\x0a"))[], "a < b")).importCompletion no return exp; or assert(0); at end of function
containers/src/containers/ttree.d(458): Error: function core.bitop.bsf (uint v) is not callable using argument types (ulong)
src/server/autocomplete.d(220): Error: template instance containers.ttree.TTree!(SearchResult, Mallocator, false, "a < b", true, 64u) error instantiating
make: *** [dmdserver] Error 1

@Hackerpilot
Copy link
Collaborator

Which compiler version are you using?

@jordisayol
Copy link

DMD32 D Compiler v2.070.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants