POCL Dev,

POCL top of tree code won't build after extracting from bzr, with the 
following compilation error:

In file included from In file included from <built-in>In file included 
from :<built-in>:152<built-in>:
152::
152<command line>:
<command line>:<command line>2:10::2:10:  :fatal error: 2:fatal error: 
'../../../include/_kernel.h'10: '../../../include/_kernel.h'file  
notfilefatal error:   not foundfound
'../../../include/_kernel.h'
  file not #include "../../../include/_kernel.h"
found         ^
#include "../../../include/_kernel.h"

          ^
#include "../../../include/_kernel.h"
          ^
1 error generated.
make[4]: *** [acos.bc] Error 1
make[4]: *** Waiting for unfinished jobs....
1 error generated.
make[4]: *** [as_type.bc] Error 1
1 error generated.
make[4]: *** [atomics.bc] Error 1
make[4]: Leaving directory 
`/home/czhao/ResearchTools/POCL/pocl-dev/robj-pocl-dev/lib/kernel/x86_64'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory 
`/home/czhao/ResearchTools/POCL/pocl-dev/robj-pocl-dev/lib/kernel'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory 
`/home/czhao/ResearchTools/POCL/pocl-dev/robj-pocl-dev/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/home/czhao/ResearchTools/POCL/pocl-dev/robj-pocl-dev'
make: *** [all] Error 2


Steps to reproduce:

1. extract from bzr:
bzr branch lp:pocl

2. run auto gen in the source dir:
~/ResearchTools/POCL/pocl-dev/pocl$ ./autogen.sh

3. run configure in the build dir:
../pocl/configure --prefix=$HOME/opt/opt64/pocl-dev --disable-icd

4. build:
time make -j3



-----
I believe the error shows up when trying to build lib/kernel/

E.g.
czhao@OCL1:~/ResearchTools/POCL/pocl-dev/robj-pocl-dev/lib/kernel/x86_64$ ls
Makefile
czhao@OCL1:~/ResearchTools/POCL/pocl-dev/robj-pocl-dev/lib/kernel/x86_64$ make
/home/czhao/opt/opt64/llvm-3.2r-pocl/bin/llvm-as -o barrier.bc 
../../../../pocl/lib/kernel/x86_64/../barrier.ll
/home/czhao/opt/opt64/llvm-3.2r-pocl/bin/clang -emit-llvm -c -target 
x86_64-unknown-linux-gnu -o get_work_dim.bc -x c 
../../../../pocl/lib/kernel/x86_64/../get_work_dim.c -include 
../../../include/x86_64/types.h
/home/czhao/opt/opt64/llvm-3.2r-pocl/bin/clang -emit-llvm -c -target 
x86_64-unknown-linux-gnu -o get_global_size.bc -x c 
../../../../pocl/lib/kernel/x86_64/../get_global_size.c -include 
../../../include/x86_64/types.h
/home/czhao/opt/opt64/llvm-3.2r-pocl/bin/clang -emit-llvm -c -target 
x86_64-unknown-linux-gnu -o get_global_id.bc -x c 
../../../../pocl/lib/kernel/x86_64/../get_global_id.c -include 
../../../include/x86_64/types.h
/home/czhao/opt/opt64/llvm-3.2r-pocl/bin/clang -emit-llvm -c -target 
x86_64-unknown-linux-gnu -o get_local_size.bc -x c 
../../../../pocl/lib/kernel/x86_64/../get_local_size.c -include 
../../../include/x86_64/types.h
/home/czhao/opt/opt64/llvm-3.2r-pocl/bin/clang -emit-llvm -c -target 
x86_64-unknown-linux-gnu -o get_local_id.bc -x c 
../../../../pocl/lib/kernel/x86_64/../get_local_id.c -include 
../../../include/x86_64/types.h
/home/czhao/opt/opt64/llvm-3.2r-pocl/bin/clang -emit-llvm -c -target 
x86_64-unknown-linux-gnu -o get_num_groups.bc -x c 
../../../../pocl/lib/kernel/x86_64/../get_num_groups.c -include 
../../../include/x86_64/types.h
/home/czhao/opt/opt64/llvm-3.2r-pocl/bin/clang -emit-llvm -c -target 
x86_64-unknown-linux-gnu -o get_group_id.bc -x c 
../../../../pocl/lib/kernel/x86_64/../get_group_id.c -include 
../../../include/x86_64/types.h
/home/czhao/opt/opt64/llvm-3.2r-pocl/bin/clang -emit-llvm -c -target 
x86_64-unknown-linux-gnu -o get_global_offset.bc -x c 
../../../../pocl/lib/kernel/x86_64/../get_global_offset.c -include 
../../../include/x86_64/types.h
/home/czhao/opt/opt64/llvm-3.2r-pocl/bin/clang -emit-llvm -c -target 
x86_64-unknown-linux-gnu -o as_type.bc -x cl 
../../../../pocl/lib/kernel/x86_64/../as_type.cl -include 
../../../include/x86_64/types.h    -include ../../../include/_kernel.h
In file included from <built-in>:152:
<command line>:2:10: fatal error: '../../../include/_kernel.h' file not 
found
#include "../../../include/_kernel.h"
          ^
1 error generated.
make: *** [as_type.bc] Error 1
czhao@OCL1:~/ResearchTools/POCL/pocl-dev/robj-pocl-dev/lib/kernel/x86_64$


------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
pocl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pocl-devel

Reply via email to