tbrosman/hxmath

CI tests failing for cpp target

tbrosman opened this issue · 1 comments

Example: https://travis-ci.org/tbrosman/hxmath/jobs/120403072

Using compile threads: 2
 - Creating directory: /home/travis/build/tbrosman/hxmath/cpp/obj
 - Creating directory: /home/travis/build/tbrosman/hxmath/cpp/obj/linux64
 - Compiling file: src/test/TestStructures.cpp
 - Running process: g++ -Iinclude -c -fvisibility=hidden -O2 -fpic -fPIC -DHX_LINUX -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -m64 -DHXCPP_M64 -I/home/travis/haxelib/hxcpp/git/include -x c++ -frtti -Wno-invalid-offsetof ./src/test/TestStructures.cpp -o/home/travis/build/tbrosman/hxmath/cpp/obj/linux64/29ec2ac0_TestStructures.o
 - Compiling file: src/test/TestStress.cpp
 - Running process: g++ -Iinclude -c -fvisibility=hidden -O2 -fpic -fPIC -DHX_LINUX -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -m64 -DHXCPP_M64 -I/home/travis/haxelib/hxcpp/git/include -x c++ -frtti -Wno-invalid-offsetof ./src/test/TestStress.cpp -o/home/travis/build/tbrosman/hxmath/cpp/obj/linux64/29ec2ac0_TestStress.o
Error in building thread
g++ -Iinclude -c -fvisibility=hidden -O2 -fpic -fPIC -DHX_LINUX -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -m64 -DHXCPP_M64 -I/home/travis/haxelib/hxcpp/git/include -x c++ -frtti -Wno-invalid-offsetof ./src/test/TestStress.cpp -o/home/travis/build/tbrosman/hxmath/cpp/obj/linux64/29ec2ac0_TestStress.o
Error: In file included from /home/travis/haxelib/hxcpp/git/include/hxcpp.h:327:0,
                 from ./src/test/TestStress.cpp:1:
/home/travis/haxelib/hxcpp/git/include/hx/Native.h:144:16: error: declaration of ‘class T’
/home/travis/haxelib/hxcpp/git/include/hx/Native.h:113:13: error:  shadows template parm ‘class T’
/home/travis/haxelib/hxcpp/git/include/hx/Native.h:147:16: error: declaration of ‘class T’
/home/travis/haxelib/hxcpp/git/include/hx/Native.h:113:13: error:  shadows template parm ‘class T’
Error: Build failed

This does not show up in msvc builds (Windows).

I re-ran an old revision (well, a revert equivalent to it, https://travis-ci.org/tbrosman/hxmath/builds/120397953 which is the same according to this diff: d681b6f...4dec099 ) and got a different error. The old revision had previously passed for cpp. The hxcpp version was definitely different based on the sizes. Error in this build:

g++ -Iinclude -c -fvisibility=hidden -O2 -fpic -fPIC -DHX_LINUX -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -m64 -DHXCPP_M64 -I/home/travis/haxelib/hxcpp/git/include -x c++ -frtti -Wno-invalid-offsetof ./src/Sys.cpp -o/home/travis/build/tbrosman/hxmath/cpp/obj/linux64/f38131b7_Sys.o
Error: ./src/Sys.cpp: In static member function ‘static int Sys_obj::command(String, Array<String>)’:
./src/Sys.cpp:336:27: error: no match for ‘operator!=’ in ‘args != null()’
./src/Sys.cpp:336:27: note: candidates are:
/home/travis/haxelib/hxcpp/git/include/Array.h:917:16: note: bool Array<ELEM_>::operator!=(const cpp::VirtualArray&) const [with ELEM_ = String]
/home/travis/haxelib/hxcpp/git/include/Array.h:917:16: note:   no known conversion for argument 1 from ‘null’ to ‘const cpp::VirtualArray&’
/home/travis/haxelib/hxcpp/git/include/null.h:187:1: note: bool operator!=(bool, const null&)
/home/travis/haxelib/hxcpp/git/include/null.h:187:1: note:   no known conversion for argument 1 from ‘Array<String>’ to ‘bool’
/home/travis/haxelib/hxcpp/git/include/null.h:188:1: note: bool operator!=(double, const null&)
/home/travis/haxelib/hxcpp/git/include/null.h:188:1: note:   no known conversion for argument 1 from ‘Array<String>’ to ‘double’
/home/travis/haxelib/hxcpp/git/include/null.h:189:1: note: bool operator!=(float, const null&)
/home/travis/haxelib/hxcpp/git/include/null.h:189:1: note:   no known conversion for argument 1 from ‘Array<String>’ to ‘float’
/home/travis/haxelib/hxcpp/git/include/null.h:190:1: note: bool operator!=(int, const null&)

This appears to have been resolved.