Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Oct 2017 18:41:11 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 222990] devel/codeblocks need to move math.h above local header files on base/head r324443
Message-ID:  <bug-222990-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222990

            Bug ID: 222990
           Summary: devel/codeblocks need to move math.h above local
                    header files on base/head r324443
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: Trond.Endrestol@ximalas.info
                CC: lbartoletti@tuxfamily.org
             Flags: maintainer-feedback?(lbartoletti@tuxfamily.org)
                CC: lbartoletti@tuxfamily.org

Created attachment 187147
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D187147&action=
=3Dedit
Patch for src/sdk/scripting/squirrel/sqvm.cpp

=3D=3D=3D>  License GPLv3 LGPL3 accepted by the user
=3D=3D=3D>   codeblocks-16.01_8 depends on file: /usr/local/sbin/pkg - found
=3D=3D=3D> Fetching all distfiles required by codeblocks-16.01_8 for buildi=
ng
=3D=3D=3D>  Extracting for codeblocks-16.01_8
=3D> SHA256 Checksum OK for codeblocks_16.01.tar.gz.
=3D=3D=3D>  Patching for codeblocks-16.01_8
=3D=3D=3D>  Applying FreeBSD patches for codeblocks-16.01_8
=3D=3D=3D>   codeblocks-16.01_8 depends on executable: zip - found
=3D=3D=3D>   codeblocks-16.01_8 depends on executable: autoconf-2.69 - found
=3D=3D=3D>   codeblocks-16.01_8 depends on executable: autoheader-2.69 - fo=
und
=3D=3D=3D>   codeblocks-16.01_8 depends on executable: autoreconf-2.69 - fo=
und
=3D=3D=3D>   codeblocks-16.01_8 depends on executable: aclocal-1.15 - found
=3D=3D=3D>   codeblocks-16.01_8 depends on executable: automake-1.15 - found
=3D=3D=3D>   codeblocks-16.01_8 depends on executable: libtoolize - found
=3D=3D=3D>   codeblocks-16.01_8 depends on executable: update-desktop-datab=
ase -
found
=3D=3D=3D>   codeblocks-16.01_8 depends on package: pkgconf>=3D1.3.0_1 - fo=
und
=3D=3D=3D>   codeblocks-16.01_8 depends on executable: update-mime-database=
 - found
=3D=3D=3D>   codeblocks-16.01_8 depends on executable: gtk-update-icon-cach=
e - found
=3D=3D=3D>   codeblocks-16.01_8 depends on file: /usr/local/libdata/pkgconf=
ig/x11.pc
- found
=3D=3D=3D>   codeblocks-16.01_8 depends on shared library: libboost_system.=
so - found
(/usr/local/lib/libboost_system.so)
=3D=3D=3D>   codeblocks-16.01_8 depends on shared library: libfontconfig.so=
 - found
(/usr/local/lib/libfontconfig.so)
=3D=3D=3D>   codeblocks-16.01_8 depends on shared library: libfreetype.so -=
 found
(/usr/local/lib/libfreetype.so)
=3D=3D=3D>   codeblocks-16.01_8 depends on shared library: libhunspell-1.6.=
so - found
(/usr/local/lib/libhunspell-1.6.so)
=3D=3D=3D>   codeblocks-16.01_8 depends on shared library: libfam.so.0 - fo=
und
(/usr/local/lib/libfam.so.0)
=3D=3D=3D>   codeblocks-16.01_8 depends on shared library: libintl.so - fou=
nd
(/usr/local/lib/libintl.so)
=3D=3D=3D>   codeblocks-16.01_8 depends on shared library: libatk-1.0.so - =
found
(/usr/local/lib/libatk-1.0.so)
=3D=3D=3D>   codeblocks-16.01_8 depends on shared library: libcairo.so - fo=
und
(/usr/local/lib/libcairo.so)
=3D=3D=3D>   codeblocks-16.01_8 depends on shared library: libgdk_pixbuf-2.=
0.so -
found (/usr/local/lib/libgdk_pixbuf-2.0.so)
=3D=3D=3D>   codeblocks-16.01_8 depends on shared library: libglib-2.0.so -=
 found
(/usr/local/lib/libglib-2.0.so)
=3D=3D=3D>   codeblocks-16.01_8 depends on shared library: libintl.so - fou=
nd
(/usr/local/lib/libintl.so)
=3D=3D=3D>   codeblocks-16.01_8 depends on shared library: libgtk-x11-2.0.s=
o - found
(/usr/local/lib/libgtk-x11-2.0.so)
=3D=3D=3D>   codeblocks-16.01_8 depends on shared library: libpango-1.0.so =
- found
(/usr/local/lib/libpango-1.0.so)
=3D=3D=3D>   codeblocks-16.01_8 depends on shared library: libwx_baseu-2.8.=
so - found
(/usr/local/lib/libwx_baseu-2.8.so)
=3D=3D=3D>  Configuring for codeblocks-16.01_8

...

=3D=3D=3D>  Building for codeblocks-16.01_8
--- all-recursive ---
Making all in src

...

--- sqvm.lo ---
depbase=3D`echo sqvm.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; /bin/sh
../../../../libtool  --tag=3DCXX    --mode=3Dcompile c++ -DHAVE_CONFIG_H  -=
I.
-I../../../../src/include  -I../../../../src/include/scripting/include=20
-I../../../../src/include/scripting/squirrel -isystem /usr/local/include -a=
nsi
-DTIXML_USE_STL   -O2 -ffast-math -DCB_AUTOCONF -O2 -pipe
-fno-omit-frame-pointer  -fstack-protector -isystem /usr/local/include
-fno-strict-aliasing  -Wno-undefined-bool-conversion -isystem
/usr/local/include -std=3Dc++11  -fPIC -DPIC -fexceptions -MT sqvm.lo -MD -=
MP -MF
$depbase.Tpo -c -o sqvm.lo sqvm.cpp && mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../../../../src/include
-I../../../../src/include/scripting/include
-I../../../../src/include/scripting/squirrel -isystem /usr/local/include -a=
nsi
-DTIXML_USE_STL -O2 -ffast-math -DCB_AUTOCONF -O2 -pipe -fno-omit-frame-poi=
nter
-fstack-protector -isystem /usr/local/include -fno-strict-aliasing
-Wno-undefined-bool-conversion -isystem /usr/local/include -std=3Dc++11 -fP=
IC
-DPIC -fexceptions -MT sqvm.lo -MD -MP -MF .deps/sqvm.Tpo -c sqvm.cpp  -fPIC
-DPIC -o .libs/sqvm.o
--- sqvm.lo ---
In file included from sqvm.cpp:5:
In file included from /usr/include/c++/v1/math.h:310:
/usr/include/c++/v1/limits:148:85: error: expected expression
    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type min() _NOEXCEPT
{return type();}
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20
    ^
../../../../src/include/scripting/squirrel/sqobject.h:99:24: note: expanded
from macro 'type'
#define type(obj) ((obj)._type)
                       ^
In file included from sqvm.cpp:5:
In file included from /usr/include/c++/v1/math.h:310:
/usr/include/c++/v1/limits:148:61: error: no return statement in constexpr
function
    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type min() _NOEXCEPT
{return type();}
                                                            ^
/usr/include/c++/v1/limits:149:85: error: expected expression
    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type max() _NOEXCEPT
{return type();}
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20
    ^
../../../../src/include/scripting/squirrel/sqobject.h:99:24: note: expanded
from macro 'type'
#define type(obj) ((obj)._type)
                       ^
In file included from sqvm.cpp:5:
In file included from /usr/include/c++/v1/math.h:310:
/usr/include/c++/v1/limits:149:61: error: no return statement in constexpr
function
    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type max() _NOEXCEPT
{return type();}
                                                            ^
/usr/include/c++/v1/limits:150:88: error: expected expression
    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type lowest() _NOEXC=
EPT
{return type();}
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20
       ^
../../../../src/include/scripting/squirrel/sqobject.h:99:24: note: expanded
from macro 'type'
#define type(obj) ((obj)._type)
                       ^
In file included from sqvm.cpp:5:
In file included from /usr/include/c++/v1/math.h:310:
/usr/include/c++/v1/limits:150:61: error: no return statement in constexpr
function
    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type lowest() _NOEXC=
EPT
{return type();}
                                                            ^
/usr/include/c++/v1/limits:159:89: error: expected expression
    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type epsilon() _NOEX=
CEPT
{return type();}
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20
        ^
../../../../src/include/scripting/squirrel/sqobject.h:99:24: note: expanded
from macro 'type'
#define type(obj) ((obj)._type)
                       ^
In file included from sqvm.cpp:5:
In file included from /usr/include/c++/v1/math.h:310:
/usr/include/c++/v1/limits:159:61: error: no return statement in constexpr
function
    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type epsilon() _NOEX=
CEPT
{return type();}
                                                            ^
/usr/include/c++/v1/limits:160:93: error: expected expression
    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type round_error()
_NOEXCEPT {return type();}
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20
            ^
../../../../src/include/scripting/squirrel/sqobject.h:99:24: note: expanded
from macro 'type'
#define type(obj) ((obj)._type)
                       ^
In file included from sqvm.cpp:5:
In file included from /usr/include/c++/v1/math.h:310:
/usr/include/c++/v1/limits:160:61: error: no return statement in constexpr
function
    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type round_error()
_NOEXCEPT {return type();}
                                                            ^
/usr/include/c++/v1/limits:172:90: error: expected expression
    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type infinity()
_NOEXCEPT {return type();}
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20
         ^
../../../../src/include/scripting/squirrel/sqobject.h:99:24: note: expanded
from macro 'type'
#define type(obj) ((obj)._type)
                       ^
In file included from sqvm.cpp:5:
In file included from /usr/include/c++/v1/math.h:310:
/usr/include/c++/v1/limits:172:61: error: no return statement in constexpr
function
    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type infinity()
_NOEXCEPT {return type();}
                                                            ^
/usr/include/c++/v1/limits:173:91: error: expected expression
    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type quiet_NaN()
_NOEXCEPT {return type();}
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20
          ^
../../../../src/include/scripting/squirrel/sqobject.h:99:24: note: expanded
from macro 'type'
#define type(obj) ((obj)._type)
                       ^
In file included from sqvm.cpp:5:
In file included from /usr/include/c++/v1/math.h:310:
/usr/include/c++/v1/limits:173:61: error: no return statement in constexpr
function
    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type quiet_NaN()
_NOEXCEPT {return type();}
                                                            ^
/usr/include/c++/v1/limits:174:95: error: expected expression
    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type signaling_NaN()
_NOEXCEPT {return type();}
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20
              ^
../../../../src/include/scripting/squirrel/sqobject.h:99:24: note: expanded
from macro 'type'
#define type(obj) ((obj)._type)
                       ^
In file included from sqvm.cpp:5:
In file included from /usr/include/c++/v1/math.h:310:
/usr/include/c++/v1/limits:174:61: error: no return statement in constexpr
function
    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type signaling_NaN()
_NOEXCEPT {return type();}
                                                            ^
/usr/include/c++/v1/limits:175:92: error: expected expression
    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type denorm_min()
_NOEXCEPT {return type();}
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20
           ^
../../../../src/include/scripting/squirrel/sqobject.h:99:24: note: expanded
from macro 'type'
#define type(obj) ((obj)._type)
                       ^
In file included from sqvm.cpp:5:
In file included from /usr/include/c++/v1/math.h:310:
/usr/include/c++/v1/limits:175:61: error: no return statement in constexpr
function
    _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type denorm_min()
_NOEXCEPT {return type();}
                                                            ^
/usr/include/c++/v1/limits:206:53: error: member reference base type 'int' =
is
not a structure or union
    static _LIBCPP_CONSTEXPR const bool is_signed =3D type(-1) < type(0);
                                                    ^~~~~~~~
../../../../src/include/scripting/squirrel/sqobject.h:99:25: note: expanded
from macro 'type'
#define type(obj) ((obj)._type)
                   ~~~~~^~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=3D]
--- sqtable.lo ---
libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../../../../src/include
-I../../../../src/include/scripting/include
-I../../../../src/include/scripting/squirrel -isystem /usr/local/include -a=
nsi
-DTIXML_USE_STL -O2 -ffast-math -DCB_AUTOCONF -O2 -pipe -fno-omit-frame-poi=
nter
-fstack-protector -isystem /usr/local/include -fno-strict-aliasing
-Wno-undefined-bool-conversion -isystem /usr/local/include -std=3Dc++11 -fP=
IC
-DPIC -fexceptions -MT sqtable.lo -MD -MP -MF .deps/sqtable.Tpo -c sqtable.=
cpp=20
-fPIC -DPIC -o .libs/sqtable.o
--- sqbaselib.lo ---
depbase=3D`echo sqbaselib.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; /bin/sh
../../../../libtool  --tag=3DCXX    --mode=3Dcompile c++ -DHAVE_CONFIG_H  -=
I.
-I../../../../src/include  -I../../../../src/include/scripting/include=20
-I../../../../src/include/scripting/squirrel -isystem /usr/local/include -a=
nsi
-DTIXML_USE_STL   -O2 -ffast-math -DCB_AUTOCONF -O2 -pipe
-fno-omit-frame-pointer  -fstack-protector -isystem /usr/local/include
-fno-strict-aliasing  -Wno-undefined-bool-conversion -isystem
/usr/local/include -std=3Dc++11  -fPIC -DPIC -fexceptions -MT sqbaselib.lo =
-MD
-MP -MF $depbase.Tpo -c -o sqbaselib.lo sqbaselib.cpp && mv -f $depbase.Tpo
$depbase.Plo
--- sqvm.lo ---
20 errors generated.
*** [sqvm.lo] Error code 1

make[5]: stopped in
/usr/ports/workdirs/usr/ports/devel/codeblocks/work/codeblocks-16.01.releas=
e/src/sdk/scripting/squirrel
--- sqbaselib.lo ---
libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../../../../src/include
-I../../../../src/include/scripting/include
-I../../../../src/include/scripting/squirrel -isystem /usr/local/include -a=
nsi
-DTIXML_USE_STL -O2 -ffast-math -DCB_AUTOCONF -O2 -pipe -fno-omit-frame-poi=
nter
-fstack-protector -isystem /usr/local/include -fno-strict-aliasing
-Wno-undefined-bool-conversion -isystem /usr/local/include -std=3Dc++11 -fP=
IC
-DPIC -fexceptions -MT sqbaselib.lo -MD -MP -MF .deps/sqbaselib.Tpo -c
sqbaselib.cpp  -fPIC -DPIC -o .libs/sqbaselib.o
1 error

make[5]: stopped in
/usr/ports/workdirs/usr/ports/devel/codeblocks/work/codeblocks-16.01.releas=
e/src/sdk/scripting/squirrel
*** [all-recursive] Error code 1

make[4]: stopped in
/usr/ports/workdirs/usr/ports/devel/codeblocks/work/codeblocks-16.01.releas=
e/src/sdk/scripting
1 error

make[4]: stopped in
/usr/ports/workdirs/usr/ports/devel/codeblocks/work/codeblocks-16.01.releas=
e/src/sdk/scripting
*** [all-recursive] Error code 1

make[3]: stopped in
/usr/ports/workdirs/usr/ports/devel/codeblocks/work/codeblocks-16.01.releas=
e/src/sdk
1 error

make[3]: stopped in
/usr/ports/workdirs/usr/ports/devel/codeblocks/work/codeblocks-16.01.releas=
e/src/sdk
*** [all-recursive] Error code 1

make[2]: stopped in
/usr/ports/workdirs/usr/ports/devel/codeblocks/work/codeblocks-16.01.releas=
e/src
1 error

make[2]: stopped in
/usr/ports/workdirs/usr/ports/devel/codeblocks/work/codeblocks-16.01.releas=
e/src
*** [all-recursive] Error code 1

make[1]: stopped in
/usr/ports/workdirs/usr/ports/devel/codeblocks/work/codeblocks-16.01.release
1 error

make[1]: stopped in
/usr/ports/workdirs/usr/ports/devel/codeblocks/work/codeblocks-16.01.release
=3D=3D=3D> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the failure =
to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/codeblocks

Fixed by move #include <math.h> above #include "sqpcheader.h".

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-222990-13>