* Error in build
@ 2011-06-03 18:16 Harry Trinta
2011-06-03 18:28 ` Axel Freyn
0 siblings, 1 reply; 7+ messages in thread
From: Harry Trinta @ 2011-06-03 18:16 UTC (permalink / raw)
To: gcc-help
Guys, help me, please.
I'm having problems to compile GCC.
Look the error shown in the terminal:
/ usr / include / linux / errno.h: 4:23: fatal error: asm / errno.h:
No such file or directory
Compilation terminated.
make [3]: ** [_muldi3.o] Error 1
make [3]: Leaving directory `/ home/harry/gcc/build/i686-pc-linux-gnu/libgcc '
make [2]: ** [all-stage1-target-libgcc] Error 2
make [2]: Leaving directory `/ home / harry / gcc / build '
make [1]: ** [stage1-bubble] Error 2
make [1]: Leaving directory `/ home / harry / gcc / build '
make: ** [all] Error 2
Any suggestion?
Do you want I copy here any other thing?
Harry
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Error in build
2011-06-03 18:16 Error in build Harry Trinta
@ 2011-06-03 18:28 ` Axel Freyn
2011-06-03 18:42 ` Harry Trinta
0 siblings, 1 reply; 7+ messages in thread
From: Axel Freyn @ 2011-06-03 18:28 UTC (permalink / raw)
To: gcc-help
Hi Harry,
On Fri, Jun 03, 2011 at 03:16:21PM -0300, Harry Trinta wrote:
> I'm having problems to compile GCC.
> Look the error shown in the terminal:
>
> / usr / include / linux / errno.h: 4:23: fatal error: asm / errno.h:
> No such file or directory
> Compilation terminated.
> make [3]: ** [_muldi3.o] Error 1
> make [3]: Leaving directory `/ home/harry/gcc/build/i686-pc-linux-gnu/libgcc '
> make [2]: ** [all-stage1-target-libgcc] Error 2
> make [2]: Leaving directory `/ home / harry / gcc / build '
> make [1]: ** [stage1-bubble] Error 2
> make [1]: Leaving directory `/ home / harry / gcc / build '
> make: ** [all] Error 2
>
> Any suggestion?
> Do you want I copy here any other thing?
The error appears when the file /usr/include/linux/errno.h is read. The
compiler claims, that it is unable to find the file "asm/errno.h" (a
file "errno.h" in a directory "asm"), which is needed by
/usr/include/linux/errno.h.
Now, /usr/include/linux/errno.h is NOT installed by gcc, but by your
distribution / operating system / ...
So what we need to know: Which operating system are you using?
E.g. in Linux, it might be that you have to install some additional
packages -- something like "Linux support headers for userspace
development". On Debian, this package is called linux-libc-dev .
Axel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Error in build
2011-06-03 18:28 ` Axel Freyn
@ 2011-06-03 18:42 ` Harry Trinta
2011-06-03 18:51 ` Axel Freyn
2011-06-03 18:57 ` Kai Ruottu
0 siblings, 2 replies; 7+ messages in thread
From: Harry Trinta @ 2011-06-03 18:42 UTC (permalink / raw)
To: gcc-help
I am using Ubuntu 11..
I tried install linux-libc-dev.. look:
/ home / harry / gcc / build # apt-get install linux-libc-dev
Reading package lists ... Ready
Building dependency tree
Reading state information ... Ready
linux-libc-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 128 not upgraded.
I already have it installed
Harry
2011/6/3 Axel Freyn <axel-freyn@gmx.de>:
> Hi Harry,
>
> On Fri, Jun 03, 2011 at 03:16:21PM -0300, Harry Trinta wrote:
>> I'm having problems to compile GCC.
>> Look the error shown in the terminal:
>>
>> / usr / include / linux / errno.h: 4:23: fatal error: asm / errno.h:
>> No such file or directory
>> Compilation terminated.
>> make [3]: ** [_muldi3.o] Error 1
>> make [3]: Leaving directory `/ home/harry/gcc/build/i686-pc-linux-gnu/libgcc '
>> make [2]: ** [all-stage1-target-libgcc] Error 2
>> make [2]: Leaving directory `/ home / harry / gcc / build '
>> make [1]: ** [stage1-bubble] Error 2
>> make [1]: Leaving directory `/ home / harry / gcc / build '
>> make: ** [all] Error 2
>>
>> Any suggestion?
>> Do you want I copy here any other thing?
> The error appears when the file /usr/include/linux/errno.h is read. The
> compiler claims, that it is unable to find the file "asm/errno.h" (a
> file "errno.h" in a directory "asm"), which is needed by
> /usr/include/linux/errno.h.
>
> Now, /usr/include/linux/errno.h is NOT installed by gcc, but by your
> distribution / operating system / ...
>
> So what we need to know: Which operating system are you using?
>
> E.g. in Linux, it might be that you have to install some additional
> packages -- something like "Linux support headers for userspace
> development". On Debian, this package is called linux-libc-dev .
>
> Axel
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Error in build
2011-06-03 18:42 ` Harry Trinta
@ 2011-06-03 18:51 ` Axel Freyn
2011-06-03 18:57 ` Kai Ruottu
1 sibling, 0 replies; 7+ messages in thread
From: Axel Freyn @ 2011-06-03 18:51 UTC (permalink / raw)
To: gcc-help
Hi Harry,
On Fri, Jun 03, 2011 at 03:41:55PM -0300, Harry Trinta wrote:
> I am using Ubuntu 11..
> I tried install linux-libc-dev.. look:
>
> / home / harry / gcc / build # apt-get install linux-libc-dev
> Reading package lists ... Ready
> Building dependency tree
> Reading state information ... Ready
> linux-libc-dev is already the newest version.
> 0 upgraded, 0 newly installed, 0 to remove and 128 not upgraded.
>
> I already have it installed
according to google that's probably a bug in Ubuntu ...
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/778047
you could try installing the package gcc-multilib as probposed on that
page (However, I have no Ubuntu, so I don't know whether that will work
or not...)
Axel
>
> 2011/6/3 Axel Freyn <axel-freyn@gmx.de>:
> > Hi Harry,
> >
> > On Fri, Jun 03, 2011 at 03:16:21PM -0300, Harry Trinta wrote:
> >> I'm having problems to compile GCC.
> >> Look the error shown in the terminal:
> >>
> >> / usr / include / linux / errno.h: 4:23: fatal error: asm / errno.h:
> >> No such file or directory
> >> Compilation terminated.
> >> make [3]: ** [_muldi3.o] Error 1
> >> make [3]: Leaving directory `/ home/harry/gcc/build/i686-pc-linux-gnu/libgcc '
> >> make [2]: ** [all-stage1-target-libgcc] Error 2
> >> make [2]: Leaving directory `/ home / harry / gcc / build '
> >> make [1]: ** [stage1-bubble] Error 2
> >> make [1]: Leaving directory `/ home / harry / gcc / build '
> >> make: ** [all] Error 2
> >>
> >> Any suggestion?
> >> Do you want I copy here any other thing?
> > The error appears when the file /usr/include/linux/errno.h is read. The
> > compiler claims, that it is unable to find the file "asm/errno.h" (a
> > file "errno.h" in a directory "asm"), which is needed by
> > /usr/include/linux/errno.h.
> >
> > Now, /usr/include/linux/errno.h is NOT installed by gcc, but by your
> > distribution / operating system / ...
> >
> > So what we need to know: Which operating system are you using?
> >
> > E.g. in Linux, it might be that you have to install some additional
> > packages -- something like "Linux support headers for userspace
> > development". On Debian, this package is called linux-libc-dev .
> >
> > Axel
> >
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Error in build
2011-06-03 18:42 ` Harry Trinta
2011-06-03 18:51 ` Axel Freyn
@ 2011-06-03 18:57 ` Kai Ruottu
2011-06-03 19:29 ` Kai Ruottu
1 sibling, 1 reply; 7+ messages in thread
From: Kai Ruottu @ 2011-06-03 18:57 UTC (permalink / raw)
To: gcc-help
3.6.2011 21:41, Harry Trinta kirjoitti:
> I am using Ubuntu 11..
> I tried install linux-libc-dev.. look:
>
> / home / harry / gcc / build # apt-get install linux-libc-dev
> Reading package lists ... Ready
> Building dependency tree
> Reading state information ... Ready
> linux-libc-dev is already the newest version.
> 0 upgraded, 0 newly installed, 0 to remove and 128 not upgraded.
>
> I already have it installed
>
>>> /usr/include/linux/errno.h: 4:23: fatal error: asm/errno.h:
>>> No such file or directory
The Ubuntu 11.04 kernel headers ('include/asm' and 'include/linux')
seem to have some weird arrangement. What I found for the i386
release as packages was:
linux-headers-2.6.38-8-generic-pae_2.6.38-8.42_i386.deb
linux-headers-2.6.38-8-generic_2.6.38-8.42_i386.deb
linux-headers-2.6.38-8-virtual_2.6.38-8.42_i386.deb
linux-headers-2.6.38-8_2.6.38-8.42_all.deb
linux-libc-dev_2.6.38-8.42_i386.deb
I needed these for a crosscompiler to Ubuntu 11.04... In some of
these were the 'include/asm' headers...
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Error in build
2011-06-03 18:57 ` Kai Ruottu
@ 2011-06-03 19:29 ` Kai Ruottu
2011-06-03 21:05 ` Harry Trinta
0 siblings, 1 reply; 7+ messages in thread
From: Kai Ruottu @ 2011-06-03 19:29 UTC (permalink / raw)
To: gcc-help
3.6.2011 21:56, Kai Ruottu kirjoitti:
> 3.6.2011 21:41, Harry Trinta kirjoitti:
>
>>>> /usr/include/linux/errno.h: 4:23: fatal error: asm/errno.h:
>>>> No such file or directory
>
> The Ubuntu 11.04 kernel headers ('include/asm' and 'include/linux')
> seem to have some weird arrangement. What I found for the i386
> release as packages was:
>
> linux-headers-2.6.38-8-generic-pae_2.6.38-8.42_i386.deb
> linux-headers-2.6.38-8-generic_2.6.38-8.42_i386.deb
> linux-headers-2.6.38-8-virtual_2.6.38-8.42_i386.deb
> linux-headers-2.6.38-8_2.6.38-8.42_all.deb
> linux-libc-dev_2.6.38-8.42_i386.deb
>
> I needed these for a crosscompiler to Ubuntu 11.04... In some of
> these were the 'include/asm' headers...
The 'linux-libc-dev_2.6.38-8.42_i386.deb' had them but
unpacking it put them to :
usr/include/i386-linux-gnu/asm
So a symlink:
asm -> i386-linux-gnu/asm
could be the workaround (in the i386 case)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Error in build
2011-06-03 19:29 ` Kai Ruottu
@ 2011-06-03 21:05 ` Harry Trinta
0 siblings, 0 replies; 7+ messages in thread
From: Harry Trinta @ 2011-06-03 21:05 UTC (permalink / raw)
To: gcc-help
Problem solved.
I installed gcc-multilib and it worked.
Thank you all for your help.
Harry
2011/6/3 Kai Ruottu <kai.ruottu@wippies.com>:
> 3.6.2011 21:56, Kai Ruottu kirjoitti:
>>
>> 3.6.2011 21:41, Harry Trinta kirjoitti:
>>
>>>>> /usr/include/linux/errno.h: 4:23: fatal error: asm/errno.h:
>>>>> No such file or directory
>>
>> The Ubuntu 11.04 kernel headers ('include/asm' and 'include/linux')
>> seem to have some weird arrangement. What I found for the i386
>> release as packages was:
>>
>> linux-headers-2.6.38-8-generic-pae_2.6.38-8.42_i386.deb
>> linux-headers-2.6.38-8-generic_2.6.38-8.42_i386.deb
>> linux-headers-2.6.38-8-virtual_2.6.38-8.42_i386.deb
>> linux-headers-2.6.38-8_2.6.38-8.42_all.deb
>> linux-libc-dev_2.6.38-8.42_i386.deb
>>
>> I needed these for a crosscompiler to Ubuntu 11.04... In some of
>> these were the 'include/asm' headers...
>
> The 'linux-libc-dev_2.6.38-8.42_i386.deb' had them but
> unpacking it put them to :
>
> usr/include/i386-linux-gnu/asm
>
> So a symlink:
>
> asm -> i386-linux-gnu/asm
>
> could be the workaround (in the i386 case)
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-06-03 21:05 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-03 18:16 Error in build Harry Trinta
2011-06-03 18:28 ` Axel Freyn
2011-06-03 18:42 ` Harry Trinta
2011-06-03 18:51 ` Axel Freyn
2011-06-03 18:57 ` Kai Ruottu
2011-06-03 19:29 ` Kai Ruottu
2011-06-03 21:05 ` Harry Trinta
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).