[MDEV-11282] MariaDB 10.1.19 fails to build at lf_alloc-pin.c.i on powerpc Created: 2016-11-15  Updated: 2016-11-17  Resolved: 2016-11-17

Status: Closed
Project: MariaDB Server
Component/s: Compiling
Affects Version/s: 10.1.19
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: schojo Assignee: Sergey Vojtovich
Resolution: Duplicate Votes: 0
Labels: compile, gcc6
Environment:

Linux 4.8.0-1-powerpc (Debian stretch/sid)
Mac G4


Issue Links:
Duplicate
duplicates MDEV-10984 MariaDB 10.1.18 fails to build on Pow... Closed

 Description   

# # cmake . -DBUILD_CONFIG=mysql_release
# make
 
[ 10%] Building C object mysys/CMakeFiles/mysys.dir/lf_alloc-pin.c.o
cd /home/mariadb-10.1.19/mysys && /usr/bin/cc  -DHAVE_CONFIG_H -I/home/mariadb-10.1.19/include -I/home/mariadb-10.1.19/mysys  -pie -fPIC -Wl,-z,relro,-z,now -fstack-protector --param=ssp-buffer-size=4 -DWITH_INNODB_DISALLOW_WRITES -O3 -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing  -Wno-uninitialized -D_FORTIFY_SOURCE=2 -DDBUG_OFF   -fPIC -o CMakeFiles/mysys.dir/lf_alloc-pin.c.o   -c /home/mariadb-10.1.19/mysys/lf_alloc-pin.c
In file included from /home/mariadb-10.1.19/include/lf.h:19:0,
                 from /home/mariadb-10.1.19/mysys/lf_alloc-pin.c:104:
/home/mariadb-10.1.19/include/my_atomic.h:121:2: error: #error atomic ops for this platform are not implemented
 #error atomic ops for this platform are not implemented
  ^~~~~
/home/mariadb-10.1.19/include/my_atomic.h: In function ‘my_atomic_cas32’:
/home/mariadb-10.1.19/include/my_atomic.h:209:3: warning: implicit declaration of function ‘make_atomic_cas_body’ [-Wimplicit-function-declaration]
   make_atomic_cas_body(S);                                      \
   ^
/home/mariadb-10.1.19/include/my_atomic.h:248:1: note: in expansion of macro ‘make_atomic_cas’
 make_atomic_cas(32)
 ^~~~~~~~~~~~~~~
/home/mariadb-10.1.19/include/my_atomic.h: In function ‘my_atomic_casptr’:
/home/mariadb-10.1.19/include/my_atomic.h:250:17: error: ‘ptr’ undeclared (first use in this function)
 make_atomic_cas(ptr)
                 ^
/home/mariadb-10.1.19/include/my_atomic.h:209:24: note: in definition of macro ‘make_atomic_cas’
   make_atomic_cas_body(S);                                      \
                        ^
/home/mariadb-10.1.19/include/my_atomic.h:250:17: note: each undeclared identifier is reported only once for each function it appears in
 make_atomic_cas(ptr)
                 ^
/home/mariadb-10.1.19/include/my_atomic.h:209:24: note: in definition of macro ‘make_atomic_cas’
   make_atomic_cas_body(S);                                      \
                        ^
mysys/CMakeFiles/mysys.dir/build.make:2198: recipe for target 'mysys/CMakeFiles/mysys.dir/lf_alloc-pin.c.o' failed
make[2]: *** [mysys/CMakeFiles/mysys.dir/lf_alloc-pin.c.o] Error 1
make[2]: Leaving directory '/home/mariadb-10.1.19'
CMakeFiles/Makefile2:7447: recipe for target 'mysys/CMakeFiles/mysys.dir/all' failed
make[1]: *** [mysys/CMakeFiles/mysys.dir/all] Error 2
make[1]: Leaving directory '/home/mariadb-10.1.19'
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2



 Comments   
Comment by schojo [ 2016-11-15 ]

happens on 10.2.2 as well:

In file included from /home/mariadb-10.2.2/include/lf.h:19:0,
from /home/mariadb-10.2.2/mysys/lf_alloc-pin.c:104:
/home/mariadb-10.2.2/include/my_atomic.h:121:2: error: #error atomic ops for this platform are not implemented
#error atomic ops for this platform are not implemented
^~~~~
/home/mariadb-10.2.2/include/my_atomic.h: In function ‘my_atomic_cas32’:
/home/mariadb-10.2.2/include/my_atomic.h:209:3: warning: implicit declaration of function ‘make_atomic_cas_body’ [-Wimplicit-function-declaration]
make_atomic_cas_body(S); \
^
/home/mariadb-10.2.2/include/my_atomic.h:248:1: note: in expansion of macro ‘make_atomic_cas’
make_atomic_cas(32)
^~~~~~~~~~~~~~~
/home/mariadb-10.2.2/include/my_atomic.h: In function ‘my_atomic_casptr’:
/home/mariadb-10.2.2/include/my_atomic.h:250:17: error: ‘ptr’ undeclared (first use in this function)
make_atomic_cas(ptr)
^
/home/mariadb-10.2.2/include/my_atomic.h:209:24: note: in definition of macro ‘make_atomic_cas’
make_atomic_cas_body(S); \
^
/home/mariadb-10.2.2/include/my_atomic.h:250:17: note: each undeclared identifier is reported only once for each function it appears in
make_atomic_cas(ptr)
^
/home/mariadb-10.2.2/include/my_atomic.h:209:24: note: in definition of macro ‘make_atomic_cas’
make_atomic_cas_body(S); \
^
mysys/CMakeFiles/mysys.dir/build.make:2222: recipe for target 'mysys/CMakeFiles/mysys.dir/lf_alloc-pin.c.o' failed
make[2]: *** [mysys/CMakeFiles/mysys.dir/lf_alloc-pin.c.o] Error 1
CMakeFiles/Makefile2:7993: recipe for target 'mysys/CMakeFiles/mysys.dir/all' failed
make[1]: *** [mysys/CMakeFiles/mysys.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

Comment by Sergey Vojtovich [ 2016-11-17 ]

I believe it is duplicate of MDEV-10984.

Generated at Thu Feb 08 07:48:44 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.