can no longer compile
by aikempshall from LinuxQuestions.org on (#5E20Z)
I've messed up two of my three VirtualBox guests. All three are running current with the 5.10.14 kernel. They all appear to be OK but on two of them I can't compile anything.
if I try to compile say xdg-dbus-proxy.SlackBuild it fails with
Quote:
The config log contains a bit more information
Quote:
Tried this at the command line
Code:gcc /usr/src/linux-5.10.14/tools/build/feature/test-hello.c -o /tmp/hello
It runs silently returning 0 result code, but doesn't produce any output or create the file /tmp/hello
On the one working machine it creates the output file and generates this output
Quote:
One would have thought that with one working machine and two failing that the problem would be easy to spot. It must be environmental, but what everything appears to be the same.


if I try to compile say xdg-dbus-proxy.SlackBuild it fails with
Quote:
checking for gcc... gcc checking whether the C compiler works... no configure: error: in `/home/packages/tmp/SBo/xdg-dbus-proxy-0.1.2': configure: error: C compiler cannot create executables |
The config log contains a bit more information
Quote:
configure:2465: checking whether the C compiler works configure:2487: gcc -O2 -fPIC conftest.c >&5 configure:2491: $? = 0 configure:2529: result: no configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "xdg-dbus-proxy" | #define PACKAGE_TARNAME "xdg-dbus-proxy" | #define PACKAGE_VERSION "0.1.2" | #define PACKAGE_STRING "xdg-dbus-proxy 0.1.2" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } |
Tried this at the command line
Code:gcc /usr/src/linux-5.10.14/tools/build/feature/test-hello.c -o /tmp/hello
It runs silently returning 0 result code, but doesn't produce any output or create the file /tmp/hello
On the one working machine it creates the output file and generates this output
Quote:
hi |