https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121984
Bug ID: 121984
Summary: Build failure on AIX 7.{1,3}: implicit declaration of
function 'rs6000_special_adjust_field_align'
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libobjc
Assignee: unassigned at gcc dot gnu.org
Reporter: yavor at gnu dot org
Target Milestone: ---
On powerpc-ibm-aix7.1.5.0 and powerpc-ibm-aix7.3.1.0 the build fails with:
libtool: compile: /home/yavor/src/gcc/build/./gcc/xgcc
-B/home/yavor/src/gcc/build/./gcc/ -B/home/yavor/powerpc-ibm-aix7.3.1.0/bin/
-B/home/yavor/powerpc-ibm-aix7.3.1.0/lib/ -isystem
/home/yavor/powerpc-ibm-aix7.3.1.0/include -isystem
/home/yavor/powerpc-ibm-aix7.3.1.0/sys-include
/home/yavor/src/gcc/libobjc/encoding.c -c -I. -I/home/yavor/src/gcc/libobjc -g
-O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -DIN_GCC -DIN_TARGET_LIBS
-fno-strict-aliasing -fexceptions -I/home/yavor/src/gcc/libobjc/../gcc
-I/home/yavor/src/gcc/libobjc/../gcc/config -I../.././gcc
-I/home/yavor/src/gcc/libobjc/../libgcc -I../libgcc
-I/home/yavor/src/gcc/libobjc/../include -fPIC -DPIC -o .libs/encoding.o
In file included from ../.././gcc/tm.h:23,
from /home/yavor/src/gcc/libobjc/encoding.c:37:
/home/yavor/src/gcc/libobjc/encoding.c: In function
'objc_layout_structure_next_member':
/home/yavor/src/gcc/libobjc/../gcc/config/rs6000/aix.h:225:6: error: implicit
declaration of function 'rs6000_special_adjust_field_align'; did you mean
'rs6000_special_adjust_field_align_p'? [-Wimplicit-function-declaration]
225 | ? rs6000_special_adjust_field_align (TYPE, COMPUTED)
\
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/yavor/src/gcc/libobjc/encoding.c:1167:19: note: in expansion of macro
'ADJUST_FIELD_ALIGN'
1167 | desired_align = ADJUST_FIELD_ALIGN (type, type, desired_align);
$ ./gcc/xgcc -v
Using built-in specs.
COLLECT_GCC=./gcc/xgcc
Target: powerpc-ibm-aix7.3.1.0
Configured with: ../configure --prefix=/home/yavor --disable-nls
--enable-languages=c,c++,lto,objc,obj-c++ --with-gmp=/home/yavor
--disable-bootstrap --disable-werror --enable-version-specific-runtime-libs
--enable-libstdcxx-filesystem-ts --disable-libstdcxx-pch --disable-libsanitizer
Thread model: aix
Supported LTO compression algorithms: zlib
gcc version 16.0.0 20250916 (experimental) (GCC)