* bug#32087: gcc -m32 can't find stubs-32.h
@ 2018-07-07 18:55 David Larsson
2018-07-10 11:21 ` Ricardo Wurmus
0 siblings, 1 reply; 7+ messages in thread
From: David Larsson @ 2018-07-07 18:55 UTC (permalink / raw)
To: 32087
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#32087: gcc -m32 can't find stubs-32.h
2018-07-07 18:55 bug#32087: gcc -m32 can't find stubs-32.h David Larsson
@ 2018-07-10 11:21 ` Ricardo Wurmus
2018-07-10 11:45 ` Clément Lassieur
0 siblings, 1 reply; 7+ messages in thread
From: Ricardo Wurmus @ 2018-07-10 11:21 UTC (permalink / raw)
To: David Larsson; +Cc: 32087
David Larsson <david.larsson@selfhosted.xyz> writes:
> I tried to run gcc to compile a simple c program which fails:
Are you using the “gcc-toolchain” package?
--
Ricardo
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#32087: gcc -m32 can't find stubs-32.h
2018-07-10 11:21 ` Ricardo Wurmus
@ 2018-07-10 11:45 ` Clément Lassieur
2018-07-10 13:40 ` Ricardo Wurmus
0 siblings, 1 reply; 7+ messages in thread
From: Clément Lassieur @ 2018-07-10 11:45 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: David Larsson, 32087
Ricardo Wurmus <rekado@elephly.net> writes:
> David Larsson <david.larsson@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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#32087: gcc -m32 can't find stubs-32.h
2018-07-10 11:45 ` Clément Lassieur
@ 2018-07-10 13:40 ` Ricardo Wurmus
2018-07-10 14:13 ` Clément Lassieur
0 siblings, 1 reply; 7+ messages in thread
From: Ricardo Wurmus @ 2018-07-10 13:40 UTC (permalink / raw)
To: Clément Lassieur; +Cc: David Larsson, 32087
Clément Lassieur <clement@lassieur.org> writes:
> Ricardo Wurmus <rekado@elephly.net> writes:
>
>> David Larsson <david.larsson@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
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#32087: gcc -m32 can't find stubs-32.h
2018-07-10 13:40 ` Ricardo Wurmus
@ 2018-07-10 14:13 ` Clément Lassieur
2018-07-10 17:40 ` Ludovic Courtès
0 siblings, 1 reply; 7+ messages in thread
From: Clément Lassieur @ 2018-07-10 14:13 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: David Larsson, 32087
Ricardo Wurmus <rekado@elephly.net> writes:
> Clément Lassieur <clement@lassieur.org> writes:
>
>> Ricardo Wurmus <rekado@elephly.net> writes:
>>
>>> David Larsson <david.larsson@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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#32087: gcc -m32 can't find stubs-32.h
2018-07-10 14:13 ` Clément Lassieur
@ 2018-07-10 17:40 ` Ludovic Courtès
2018-07-10 19:54 ` Clément Lassieur
0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2018-07-10 17:40 UTC (permalink / raw)
To: Clément Lassieur; +Cc: David Larsson, 32087
Hello,
Clément Lassieur <clement@lassieur.org> skribis:
> Ricardo Wurmus <rekado@elephly.net> writes:
>
>> Clément Lassieur <clement@lassieur.org> writes:
>>
>>> Ricardo Wurmus <rekado@elephly.net> writes:
>>>
>>>> David Larsson <david.larsson@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’.
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#32087: gcc -m32 can't find stubs-32.h
2018-07-10 17:40 ` Ludovic Courtès
@ 2018-07-10 19:54 ` Clément Lassieur
0 siblings, 0 replies; 7+ messages in thread
From: Clément Lassieur @ 2018-07-10 19:54 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: David Larsson, 32087
Ludovic Courtès <ludo@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 :-)
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2018-07-10 19:55 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-07 18:55 bug#32087: gcc -m32 can't find stubs-32.h David Larsson
2018-07-10 11:21 ` Ricardo Wurmus
2018-07-10 11:45 ` Clément Lassieur
2018-07-10 13:40 ` Ricardo Wurmus
2018-07-10 14:13 ` Clément Lassieur
2018-07-10 17:40 ` Ludovic Courtès
2018-07-10 19:54 ` Clément Lassieur
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).