Re: error: ‘__libc_single_threaded_internal’ undeclared
Saifi Khan
saifi.khan@nishan.io
Sun Nov 20 17:41:04 GMT 2022
> -------Original Message-------
> From: Adhemerval Zanella
>
> Do you mean by 'out-of-source-tree' that you are just trying to
> compile the source without all the internal files and definitions?
>
Adhemerval, thanks for your kind reply.
The directory tree structure looks like this
/opt/work/linux/glibc/
├── build
└── src
In the build directory, i first execute a configure script (b02.sh)
DIR_ONE=/opt/work/linux/glibc
DIR_SRC=${DIR_ONE}/src
DIR_DST=${DIR_ONE}/root
CC="gcc-12"
CXX="g++-12"
CFLAGS="-O2 -pipe"
CXXFLAGS="${CFLAGS}"
CC="gcc-12" CXX="g++-12" CFLAGS="-O2 -pipe" CXXFLAGS="${CFLAGS}" ${DIR_SRC}/configure \
--prefix=${DIR_DST} \
--exec-prefix=${DIR_DST} \
--datarootdir=${DIR_DST}/doc/share \
--datadir=${DIR_DST}/doc \
--docdir=${DIR_DST}/doc \
--htmldir=${DIR_DST}/doc \
--mandir=${DIR_DST}/doc/man \
--infodir=${DIR_DST}/doc/info \
--enable-add-ons \
--disable-hidden-plt \
--disable-profile \
--enable-stack-protector=no \
--enable-shared \
--enable-ld=yes \
--with-gnu-ld \
--without-selinux
exit 0;
next i execute the build script (b04.sh)
make -j1
that's when the above mentioned error was seen.
Do you think anything needs to be changed in the options that are being passed to the configure script ?
warm regards
Saifi.
More information about the Libc-help
mailing list