https://open-source-silicon.dev logo
Title
k

Ke-Haur Taur

09/08/2021, 2:32 PM
Hello all, @User and I are setting up the CI infrastructure using the GCP runner mentioned in the antmicro blog post I wanted to file an issue for https://github.com/antmicro/runner but I did not see an issues tab. Probably because it is not enabled for this forked repo? Thanks! The issue I wanted to file is: When I did this per the instructions in https://github.com/antmicro/runner :
# Prepare a disk for GCP
./make_gcp_image.sh
This is the log I am getting:
docs/Makefile.am:15: warning: '%'-style pattern rules are a GNU make extension
docs/Makefile.am:18: warning: '%'-style pattern rules are a GNU make extension
docs/Makefile.am:21: warning: '%'-style pattern rules are a GNU make extension
netboot/Makefile.am:2: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
netboot/Makefile.am:13: warning: compiling 'config.c' with per-target flags requires 'AM_PROG_CC_C_O' in '<http://configure.ac|configure.ac>'
stage2/Makefile.am:14: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
+ exit 0
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for x86_64-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-pc-none
checking whether to enable maintainer-specific portions of Makefiles... no
checking for x86_64-gcc... no
checking for gcc... gcc
checking for x86_64-gcc... gcc
checking whether the C compiler works... no
configure: error: in `/shared/gcp-runner/github-actions-runner-scalerunner/grub-legacy/build':
configure: error: C compiler cannot create executables
Diving deeper into the 
config.log
 ... (
buildroot/grub-legacy/build/config.log
)
configure:2304: checking for a BSD-compatible install
configure:2372: result: /bin/install -c
configure:2383: checking whether build environment is sane
configure:2438: result: yes
configure:2497: checking for x86_64-strip
configure:2527: result: no
configure:2537: checking for strip
configure:2553: found /bin/strip
configure:2564: result: strip
configure:2589: checking for a thread-safe mkdir -p
configure:2628: result: /bin/mkdir -p
configure:2635: checking for gawk
configure:2651: found /bin/gawk
configure:2662: result: gawk
configure:2673: checking whether make sets $(MAKE)
configure:2695: result: yes
configure:2724: checking whether make supports nested variables
configure:2741: result: yes
configure:2830: checking build system type
configure:2844: result: x86_64-unknown-linux-gnu
configure:2864: checking host system type
configure:2877: result: x86_64-pc-none
configure:2912: checking whether to enable maintainer-specific portions of Makefiles
configure:2921: result: no
configure:2996: checking for x86_64-gcc
configure:3026: result: no
configure:3036: checking for gcc
configure:3052: found /bin/gcc
configure:3063: result: gcc
configure:3093: checking for x86_64-gcc
configure:3120: result: gcc
configure:3389: checking for C compiler version
configure:3398: gcc --version >&5   
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)

Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=<http://bugzilla.redhat.co>    m/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atex    it --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages    =c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD    /gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux    /cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux

Thread model: posix  
gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC)
configure:3409: $? = 0
configure:3398: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3409: $? = 4
configure:3398: gcc -qversion >&5    
gcc: error: unrecognized command line option '-qversion' 
gcc: fatal error: no input files
compilation terminated.
configure:3409: $? = 4
configure:3429: checking whether the C compiler works
configure:3451: gcc -m32  -static -fno-strict-aliasing -fno-stack-protector conftest.c >&5
/bin/ld: cannot find -lc 
collect2: error: ld returned 1 exit status
configure:3455: $? = 1
configure:3493: result: no
My C/C++ configurations
[C]
[khtaur@instance-1 github-actions-runner-scalerunner]$ echo | gcc -x c -E -Wp,-v - >/dev/null
ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include-fixed"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../x86_64-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include
 /usr/local/include
 /usr/include
End of search list.

[C++]
[khtaur@instance-1 github-actions-runner-scalerunner]$ echo | gcc -x c++ -E -Wp,-v - >/dev/null
ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include-fixed"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../x86_64-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5
 /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/x86_64-redhat-linux
 /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/backward
 /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include
 /usr/local/include
 /usr/include
End of search list.
And I have installed the static libraries for linking as shown in https://stackoverflow.com/q/62757229/10021751
[khtaur@instance-1 github-actions-runner-scalerunner]$ sudo find /usr/ -name "libc.a"
/usr/lib64/libc.a