On 01/12/2013 10:53 PM, Andrew Lowe wrote:
> Hi all,
>     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..."
> 
> ************************
> 
>>>> Install ekopath-4.0.12.1_pre20121102 into 
>>>> /var/tmp/portage/dev-lang/ekopath-4.0.12.1_pre20121102/image/ category 
>>>> dev-lang
> Problem running post-install step. Installation may not complete correctly
>  Configuration failed. Make sure you have glibc developement files installed.
> Additional information:
> ====
> In file included from /usr/include/endian.h:61,
>                  from /usr/include/pthread.h:23,
>                  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,
>                  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,
>                  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,
>                  from 
> /var/tmp/portage/dev-lang/ekopath-4.0.12.1_pre20121102/image//opt/ekopath/include/4.0.12.1/stl/string:44,
>                  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,
>                  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,
>                  from 
> /var/tmp/portage/dev-lang/ekopath-4.0.12.1_pre20121102/image//opt/ekopath/include/4.0.12.1/stl/streambuf:40,
>                  from 
> /var/tmp/portage/dev-lang/ekopath-4.0.12.1_pre20121102/image//opt/ekopath/include/4.0.12.1/stl/ostream:45,
>                  from 
> /var/tmp/portage/dev-lang/ekopath-4.0.12.1_pre20121102/image//opt/ekopath/include/4.0.12.1/stl/istream:44,
>                  from 
> /var/tmp/portage/dev-lang/ekopath-4.0.12.1_pre20121102/image//opt/ekopath/include/4.0.12.1/stl/iostream:34,
>                  from 
> /var/tmp/portage/dev-lang/ekopath-4.0.12.1_pre20121102/image//opt/ekopath/test.cpp:3:
> /usr/include/bits/byteswap.h: In function 'unsigned int __bswap_32(unsigned 
> int)':
> /usr/include/bits/byteswap.h:46: error: '__builtin_bswap32' was not declared 
> in this scope
> /usr/include/bits/byteswap.h: In function 'long long unsigned int 
> __bswap_64(long long unsigned int)':
> /usr/include/bits/byteswap.h:110: error: '__builtin_bswap64' was not declared 
> in this scope
> 
> *****************************
> 
>     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.

That's obviously a bug in the ebuild because you should never need to install 
dependencies
on your own -- that's a big part of what the ebuild is supposed to do.

Because gentoo compiles most packages from source, all of the development files 
are
included with the main package (including glibc) unlike most linux distros that 
do
package them separately because many linux users are not going to compile 
anything.

It's true that the gentoo glibc package might have omitted some of the headers 
by
mistake, but I don't think so in this case because I just wrote, compiled, and 
ran
a C program that includes byteswap.h and got no errors.

The bottom line is that the ekopath package is broken -- for reasons I don't 
know,
but the package maintainer should ;)

Reply via email to