[ace-users] Does ACE+TAO version 5.8.3 support 64 bit mingw?
James Franco
mjfranc808 at gmail.com
Wed May 13 12:57:53 CDT 2015
I managed to successfully build the latest versions of ACE/TAO using msys2
with mingw gcc 64 bit. To do that I had to do the following before giving
out the make command.
1) create the config.h inside C:\ACE\ACE_wrappers\ace
The content of which are
#include "ace/config-win32.h"
2)I then created the "platform_macros.GNU" file in
C:\ACE\ACE_wrappers\include\makeinclude
with the following content
TCPU := generic
include $(ACE_ROOT)/include/makeinclude/platform_mingw32.GNU
as a result I am successful in building ACE and TAO.
Now I just downloaded the 5.8.3 version of these libraries (because our
existing source code uses those)After making similar changes using msys2
when I issue the make command I get the following error
admin at US3044 MSYS /c/ACE583/ACE_wrappers/ace
$ make
make[1]: Entering directory '/c/ACE583/ACE_wrappers/ace'
GNUmakefile: /c/ACE583/ACE_wrappers/ace/GNUmakefile.ACE MAKEFLAGS=w
g++ -Wpointer-arith -mthreads -mtune=generic -Wno-attributes -Wall -W -O3
-g -pi pe -pipe
-DACE_HAS_CUSTOM_EXPORT_MACROS=0 -I/c/ACE583/ACE_wrappers -DACE_NO
_INLINE -I.. -DACE_BUILD_DLL -c
-o .shobj/Local_Name_Space.o Local_Name_Space.
cpp
In file included from C:/ACE583/ACE_wrappers/ace/Functor_T.cpp:13:0,
from C:/ACE583/ACE_wrappers/ace/Functor_T.h:154,
from C:/ACE583/ACE_wrappers/ace/Hash_Map_Manager_T.h:24,
from C:/ACE583/ACE_wrappers/ace/Local_Name_Space_T.h:38,
from C:/ACE583/ACE_wrappers/ace/Local_Name_Space.h:128,
from Local_Name_Space.cpp:3:
C:/ACE583/ACE_wrappers/ace/Functor_T.inl:19:0: warning: ignoring #pragma
warning
[-Wunknown-pragmas]
# pragma warning(push)
^
C:/ACE583/ACE_wrappers/ace/Functor_T.inl:20:0: warning: ignoring #pragma
warning
[-Wunknown-pragmas]
# pragma warning(disable : 4311) /* Truncate pointer to unsigned long */
^
C:/ACE583/ACE_wrappers/ace/Functor_T.inl:24:0: warning: ignoring #pragma
warning
[-Wunknown-pragmas]
# pragma warning(pop)
^
In file included from
C:/ACE583/ACE_wrappers/ace/os_include/os_unistd.h:27:0,
from C:/ACE583/ACE_wrappers/ace/os_include/os_limits.h:27,
from C:/ACE583/ACE_wrappers/ace/Default_Constants.h:30,
from C:/ACE583/ACE_wrappers/ace/Log_Msg.h:24,
from C:/ACE583/ACE_wrappers/ace/Malloc.h:24,
from C:/ACE583/ACE_wrappers/ace/Malloc_T.h:18,
from C:/ACE583/ACE_wrappers/ace/Local_Name_Space.h:20,
from Local_Name_Space.cpp:3:
C:/ACE583/ACE_wrappers/ace/os_include/sys/os_types.h:141:25: error:
conflicting declaration
'typedef long unsigned int useconds_t'
typedef unsigned long useconds_t;
^
In file included from
C:/ACE583/ACE_wrappers/ace/os_include/sys/os_types.h:30:0,
from C:/ACE583/ACE_wrappers/ace/os_include/os_unistd.h:27,
from C:/ACE583/ACE_wrappers/ace/os_include/os_limits.h:27,
from C:/ACE583/ACE_wrappers/ace/Default_Constants.h:30,
from C:/ACE583/ACE_wrappers/ace/Log_Msg.h:24,
from C:/ACE583/ACE_wrappers/ace/Malloc.h:24,
from C:/ACE583/ACE_wrappers/ace/Malloc_T.h:18,
from C:/ACE583/ACE_wrappers/ace/Local_Name_Space.h:20,
from Local_Name_Space.cpp:3:
C:/mingw64/x86_64-w64-mingw32/include/sys/types.h:84:22: error:
'useconds_t' has a
previous declaration as 'typedef unsigned int useconds_t'
typedef unsigned int useconds_t;
^
In file included from
C:/ACE583/ACE_wrappers/ace/os_include/sys/os_wait.h:27:0,
from C:/ACE583/ACE_wrappers/ace/os_include/os_stdlib.h:28,
from C:/ACE583/ACE_wrappers/ace/Basic_Types.h:60,
from C:/ACE583/ACE_wrappers/ace/OS_NS_Thread.h:29,
from C:/ACE583/ACE_wrappers/ace/Guard_T.h:26,
from C:/ACE583/ACE_wrappers/ace/Free_List.cpp:7,
from C:/ACE583/ACE_wrappers/ace/Free_List.h:142,
from C:/ACE583/ACE_wrappers/ace/Malloc_T.h:26,
from C:/ACE583/ACE_wrappers/ace/Local_Name_Space.h:20,
from Local_Name_Space.cpp:3:
C:/ACE583/ACE_wrappers/ace/os_include/os_signal.h:192:6: error: 'sigset_t'
does not name a type
sigset_t sa_mask;
^
In file included from C:/mingw64/x86_64-w64-mingw32/include/signal.h:10:0,
from C:/ACE583/ACE_wrappers/ace/os_include/os_signal.h:31,
from
C:/ACE583/ACE_wrappers/ace/os_include/sys/os_wait.h:27,
from C:/ACE583/ACE_wrappers/ace/os_include/os_stdlib.h:28,
from C:/ACE583/ACE_wrappers/ace/Basic_Types.h:60,
from C:/ACE583/ACE_wrappers/ace/OS_NS_Thread.h:29,
from C:/ACE583/ACE_wrappers/ace/Guard_T.h:26,
from C:/ACE583/ACE_wrappers/ace/Free_List.cpp:7,
from C:/ACE583/ACE_wrappers/ace/Free_List.h:142,
from C:/ACE583/ACE_wrappers/ace/Malloc_T.h:26,
from C:/ACE583/ACE_wrappers/ace/Local_Name_Space.h:20,
from Local_Name_Space.cpp:3:
C:/ACE583/ACE_wrappers/ace/os_include/os_signal.h:210:7: error: expected
unquali fied-id before
numeric constant
int pthread_sigmask(int, const sigset_t *, sigset_t *);
^
In file included from C:/ACE583/ACE_wrappers/ace/os_include/os_sched.h:27:0,
from C:/ACE583/ACE_wrappers/ace/OS_NS_Thread.h:32,
from C:/ACE583/ACE_wrappers/ace/Guard_T.h:26,
from C:/ACE583/ACE_wrappers/ace/Free_List.cpp:7,
from C:/ACE583/ACE_wrappers/ace/Free_List.h:142,
from C:/ACE583/ACE_wrappers/ace/Malloc_T.h:26,
from C:/ACE583/ACE_wrappers/ace/Local_Name_Space.h:20,
from Local_Name_Space.cpp:3:
C:/ACE583/ACE_wrappers/ace/os_include/os_time.h:58:16: error: redefinition
of 's truct timespec'
typedef struct timespec
^
In file included from
C:/ACE583/ACE_wrappers/ace/os_include/sys/os_types.h:30:0,
from C:/ACE583/ACE_wrappers/ace/os_include/os_unistd.h:27,
from C:/ACE583/ACE_wrappers/ace/os_include/os_limits.h:27,
from C:/ACE583/ACE_wrappers/ace/Default_Constants.h:30,
from C:/ACE583/ACE_wrappers/ace/Log_Msg.h:24,
from C:/ACE583/ACE_wrappers/ace/Malloc.h:24,
from C:/ACE583/ACE_wrappers/ace/Malloc_T.h:18,
from C:/ACE583/ACE_wrappers/ace/Local_Name_Space.h:20,
from Local_Name_Space.cpp:3:
C:/mingw64/x86_64-w64-mingw32/include/sys/types.h:89:8: error: previous
definiti on of 'struct
timespec'
struct timespec {
^
In file included from C:/ACE583/ACE_wrappers/ace/os_include/os_sched.h:27:0,
from C:/ACE583/ACE_wrappers/ace/OS_NS_Thread.h:32,
from C:/ACE583/ACE_wrappers/ace/Guard_T.h:26,
from C:/ACE583/ACE_wrappers/ace/Free_List.cpp:7,
from C:/ACE583/ACE_wrappers/ace/Free_List.h:142,
from C:/ACE583/ACE_wrappers/ace/Malloc_T.h:26,
from C:/ACE583/ACE_wrappers/ace/Local_Name_Space.h:20,
from Local_Name_Space.cpp:3:
C:/ACE583/ACE_wrappers/ace/os_include/os_time.h:64:13: error: invalid type
in de claration before ';'
token
} timespec_t;
^
In file included from C:/mingw64/x86_64-w64-mingw32/include/signal.h:10:0,
from C:/ACE583/ACE_wrappers/ace/os_include/os_signal.h:31,
from
C:/ACE583/ACE_wrappers/ace/os_include/sys/os_wait.h:27,
from C:/ACE583/ACE_wrappers/ace/os_include/os_stdlib.h:28,
from C:/ACE583/ACE_wrappers/ace/Basic_Types.h:60,
from C:/ACE583/ACE_wrappers/ace/OS_NS_Thread.h:29,
from C:/ACE583/ACE_wrappers/ace/Guard_T.h:26,
from C:/ACE583/ACE_wrappers/ace/Free_List.cpp:7,
from C:/ACE583/ACE_wrappers/ace/Free_List.h:142,
from C:/ACE583/ACE_wrappers/ace/Malloc_T.h:26,
from C:/ACE583/ACE_wrappers/ace/Local_Name_Space.h:20,
from Local_Name_Space.cpp:3:
C:/ACE583/ACE_wrappers/ace/OS_NS_signal.h:177:7: error: expected
unqualified-id before
numeric constant
int pthread_sigmask (int how,
^
In file included from C:/ACE583/ACE_wrappers/ace/OS_NS_Thread.h:37:0,
from C:/ACE583/ACE_wrappers/ace/Guard_T.h:26,
from C:/ACE583/ACE_wrappers/ace/Free_List.cpp:7,
from C:/ACE583/ACE_wrappers/ace/Free_List.h:142,
from C:/ACE583/ACE_wrappers/ace/Malloc_T.h:26,
from C:/ACE583/ACE_wrappers/ace/Local_Name_Space.h:20,
from Local_Name_Space.cpp:3:
C:/ACE583/ACE_wrappers/ace/OS_NS_signal.h:187:18: warning: 'sigaddset'
initializ ed and declared
'extern' [enabled by default]
int sigaddset (sigset_t *s,
^
C:/ACE583/ACE_wrappers/ace/OS_NS_signal.h:187:18: error: 'sigset_t' was not
decl ared in this scope
C:/ACE583/ACE_wrappers/ace/OS_NS_signal.h:187:28: error: 's' was not
declared in this scope
int sigaddset (sigset_t *s,
^
C:/ACE583/ACE_wrappers/ace/OS_NS_signal.h:188:18: error: expected
primary-expres sion before
'int'
int signum);
^
C:/ACE583/ACE_wrappers/ace/OS_NS_signal.h:188:28: error: expression list
treated as compound
expression in initializer [-fpermissive]
int signum);
^
C:/ACE583/ACE_wrappers/ace/OS_NS_signal.h:191:18: warning: 'sigdelset'
initializ ed and declared
'extern' [enabled by default]
int sigdelset (sigset_t *s,
^
C:/ACE583/ACE_wrappers/ace/OS_NS_signal.h:191:18: error: 'sigset_t' was not
decl ared in this scope
C:/ACE583/ACE_wrappers/ace/OS_NS_signal.h:191:28: error: 's' was not
declared in this scope
int sigdelset (sigset_t *s,
^
C:/ACE583/ACE_wrappers/ace/OS_NS_signal.h:192:18: error: expected
primary-expres sion before
'int'
int signum);
^
C:/ACE583/ACE_wrappers/ace/OS_NS_signal.h:192:28: error: expression list
treated as compound
expression in initializer [-fpermissive]
int signum);
^
C:/ACE583/ACE_wrappers/ace/OS_NS_signal.h:195:20: warning: 'sigemptyset'
initial ized and declared
'extern' [enabled by default]
int sigemptyset (sigset_t *s);
^
C:/ACE583/ACE_wrappers/ace/OS_NS_signal.h:195:20: error: 'sigset_t' was not
decl ared in this scope
C:/ACE583/ACE_wrappers/ace/OS_NS_signal.h:195:30: error: 's' was not
declared in this scope
int sigemptyset (sigset_t *s);
^
C:/ACE583/ACE_wrappers/ace/OS_NS_signal.h:198:19: warning: 'sigfillset'
initiali zed and declared
'extern' [enabled by default]
int sigfillset (sigset_t *s);
^
C:/ACE583/ACE_wrappers/ace/OS_NS_signal.h:198:19: error: 'sigset_t' was not
decl ared in this scope
C:/ACE583/ACE_wrappers/ace/OS_NS_signal.h:198:29: error: 's' was not
declared in this scope
int sigfillset (sigset_t *s);
^
C:/ACE583/ACE_wrappers/ace/OS_NS_signal.h:201:20: warning: 'sigismember'
initial ized and declared
'extern' [enabled by default]
int sigismember (sigset_t *s,
^
C:/ACE583/ACE_wrappers/ace/OS_NS_signal.h:201:20: error: 'sigset_t' was not
decl ared in this scope
C:/ACE583/ACE_wrappers/ace/OS_NS_signal.h:201:30: error: 's' was not
declared in this scope
int sigismember (sigset_t *s,
^
C:/ACE583/ACE_wrappers/ace/OS_NS_signal.h:202:20: error: expected
primary-expres sion before
'int'
int signum);
^
C:/ACE583/ACE_wrappers/ace/OS_NS_signal.h:202:30: error: expression list
treated as compound
expression in initializer [-fpermissive]
int signum);
^
C:/ACE583/ACE_wrappers/ace/OS_NS_signal.h:210:26: error: 'sigset_t' does
not nam e a type
const sigset_t *nsp,
^
C:/ACE583/ACE_wrappers/ace/OS_NS_signal.h:210:36: error: ISO C++ forbids
declara tion of 'nsp' with
no type [-fpermissive]
const sigset_t *nsp,
^
C:/ACE583/ACE_wrappers/ace/OS_NS_signal.h:211:20: error: 'sigset_t' has not
been declared
sigset_t *osp);
^
C:/ACE583/ACE_wrappers/ace/OS_NS_signal.h:214:25: error: 'sigset_t' does
not nam e a type
int sigsuspend (const sigset_t *s);
^
C:/ACE583/ACE_wrappers/ace/OS_NS_signal.h:214:35: error: ISO C++ forbids
declara tion of 's' with
no type [-fpermissive]
int sigsuspend (const sigset_t *s);
^
In file included from C:/ACE583/ACE_wrappers/ace/OS_NS_Thread.h:39:0,
from C:/ACE583/ACE_wrappers/ace/Guard_T.h:26,
from C:/ACE583/ACE_wrappers/ace/Free_List.cpp:7,
from C:/ACE583/ACE_wrappers/ace/Free_List.h:142,
from C:/ACE583/ACE_wrappers/ace/Malloc_T.h:26,
from C:/ACE583/ACE_wrappers/ace/Local_Name_Space.h:20,
from Local_Name_Space.cpp:3:
C:/ACE583/ACE_wrappers/ace/Object_Manager_Base.h:175:10: error: 'sigset_t'
does not name a type
static sigset_t *default_mask (void);
^
C:/ACE583/ACE_wrappers/ace/Object_Manager_Base.h:218:3: error: 'sigset_t'
does n ot name a type
sigset_t *default_mask_;
^
In file included from C:/ACE583/ACE_wrappers/ace/Guard_T.h:26:0,
from C:/ACE583/ACE_wrappers/ace/Free_List.cpp:7,
from C:/ACE583/ACE_wrappers/ace/Free_List.h:142,
from C:/ACE583/ACE_wrappers/ace/Malloc_T.h:26,
from C:/ACE583/ACE_wrappers/ace/Local_Name_Space.h:20,
from Local_Name_Space.cpp:3:
C:/ACE583/ACE_wrappers/ace/OS_NS_Thread.h:1488:27: error: 'sigset_t' does
not na me a type
int sigtimedwait (const sigset_t *set,
^
C:/ACE583/ACE_wrappers/ace/OS_NS_Thread.h:1488:37: error: ISO C++ forbids
declar ation of 'set' with
no type [-fpermissive]
int sigtimedwait (const sigset_t *set,
^
C:/ACE583/ACE_wrappers/ace/OS_NS_Thread.h:1493:16: warning: 'sigwait'
initialize d and declared
'extern' [enabled by default]
int sigwait (sigset_t *set,
^
C:/ACE583/ACE_wrappers/ace/OS_NS_Thread.h:1493:16: error: 'sigset_t' was
not dec lared in this scope
C:/ACE583/ACE_wrappers/ace/OS_NS_Thread.h:1493:26: error: 'set' was not
declared in this scope
int sigwait (sigset_t *set,
^
C:/ACE583/ACE_wrappers/ace/OS_NS_Thread.h:1494:16: error: expected
primary-expre ssion before
'int'
int *sig = 0);
^
C:/ACE583/ACE_wrappers/ace/OS_NS_Thread.h:1494:28: error: expression list
treate d as compound
expression in initializer [-fpermissive]
int *sig = 0);
^
C:/ACE583/ACE_wrappers/ace/OS_NS_Thread.h:1497:26: error: 'sigset_t' does
not na me a type
int sigwaitinfo (const sigset_t *set,
^
C:/ACE583/ACE_wrappers/ace/OS_NS_Thread.h:1497:36: error: ISO C++ forbids
declar ation of 'set' with
no type [-fpermissive]
int sigwaitinfo (const sigset_t *set,
^
C:/ACE583/ACE_wrappers/ace/OS_NS_Thread.h:1712:38: error: 'sigset_t' does
not na me a type
int thr_sigsetmask (int how, const sigset_t *nsm, sigset_t *osm);
^
C:/ACE583/ACE_wrappers/ace/OS_NS_Thread.h:1712:48: error: ISO C++ forbids
declar ation of 'nsm' with
no type [-fpermissive]
int thr_sigsetmask (int how, const sigset_t *nsm, sigset_t *osm);
^
C:/ACE583/ACE_wrappers/ace/OS_NS_Thread.h:1712:53: error: 'sigset_t' has
not bee n declared
int thr_sigsetmask (int how, const sigset_t *nsm, sigset_t *osm);
^
In file included from C:/ACE583/ACE_wrappers/ace/TSS_T.inl:5:0,
from C:/ACE583/ACE_wrappers/ace/TSS_T.cpp:13,
from C:/ACE583/ACE_wrappers/ace/TSS_T.h:261,
from C:/ACE583/ACE_wrappers/ace/Singleton.h:24,
from C:/ACE583/ACE_wrappers/ace/Service_Gestalt.h:30,
from C:/ACE583/ACE_wrappers/ace/Service_Object.h:27,
from C:/ACE583/ACE_wrappers/ace/Naming_Context.h:25,
from C:/ACE583/ACE_wrappers/ace/Local_Name_Space_T.h:25,
from C:/ACE583/ACE_wrappers/ace/Local_Name_Space.h:128,
from Local_Name_Space.cpp:3:
C:/ACE583/ACE_wrappers/ace/Thread.h:219:32: error: 'sigset_t' does not name
a ty pe
const sigset_t *sigset,
^
C:/ACE583/ACE_wrappers/ace/Thread.h:219:42: error: ISO C++ forbids
declaration o f 'sigset'
with no type [-fpermissive]
const sigset_t *sigset,
^
C:/ACE583/ACE_wrappers/ace/Thread.h:220:26: error: 'sigset_t' has not been
decla red
sigset_t *osigset = 0);
^
In file included from C:/ACE583/ACE_wrappers/ace/TSS_T.cpp:19:0,
from C:/ACE583/ACE_wrappers/ace/TSS_T.h:261,
from C:/ACE583/ACE_wrappers/ace/Singleton.h:24,
from C:/ACE583/ACE_wrappers/ace/Service_Gestalt.h:30,
from C:/ACE583/ACE_wrappers/ace/Service_Object.h:27,
from C:/ACE583/ACE_wrappers/ace/Naming_Context.h:25,
from C:/ACE583/ACE_wrappers/ace/Local_Name_Space_T.h:25,
from C:/ACE583/ACE_wrappers/ace/Local_Name_Space.h:128,
from Local_Name_Space.cpp:3:
C:/ACE583/ACE_wrappers/ace/OS_NS_stdio.h: In function 'void*
ace_fileno_helper(F ILE*)':
C:/ACE583/ACE_wrappers/ace/OS_NS_stdio.h:120:51: warning: cast to pointer
from i nteger of different
size [-Wint-to-pointer-cast]
return (ACE_HANDLE)ACE_STD_NAMESPACE::fileno (fp);
^
/c/ACE583/ACE_wrappers/include/makeinclude/rules.local.GNU:174: recipe for
targe t
'.shobj/Local_Name_Space.o' failed
make[1]: *** [.shobj/Local_Name_Space.o] Error 1
make[1]: Leaving directory '/c/ACE583/ACE_wrappers/ace'
GNUmakefile:41: recipe for target 'ACE' failed
make: *** [ACE] Error 2
Then i did a realclean on the project and decided to use mingw32 bit
compiler and surprisingly that worked. Any suggestions on what could be
wrong. Does it not suport the 64 bit mingw compiler ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.isis.vanderbilt.edu/cgi-bin/mailman/private/ace-users/attachments/20150513/9c8b2643/attachment-0001.html>
More information about the ace-users
mailing list