Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 92708 - games-kids/cubetest-0.9.0 fails to compile
Summary: games-kids/cubetest-0.9.0 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-15 07:51 UTC by Uri Sivan
Modified: 2005-05-16 09:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Uri Sivan 2005-05-15 07:51:41 UTC
emerge fails due to compilation errors.
Two fixes are needed in the source code:
src/cube.cpp should #include <math.h>
src/matrix3d.cpp, line 150 should have fabs instead of abs.
Then it works.


Reproducible: Always
Steps to Reproduce:
1.emerge -va =games-kids/cubetest-0.9.0

Actual Results:  
Compilation failed with these errors:

Good - your configure finished. Start make now

make  all-recursive
make[1]: Entering directory `/var/tmp/portage/cubetest-0.9.0/work/cubetest-0.9.0'
Making all in share
make[2]: Entering directory
`/var/tmp/portage/cubetest-0.9.0/work/cubetest-0.9.0/share'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/var/tmp/portage/cubetest-0.9.0/work/cubetest-0.9.0/share'
Making all in src
make[2]: Entering directory
`/var/tmp/portage/cubetest-0.9.0/work/cubetest-0.9.0/src'
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/qt/3/include
-DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef
-Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
-Wcast-align -Wconversion -Wchar-subscripts -DNDEBUG -DNO_DEBUG -O2
-march=athlon64 -O2 -pipe -fomit-frame-pointer -Wformat-security
-Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common
-fexceptions  -c -o cubedialog.o `test -f 'cubedialog.cpp' || echo
'./'`cubedialog.cpp
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/qt/3/include
-DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef
-Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
-Wcast-align -Wconversion -Wchar-subscripts -DNDEBUG -DNO_DEBUG -O2
-march=athlon64 -O2 -pipe -fomit-frame-pointer -Wformat-security
-Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common
-fexceptions  -c -o cubetest.o `test -f 'cubetest.cpp' || echo './'`cubetest.cpp
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/qt/3/include
-DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef
-Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
-Wcast-align -Wconversion -Wchar-subscripts -DNDEBUG -DNO_DEBUG -O2
-march=athlon64 -O2 -pipe -fomit-frame-pointer -Wformat-security
-Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common
-fexceptions  -c -o matrix3d.o `test -f 'matrix3d.cpp' || echo './'`matrix3d.cpp
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/qt/3/include
-DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef
-Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
-Wcast-align -Wconversion -Wchar-subscripts -DNDEBUG -DNO_DEBUG -O2
-march=athlon64 -O2 -pipe -fomit-frame-pointer -Wformat-security
-Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common
-fexceptions  -c -o cube.o `test -f 'cube.cpp' || echo './'`cube.cpp
matrix3d.cpp: In member function `bool Matrix3D::stepBack()':
matrix3d.cpp:150: error: call of overloaded `abs(double&)' is ambiguous
/usr/include/gentoo-multilib/amd64/stdlib.h:778: note: candidates are: int abs(int)
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/include/g++-v3/cstdlib:153:
note:                 long long int __gnu_cxx::abs(long long int)
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/include/g++-v3/cstdlib:123:
note:                 long int std::abs(long int)
make[2]: *** [matrix3d.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cube.cpp:26: error: `M_PI' was not declared in this scope
cube.cpp:26: error: `sqrt' was not declared in this scope
cube.cpp:26: error: `acos' was not declared in this scope
make[2]: *** [cube.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/cubetest-0.9.0/work/cubetest-0.9.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/cubetest-0.9.0/work/cubetest-0.9.0'
make: *** [all] Error 2

!!! ERROR: games-kids/cubetest-0.9.0 failed.
!!! Function kde_src_compile, Line 166, Exitcode 2
!!! died running emake, kde_src_compile:make
Comment 1 SpanKY gentoo-dev 2005-05-15 11:24:57 UTC
cubetest 0.9.3 now in portage
Comment 2 Pablo Trabajos 2005-05-16 09:15:43 UTC
This works on amd54, not like prior version.