public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: SAIFI <saifi@strikr.io>
To: gcc-help@gcc.gnu.org
Subject: gcc make install error ‘fenv_t’ has not been declared in ‘::’
Date: Fri, 31 Dec 2021 10:33:02 +0000 (UTC)	[thread overview]
Message-ID: <5063732c-8420-5dac-42a-dc72d6db51e6@strikr.io> (raw)

Hi:

Using 'gcc 11.1.0' on x86_64 GNU/Linux (kernel 5.15.12). The source make was successful. However, i am encountering this error at 'make install'.

Please see below,

libtool: compile:  g++ -I/strikr/src/gcc/libstdc++-v3/../libgcc -I/strikr/infra/build/gcc/include/ -I/strikr/infra/build/gcc/include -I/strikr/src/gcc/libstdc++-v3/libsupc++ -std=gnu++11 -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2 -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=wstring-io-inst.lo -fcf-protection -mshstk -c /strikr/src/gcc/libstdc++-v3/src/c++11/wstring-io-inst.cc  -fPIC -DPIC -D_GLIBCXX_SHARED -o wstring-io-inst.o
/bin/sh ../../libtool --tag CXX --tag disable-shared   --mode=link g++  -Wl,-O1 -Wl,-z,relro -Wl,--gc-sections  -std=gnu++11 -prefer-pic -D_GLIBCXX_SHARED -fno-implicit-templates  -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2  -fdiagnostics-show-location=once   -ffunction-sections -fdata-sections  -frandom-seed=libc++11convenience.la   -o libc++11convenience.la  chrono.lo codecvt.lo condition_variable.lo cow-stdexcept.lo ctype.lo debug.lo functexcept.lo functional.lo futex.lo future.lo hash_c++0x.lo hashtable_c++0x.lo ios.lo limits.lo mutex.lo placeholders.lo random.lo regex.lo shared_ptr.lo snprintf_lite.lo system_error.lo thread.lo cow-locale_init.lo cow-shim_facets.lo cxx11-hash_tr1.lo cxx11-ios_failure.lo cxx11-shim_facets.lo cxx11-stdexcept.lo ctype_configure_char.lo ctype_members.lo cow-fstream-inst.lo cow-sstream-inst.lo cow-string-inst.lo cow-string-io-inst.lo cow-wstring-inst.lo cow-wstring-io-inst.lo cxx11-locale-inst.lo cxx11-wlocale-inst.lo sso_string.lo ext11-inst.lo fstream-inst.lo ios-inst.lo iostream-inst.lo istream-inst.lo locale-inst.lo ostream-inst.lo sstream-inst.lo streambuf-inst.lo string-inst.lo string-io-inst.lo wlocale-inst.lo wstring-inst.lo wstring-io-inst.lo 
libtool: link: ar cru .libs/libc++11convenience.a  chrono.o codecvt.o condition_variable.o cow-stdexcept.o ctype.o debug.o functexcept.o functional.o futex.o future.o hash_c++0x.o hashtable_c++0x.o ios.o limits.o mutex.o placeholders.o random.o regex.o shared_ptr.o snprintf_lite.o system_error.o thread.o cow-locale_init.o cow-shim_facets.o cxx11-hash_tr1.o cxx11-ios_failure.o cxx11-shim_facets.o cxx11-stdexcept.o ctype_configure_char.o ctype_members.o cow-fstream-inst.o cow-sstream-inst.o cow-string-inst.o cow-string-io-inst.o cow-wstring-inst.o cow-wstring-io-inst.o cxx11-locale-inst.o cxx11-wlocale-inst.o sso_string.o ext11-inst.o fstream-inst.o ios-inst.o iostream-inst.o istream-inst.o locale-inst.o ostream-inst.o sstream-inst.o streambuf-inst.o string-inst.o string-io-inst.o wlocale-inst.o wstring-inst.o wstring-io-inst.o
ar: `u' modifier ignored since `D' is the default (see `U')
libtool: link: ranlib .libs/libc++11convenience.a
libtool: link: ( cd ".libs" && rm -f "libc++11convenience.la" && ln -s "../libc++11convenience.la" "libc++11convenience.la" )
make[3]: Entering directory '/strikr/infra/build/gcc/src/c++11'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/strikr/infra/build/gcc/src/c++11'
make[2]: Leaving directory '/strikr/infra/build/gcc/src/c++11'
Making install in c++17
make[2]: Entering directory '/strikr/infra/build/gcc/src/c++17'
/bin/sh ../../libtool --tag CXX --tag disable-shared   --mode=compile g++ -I/strikr/src/gcc/libstdc++-v3/../libgcc -I/strikr/infra/build/gcc/include/ -I/strikr/infra/build/gcc/include -I/strikr/src/gcc/libstdc++-v3/libsupc++   -std=gnu++17 -prefer-pic -D_GLIBCXX_SHARED -fno-implicit-templates  -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2  -fdiagnostics-show-location=once   -ffunction-sections -fdata-sections  -frandom-seed=floating_from_chars.lo  -fimplicit-templates  -fcf-protection -mshstk -c -o floating_from_chars.lo /strikr/src/gcc/libstdc++-v3/src/c++17/floating_from_chars.cc
libtool: compile:  g++ -I/strikr/src/gcc/libstdc++-v3/../libgcc -I/strikr/infra/build/gcc/include/ -I/strikr/infra/build/gcc/include -I/strikr/src/gcc/libstdc++-v3/libsupc++ -std=gnu++17 -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2 -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=floating_from_chars.lo -fimplicit-templates -fcf-protection -mshstk -c /strikr/src/gcc/libstdc++-v3/src/c++17/floating_from_chars.cc  -fPIC -DPIC -D_GLIBCXX_SHARED -o floating_from_chars.o
In file included from /strikr/infra/build/gcc/include/cfenv:41,
                  from /strikr/src/gcc/libstdc++-v3/src/c++17/floating_from_chars.cc:36:
/strikr/infra/build/gcc/include/fenv.h:58:11: error: ‘fenv_t’ has not been declared in ‘::’
    58 |   using ::fenv_t;
       |           ^~~~~~
/strikr/infra/build/gcc/include/fenv.h:59:11: error: ‘fexcept_t’ has not been declared in ‘::’
    59 |   using ::fexcept_t;
       |           ^~~~~~~~~
/strikr/infra/build/gcc/include/fenv.h:62:11: error: ‘feclearexcept’ has not been declared in ‘::’
    62 |   using ::feclearexcept;
       |           ^~~~~~~~~~~~~
/strikr/infra/build/gcc/include/fenv.h:63:11: error: ‘fegetexceptflag’ has not been declared in ‘::’
    63 |   using ::fegetexceptflag;
       |           ^~~~~~~~~~~~~~~
/strikr/infra/build/gcc/include/fenv.h:64:11: error: ‘feraiseexcept’ has not been declared in ‘::’
    64 |   using ::feraiseexcept;
       |           ^~~~~~~~~~~~~
/strikr/infra/build/gcc/include/fenv.h:65:11: error: ‘fesetexceptflag’ has not been declared in ‘::’
    65 |   using ::fesetexceptflag;
       |           ^~~~~~~~~~~~~~~
/strikr/infra/build/gcc/include/fenv.h:66:11: error: ‘fetestexcept’ has not been declared in ‘::’
    66 |   using ::fetestexcept;
       |           ^~~~~~~~~~~~
/strikr/infra/build/gcc/include/fenv.h:68:11: error: ‘fegetround’ has not been declared in ‘::’
    68 |   using ::fegetround;
       |           ^~~~~~~~~~
/strikr/infra/build/gcc/include/fenv.h:69:11: error: ‘fesetround’ has not been declared in ‘::’
    69 |   using ::fesetround;
       |           ^~~~~~~~~~
/strikr/infra/build/gcc/include/fenv.h:71:11: error: ‘fegetenv’ has not been declared in ‘::’
    71 |   using ::fegetenv;
       |           ^~~~~~~~
/strikr/infra/build/gcc/include/fenv.h:72:11: error: ‘feholdexcept’ has not been declared in ‘::’
    72 |   using ::feholdexcept;
       |           ^~~~~~~~~~~~
/strikr/infra/build/gcc/include/fenv.h:73:11: error: ‘fesetenv’ has not been declared in ‘::’
    73 |   using ::fesetenv;
       |           ^~~~~~~~
/strikr/infra/build/gcc/include/fenv.h:74:11: error: ‘feupdateenv’ has not been declared in ‘::’
    74 |   using ::feupdateenv;
       |           ^~~~~~~~~~~
In file included from /strikr/src/gcc/libstdc++-v3/src/c++17/floating_from_chars.cc:36:
/strikr/infra/build/gcc/include/cfenv:61:11: error: ‘fenv_t’ has not been declared in ‘::’
    61 |   using ::fenv_t;
       |           ^~~~~~
/strikr/infra/build/gcc/include/cfenv:62:11: error: ‘fexcept_t’ has not been declared in ‘::’
    62 |   using ::fexcept_t;
       |           ^~~~~~~~~
/strikr/infra/build/gcc/include/cfenv:65:11: error: ‘feclearexcept’ has not been declared in ‘::’
    65 |   using ::feclearexcept;
       |           ^~~~~~~~~~~~~
/strikr/infra/build/gcc/include/cfenv:66:11: error: ‘fegetexceptflag’ has not been declared in ‘::’
    66 |   using ::fegetexceptflag;
       |           ^~~~~~~~~~~~~~~
/strikr/infra/build/gcc/include/cfenv:67:11: error: ‘feraiseexcept’ has not been declared in ‘::’
    67 |   using ::feraiseexcept;
       |           ^~~~~~~~~~~~~
/strikr/infra/build/gcc/include/cfenv:68:11: error: ‘fesetexceptflag’ has not been declared in ‘::’
    68 |   using ::fesetexceptflag;
       |           ^~~~~~~~~~~~~~~
/strikr/infra/build/gcc/include/cfenv:69:11: error: ‘fetestexcept’ has not been declared in ‘::’
    69 |   using ::fetestexcept;
       |           ^~~~~~~~~~~~
/strikr/infra/build/gcc/include/cfenv:71:11: error: ‘fegetround’ has not been declared in ‘::’
    71 |   using ::fegetround;
       |           ^~~~~~~~~~
/strikr/infra/build/gcc/include/cfenv:72:11: error: ‘fesetround’ has not been declared in ‘::’
    72 |   using ::fesetround;
       |           ^~~~~~~~~~
/strikr/infra/build/gcc/include/cfenv:74:11: error: ‘fegetenv’ has not been declared in ‘::’
    74 |   using ::fegetenv;
       |           ^~~~~~~~
/strikr/infra/build/gcc/include/cfenv:75:11: error: ‘feholdexcept’ has not been declared in ‘::’
    75 |   using ::feholdexcept;
       |           ^~~~~~~~~~~~
/strikr/infra/build/gcc/include/cfenv:76:11: error: ‘fesetenv’ has not been declared in ‘::’
    76 |   using ::fesetenv;
       |           ^~~~~~~~
/strikr/infra/build/gcc/include/cfenv:77:11: error: ‘feupdateenv’ has not been declared in ‘::’
    77 |   using ::feupdateenv;
       |           ^~~~~~~~~~~
make[2]: *** [Makefile:577: floating_from_chars.lo] Error 1
make[2]: Leaving directory '/strikr/infra/build/gcc/src/c++17'
make[1]: *** [Makefile:765: install-recursive] Error 1
make[1]: Leaving directory '/strikr/infra/build/gcc/src'
make: *** [Makefile:568: install-recursive] Error 1

Do I need to tweak any options in configure script ? Any pointers ?


warm regards
Saifi.

             reply	other threads:[~2021-12-31 10:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-31 10:33 SAIFI [this message]
2021-12-31 12:00 ` Xi Ruoyao
2021-12-31 12:19   ` SAIFI

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5063732c-8420-5dac-42a-dc72d6db51e6@strikr.io \
    --to=saifi@strikr.io \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).