1 |
On 01/12/2013 10:53 PM, Andrew Lowe wrote: |
2 |
> Hi all, |
3 |
> I've got the ekopath compiler installed on my machine and Portage wants to update it, but fails. Before I go to the trouble of filling out a full bug report, does anyone have any ideas as to the problem? I think it is in the 5th line, "Configuration failed..." |
4 |
> |
5 |
> ************************ |
6 |
> |
7 |
>>>> Install ekopath-4.0.12.1_pre20121102 into /var/tmp/portage/dev-lang/ekopath-4.0.12.1_pre20121102/image/ category dev-lang |
8 |
> Problem running post-install step. Installation may not complete correctly |
9 |
> Configuration failed. Make sure you have glibc developement files installed. |
10 |
> Additional information: |
11 |
> ==== |
12 |
> In file included from /usr/include/endian.h:61, |
13 |
> from /usr/include/pthread.h:23, |
14 |
> from /var/tmp/portage/dev-lang/ekopath-4.0.12.1_pre20121102/image//opt/ekopath/include/4.0.12.1/stl/rw/_mutex-pthread.h:52, |
15 |
> from /var/tmp/portage/dev-lang/ekopath-4.0.12.1_pre20121102/image//opt/ekopath/include/4.0.12.1/stl/rw/_mutex.h:71, |
16 |
> from /var/tmp/portage/dev-lang/ekopath-4.0.12.1_pre20121102/image//opt/ekopath/include/4.0.12.1/stl/rw/_strref.h:41, |
17 |
> from /var/tmp/portage/dev-lang/ekopath-4.0.12.1_pre20121102/image//opt/ekopath/include/4.0.12.1/stl/string:44, |
18 |
> from /var/tmp/portage/dev-lang/ekopath-4.0.12.1_pre20121102/image//opt/ekopath/include/4.0.12.1/stl/loc/_locale.h:37, |
19 |
> from /var/tmp/portage/dev-lang/ekopath-4.0.12.1_pre20121102/image//opt/ekopath/include/4.0.12.1/stl/rw/_iosbase.h:37, |
20 |
> from /var/tmp/portage/dev-lang/ekopath-4.0.12.1_pre20121102/image//opt/ekopath/include/4.0.12.1/stl/streambuf:40, |
21 |
> from /var/tmp/portage/dev-lang/ekopath-4.0.12.1_pre20121102/image//opt/ekopath/include/4.0.12.1/stl/ostream:45, |
22 |
> from /var/tmp/portage/dev-lang/ekopath-4.0.12.1_pre20121102/image//opt/ekopath/include/4.0.12.1/stl/istream:44, |
23 |
> from /var/tmp/portage/dev-lang/ekopath-4.0.12.1_pre20121102/image//opt/ekopath/include/4.0.12.1/stl/iostream:34, |
24 |
> from /var/tmp/portage/dev-lang/ekopath-4.0.12.1_pre20121102/image//opt/ekopath/test.cpp:3: |
25 |
> /usr/include/bits/byteswap.h: In function 'unsigned int __bswap_32(unsigned int)': |
26 |
> /usr/include/bits/byteswap.h:46: error: '__builtin_bswap32' was not declared in this scope |
27 |
> /usr/include/bits/byteswap.h: In function 'long long unsigned int __bswap_64(long long unsigned int)': |
28 |
> /usr/include/bits/byteswap.h:110: error: '__builtin_bswap64' was not declared in this scope |
29 |
> |
30 |
> ***************************** |
31 |
> |
32 |
> From all of the above, I think the important part is that I need to install some "glibc developement files". A google search doesn't point me in the direction of what these might be. According to "eix glibc", I have debug turned OFF - is this the problem? Or is this for debugging glibc and not my code? I think if I can work out the development files stuff, the bswap64 problem will fix itself. |
33 |
|
34 |
That's obviously a bug in the ebuild because you should never need to install dependencies |
35 |
on your own -- that's a big part of what the ebuild is supposed to do. |
36 |
|
37 |
Because gentoo compiles most packages from source, all of the development files are |
38 |
included with the main package (including glibc) unlike most linux distros that do |
39 |
package them separately because many linux users are not going to compile anything. |
40 |
|
41 |
It's true that the gentoo glibc package might have omitted some of the headers by |
42 |
mistake, but I don't think so in this case because I just wrote, compiled, and ran |
43 |
a C program that includes byteswap.h and got no errors. |
44 |
|
45 |
The bottom line is that the ekopath package is broken -- for reasons I don't know, |
46 |
but the package maintainer should ;) |