libgcrpyt 1.12.2 compile IBM POWER AIX
Frank
gnupg at shoran-und-alira.de
Wed May 13 16:18:13 CEST 2026
On 5/13/2026 11:22 AM, Werner Koch wrote:
> Hi!
>
> On Fri, 8 May 2026 18:29, Frank said:
>
>> 1) the -Werror flag is not supported.
>> According to the IBM documentation it is a xlclang/++ flag
>
> The -Werror flag is only used by some configure test and they will thus
> fail, which is okay. That is the reason we do configure tests. The
> original CFLAGS are restored after the tests.
>
> PLease remember that you may not edit the Makefiles and execpt that
> things work out. The proper way to pass flags is to pass them to
> configure or execptionally to the make invocation. More details on the
> configure system can be found in INSTALL. The README file has some
> hints on build problems on RS/6000 but in general we have not other
> reports that anything from the GnuPG suite does not build on AIX.
>
>
>
> Salam-Shalom,
>
> Werner
>
I do not claim to understand what I am doing.
I fumble my way through compilation because there is not much
information on OSS compilation on IBM POWER architecture using xlC.
The settings I use are derived and adapted from perzl.org, which by now
seems to be offline.
That being said, if there are users out there, that are working with AIX
7.2 and higher and xlC 16.1 and higher, I am keen to know how they
compile OSS releases.
My fix was not on the Makefile but to the configure and configure.ac
sed -e "s/-Werror/-qhalt/g"
In your answer you mainly focused on -Werror.
Which brings relevance to my question, what is the preferred compiler,
xlC or xlclang?
For xlC/cc -Werror is not supported and results in
------ begin config.log ------
configure:19067: checking whether compiler supports '__thread' storage
class specifier
configure:19086: cc -c -qtls -qalias=ansi -qlanglvl=extc99
-qmaxmem=16384 -O2 -Werror conftest.c >&5
/opt/IBM/xlC/16.1.0/bin/.orig/cc: 1501-210 (S) command option Werror
contains an incorrect subargument
configure:19086: $? = 40
------ end config.log ------
------ begin make ------
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/opt/freeware/include
-qtls -qalias=ansi -qlanglvl=extc99 -qmaxmem=16384 -O2 -c
missing-string.c
-Wp,-qmakedep=gcc,-MF.deps/libgcrypt_la-missing-string.TPlo -DPIC -o
.libs/libgcrypt_la-missing-string.o
source='fips.c' object='libgcrypt_la-fips.lo' libtool=yes
DEPDIR=.deps depmode=xlc /opt/freeware/bin/bash ../build-aux/depcomp
/opt/freeware/bin/bash ../libtool --tag=CC --mode=compile cc
-DHAVE_CONFIG_H -I. -I.. -I/opt/freeware/include -qtls -qalias=ansi
-qlanglvl=extc99 -qmaxmem=16384 -O2 -c -o libgcrypt_la-fips.lo `test -f
'fips.c' || echo './'`fips.c
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I/opt/freeware/include
-qtls -qalias=ansi -qlanglvl=extc99 -qmaxmem=16384 -O2 -c fips.c
-Wp,-qmakedep=gcc,-MF.deps/libgcrypt_la-fips.TPlo -DPIC -o
.libs/libgcrypt_la-fips.o
"fips.c", line 82.2: 1506-205 (S) #error libgcrypt requires thread-local
storage to support FIPS mode
"fips.c", line 88.3: 1506-045 (S) Undeclared identifier the_tc.
"fips.c", line 94.13: 1506-045 (S) Undeclared identifier the_tc.
"fips.c", line 100.3: 1506-045 (S) Undeclared identifier the_tc.
"fips.c", line 106.10: 1506-045 (S) Undeclared identifier the_tc.
make: The error code from the last command is 1.
------ end config.log ------
For xlclang, which would null and void the configure(.ac) modification,
is the question about the assembler opcode outstanding.
This cannot be solved by adding --disable-asm.
More information about the Gnupg-users
mailing list