SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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;
| }
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.
When glibc-solibs was renamed, I made a mistake. Instead of upgrading glibc-solibs with aaa_glibc-solibs-2.32-x86_64-2 package, I upgraded glibc package, then I can't compile. After fixing that, it works again.
Did you upgrade carefully your packages when glibc-solibs was renamed?
I've compared the packages on all three machines and they all appear to be the same - names at least. I've got multilib installed wondering whether that's getting in the way somehow. In the area of interest I've got these installed
Quote:
-rw-r--r-- 1 root root 2132 Feb 11 11:29 aaa_base-14.2-x86_64-6
-rw-r--r-- 1 root root 15123 Feb 11 11:29 aaa_glibc-solibs-2.32_multilib-x86_64-2alien
-rw-r--r-- 1 root root 3319 Feb 11 11:30 aaa_libraries-15.0-x86_64-1
-rw-r--r-- 1 root root 14409 Feb 11 11:30 aaa_terminfo-6.2_20201219-x86_64-3
-rw-r--r-- 1 root root 51223 Feb 11 11:30 gcc-10.2.0_multilib-x86_64-3alien
-rw-r--r-- 1 root root 1262 Feb 11 11:30 gcc-brig-10.2.0_multilib-x86_64-3alien
-rw-r--r-- 1 root root 45811 Feb 11 11:30 gcc-g++-10.2.0_multilib-x86_64-3alien
-rw-r--r-- 1 root root 55113 Feb 11 11:30 gcc-gdc-10.2.0_multilib-x86_64-3alien
-rw-r--r-- 1 root root 2526 Feb 11 11:30 gcc-gfortran-10.2.0_multilib-x86_64-3alien
-rw-r--r-- 1 root root 267336 Feb 11 11:30 gcc-gnat-10.2.0_multilib-x86_64-3alien
-rw-r--r-- 1 root root 21668 Feb 11 11:30 gcc-go-10.2.0_multilib-x86_64-3alien
-rw-r--r-- 1 root root 769 Feb 11 11:30 gccmakedep-1.0.3-noarch-3
-rw-r--r-- 1 root root 2341 Feb 11 11:30 gcc-objc-10.2.0_multilib-x86_64-3alien
-rw-r--r-- 1 root root 33487 Feb 11 11:30 glibc-2.32_multilib-x86_64-2alien
-rw-r--r-- 1 root root 519239 Feb 11 11:31 glibc-i18n-2.32_multilib-x86_64-2alien
-rw-r--r-- 1 root root 1236 Feb 11 11:31 glibc-profile-2.32_multilib-x86_64-2alien
-rw-r--r-- 1 root root 71542 Feb 11 11:31 glibc-zoneinfo-2021a-noarch-1
I've got an untainted machine which I can use to see if I get the same problem.
Tried piecemeal replacement of the aaa, glibc and gcc series. Also uninstalled the various alienbob packages and reinstalled the equivalent from slackware64. Still couldn't get gcc to work.
As I'd spent several hours on this decided to do a reinstall. The system was already up to date before i did the reinstall, so I just deleted all incoming .new config files. Didn't have to make a new initrd.gz or grub2 config file.
Rebooted the system. Everything working including gcc.
It was only one machine effected. I'll mark this as solved with cause unknown, but it was probably due to something I'd done,
You have a directory named gcc somewhere in one of the directories in your PATH,
before the one that contains the gcc binary.
This is a bug in a module in the GNU gnulib library, that GNU make uses to locate content on the PATH.
See https://savannah.gnu.org/bugs/?57962
Cannot confirm, if change "CC = gcc" to "CC = /usr/bin/gcc" in Makefile.Linux, building will go smoothly. However the "gcc" directory located in /usr/libexec which cannot be excluded from PATH.
Cannot confirm, if change "CC = gcc" to "CC = /usr/bin/gcc" in Makefile.Linux, building will go smoothly. However the "gcc" directory located in /usr/libexec which cannot be excluded from PATH.
I don't have any /usr/libexec in my PATH ( both user & root )
And I also don't have any problem to compile
OK, removing /usr/libexec located in ~/.bashrc.
I don't know when it was added to PATH, this slackware was installed 10 years ago, and upgraded from 14.0 to current some years later.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.