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

Assert failure compiling blender 2.75 #24745

Closed
llvmbot opened this issue Aug 6, 2015 · 3 comments
Closed

Assert failure compiling blender 2.75 #24745

llvmbot opened this issue Aug 6, 2015 · 3 comments
Assignees
Labels
bugzilla Issues migrated from bugzilla clang:codegen

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Aug 6, 2015

Bugzilla Link 24371
Resolution FIXED
Resolved on Aug 14, 2015 07:26
Version 3.7
OS FreeBSD
Attachments clang 3.7/blender 2.75 build log, BLI_kdopbvh-8090d7.sh, BLI_kdopbvh-8090d7.c
Reporter LLVM Bugzilla Contributor
CC @alexey-bataev,@zmodem

Extended Description

I am running FreeBSD 10-stable and have just installed clang 3.7 from ports, after setting CC=clang37 etc in make.conf and trying to compile graphics/blender (2.75) I get an assertion failed error

Assertion failed: (!DMEntry && "Decl already exists in localdeclmap!"), function EmitAutoVarAlloca, file /wrkdirs/usr/ports/devel/llvm37/work/llvm-3.7.0rc1.src/tools/clang/lib/CodeGen/CGDecl.cpp, line 1016.

% uname -a
FreeBSD leader.local 10.2-PRERELEASE FreeBSD 10.2-PRERELEASE #​16 r285937: Tue Jul 28 20:58:13 ACST 2015 root@leader.local:/usr/obj/usr/src/sys/GENERIC amd64

% clang37 --version
clang version 3.7.0 (tags/RELEASE_370/rc1)
Target: x86_64-unknown-freebsd10.2
Thread model: posix

I have also tried with devel/llvm-devel
% clang-devel --version
clang version 3.8.0
Target: x86_64-unknown-freebsd10.2
Thread model: posix

debug files for both are available at http://shaneware.biz/freebsddebugdata/clang-debug

@llvmbot
Copy link
Collaborator Author

llvmbot commented Aug 6, 2015

assigned to @alexey-bataev

@zmodem
Copy link
Collaborator

zmodem commented Aug 11, 2015

Reduced a bit:

$ clang -cc1 -triple x86_64-unknown-freebsd10.2 -emit-obj -fopenmp a.i

typedef struct BVHTree BVHTree;
typedef struct BVHTreeOverlap {
} BVHTreeOverlap;
typedef struct BVHNode { char totnode; } BVHNode;
struct BVHTree {
BVHNode **nodes;
int totleaf;
char tree_type;
} BVHOverlapData;
BVHTreeOverlap *BLI_bvhtree_overlap(BVHTree *tree1, BVHTree *tree2,
unsigned int *r_overlap_tot) {
int j;
#pragma omp parallel for private(j) schedule(static) if (tree1->totleaf > 1024)
for (j = 0; j < extension({
typeof(tree1->tree_type) a_ = (tree1->tree_type);
typeof(tree1->nodes[tree1->totleaf]->totnode) b_ =
(tree1->nodes[tree1->totleaf]->totnode);
((a_) < (b_) ? (a_) : (b_));
});
j++) {
}
}

@alexey-bataev
Copy link
Member

Fixed in revision 245041.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 10, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla clang:codegen
Projects
None yet
Development

No branches or pull requests

3 participants