[opensource-dev] Windows 64bit compiling error.

Niran desmoulins.uchi at googlemail.com
Fri Sep 1 06:50:06 PDT 2017


So after the painstaking process of going through the very lacking wiki
guide, getting everything set up, fixing all the issues and getting the
Alex Ivy repository successfully build, i'm now in the process of switching
my own Viewer (Black Dragon) to Alex Ivy base, after a few more problems i
could luckily solve (such as the 100% missing guide on how to build FmodEx)
i'm now at a successful configure, starting the viewer VS project file and
getting fatal errors basically as soon as the first file start to compile.

6>f:\blackdragon64\indra\llcommon\llapp.h(307): error C2061: syntax error :
identifier 'siginfo_t' (F:\BlackDragon64\indra\llcommon\llapp.cpp)
6>f:\blackdragon64\indra\llcommon\llmemory.h(93): fatal error C1189: #error
:  "LL_ALIGN_PREFIX and LL_ALIGN_POSTFIX undefined"
(F:\BlackDragon64\indra\llcommon\llapp.cpp)
6>f:\blackdragon64\indra\llcommon\llthreadlocalstorage.h(142): error C2146:
syntax error : missing ';' before identifier 'DERIVED_TYPE'
(F:\BlackDragon64\indra\llcommon\llapr.cpp)
6>          f:\blackdragon64\indra\llcommon\llthreadlocalstorage.h(143) :
see reference to class template instantiation
'LLThreadLocalSingletonPointer<DERIVED_TYPE>' being compiled
6>f:\blackdragon64\indra\llcommon\llthreadlocalstorage.h(142): error C4430:
missing type specifier - int assumed. Note: C++ does not support
default-int (F:\BlackDragon64\indra\llcommon\llapr.cpp)
6>f:\blackdragon64\indra\llcommon\llthreadlocalstorage.h(146): error C2146:
syntax error : missing ';' before identifier 'DERIVED_TYPE'
(F:\BlackDragon64\indra\llcommon\llapr.cpp)
6>f:\blackdragon64\indra\llcommon\llthreadlocalstorage.h(146): error C2143:
syntax error : missing ';' before '*'
(F:\BlackDragon64\indra\llcommon\llapr.cpp)
6>f:\blackdragon64\indra\llcommon\llthreadlocalstorage.h(146): error C2065:
'DERIVED_TYPE' : undeclared identifier
(F:\BlackDragon64\indra\llcommon\llapr.cpp)
6>f:\blackdragon64\indra\llcommon\llthreadlocalstorage.h(146): error C2923:
'LLThreadLocalSingletonPointer' : 'DERIVED_TYPE' is not a valid template
type argument for parameter 'DERIVED_TYPE'
(F:\BlackDragon64\indra\llcommon\llapr.cpp)
6>f:\blackdragon64\indra\llcommon\llthreadlocalstorage.h(146): fatal error
C1903: unable to recover from previous error(s); stopping compilation
(F:\BlackDragon64\indra\llcommon\llapr.cpp)

The error list goes on and on and on, every second file errors out, every
project fatally fails compiling from what i assume is a problem with the
compile not knowing i'm trying to compile for Windows. From the llmemory.h
file i can see that the error should only ever happen if neither Mac/Linux
nor Windows are specified to be used.

#if LL_LINUX || LL_DARWIN

#define LL_ALIGN_PREFIX(x)
#define LL_ALIGN_POSTFIX(x) __attribute__((aligned(x)))

#elif LL_WINDOWS

#define LL_ALIGN_PREFIX(x) __declspec(align(x))
#define LL_ALIGN_POSTFIX(x)

#else
#error "LL_ALIGN_PREFIX and LL_ALIGN_POSTFIX undefined"
#endif

This is the specific snipped i'm talking about. However, that brings up the
question, why does this happen, where and how can i fix it, i hg checked
against the successful Alex Ivy build, every single file of importance, all
cmake files and so on, they all seem fine and basically exactly the same
except the name of the Viewer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.secondlife.com/pipermail/opensource-dev/attachments/20170901/b5c3ece6/attachment.htm 


More information about the opensource-dev mailing list