GDC CI

wjoe invalid at example.com
Wed Sep 9 11:19:09 UTC 2020


Small update.

I managed to install gcc-9 and g++-9 from the ubuntu toolchain 
ppa in the Docker container [1] and it's successfully built.
I instructed Cirrus CI to clone the repository like so
> git clone --branch=master-ci --depth=1 
> https://github.com/W-joe/gcc /tmp/cirrus-ci-build
and it reaches the configure stage in the buildci [2] script, 
however it fails like so:

./buildci.sh setup
   % Total    % Received % Xferd  Average Speed   Time    Time     
Time  Current
                                  Dload  Upload   Total   Spent    
Left  Speed

   0     0    0     0    0     0      0      0 --:--:-- --:--:-- 
--:--:--     0
   0     0    0     0    0     0      0      0 --:--:-- --:--:-- 
--:--:--     0
100 2327k  100 2327k    0     0  1961k      0  0:00:01  0:00:01 
--:--:-- 1959k
   % Total    % Received % Xferd  Average Speed   Time    Time     
Time  Current
                                  Dload  Upload   Total   Spent    
Left  Speed

   0     0    0     0    0     0      0      0 --:--:-- --:--:-- 
--:--:--     0
   1 1249k    1 13880    0     0  24139      0  0:00:52 --:--:--  
0:00:52 24097
100 1249k  100 1249k    0     0  1620k      0 --:--:-- --:--:-- 
--:--:-- 1618k
   % Total    % Received % Xferd  Average Speed   Time    Time     
Time  Current
                                  Dload  Upload   Total   Spent    
Left  Speed

   0     0    0     0    0     0      0      0 --:--:-- --:--:-- 
--:--:--     0
  37  654k   37  242k    0     0   263k      0  0:00:02 --:--:--  
0:00:02  263k
100  654k  100  654k    0     0   642k      0  0:00:01  0:00:01 
--:--:--  642k
   % Total    % Received % Xferd  Average Speed   Time    Time     
Time  Current
                                  Dload  Upload   Total   Spent    
Left  Speed

   0     0    0     0    0     0      0      0 --:--:-- --:--:-- 
--:--:--     0
100 1619k  100 1619k    0     0  2221k      0 --:--:-- --:--:-- 
--:--:-- 2221k
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... no
checking for mawk... mawk
checking for libatomic support... yes
checking for libvtv support... yes
checking for libhsail-rt support... yes
checking for libphobos support... yes
checking for x86_64-linux-gnu-gcc... gcc-9
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc-9 accepts -g... yes
checking for gcc-9 option to accept ISO C89... none needed
> checking whether we are using the GNU C++ compiler... no
checking whether g++-9 accepts -g... no
checking whether g++ accepts -static-libstdc++ -static-libgcc... 
no
checking for x86_64-linux-gnu-gnatbind... no
checking for gnatbind... no
checking for x86_64-linux-gnu-gnatmake... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp 
--ignore-initial=16 $$f1 $$f2
checking whether g++-9 supports C++11 features by default... no
checking whether g++-9 supports C++11 features with 
-std=gnu++11... no
checking whether g++-9 supports C++11 features with 
-std=gnu++0x... no
checking whether g++-9 supports C++11 features with -std=c++11... 
no
checking whether g++-9 supports C++11 features with +std=c++11... 
no
checking whether g++-9 supports C++11 features with -h 
std=c++11... no
checking whether g++-9 supports C++11 features with -std=c++0x... 
no
checking whether g++-9 supports C++11 features with +std=c++0x... 
no
checking whether g++-9 supports C++11 features with -h 
std=c++0x... no
> configure: error: *** A compiler with support for C++11 
> language features is required.

It says that it's not using the GNU C++ compiler, why is that ?
Also, shouldn't g++-9 support C++11 ?

I suspect that maybe the compiler wasn't properly installed in 
the container ?

[1] https://github.com/w-joe/gcc/blob/master-ci/Dockerfile
[2] https://github.com/w-joe/gcc/blob/master-ci/buildci.sh


More information about the D.gnu mailing list