Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
__float128 failure with gcc-7 #87
Comments
|
@LocutusOfBorg Thanks for the report. This sounds familiar. Could you please try to reproduce with CastXML Git master or with the binary available here?: |
|
I already tried git head (last commit Wed Mar 1), I also tried switching castxml to use clang/llvm 4.0, both to no avail. The related Debian bug is https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871573 |
LocutusOfBorg
commented
Aug 10, 2017
|
mmm I tried the castxml in debian experimental, and at least the i386 build has finished correctly. |
LocutusOfBorg
closed this
Aug 10, 2017
LocutusOfBorg
commented
Aug 10, 2017
|
(I'm closing this one since it seems ok for me, let me know in case and I'll reopen it) |
LocutusOfBorg
reopened this
Aug 10, 2017
LocutusOfBorg
commented
Aug 10, 2017
|
my bad the ppa was misconfigured without -proposed pocket, so it picked up gcc-6 by default. |
LocutusOfBorg
commented
Aug 11, 2017
|
It fails also with latest master, as you can see in this build log |
|
I can reproduce this with $ cat cstdlib.cxx
#include <cstdlib>
$ castxml --castxml-cc-gnu g++-7 cstdlib.cxx
In file included from cstdlib.cxx:1:
In file included from /usr/include/c++/7/cstdlib:77:
/usr/include/c++/7/bits/std_abs.h:103:16: error: invalid operands to binary expression ('__castxml__float128' (aka '__castxml__float128_s') and 'int')
{ return __x < 0 ? -__x : __x; }
~~~ ^ ~
/usr/include/c++/7/bits/std_abs.h:103:22: error: invalid argument type '__castxml__float128' (aka '__castxml__float128_s') to unary expression
{ return __x < 0 ? -__x : __x; }
^~~~
/usr/include/c++/7/bits/std_abs.h:102:3: error: no return statement in constexpr function
abs(__float128 __x)
^
3 errors generated. |
bradking
self-assigned this
Aug 23, 2017
bradking
changed the title from
ITK build failure with gcc-7
to
__float128 failure with gcc-7
Aug 23, 2017
bradking
closed this
in
927c739
Aug 23, 2017
|
This should now be fixed for CastXML when built against LLVM/Clang 3.9 or higher. |
|
Great, thanks @bradking. |
ktdiedrich
commented
Oct 28, 2017
|
Hello, a similar ITK-4.12.2 build issue may still exists with c++ (Ubuntu 7.2.0-8ubuntu3) 7.2.0 from Ubuntu Linux 17.10. With ITK_WRAP_PYTHON ON
|
|
@ktdiedrich thanks for the note. Which compiler is being used, i.e. GCC or Clang? Also, is the system CastXML being used? |
ktdiedrich
commented
Oct 29, 2017
|
Hi, |
|
@ktdiedrich Thanks for the information. I will work on updating the CastXML version used by ITK. |
|
@ktdiedrich This patch will address the issue: http://review.source.kitware.com/#/c/22769/ |
LocutusOfBorg commentedAug 9, 2017
Hello, I don't know if this is really a castxml issue, but it seems so
I'm using the castxml debian version "0.1+git20160706-2" and I started testing "0.1+git20161215-1" some minutes ago in my ppa
https://launchpad.net/~costamagnagianfranco/+archive/ubuntu/locutusofborg-ppa/+packages