GNU bug report logs - #32087
gcc -m32 can't find stubs-32.h

Previous Next

Package: guix;

Reported by: David Larsson <david.larsson <at> selfhosted.xyz>

Date: Sat, 7 Jul 2018 19:09:01 UTC

Severity: normal

To reply to this bug, email your comments to 32087 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#32087; Package guix. (Sat, 07 Jul 2018 19:09:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to David Larsson <david.larsson <at> selfhosted.xyz>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 07 Jul 2018 19:09:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: David Larsson <david.larsson <at> selfhosted.xyz>
To: bug-guix <at> gnu.org
Subject: gcc -m32 can't find stubs-32.h  
Date: Sat, 7 Jul 2018 20:55:44 +0200 (CEST)
I tried to run gcc to compile a simple c program which fails:

gcc -m32 -o m32test m32test.c
In file included from /home/user1/.guix-profile/include/features.h:388,
                 from /home/user1/.guix-profile/include/stdio.h:27,
                 from m32test.c:2:
/home/user1/.guix-profile/include/gnu/stubs.h:7:11: fatal error: 
gnu/stubs-32.h: No such file or directory
 # include <gnu/stubs-32.h>
           ^~~~~~~~~~~~~~~~
compilation terminated.

with -m64 it compiles correctly. In ~/.guix-profile/include/gnu/ I have 
the files:

libc-version.h
lib-names-64.h
lib-names.h
stubs-64.h
stubs.h

Expected result is that it silently works.

--
Best Regards
David L




Information forwarded to bug-guix <at> gnu.org:
bug#32087; Package guix. (Tue, 10 Jul 2018 11:23:01 GMT) Full text and rfc822 format available.

Message #8 received at 32087 <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: David Larsson <david.larsson <at> selfhosted.xyz>
Cc: 32087 <at> debbugs.gnu.org
Subject: Re: bug#32087: gcc -m32 can't find stubs-32.h
Date: Tue, 10 Jul 2018 13:21:39 +0200
David Larsson <david.larsson <at> selfhosted.xyz> writes:

> I tried to run gcc to compile a simple c program which fails:

Are you using the “gcc-toolchain” package?

-- 
Ricardo





Information forwarded to bug-guix <at> gnu.org:
bug#32087; Package guix. (Tue, 10 Jul 2018 11:46:02 GMT) Full text and rfc822 format available.

Message #11 received at 32087 <at> debbugs.gnu.org (full text, mbox):

From: Clément Lassieur <clement <at> lassieur.org>
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: David Larsson <david.larsson <at> selfhosted.xyz>, 32087 <at> debbugs.gnu.org
Subject: Re: bug#32087: gcc -m32 can't find stubs-32.h
Date: Tue, 10 Jul 2018 13:45:14 +0200
Ricardo Wurmus <rekado <at> elephly.net> writes:

> David Larsson <david.larsson <at> selfhosted.xyz> writes:
>
>> I tried to run gcc to compile a simple c program which fails:
>
> Are you using the “gcc-toolchain” package?

I reproduce that bug with gcc-toolchain.




Information forwarded to bug-guix <at> gnu.org:
bug#32087; Package guix. (Tue, 10 Jul 2018 13:41:01 GMT) Full text and rfc822 format available.

Message #14 received at 32087 <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: Clément Lassieur <clement <at> lassieur.org>
Cc: David Larsson <david.larsson <at> selfhosted.xyz>, 32087 <at> debbugs.gnu.org
Subject: Re: bug#32087: gcc -m32 can't find stubs-32.h
Date: Tue, 10 Jul 2018 15:40:15 +0200
Clément Lassieur <clement <at> lassieur.org> writes:

> Ricardo Wurmus <rekado <at> elephly.net> writes:
>
>> David Larsson <david.larsson <at> selfhosted.xyz> writes:
>>
>>> I tried to run gcc to compile a simple c program which fails:
>>
>> Are you using the “gcc-toolchain” package?
>
> I reproduce that bug with gcc-toolchain.

If you’re trying to compile for i686, should you not be using the i686
variant of gcc-toolchain?  You can build it with

    guix build --system=i686-linux gcc-toolchain

(I don’t really know much about this, but we don’t build GCC with
multilib support.)

-- 
Ricardo





Information forwarded to bug-guix <at> gnu.org:
bug#32087; Package guix. (Tue, 10 Jul 2018 14:14:02 GMT) Full text and rfc822 format available.

Message #17 received at 32087 <at> debbugs.gnu.org (full text, mbox):

From: Clément Lassieur <clement <at> lassieur.org>
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: David Larsson <david.larsson <at> selfhosted.xyz>, 32087 <at> debbugs.gnu.org
Subject: Re: bug#32087: gcc -m32 can't find stubs-32.h
Date: Tue, 10 Jul 2018 16:13:46 +0200
Ricardo Wurmus <rekado <at> elephly.net> writes:

> Clément Lassieur <clement <at> lassieur.org> writes:
>
>> Ricardo Wurmus <rekado <at> elephly.net> writes:
>>
>>> David Larsson <david.larsson <at> selfhosted.xyz> writes:
>>>
>>>> I tried to run gcc to compile a simple c program which fails:
>>>
>>> Are you using the “gcc-toolchain” package?
>>
>> I reproduce that bug with gcc-toolchain.
>
> If you’re trying to compile for i686, should you not be using the i686
> variant of gcc-toolchain?  You can build it with
>
>     guix build --system=i686-linux gcc-toolchain

How would you install that variant?

> (I don’t really know much about this, but we don’t build GCC with
> multilib support.)

This option is in the gcc manual that we package, so I think it should
be supported.




Information forwarded to bug-guix <at> gnu.org:
bug#32087; Package guix. (Tue, 10 Jul 2018 17:41:01 GMT) Full text and rfc822 format available.

Message #20 received at 32087 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Clément Lassieur <clement <at> lassieur.org>
Cc: Ricardo Wurmus <rekado <at> elephly.net>,
 David Larsson <david.larsson <at> selfhosted.xyz>, 32087 <at> debbugs.gnu.org
Subject: Re: bug#32087: gcc -m32 can't find stubs-32.h
Date: Tue, 10 Jul 2018 19:40:24 +0200
Hello,

Clément Lassieur <clement <at> lassieur.org> skribis:

> Ricardo Wurmus <rekado <at> elephly.net> writes:
>
>> Clément Lassieur <clement <at> lassieur.org> writes:
>>
>>> Ricardo Wurmus <rekado <at> elephly.net> writes:
>>>
>>>> David Larsson <david.larsson <at> selfhosted.xyz> writes:
>>>>
>>>>> I tried to run gcc to compile a simple c program which fails:
>>>>
>>>> Are you using the “gcc-toolchain” package?
>>>
>>> I reproduce that bug with gcc-toolchain.
>>
>> If you’re trying to compile for i686, should you not be using the i686
>> variant of gcc-toolchain?  You can build it with
>>
>>     guix build --system=i686-linux gcc-toolchain
>
> How would you install that variant?

Currently you’d have to do:

  guix package -i `guix build -s i686-linux gcc-toolchain`

which is not ideal.

>> (I don’t really know much about this, but we don’t build GCC with
>> multilib support.)
>
> This option is in the gcc manual that we package, so I think it should
> be supported.

Yeah.  The problem is that currently we don’t build glibc with multilib
support.  Something for the next ‘core-updates’ cycle if you feel like
working on it!  :-)

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#32087; Package guix. (Tue, 10 Jul 2018 19:55:02 GMT) Full text and rfc822 format available.

Message #23 received at 32087 <at> debbugs.gnu.org (full text, mbox):

From: Clément Lassieur <clement <at> lassieur.org>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Ricardo Wurmus <rekado <at> elephly.net>,
 David Larsson <david.larsson <at> selfhosted.xyz>, 32087 <at> debbugs.gnu.org
Subject: Re: bug#32087: gcc -m32 can't find stubs-32.h
Date: Tue, 10 Jul 2018 21:54:49 +0200
Ludovic Courtès <ludo <at> gnu.org> writes:

> Yeah.  The problem is that currently we don’t build glibc with multilib
> support.  Something for the next ‘core-updates’ cycle if you feel like
> working on it!  :-)

I can't work on it and I also don't need it at all.  I'm just confirming
what David says :-)




This bug report was last modified 6 years and 337 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.