Compilation issues

Install & setup problems, application questions and other nasty things ;)

Moderators: Frustikus, simX, Aus-RED-5

hallieballie
Posts: 4
Joined: Sat Nov 19, 2011 8:19 pm

Compilation issues

Postby hallieballie » Sat Nov 02, 2019 4:48 pm

Hi,

The compilation stops at:

mv -f .deps/vecmat.Tpo .deps/vecmat.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -O3 -Wall -Wno-char-subscripts -fopenmp -MT rand.o -MD -MP -MF .deps/rand.Tpo -c -o rand.o rand.cpp
mv -f .deps/rand.Tpo .deps/rand.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I ../include -I ../input/include -I ../network/linux/include -I ../audio/linux/include -I /usr/local/include/SDL -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -O3 -Wall -Wno-char-subscripts -fopenmp -MT tables.o -MD -MP -MF .deps/tables.Tpo -c -o tables.o tables.cpp
tables.cpp:1017:1: error: narrowing conversion of ‘2147483648’ from ‘unsigned int’ to ‘fix’ {aka ‘int’} inside { } [-Wnarrowing]
};
^
make[2]: *** [Makefile:365: tables.o] Error 1
make[2]: Leaving directory '/home/johan/tmp/D2-XL/maths'
make[1]: *** [Makefile:542: all-recursive] Error 1
make[1]: Leaving directory '/home/johan/tmp/D2-XL'
make: *** [Makefile:431: all] Error 2


How can is solve this, can not find it with search engines.

Thank you.
Dist: Ubuntu disco
Proc: AMD Ryzen 5 3600 6-Core Processor
Graphic card: GeForce RTX 2060
hallieballie
Posts: 4
Joined: Sat Nov 19, 2011 8:19 pm

Re: Compilation issues

Postby hallieballie » Sun Nov 03, 2019 1:32 pm

Hi,

Have tweaking my system, now i have another compilation issue with source of d2x-xl-src-1.18.74.7z .

In file included from ../include/descent.h:25,
from vecmat.cpp:25:
../include/carray.h: In instantiation of ‘void CArray<_T>::Init() [with _T = CBossInfo]’:
../include/carray.h:223:5: required from ‘void CArray<_T>::Destroy() [with _T = CBossInfo]’
../include/carray.h:233:5: required from ‘_T* CArray<_T>::Create(uint32_t, const char*) [with _T = CBossInfo; uint32_t = unsigned int]’
../include/carray.h:278:12: required from ‘_T* CArray<_T>::Resize(uint32_t, bool) [with _T = CBossInfo; uint32_t = unsigned int]’
../include/cstack.h:31:57: required from ‘bool CStack<_T>::Grow(uint32_t) [with _T = CBossInfo; uint32_t = unsigned int]’
../include/descent.h:3495:60: required from here
../include/carray.h:120:11: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘class CBossInfo’ with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
memset (&m_data.null, 0, sizeof (m_data.null));
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from vecmat.cpp:25:
../include/descent.h:3428:7: note: ‘class CBossInfo’ declared here
class CBossInfo {
^~~~~~~~~
mv -f .deps/fixc.Tpo .deps/fixc.Po
mv -f .deps/vecmat.Tpo .deps/vecmat.Po
make[2]: Leaving directory '/home/xxx/tmp/d2x/maths'
make[1]: *** [Makefile:542: all-recursive] Error 1
make[1]: Leaving directory '/home/xxx/tmp/d2x'
make: *** [Makefile:431: all] Error 2

I use as system:

Dist: Ubuntu disco
Proc: AMD Ryzen 5 3600 6-Core Processor
Graphic card: GeForce RTX 2060

Will try: d2x-xl-src-1.18.73.7z, d2x-xl-src-1.17.134-final.7z, d2x-xl-src-1.16.28-final.7z and d2x-xl-src-1.15.350-final.7z
Dist: Ubuntu disco
Proc: AMD Ryzen 5 3600 6-Core Processor
Graphic card: GeForce RTX 2060
hallieballie
Posts: 4
Joined: Sat Nov 19, 2011 8:19 pm

Re: Compilation issues

Postby hallieballie » Sun Nov 03, 2019 2:02 pm

Hi,

Have upgraded my distribution to Unbuntu disco.

I am trying to renew my older version (strings d2x-xl | grep D2X-XL, gives me version D2X-XL 1.18.65), because it gives an error:

./d2x-xl: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by ./d2x-xl)

Probably libcurl of Ubuntu disco does not support CURL_OPENSSL_3

Have tried to use a distribution lower version of libcurl and openssl, but this gives a kernel panic, because that version is not supported during boot.

In all source code i get almost the same error, see below:

d2x-xl-src-1.18.73.7z:

In file included from ../include/descent.h:25,
from vecmat.cpp:25:
../include/carray.h: In instantiation of ‘void CArray<_T>::Init() [with _T = CBossInfo]’:
../include/carray.h:182:5: required from ‘void CArray<_T>::Destroy() [with _T = CBossInfo]’
../include/carray.h:188:5: required from ‘_T* CArray<_T>::Create(uint32_t) [with _T = CBossInfo; uint32_t = unsigned int]’
../include/carray.h:220:12: required from ‘_T* CArray<_T>::Resize(uint32_t, bool) [with _T = CBossInfo; uint32_t = unsigned int]’
../include/cstack.h:31:57: required from ‘bool CStack<_T>::Grow(uint32_t) [with _T = CBossInfo; uint32_t = unsigned int]’
../include/descent.h:3494:60: required from here
../include/carray.h:113:11: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘class CBossInfo’ with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
memset (&m_data.null, 0, sizeof (m_data.null));
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from vecmat.cpp:25:
../include/descent.h:3427:7: note: ‘class CBossInfo’ declared here
class CBossInfo {
^~~~~~~~~
mv -f .deps/fixc.Tpo .deps/fixc.Po
mv -f .deps/vecmat.Tpo .deps/vecmat.Po
make[2]: Leaving directory '/home/johan/tmp/d2x/maths'
make[1]: *** [Makefile:542: all-recursive] Error 1
make[1]: Leaving directory '/home/johan/tmp/d2x'
make: *** [Makefile:431: all] Error 2

d2x-xl-src-1.17.134-final.7z:

In file included from ../include/descent.h:25,
from vecmat.cpp:25:
../include/carray.h: In instantiation of ‘void CArray<_T>::Init() [with _T = CBossInfo]’:
../include/carray.h:182:5: required from ‘void CArray<_T>::Destroy() [with _T = CBossInfo]’
../include/carray.h:188:5: required from ‘_T* CArray<_T>::Create(uint32_t) [with _T = CBossInfo; uint32_t = unsigned int]’
../include/carray.h:220:12: required from ‘_T* CArray<_T>::Resize(uint32_t, bool) [with _T = CBossInfo; uint32_t = unsigned int]’
../include/cstack.h:31:57: required from ‘bool CStack<_T>::Grow(uint32_t) [with _T = CBossInfo; uint32_t = unsigned int]’
../include/descent.h:3168:60: required from here
../include/carray.h:113:11: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘class CBossInfo’ with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
memset (&m_data.null, 0, sizeof (m_data.null));
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from vecmat.cpp:25:
../include/descent.h:3101:7: note: ‘class CBossInfo’ declared here
class CBossInfo {
^~~~~~~~~
mv -f .deps/fixc.Tpo .deps/fixc.Po
mv -f .deps/vecmat.Tpo .deps/vecmat.Po
make[2]: Leaving directory '/home/johan/tmp/d2x/maths'
make[1]: *** [Makefile:542: all-recursive] Error 1
make[1]: Leaving directory '/home/johan/tmp/d2x'
make: *** [Makefile:431: all] Error 2

d2x-xl-src-1.16.28-final.7z:

In file included from ../include/descent.h:25,
from buildmodel.cpp:9:
../include/carray.h: In instantiation of ‘void CArray<_T>::Init() [with _T = CBossInfo]’:
../include/carray.h:173:5: required from ‘void CArray<_T>::Destroy() [with _T = CBossInfo]’
../include/carray.h:179:5: required from ‘_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]’
../include/carray.h:211:12: required from ‘_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]’
../include/cstack.h:31:57: required from ‘bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]’
../include/descent.h:3076:56: required from here
../include/carray.h:106:11: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘class CBossInfo’ with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
memset (&m_data.null, 0, sizeof (m_data.null));
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from buildmodel.cpp:9:
../include/descent.h:3009:7: note: ‘class CBossInfo’ declared here
class CBossInfo {
^~~~~~~~~
mv -f .deps/ase2model.Tpo .deps/ase2model.Po
mv -f .deps/buildmodel.Tpo .deps/buildmodel.Po
make[2]: Leaving directory '/home/johan/tmp/d2x/3d'
make[1]: *** [Makefile:539: all-recursive] Error 1
make[1]: Leaving directory '/home/johan/tmp/d2x'
make: *** [Makefile:428: all] Error 2

d2x-xl-src-1.15.350-final.7z:

In file included from ../include/descent.h:25,
from hud.cpp:23:
../include/carray.h: In instantiation of ‘void CArray<_T>::Init() [with _T = CBossInfo]’:
../include/carray.h:173:5: required from ‘void CArray<_T>::Destroy() [with _T = CBossInfo]’
../include/carray.h:179:5: required from ‘_T* CArray<_T>::Create(uint) [with _T = CBossInfo; uint = unsigned int]’
../include/carray.h:211:12: required from ‘_T* CArray<_T>::Resize(unsigned int, bool) [with _T = CBossInfo]’
../include/cstack.h:31:57: required from ‘bool CStack<_T>::Grow(uint) [with _T = CBossInfo; uint = unsigned int]’
../include/descent.h:3021:56: required from here
../include/carray.h:106:11: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘class CBossInfo’ with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
memset (&m_data.null, 0, sizeof (m_data.null));
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from hud.cpp:23:
../include/descent.h:2954:7: note: ‘class CBossInfo’ declared here
class CBossInfo {
^~~~~~~~~
mv -f .deps/targetindicators.Tpo .deps/targetindicators.Po
mv -f .deps/hudicons.Tpo .deps/hudicons.Po
mv -f .deps/hudmsgs.Tpo .deps/hudmsgs.Po
mv -f .deps/cockpit.Tpo .deps/cockpit.Po
mv -f .deps/hud.Tpo .deps/hud.Po
mv -f .deps/statusbar.Tpo .deps/statusbar.Po
make[2]: Leaving directory '/home/johan/tmp/d2x/cockpit'
make[1]: *** [Makefile:541: all-recursive] Error 1
make[1]: Leaving directory '/home/johan/tmp/d2x'
make: *** [Makefile:430: all] Error 2

How can i solve this?

Thank you,

Johan
Dist: Ubuntu disco
Proc: AMD Ryzen 5 3600 6-Core Processor
Graphic card: GeForce RTX 2060
Sirius
Posts: 1990
Joined: Tue Sep 25, 2007 10:29 pm
Location: Bellevue, WA
Contact:

Re: Compilation issues

Postby Sirius » Sun Nov 24, 2019 12:30 am

While I haven't tried to compile XL for quite a long time (DLE is where I do my work), from reading the errors I get the impression these are operations that used to work but GCC has gotten stricter and now it won't let you - XL hasn't been updated in a few years if I recall correctly so there's no guarantee this works for other people either.
That might mean suppressing warnings/errors, or alternatively tweaking the code so it does those things in legal ways.

Return to “D2X-XL Help”

Who is online

Users browsing this forum: No registered users and 4 guests