Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22306

error: unknown type name ‘max_align_t’ when building GCC 14.2 for centos7

$
0
0

I am building gcc 14.2.0 from source for centos7 and ran into the following issue with gettext during the make process. I plan to use the recent C++ compilers that comes with gcc 14.

gcc -std=gnu99 -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I../../../gcc-14.2.0/gettext/gettext-runtime/gnulib-lib -I..  -I../intl -I../../../gcc-14.2.0/gettext/gettext-runtime/intl -DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1   -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-pedantic -Wno-sign-conversion -Wno-type-limits -Wno-unsuffixed-float-constants -g -c -o unistr/libgrt_a-u8-uctomb.o `test -f 'unistr/u8-uctomb.c' || echo '../../../gcc-14.2.0/gettext/gettext-runtime/gnulib-lib/'`unistr/u8-uctomb.cIn file included from ../../../gcc-14.2.0/gettext/gettext-runtime/gnulib-lib/scratch_buffer.h:115:0,                 from ../../../gcc-14.2.0/gettext/gettext-runtime/gnulib-lib/malloc/scratch_buffer_grow.c:23:./malloc/scratch_buffer.gl.h:70:9: error: unknown type name ‘max_align_t’   union { max_align_t __align; char __c[1024]; } __space;         ^

My gettext vesion is

# gettext --versiongettext (GNU gettext-runtime) 0.22Copyright (C) 1995-2023 Free Software Foundation, Inc.License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>This is free software: you are free to change and redistribute it.There is NO WARRANTY, to the extent permitted by law.Written by Ulrich Drepper.

This is how I tried to build it

yum groupinstall -y "Development Tools"yum install -y wget bzip2 tarGCC_VERSION=14.2.0wget https://ftp.gnu.org/gnu/gcc/gcc-$GCC_VERSION/gcc-$GCC_VERSION.tar.gztar -xvzf gcc-$GCC_VERSION.tar.gzcd gcc-$GCC_VERSION./contrib/download_prerequisitesmkdir ../gcc-buildcd ../gcc-build../gcc-$GCC_VERSION/configure --enable-languages=c,c++ --disable-multilibmake -j$(nproc)make install

Could someone kindly help me out to install gcc 14? Is there any way to solve this issue?


Viewing all articles
Browse latest Browse all 22306

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>