[devel] gcc4.8 bad, bad

Dmitry V. Levin ldv на altlinux.org
Чт Фев 27 06:26:24 MSK 2014


On Wed, Feb 26, 2014 at 11:09:00AM +0700, REAL wrote:
> Package: coin3d-3.1.3-alt8
> Status: Sisyphus/i586 test rebuild failed
> Cannot build this package for 1 week(s).
> Please investigate.
> Excerpt from build log:
> 
> [...]
>  i586-alt-linux-g++ -DHAVE_CONFIG_H -I../../include -I../../include 
> -I../../src -I../../src -D_REENTRANT -DCOIN_DEBUG=1 -DCOIN_INTERNAL 
> -pipe -Wall -g -O2 -march=i586 -mtune=generic -I/usr/include/directfb 
> -fpermissive -W -Wall -Wno-unused -Wno-multichar -Woverloaded-virtual 
> -fno-builtin -finline-functions -Wreturn-type -Wchar-subscripts 
> -Wparentheses -c freetype.cpp  -fPIC -DPIC -o .libs/freetype.o
> In file included from ../../src/base/dict.h:31:0,
>                  from freetype.cpp:142:
> /usr/include/c++/4.8/cstdlib: In function 'long long int std::abs(long 
> long int)':
> /usr/include/c++/4.8/cstdlib:174:20: error: declaration of C function 
> 'long long int std::abs(long long int)' conflicts with
>    abs(long long __x) { return __builtin_llabs (__x); }
>                     ^
> /usr/include/c++/4.8/cstdlib:166:3: error: previous declaration 'long 
> int std::abs(long int)' here
>    abs(long __i) { return __builtin_labs(__i); }
>    ^
> [...]

У вас там код, эквивалентный

extern "C" {
#include <cstdlib>
}

- он и не компилируется.


-- 
ldv
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя     : отсутствует
Тип     : application/pgp-signature
Размер  : 198 байтов
Описание: отсутствует
Url     : <http://lists.altlinux.org/pipermail/devel/attachments/20140227/2d1ed3c9/attachment.bin>


Подробная информация о списке рассылки Devel