From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Nelson H. F. Beebe" Subject: bug#35691: remote configure failure due to bad pathnames for crt*.o Date: Wed, 15 May 2019 08:27:22 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:56250) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQwaW-0003Pp-L9 for bug-guix@gnu.org; Wed, 15 May 2019 12:17:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hQwaV-0001b6-2Y for bug-guix@gnu.org; Wed, 15 May 2019 12:17:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39700) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hQwaU-0001as-VR for bug-guix@gnu.org; Wed, 15 May 2019 12:17:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hQwaU-0002nm-BA for bug-guix@gnu.org; Wed, 15 May 2019 12:17:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Resent-To: 35691@debbugs.gnu.org Resent-Message-ID: <87a7fnu20m.fsf@gnu.org> In-Reply-To: <87a7fnvpio.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= >> ... >> > configure: error: C compiler cannot create executables >> > See `config.log' for more details >> >> What does config.log show? >> >> What does guix package --list-installed return? >> >> Please make sure that only gcc-toolchain in your profile, and not gcc. >> ... The config.log fragment is configure:2095: gcc -I${prefix}/include -I${prefix}/include -L/usr/uumath/lib64 -Wl,-rpath,/usr/uumath/lib64 conftest.c >&5 ld: cannot find crt1.o: No such file or directory ld: cannot find crti.o: No such file or directory collect2: error: ld returned 1 exit status I tried guix remove gcc Same problem. I then did guix remove gcc-toolchain Same problem: there is still a gcc visible: /u/sy/beebe/.guix-profile/bin/gcc. The strace output shows that it tries to load .../libcrt1.o, instead of .../lib/crt1.o. Here is what I find about installed gcc-related packages: $ guix package --list-installed |grep gcc gccgo 4.9.4 out /gnu/store/7108fl31hfj9lb4y76g89sxdb43c1wpc-gccgo-4.9.4 gcc-objc 8.3.0 out /gnu/store/44r4xl10nmix25bv6bv974r280vc232c-gcc-objc-8.3.0 gcc-objc++ 8.3.0 out /gnu/store/wqycqqp4almqcmmsj7gys56lyk9girvq-gcc-objc++-8.3.0 gcc-bootstrap 0 out /gnu/store/fgarfy5392vz5hik1ag5b8ccv0r4cm01-gcc-bootstrap-0 gcc-toolchain 9.1.0 out /gnu/store/aqv6njg05w2yqh8krgrjy0wcbfxb4nn3-gcc-toolchain-9.1.0 Maybe it is related to another problem that I wanted to eventually raise on a guix list. Namely, after installing the new GUIX 1.0 VM, I found that /usr/bin, /usr/sbin, and /sbin do not exist, and /bin contains only /bin/sh. Even after numerous "guix install" runs, /bin continues to have only one entry. This seems bizarre, because it is long-standing practice that shell scripts should set PATH to a limited value to avoid trojan attacks, and things like "/bin/rm foo" should always work. On your GUIX systems, do you have a reasonably populated /bin? Ditto the other three. For reference, here is the system configuration: ;; This is an operating system configuration generated ;; by the graphical installer. (use-modules (gnu)) (use-service-modules desktop networking ssh xorg) (operating-system (locale "en_US.utf8") (timezone "America/Denver") (keyboard-layout (keyboard-layout "us" "altgr-intl")) (bootloader (bootloader-configuration (bootloader grub-bootloader) (target "/dev/sda") (keyboard-layout keyboard-layout))) (file-systems (cons* (file-system (mount-point "/") (device (uuid "a7e44cea-8fee-4431-9658-59644e18c9ec" 'ext4)) (type "ext4")) %base-file-systems)) (host-name "guix10.vm.math.utah.") ;; =========================================================== ;; [02-May-2019] Utah additions ;; After updating this file, run ;; guix system reconfigure /etc/config.scm ;; to propagate the changes into assorted system files. ;; =========================================================== ; (groups (cons* ; (user-group (name "beebe") (id 887)) ; (user-group (name "bowman") (id 888)) ; (user-group (name "sysstaff") (id 810)))) (users (cons* (user-account (name "x") (comment "X") (group "users") (home-directory "/home/x") (supplementary-groups '("wheel" "netdev" "audio" "video"))) (user-account (name "beebe") (comment "Nelson H F Beebe") (uid 887) (group "users") (home-directory "/u/sy/beebe") (supplementary-groups '("wheel" "netdev" "audio" "video"))) (user-account (name "bowman") (comment "Pieter Bowman") (uid 888) (group "users") (home-directory "/u/sy/bowman") (supplementary-groups '("wheel" "netdev" "audio" "video"))) (user-account (name "sysstaff") (comment "System Staff") (uid 810) (group "users") (home-directory "/u/sy/sysstaff") (supplementary-groups '("wheel" "netdev" "audio" "video"))) %base-user-accounts)) (packages (list (specification->package "nss-certs"))) (services (append (list (service xfce-desktop-service-type) (service openssh-service-type) (set-xorg-configuration (xorg-configuration (keyboard-layout keyboard-layout)))) %desktop-services)) ) ------------------------------------------------------------------------------- - Nelson H. F. Beebe Tel: +1 801 581 5254 - - University of Utah FAX: +1 801 581 4148 - - Department of Mathematics, 110 LCB Internet e-mail: beebe@math.utah.edu - - 155 S 1400 E RM 233 beebe@acm.org beebe@computer.org - - Salt Lake City, UT 84112-0090, USA URL: http://www.math.utah.edu/~beebe/ - -------------------------------------------------------------------------------