Article 5E20Z can no longer compile

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:
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
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.latest?d=yIl2AUoC8zA latest?i=EFQI_S7JzkI:3q9l49aFg-s:F7zBnMy latest?i=EFQI_S7JzkI:3q9l49aFg-s:V_sGLiP latest?d=qj6IDK7rITs latest?i=EFQI_S7JzkI:3q9l49aFg-s:gIN9vFwEFQI_S7JzkI
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments