public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* persistent error
@ 2021-11-12  2:27 Bill Cunningham
  2021-11-12  8:09 ` Jonathan Wakely
  0 siblings, 1 reply; 4+ messages in thread
From: Bill Cunningham @ 2021-11-12  2:27 UTC (permalink / raw)
  To: gcc-help

     I have this error when trying to build a c++ end onto a gcc "cross" 
compiler already built in a small way. What I am doing is building a 
"cross" compiler by following some of lfs's instructions. I want a 
"cross" compiler but maybe I should just build a native compiler with 
bootstrapping disabled. I will eventually need a gcc compiler with 
everything because any type of testing is done with a "full suite" 
compiler, is my understanding. But, one thing at a time. What exactly is 
this showing me? I have looked at config.log and partial Makefiles and 
config.status scripts. I'm baffled by this anyway.

In file included from /source/gcc-11.2.0/libstdc++-v3/b/include/cfenv:41,
                  from 
/source/gcc-11.2.0/libstdc++-v3/src/c++17/floating_from_chars.cc:36:
/source/gcc-11.2.0/libstdc++-v3/b/include/fenv.h:58:11: error: ‘fenv_t’ 
has not been declared in ‘::’
    58 |   using ::fenv_t;
       |           ^~~~~~
/source/gcc-11.2.0/libstdc++-v3/b/include/fenv.h:59:11: error: 
‘fexcept_t’ has not been declared in ‘::’
    59 |   using ::fexcept_t;
       |           ^~~~~~~~~
/source/gcc-11.2.0/libstdc++-v3/b/include/fenv.h:62:11: error: 
‘feclearexcept’ has not been declared in ‘::’
    62 |   using ::feclearexcept;
       |           ^~~~~~~~~~~~~
/source/gcc-11.2.0/libstdc++-v3/b/include/fenv.h:63:11: error: 
‘fegetexceptflag’ has not been declared in ‘::’
    63 |   using ::fegetexceptflag;
       |           ^~~~~~~~~~~~~~~
/source/gcc-11.2.0/libstdc++-v3/b/include/fenv.h:64:11: error: 
‘feraiseexcept’ has not been declared in ‘::’
    64 |   using ::feraiseexcept;
       |           ^~~~~~~~~~~~~
/source/gcc-11.2.0/libstdc++-v3/b/include/fenv.h:65:11: error: 
‘fesetexceptflag’ has not been declared in ‘::’
    65 |   using ::fesetexceptflag;
       |           ^~~~~~~~~~~~~~~
/source/gcc-11.2.0/libstdc++-v3/b/include/fenv.h:66:11: error: 
‘fetestexcept’ has not been declared in ‘::’
    66 |   using ::fetestexcept;
       |           ^~~~~~~~~~~~
/source/gcc-11.2.0/libstdc++-v3/b/include/fenv.h:68:11: error: 
‘fegetround’ has not been declared in ‘::’
    68 |   using ::fegetround;
       |           ^~~~~~~~~~
/source/gcc-11.2.0/libstdc++-v3/b/include/fenv.h:69:11: error: 
‘fesetround’ has not been declared in ‘::’
    69 |   using ::fesetround;
       |           ^~~~~~~~~~
/source/gcc-11.2.0/libstdc++-v3/b/include/fenv.h:71:11: error: 
‘fegetenv’ has not been declared in ‘::’
    71 |   using ::fegetenv;
       |           ^~~~~~~~
/source/gcc-11.2.0/libstdc++-v3/b/include/fenv.h:72:11: error: 
‘feholdexcept’ has not been declared in ‘::’
    72 |   using ::feholdexcept;
       |           ^~~~~~~~~~~~
/source/gcc-11.2.0/libstdc++-v3/b/include/fenv.h:73:11: error: 
‘fesetenv’ has not been declared in ‘::’
    73 |   using ::fesetenv;
       |           ^~~~~~~~
/source/gcc-11.2.0/libstdc++-v3/b/include/fenv.h:74:11: error: 
‘feupdateenv’ has not been declared in ‘::’
    74 |   using ::feupdateenv;
       |           ^~~~~~~~~~~
In file included from 
/source/gcc-11.2.0/libstdc++-v3/src/c++17/floating_from_chars.cc:36:
/source/gcc-11.2.0/libstdc++-v3/b/include/cfenv:61:11: error: ‘fenv_t’ 
has not been declared in ‘::’
    61 |   using ::fenv_t;
       |           ^~~~~~
/source/gcc-11.2.0/libstdc++-v3/b/include/cfenv:62:11: error: 
‘fexcept_t’ has not been declared in ‘::’
    62 |   using ::fexcept_t;
       |           ^~~~~~~~~
/source/gcc-11.2.0/libstdc++-v3/b/include/cfenv:65:11: error: 
‘feclearexcept’ has not been declared in ‘::’
    65 |   using ::feclearexcept;
       |           ^~~~~~~~~~~~~
/source/gcc-11.2.0/libstdc++-v3/b/include/cfenv:66:11: error: 
‘fegetexceptflag’ has not been declared in ‘::’
    66 |   using ::fegetexceptflag;
       |           ^~~~~~~~~~~~~~~
/source/gcc-11.2.0/libstdc++-v3/b/include/cfenv:67:11: error: 
‘feraiseexcept’ has not been declared in ‘::’
    67 |   using ::feraiseexcept;
       |           ^~~~~~~~~~~~~
/source/gcc-11.2.0/libstdc++-v3/b/include/cfenv:68:11: error: 
‘fesetexceptflag’ has not been declared in ‘::’
    68 |   using ::fesetexceptflag;
       |           ^~~~~~~~~~~~~~~
/source/gcc-11.2.0/libstdc++-v3/b/include/cfenv:69:11: error: 
‘fetestexcept’ has not been declared in ‘::’
    69 |   using ::fetestexcept;
       |           ^~~~~~~~~~~~
/source/gcc-11.2.0/libstdc++-v3/b/include/cfenv:71:11: error: 
‘fegetround’ has not been declared in ‘::’
    71 |   using ::fegetround;
       |           ^~~~~~~~~~
/source/gcc-11.2.0/libstdc++-v3/b/include/cfenv:72:11: error: 
‘fesetround’ has not been declared in ‘::’
    72 |   using ::fesetround;
       |           ^~~~~~~~~~
/source/gcc-11.2.0/libstdc++-v3/b/include/cfenv:74:11: error: ‘fegetenv’ 
has not been declared in ‘::’
    74 |   using ::fegetenv;
       |           ^~~~~~~~
/source/gcc-11.2.0/libstdc++-v3/b/include/cfenv:75:11: error: 
‘feholdexcept’ has not been declared in ‘::’
    75 |   using ::feholdexcept;
       |           ^~~~~~~~~~~~
/source/gcc-11.2.0/libstdc++-v3/b/include/cfenv:76:11: error: ‘fesetenv’ 
has not been declared in ‘::’
    76 |   using ::fesetenv;
       |           ^~~~~~~~
/source/gcc-11.2.0/libstdc++-v3/b/include/cfenv:77:11: error: 
‘feupdateenv’ has not been declared in ‘::’
    77 |   using ::feupdateenv;
       |           ^~~~~~~~~~~
make[3]: *** [Makefile:577: floating_from_chars.lo] Error 1
make[2]: *** [Makefile:765: all-recursive] Error 1
make[1]: *** [Makefile:568: all-recursive] Error 1
make: *** [Makefile:493: all] Error 2

It looks like the C++ Scoping operator might have something to do with 
this. I am going into gcc-11.2.0/libstdc++-v3 and running the configure 
script there. That might not be  good idea.

Bill



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: persistent error
  2021-11-12  2:27 persistent error Bill Cunningham
@ 2021-11-12  8:09 ` Jonathan Wakely
  2021-11-12  9:39   ` Xi Ruoyao
  2021-11-12  9:57   ` Jonathan Wakely
  0 siblings, 2 replies; 4+ messages in thread
From: Jonathan Wakely @ 2021-11-12  8:09 UTC (permalink / raw)
  To: Bill Cunningham; +Cc: gcc-help

On Fri, 12 Nov 2021, 02:28 Bill Cunningham via Gcc-help, <
gcc-help@gcc.gnu.org> wrote:

>      I have this error when trying to build a c++ end onto a gcc "cross"
> compiler already built in a small way. What I am doing is building a
> "cross" compiler by following some of lfs's instructions. I want a
> "cross" compiler but maybe I should just build a native compiler with
> bootstrapping disabled. I will eventually need a gcc compiler with
> everything because any type of testing is done with a "full suite"
> compiler, is my understanding. But, one thing at a time.


It seems to me that just building a full GCC would be simpler than your
piecemeal approach.

https://gcc.gnu.org/wiki/Installing GCC


What exactly is
> this showing me? I have looked at config.log and partial Makefiles and
> config.status scripts. I'm baffled by this anyway.
>
> In file included from /source/gcc-11.2.0/libstdc++-v3/b/include/cfenv:41,
>                   from
> /source/gcc-11.2.0/libstdc++-v3/src/c++17/floating_from_chars.cc:36:
> /source/gcc-11.2.0/libstdc++-v3/b/include/fenv.h:58:11: error: ‘fenv_t’
> has not been declared in ‘::’
>     58 |   using ::fenv_t;
>        |           ^~~~~~
> /source/gcc-11.2.0/libstdc++-v3/b/include/fenv.h:59:11: error:
> ‘fexcept_t’ has not been declared in ‘::’
>     59 |   using ::fexcept_t;
>        |           ^~~~~~~~~
> /source/gcc-11.2.0/libstdc++-v3/b/include/fenv.h:62:11: error:
> ‘feclearexcept’ has not been declared in ‘::’
>     62 |   using ::feclearexcept;
>        |           ^~~~~~~~~~~~~
> /source/gcc-11.2.0/libstdc++-v3/b/include/fenv.h:63:11: error:
> ‘fegetexceptflag’ has not been declared in ‘::’
>     63 |   using ::fegetexceptflag;
>        |           ^~~~~~~~~~~~~~~
> /source/gcc-11.2.0/libstdc++-v3/b/include/fenv.h:64:11: error:
> ‘feraiseexcept’ has not been declared in ‘::’
>     64 |   using ::feraiseexcept;
>        |           ^~~~~~~~~~~~~
> /source/gcc-11.2.0/libstdc++-v3/b/include/fenv.h:65:11: error:
> ‘fesetexceptflag’ has not been declared in ‘::’
>     65 |   using ::fesetexceptflag;
>        |           ^~~~~~~~~~~~~~~
> /source/gcc-11.2.0/libstdc++-v3/b/include/fenv.h:66:11: error:
> ‘fetestexcept’ has not been declared in ‘::’
>     66 |   using ::fetestexcept;
>        |           ^~~~~~~~~~~~
> /source/gcc-11.2.0/libstdc++-v3/b/include/fenv.h:68:11: error:
> ‘fegetround’ has not been declared in ‘::’
>     68 |   using ::fegetround;
>        |           ^~~~~~~~~~
> /source/gcc-11.2.0/libstdc++-v3/b/include/fenv.h:69:11: error:
> ‘fesetround’ has not been declared in ‘::’
>     69 |   using ::fesetround;
>        |           ^~~~~~~~~~
> /source/gcc-11.2.0/libstdc++-v3/b/include/fenv.h:71:11: error:
> ‘fegetenv’ has not been declared in ‘::’
>     71 |   using ::fegetenv;
>        |           ^~~~~~~~
> /source/gcc-11.2.0/libstdc++-v3/b/include/fenv.h:72:11: error:
> ‘feholdexcept’ has not been declared in ‘::’
>     72 |   using ::feholdexcept;
>        |           ^~~~~~~~~~~~
> /source/gcc-11.2.0/libstdc++-v3/b/include/fenv.h:73:11: error:
> ‘fesetenv’ has not been declared in ‘::’
>     73 |   using ::fesetenv;
>        |           ^~~~~~~~
> /source/gcc-11.2.0/libstdc++-v3/b/include/fenv.h:74:11: error:
> ‘feupdateenv’ has not been declared in ‘::’
>     74 |   using ::feupdateenv;
>        |           ^~~~~~~~~~~
> In file included from
> /source/gcc-11.2.0/libstdc++-v3/src/c++17/floating_from_chars.cc:36:
> /source/gcc-11.2.0/libstdc++-v3/b/include/cfenv:61:11: error: ‘fenv_t’
> has not been declared in ‘::’
>     61 |   using ::fenv_t;
>        |           ^~~~~~
> /source/gcc-11.2.0/libstdc++-v3/b/include/cfenv:62:11: error:
> ‘fexcept_t’ has not been declared in ‘::’
>     62 |   using ::fexcept_t;
>        |           ^~~~~~~~~
> /source/gcc-11.2.0/libstdc++-v3/b/include/cfenv:65:11: error:
> ‘feclearexcept’ has not been declared in ‘::’
>     65 |   using ::feclearexcept;
>        |           ^~~~~~~~~~~~~
> /source/gcc-11.2.0/libstdc++-v3/b/include/cfenv:66:11: error:
> ‘fegetexceptflag’ has not been declared in ‘::’
>     66 |   using ::fegetexceptflag;
>        |           ^~~~~~~~~~~~~~~
> /source/gcc-11.2.0/libstdc++-v3/b/include/cfenv:67:11: error:
> ‘feraiseexcept’ has not been declared in ‘::’
>     67 |   using ::feraiseexcept;
>        |           ^~~~~~~~~~~~~
> /source/gcc-11.2.0/libstdc++-v3/b/include/cfenv:68:11: error:
> ‘fesetexceptflag’ has not been declared in ‘::’
>     68 |   using ::fesetexceptflag;
>        |           ^~~~~~~~~~~~~~~
> /source/gcc-11.2.0/libstdc++-v3/b/include/cfenv:69:11: error:
> ‘fetestexcept’ has not been declared in ‘::’
>     69 |   using ::fetestexcept;
>        |           ^~~~~~~~~~~~
> /source/gcc-11.2.0/libstdc++-v3/b/include/cfenv:71:11: error:
> ‘fegetround’ has not been declared in ‘::’
>     71 |   using ::fegetround;
>        |           ^~~~~~~~~~
> /source/gcc-11.2.0/libstdc++-v3/b/include/cfenv:72:11: error:
> ‘fesetround’ has not been declared in ‘::’
>     72 |   using ::fesetround;
>        |           ^~~~~~~~~~
> /source/gcc-11.2.0/libstdc++-v3/b/include/cfenv:74:11: error: ‘fegetenv’
> has not been declared in ‘::’
>     74 |   using ::fegetenv;
>        |           ^~~~~~~~
> /source/gcc-11.2.0/libstdc++-v3/b/include/cfenv:75:11: error:
> ‘feholdexcept’ has not been declared in ‘::’
>     75 |   using ::feholdexcept;
>        |           ^~~~~~~~~~~~
> /source/gcc-11.2.0/libstdc++-v3/b/include/cfenv:76:11: error: ‘fesetenv’
> has not been declared in ‘::’
>     76 |   using ::fesetenv;
>        |           ^~~~~~~~
> /source/gcc-11.2.0/libstdc++-v3/b/include/cfenv:77:11: error:
> ‘feupdateenv’ has not been declared in ‘::’
>     77 |   using ::feupdateenv;
>        |           ^~~~~~~~~~~
> make[3]: *** [Makefile:577: floating_from_chars.lo] Error 1
> make[2]: *** [Makefile:765: all-recursive] Error 1
> make[1]: *** [Makefile:568: all-recursive] Error 1
> make: *** [Makefile:493: all] Error 2
>
> It looks like the C++ Scoping operator might have something to do with
> this.


No, it's a known bug which is in bugzilla already.



I am going into gcc-11.2.0/libstdc++-v3 and running the configure
> script there. That might not be  good idea.
>


Don't do that then. Run the top-level configure instead.



> Bill
>
>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: persistent error
  2021-11-12  8:09 ` Jonathan Wakely
@ 2021-11-12  9:39   ` Xi Ruoyao
  2021-11-12  9:57   ` Jonathan Wakely
  1 sibling, 0 replies; 4+ messages in thread
From: Xi Ruoyao @ 2021-11-12  9:39 UTC (permalink / raw)
  To: Jonathan Wakely, Bill Cunningham; +Cc: gcc-help

On Fri, 2021-11-12 at 08:09 +0000, Jonathan Wakely via Gcc-help wrote:
> On Fri, 12 Nov 2021, 02:28 Bill Cunningham via Gcc-help, <
> gcc-help@gcc.gnu.org> wrote:
> 
> >      I have this error when trying to build a c++ end onto a gcc
> > "cross"
> > compiler already built in a small way. What I am doing is building a
> > "cross" compiler by following some of lfs's instructions. I want a
> > "cross" compiler but maybe I should just build a native compiler
> > with
> > bootstrapping disabled. I will eventually need a gcc compiler with
> > everything because any type of testing is done with a "full suite"
> > compiler, is my understanding. But, one thing at a time.
> 
> 
> It seems to me that just building a full GCC would be simpler than
> your
> piecemeal approach.
> 
> https://gcc.gnu.org/wiki/Installing GCC

Note that even a x86_64 -> x86_64 cross compiler is still different from
a native compiler.  For example, cross compiler can produce executable
linking to a newer libc in a sysroot by default, so the executable will
not run on your native environment (you'll need to run it in a chroot).

So if you want a native compiler, just build a native compiler.  It's
just like if you want a duck, just buy a duck instead of buy a chicken
and put it into water :).

/* snip */

> I am going into gcc-11.2.0/libstdc++-v3 and running the configure
> > script there. That might not be  good idea.
> 
> Don't do that then. Run the top-level configure instead.

The command in LFS is highly customized for our special purpose, to
build a Linux system from source code.  It's not a tutorial to build GCC
or a general tutorial to build a cross toolchain.  If you use LFS for
other purpose without a fully knowledge of what you are doing, you're
likely to encounter problems.

Even if you follow the LFS book strictly, the toolchain produced by
Chapter 5 is still not a full cross toolchain.  For example, our
libstdc++ in Chapter 5 has no thread support, that's why we will rebuild
it in Chapter 7.

If you want a tutorial for building a cross toolchain, you can easily
find one online with Google or something.  Again don't assume a chicken
to be a duck.
> 
-- 
Xi Ruoyao <xry111@mengyan1223.wang>
School of Aerospace Science and Technology, Xidian University

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: persistent error
  2021-11-12  8:09 ` Jonathan Wakely
  2021-11-12  9:39   ` Xi Ruoyao
@ 2021-11-12  9:57   ` Jonathan Wakely
  1 sibling, 0 replies; 4+ messages in thread
From: Jonathan Wakely @ 2021-11-12  9:57 UTC (permalink / raw)
  To: Bill Cunningham; +Cc: gcc-help

On Fri, 12 Nov 2021 at 08:09, Jonathan Wakely wrote:
>
>
>
> On Fri, 12 Nov 2021, 02:28 Bill Cunningham via Gcc-help, <gcc-help@gcc.gnu.org> wrote:
>>
>>      I have this error when trying to build a c++ end onto a gcc "cross"
>> compiler already built in a small way. What I am doing is building a
>> "cross" compiler by following some of lfs's instructions. I want a
>> "cross" compiler but maybe I should just build a native compiler with
>> bootstrapping disabled. I will eventually need a gcc compiler with
>> everything because any type of testing is done with a "full suite"
>> compiler, is my understanding. But, one thing at a time.
>
>
> It seems to me that just building a full GCC would be simpler than your piecemeal approach.
>
> https://gcc.gnu.org/wiki/Installing GCC

Oops, sorry, there should be no space before GCC in that URL:

https://gcc.gnu.org/wiki/InstallingGCC

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-11-12  9:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-12  2:27 persistent error Bill Cunningham
2021-11-12  8:09 ` Jonathan Wakely
2021-11-12  9:39   ` Xi Ruoyao
2021-11-12  9:57   ` Jonathan Wakely

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).