error: #error PostgreSQL does not have native spinlock support on this platform. error: unknown type name ‘slock_t’

From: 大坏蛋! <769323213(at)qq(dot)com>
To: pgsql-bugs <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: error: #error PostgreSQL does not have native spinlock support on this platform. error: unknown type name ‘slock_t’
Date: 2022-09-17 06:38:15
Message-ID: tencent_2C318EE5AB619D16ECCAE06FFDC9C4ED650A@qq.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

[root(at)localhost build]# uname -a
Linux localhost.localdomain 4.19.90-23.19.v2101.a.ky10.loongarch64 #1 SMP Mon Sep 13 22:33:20 CST 2021 loongarch64 loongarch64 loongarch64 GNU/Linux

-------------------------------

../../src/include/storage/s_lock.h:946:2: error: #error PostgreSQL does not have native spinlock support on this platform. To continue the compilation, rerun configure using --disable-spinlocks. However, performance will be poor. Please report this to .
&nbsp;#error PostgreSQL does not have native spinlock support on this platform.&nbsp; To continue the compilation, rerun configure using --disable-spinlocks.&nbsp; However, performance will be poor.&nbsp; Please report this to pgsql-bugs(at)lists(dot)postgresql(dot)org(dot)
&nbsp; ^~~~~
../../src/include/storage/s_lock.h:1018:25: error: unknown type name ‘slock_t’
&nbsp;extern int tas(volatile slock_t *lock);&nbsp; /* in port/.../tas.s, or
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~~~
../../src/include/storage/s_lock.h:1028:8: error: unknown type name ‘slock_t’
&nbsp;extern slock_t dummy_spinlock;
&nbsp; &nbsp; &nbsp; &nbsp; ^~~~~~~
../../src/include/storage/s_lock.h:1033:28: error: unknown type name ‘slock_t’
&nbsp;extern int s_lock(volatile slock_t *lock, const char *file, int line, const char *func);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^~~~~~~
In file included from ../../src/include/utils/sharedtuplestore.h:18,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../../src/include/nodes/execnodes.h:26,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../../src/include/executor/execdesc.h:18,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../../src/include/executor/executor.h:17,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../../src/include/funcapi.h:22,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from adminpack.c:23:
../../src/include/storage/sharedfileset.h:29:2: error: unknown type name ‘slock_t’
&nbsp; slock_t&nbsp; mutex;&nbsp; &nbsp;/* mutex protecting the reference count */
&nbsp; ^~~~~~~
In file included from ../../src/include/nodes/execnodes.h:32,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../../src/include/executor/execdesc.h:18,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../../src/include/executor/executor.h:17,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../../src/include/funcapi.h:22,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from adminpack.c:23:
../../src/include/storage/condition_variable.h:30:2: error: unknown type name ‘slock_t’
&nbsp; slock_t&nbsp; mutex;&nbsp; &nbsp;/* spinlock protecting the wakeup list */
&nbsp; ^~~~~~~
In file included from ../../src/include/executor/execdesc.h:18,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../../src/include/executor/executor.h:17,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from ../../src/include/funcapi.h:22,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from adminpack.c:23:
../../src/include/nodes/execnodes.h:1560:2: error: unknown type name ‘slock_t’
&nbsp; slock_t&nbsp; mutex;
&nbsp; ^~~~~~~
make[1]: *** [<内置&gt;:adminpack.o] 错误 1

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Paquier 2022-09-17 06:41:11 Re: BUG #17448: In Windows 10, version 1703 and later, huge_pages doesn't work.
Previous Message Tom Lane 2022-09-16 17:28:02 Re: BUG #17610: Use of multiple composite types incompatible with record-typed function parameter