Error building the current master branch

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Error building the current master branch

Damian Rouson-4
Gfortran developers,

Does anyone have advice regarding the error message below?  This
happened when I was trying to build the current GCC master branch
inside a Lubuntu 19.10 virtual machine.  Before seeing this error, I
saw errors related to cc1 and cc1plus missing, but I was able to
resolve those by finding them and adding their location to the front
of my PATH.  Then the build continued for a while before hitting the
snag below.

My configure and build command were as follows:

../../downloads/gcc/configure --prefix=/usr/local/Cellar/gnu-10.0.0
--enable-languages=c,c++,fortran,lto --disable-multilib
--disable-werror --disable-bootstrap
make -j 8

The master branch is on commit
0cd74f3588928e22c08003c643c91340f555785e.  I see that the two most
recent commits are related to gfortran so I assume others are able to
build.


Damian


make[5]: Entering directory
'/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/x86_64-pc-linux-gnu/libstdc++-v3/src/c++17'
/bin/bash ../../libtool --tag CXX --tag disable-shared
--mode=compile /home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/./gcc/xgcc
-shared-libgcc -B/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/./gcc
-nostdinc++ -L/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/x86_64-pc-linux-gnu/libstdc++-v3/src
-L/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-B/usr/local/Cellar/gnu-10.0.0/x86_64-pc-linux-gnu/bin/
-B/usr/local/Cellar/gnu-10.0.0/x86_64-pc-linux-gnu/lib/ -isystem
/usr/local/Cellar/gnu-10.0.0/x86_64-pc-linux-gnu/include -isystem
/usr/local/Cellar/gnu-10.0.0/x86_64-pc-linux-gnu/sys-include
-I/home/rouson/Desktop/opencoarrays/prerequisites/downloads/gcc/libstdc++-v3/../libgcc
-I/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu
-I/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/x86_64-pc-linux-gnu/libstdc++-v3/include
-I/home/rouson/Desktop/opencoarrays/prerequisites/downloads/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=memory_resource.lo -fimplicit-templates -g -O2
-D_GNU_SOURCE  -c -o memory_resource.lo
/home/rouson/Desktop/opencoarrays/prerequisites/downloads/gcc/libstdc++-v3/src/c++17/memory_resource.cc
libtool: compile:
/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/./gcc/xgcc
-shared-libgcc -B/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/./gcc
-nostdinc++ -L/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/x86_64-pc-linux-gnu/libstdc++-v3/src
-L/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-B/usr/local/Cellar/gnu-10.0.0/x86_64-pc-linux-gnu/bin/
-B/usr/local/Cellar/gnu-10.0.0/x86_64-pc-linux-gnu/lib/ -isystem
/usr/local/Cellar/gnu-10.0.0/x86_64-pc-linux-gnu/include -isystem
/usr/local/Cellar/gnu-10.0.0/x86_64-pc-linux-gnu/sys-include
-I/home/rouson/Desktop/opencoarrays/prerequisites/downloads/gcc/libstdc++-v3/../libgcc
-I/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu
-I/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/x86_64-pc-linux-gnu/libstdc++-v3/include
-I/home/rouson/Desktop/opencoarrays/prerequisites/downloads/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=memory_resource.lo
-fimplicit-templates -g -O2 -D_GNU_SOURCE -c
/home/rouson/Desktop/opencoarrays/prerequisites/downloads/gcc/libstdc++-v3/src/c++17/memory_resource.cc
 -fPIC -DPIC -D_GLIBCXX_SHARED -o memory_resource.o
/home/rouson/Desktop/opencoarrays/prerequisites/downloads/gcc/libstdc++-v3/src/c++17/memory_resource.cc:92:5:
error: ‘__constinit’ does not name a type
   92 |     __constinit constant_init<newdel_res_t> newdel_res{};
      |     ^~~~~~~~~~~
/home/rouson/Desktop/opencoarrays/prerequisites/downloads/gcc/libstdc++-v3/src/c++17/memory_resource.cc:93:5:
error: ‘__constinit’ does not name a type
   93 |     __constinit constant_init<null_res_t> null_res{};
      |     ^~~~~~~~~~~
/home/rouson/Desktop/opencoarrays/prerequisites/downloads/gcc/libstdc++-v3/src/c++17/memory_resource.cc:146:5:
error: ‘__constinit’ does not name a type
  146 |     __constinit constant_init<atomic_mem_res>
default_res{&newdel_res.obj};
      |     ^~~~~~~~~~~
/home/rouson/Desktop/opencoarrays/prerequisites/downloads/gcc/libstdc++-v3/src/c++17/memory_resource.cc:
In function ‘std::pmr::memory_resource*
std::pmr::new_delete_resource()’:
/home/rouson/Desktop/opencoarrays/prerequisites/downloads/gcc/libstdc++-v3/src/c++17/memory_resource.cc:154:13:
error: ‘newdel_res’ was not declared in this scope
  154 |   { return &newdel_res.obj; }
      |             ^~~~~~~~~~
/home/rouson/Desktop/opencoarrays/prerequisites/downloads/gcc/libstdc++-v3/src/c++17/memory_resource.cc:
In function ‘std::pmr::memory_resource*
std::pmr::null_memory_resource()’:
/home/rouson/Desktop/opencoarrays/prerequisites/downloads/gcc/libstdc++-v3/src/c++17/memory_resource.cc:158:13:
error: ‘null_res’ was not declared in this scope
  158 |   { return &null_res.obj; }
      |             ^~~~~~~~
/home/rouson/Desktop/opencoarrays/prerequisites/downloads/gcc/libstdc++-v3/src/c++17/memory_resource.cc:
In function ‘std::pmr::memory_resource*
std::pmr::set_default_resource(std::pmr::memory_resource*)’:
/home/rouson/Desktop/opencoarrays/prerequisites/downloads/gcc/libstdc++-v3/src/c++17/memory_resource.cc:165:12:
error: ‘default_res’ was not declared in this scope; did you mean
‘default_delete’?
  165 |     return default_res.obj.exchange(r);
      |            ^~~~~~~~~~~
      |            default_delete
/home/rouson/Desktop/opencoarrays/prerequisites/downloads/gcc/libstdc++-v3/src/c++17/memory_resource.cc:
In function ‘std::pmr::memory_resource*
std::pmr::get_default_resource()’:
/home/rouson/Desktop/opencoarrays/prerequisites/downloads/gcc/libstdc++-v3/src/c++17/memory_resource.cc:170:12:
error: ‘default_res’ was not declared in this scope; did you mean
‘default_delete’?
  170 |   { return default_res.obj.load(); }
      |            ^~~~~~~~~~~
      |            default_delete
make[5]: *** [Makefile:570: memory_resource.lo] Error 1
make[5]: Leaving directory
'/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/x86_64-pc-linux-gnu/libstdc++-v3/src/c++17'
make[4]: *** [Makefile:731: all-recursive] Error 1
make[4]: Leaving directory
'/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/x86_64-pc-linux-gnu/libstdc++-v3/src'
make[3]: *** [Makefile:563: all-recursive] Error 1
make[3]: Leaving directory
'/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/x86_64-pc-linux-gnu/libstdc++-v3'
make[2]: *** [Makefile:488: all] Error 2
make[2]: Leaving directory
'/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/x86_64-pc-linux-gnu/libstdc++-v3'
make[1]: *** [Makefile:12425: all-target-libstdc++-v3] Error 2
make[1]: Leaving directory
'/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master'
make: *** [Makefile:967: all] Error 2
Reply | Threaded
Open this post in threaded view
|

Re: Error building the current master branch

Manfred Schwarb
Am 02.04.20 um 21:57 schrieb Damian Rouson:

> Gfortran developers,
>
> Does anyone have advice regarding the error message below?  This
> happened when I was trying to build the current GCC master branch
> inside a Lubuntu 19.10 virtual machine.  Before seeing this error, I
> saw errors related to cc1 and cc1plus missing, but I was able to
> resolve those by finding them and adding their location to the front
> of my PATH.  Then the build continued for a while before hitting the
> snag below.
>
> My configure and build command were as follows:
>
> ../../downloads/gcc/configure --prefix=/usr/local/Cellar/gnu-10.0.0
> --enable-languages=c,c++,fortran,lto --disable-multilib
> --disable-werror --disable-bootstrap

No idea concerning the actual errors, but nowadays GCC is very picky
about the used compiler, so as rule of thumb using --disable-bootstrap is not
a good idea. Have you tried doing a regular bootstrap build?

Manfred

> make -j 8
>
> The master branch is on commit
> 0cd74f3588928e22c08003c643c91340f555785e.  I see that the two most
> recent commits are related to gfortran so I assume others are able to
> build.
>
>
> Damian
>
>
> make[5]: Entering directory
> '/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/x86_64-pc-linux-gnu/libstdc++-v3/src/c++17'
> /bin/bash ../../libtool --tag CXX --tag disable-shared
> --mode=compile /home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/./gcc/xgcc
> -shared-libgcc -B/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/./gcc
> -nostdinc++ -L/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/x86_64-pc-linux-gnu/libstdc++-v3/src
> -L/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
> -L/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
> -B/usr/local/Cellar/gnu-10.0.0/x86_64-pc-linux-gnu/bin/
> -B/usr/local/Cellar/gnu-10.0.0/x86_64-pc-linux-gnu/lib/ -isystem
> /usr/local/Cellar/gnu-10.0.0/x86_64-pc-linux-gnu/include -isystem
> /usr/local/Cellar/gnu-10.0.0/x86_64-pc-linux-gnu/sys-include
> -I/home/rouson/Desktop/opencoarrays/prerequisites/downloads/gcc/libstdc++-v3/../libgcc
> -I/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu
> -I/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/x86_64-pc-linux-gnu/libstdc++-v3/include
> -I/home/rouson/Desktop/opencoarrays/prerequisites/downloads/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=memory_resource.lo -fimplicit-templates -g -O2
> -D_GNU_SOURCE  -c -o memory_resource.lo
> /home/rouson/Desktop/opencoarrays/prerequisites/downloads/gcc/libstdc++-v3/src/c++17/memory_resource.cc
> libtool: compile:
> /home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/./gcc/xgcc
> -shared-libgcc -B/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/./gcc
> -nostdinc++ -L/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/x86_64-pc-linux-gnu/libstdc++-v3/src
> -L/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
> -L/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
> -B/usr/local/Cellar/gnu-10.0.0/x86_64-pc-linux-gnu/bin/
> -B/usr/local/Cellar/gnu-10.0.0/x86_64-pc-linux-gnu/lib/ -isystem
> /usr/local/Cellar/gnu-10.0.0/x86_64-pc-linux-gnu/include -isystem
> /usr/local/Cellar/gnu-10.0.0/x86_64-pc-linux-gnu/sys-include
> -I/home/rouson/Desktop/opencoarrays/prerequisites/downloads/gcc/libstdc++-v3/../libgcc
> -I/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu
> -I/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/x86_64-pc-linux-gnu/libstdc++-v3/include
> -I/home/rouson/Desktop/opencoarrays/prerequisites/downloads/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=memory_resource.lo
> -fimplicit-templates -g -O2 -D_GNU_SOURCE -c
> /home/rouson/Desktop/opencoarrays/prerequisites/downloads/gcc/libstdc++-v3/src/c++17/memory_resource.cc
>  -fPIC -DPIC -D_GLIBCXX_SHARED -o memory_resource.o
> /home/rouson/Desktop/opencoarrays/prerequisites/downloads/gcc/libstdc++-v3/src/c++17/memory_resource.cc:92:5:
> error: ‘__constinit’ does not name a type
>    92 |     __constinit constant_init<newdel_res_t> newdel_res{};
>       |     ^~~~~~~~~~~
> /home/rouson/Desktop/opencoarrays/prerequisites/downloads/gcc/libstdc++-v3/src/c++17/memory_resource.cc:93:5:
> error: ‘__constinit’ does not name a type
>    93 |     __constinit constant_init<null_res_t> null_res{};
>       |     ^~~~~~~~~~~
> /home/rouson/Desktop/opencoarrays/prerequisites/downloads/gcc/libstdc++-v3/src/c++17/memory_resource.cc:146:5:
> error: ‘__constinit’ does not name a type
>   146 |     __constinit constant_init<atomic_mem_res>
> default_res{&newdel_res.obj};
>       |     ^~~~~~~~~~~
> /home/rouson/Desktop/opencoarrays/prerequisites/downloads/gcc/libstdc++-v3/src/c++17/memory_resource.cc:
> In function ‘std::pmr::memory_resource*
> std::pmr::new_delete_resource()’:
> /home/rouson/Desktop/opencoarrays/prerequisites/downloads/gcc/libstdc++-v3/src/c++17/memory_resource.cc:154:13:
> error: ‘newdel_res’ was not declared in this scope
>   154 |   { return &newdel_res.obj; }
>       |             ^~~~~~~~~~
> /home/rouson/Desktop/opencoarrays/prerequisites/downloads/gcc/libstdc++-v3/src/c++17/memory_resource.cc:
> In function ‘std::pmr::memory_resource*
> std::pmr::null_memory_resource()’:
> /home/rouson/Desktop/opencoarrays/prerequisites/downloads/gcc/libstdc++-v3/src/c++17/memory_resource.cc:158:13:
> error: ‘null_res’ was not declared in this scope
>   158 |   { return &null_res.obj; }
>       |             ^~~~~~~~
> /home/rouson/Desktop/opencoarrays/prerequisites/downloads/gcc/libstdc++-v3/src/c++17/memory_resource.cc:
> In function ‘std::pmr::memory_resource*
> std::pmr::set_default_resource(std::pmr::memory_resource*)’:
> /home/rouson/Desktop/opencoarrays/prerequisites/downloads/gcc/libstdc++-v3/src/c++17/memory_resource.cc:165:12:
> error: ‘default_res’ was not declared in this scope; did you mean
> ‘default_delete’?
>   165 |     return default_res.obj.exchange(r);
>       |            ^~~~~~~~~~~
>       |            default_delete
> /home/rouson/Desktop/opencoarrays/prerequisites/downloads/gcc/libstdc++-v3/src/c++17/memory_resource.cc:
> In function ‘std::pmr::memory_resource*
> std::pmr::get_default_resource()’:
> /home/rouson/Desktop/opencoarrays/prerequisites/downloads/gcc/libstdc++-v3/src/c++17/memory_resource.cc:170:12:
> error: ‘default_res’ was not declared in this scope; did you mean
> ‘default_delete’?
>   170 |   { return default_res.obj.load(); }
>       |            ^~~~~~~~~~~
>       |            default_delete
> make[5]: *** [Makefile:570: memory_resource.lo] Error 1
> make[5]: Leaving directory
> '/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/x86_64-pc-linux-gnu/libstdc++-v3/src/c++17'
> make[4]: *** [Makefile:731: all-recursive] Error 1
> make[4]: Leaving directory
> '/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/x86_64-pc-linux-gnu/libstdc++-v3/src'
> make[3]: *** [Makefile:563: all-recursive] Error 1
> make[3]: Leaving directory
> '/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/x86_64-pc-linux-gnu/libstdc++-v3'
> make[2]: *** [Makefile:488: all] Error 2
> make[2]: Leaving directory
> '/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master/x86_64-pc-linux-gnu/libstdc++-v3'
> make[1]: *** [Makefile:12425: all-target-libstdc++-v3] Error 2
> make[1]: Leaving directory
> '/home/rouson/Desktop/opencoarrays/prerequisites/builds/gcc-master'
> make: *** [Makefile:967: all] Error 2
>