Bug 190232 - cad/kicad-devel compilation error in math_util.cpp
Summary: cad/kicad-devel compilation error in math_util.cpp
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Michael Reifenberger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-26 03:00 UTC by russo
Modified: 2015-04-04 18:52 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description russo 2014-05-26 03:00:00 UTC
With recent port update to kicad-devel using revision r4886, compilation fails with:

cd /usr/ports/cad/kicad-devel/work/kicad-r4886/common && /usr/bin/c++   -DHAVE_STDINT_H -DKICAD_KEEPCASE -DUSE_OPENMP -DWX_COMPATIBILITY -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_THREAD_SAFE -D__WXGTK__ -I/usr/local/include -Wall -O2 -pipe -fno-strict-aliasing -fopenmp -fPIC -Wno-strict-aliasing -pthread -O2 -DNDEBUG -I/usr/ports/cad/kicad-devel/work/kicad-r4886/include -I/usr/ports/cad/kicad-devel/work/kicad-r4886/common/. -isystem /usr/local/lib/wx/include/gtk2-unicode-release-2.8 -isystem /usr/local/include/wx-2.8 -I/usr/ports/cad/kicad-devel/work/kicad-r4886/common/./dialogs -I/usr/ports/cad/kicad-devel/work/kicad-r4886/common/./dialog_about -I/usr/local/include/cairo -I/usr/local/include -I/usr/ports/cad/kicad-devel/work/kicad-r4886/common/../3d-viewer -I/usr/ports/cad/kicad-devel/work/kicad-r4886/common/../pcbnew -I/usr/ports/cad/kicad-devel/work/kicad-r4886/common/../polygon -I/usr/ports/cad/kicad-devel/work/kicad-r4886/boost_root/include -I/usr/ports/cad/kicad-devel/work/kicad
 -r4886 -o CMakeFiles/common.dir/math/math_util.cpp.o -c /usr/ports/cad/kicad-devel/work/kicad-r4886/common/math/math_util.cpp
/usr/ports/cad/kicad-devel/work/kicad-r4886/common/math/math_util.cpp: In function 'T rescale(T, T, T) [with T = int64_t]':
/usr/ports/cad/kicad-devel/work/kicad-r4886/common/math/math_util.cpp:49: error: call of overloaded 'abs(int64_t&)' is ambiguous
/usr/include/c++/4.2/cmath:89: note: candidates are: double std::abs(double)
/usr/include/c++/4.2/cmath:93: note:                 float std::abs(float)
/usr/include/c++/4.2/cmath:97: note:                 long double std::abs(long double)
/usr/include/stdlib.h:83: note:                 int abs(int)
/usr/include/c++/4.2/cstdlib:143: note:                 long int std::abs(long int)
/usr/ports/cad/kicad-devel/work/kicad-r4886/common/math/math_util.cpp:50: error: call of overloaded 'abs(int64_t&)' is ambiguous
/usr/include/c++/4.2/cmath:89: note: candidates are: double std::abs(double)
/usr/include/c++/4.2/cmath:93: note:                 float std::abs(float)
/usr/include/c++/4.2/cmath:97: note:                 long double std::abs(long double)
/usr/include/stdlib.h:83: note:                 int abs(int)
/usr/include/c++/4.2/cstdlib:143: note:                 long int std::abs(long int)
/usr/ports/cad/kicad-devel/work/kicad-r4886/common/math/math_util.cpp:51: error: call of overloaded 'abs(int64_t&)' is ambiguous
/usr/include/c++/4.2/cmath:89: note: candidates are: double std::abs(double)
/usr/include/c++/4.2/cmath:93: note:                 float std::abs(float)
/usr/include/c++/4.2/cmath:97: note:                 long double std::abs(long double)
/usr/include/stdlib.h:83: note:                 int abs(int)
/usr/include/c++/4.2/cstdlib:143: note:                 long int std::abs(long int)

How-To-Repeat: svn update ports tree.  Build kicad-devel on FreeBSD-9.2 STABLE (running svn revision r261812 here).
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-05-26 03:00:07 UTC
Responsible Changed
From-To: freebsd-ports-bugs->mr

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Michael Reifenberger freebsd_committer freebsd_triage 2015-04-04 18:52:15 UTC
Should be fixed in the meantime by my last updates.