compilation with --disable-region-allocator fails

Bug #911180 reported by Carlos Sánchez de La Lama
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pocl
Fix Released
Undecided
Unassigned

Bug Description

After

../../src/pocl/configure --disable-region-allocator CFLAGS="-g -O0" CXXFLAGS="-g -O0"

build fails with

make[3]: Entering directory `/home/csanchez/prj/ttagpu/bld/pocl.oldalloc/lib/CL'
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../../src/pocl/lib/CL -I../.. -I../../../../src/pocl/include -U__APPLE__ -g -O0 -MT libCL_la-pthread.lo -MD -MP -MF .deps/libCL_la-pthread.Tpo -c -o libCL_la-pthread.lo `test -f 'devices/pthread/pthread.c' || echo '../../../../src/pocl/lib/CL/'`devices/pthread/pthread.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../../src/pocl/lib/CL -I../.. -I../../../../src/pocl/include -U__APPLE__ -g -O0 -MT libCL_la-pthread.lo -MD -MP -MF .deps/libCL_la-pthread.Tpo -c ../../../../src/pocl/lib/CL/devices/pthread/pthread.c -fPIC -DPIC -o .libs/libCL_la-pthread.o
../../../../src/pocl/lib/CL/devices/pthread/pthread.c:181: error: expected ‘)’ before ‘*’ token
../../../../src/pocl/lib/CL/devices/pthread/pthread.c: In function ‘pocl_pthread_copy’:
../../../../src/pocl/lib/CL/devices/pthread/pthread.c:338: warning: passing argument 1 of ‘memcpy’ discards qualifiers from pointer target type
/usr/include/string.h:43: note: expected ‘void * __restrict__’ but argument is of type ‘const void *’
make[3]: *** [libCL_la-pthread.lo] Error 1
make[3]: Leaving directory `/home/csanchez/prj/ttagpu/bld/pocl.oldalloc/lib/CL'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/csanchez/prj/ttagpu/bld/pocl.oldalloc/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/csanchez/prj/ttagpu/bld/pocl.oldalloc'
make: *** [all] Error 2

Related branches

Changed in pocl:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.