Hi,
I am trying to build ACE+TAO 6.0.5 for ARM processor using the
toolchain I built from
uclibC "buildroot.11.11" version and I am getting an error as
follows. Can anyone please
let me know what is causing the problem?
% /opt/tools/ACE_wrappers_arm-linux/ace$ make
make[1]: Entering directory `/opt/tools/ACE_wrappers_arm-linux/
ace'
GNUmakefile: /opt/tools/ACE_wrappers_arm-linux/ace/
GNUmakefile.ACE MAKEFLAGS=w
/opt/tools/arm-tools/usr/bin/arm-linux-g++ -W -Wall -Wpointer-
arith -pipe -O3 -g -fno-implicit-templates -Wno-deprecated -
D_POSIX_THREADS -D_POSIX_THREAD_SAFE_FUNCTIONS -D_REENTRANT -I/opt/
tools/ACE_wrappers_arm-linux -D__ACE_INLINE__ -I.. -
DACE_AS_STATIC_LIBS -c -o arm-linux.obj/Local_Name_Space.o
Local_Name_Space.cpp
In file included from /opt/tools/ACE_wrappers_arm-linux/ace/
OS_NS_stropts.h:32:0,
from /opt/tools/ACE_wrappers_arm-linux/ace/
OS_NS_sys_socket.h:30,
from /opt/tools/ACE_wrappers_arm-linux/ace/ACE.inl:8,
from /opt/tools/ACE_wrappers_arm-linux/ace/ACE.h:886,
from /opt/tools/ACE_wrappers_arm-linux/ace/
Malloc_T.cpp:16,
from /opt/tools/ACE_wrappers_arm-linux/ace/Malloc_T.h:
885,
from /opt/tools/ACE_wrappers_arm-linux/ace/
Local_Name_Space.h:20,
from Local_Name_Space.cpp:3:
/opt/tools/ACE_wrappers_arm-linux/ace/os_include/os_stropts.h:
58:28: fatal error: stropts.h: No such file or directory
compilation terminated.
make[1]: *** [arm-linux.obj/Local_Name_Space.o] Error 1
make[1]: Leaving directory `/opt/tools/ACE_wrappers_arm-linux/
ace'
make: *** [ACE] Error 2
% /opt/tools/ACE_wrappers_arm-linux/ace$
Below is the PRF form for this issue:
=================================================================
ACE VERSION: 6.0.5
HOST MACHINE and OPERATING SYSTEM:
Ubutu Linux 11.10 with Kernel 3.0.0-13
TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
COMPILER NAME AND VERSION (AND PATCHLEVEL):
- Linux with Kernel 2.6.38.8
- Cross Compiler GCC 4.6.2 toolchain for ARM processor built
from
uclibC buildroot.2011.11 version
THE $ACE_ROOT/ace/config.h FILE [if you use a link to a platform-
specific file, simply state which one]:
#define ACE_HAS_GPERF
#define ACE_NTRACE 1
#include "ace/config-linux.h"
THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE
debug=1
static_libs_only=1
include $(ACE_ROOT)/include/makeinclude/platform_ARM.GNU
TAO_IDL := $(HOST_ROOT)/bin/tao_idl
TAO_IDLFLAGS += -g $(HOST_ROOT)/bin/gperf
TAO_IDL_DEP := $(HOST_ROOT)/bin/tao_idl$(EXEEXT)
THE $ACE_ROOT/include/makeinclude/platform_ARM.GNU FILE
# platform_ARM.GNU (based on platform_linux.GNU + toolchain
redirectation)
# Builds ACE/TAO with ARM cross tools
#ARM=1 TIMESYS = 1
#CROSS-COMPILE = 1
#CROSS-COMPILE = 0
OS = linux
ifndef exceptions
exceptions = 1
endif
ifeq (,$(debug))
debug = 0
endif
ifeq (,$(optimize))
optimize = 1
endif
ifeq (,$(threads))
threads = 1
endif
ifeq ($(threads),0)
CPPFLAGS += -DACE_MT_SAFE=0
endif # threads
#shared_libs = 1
static_libs = 1
ifeq (,$(ARM_ROOT))
default:
@ERROR: you must set your ARM_ROOT environment variable
endif # ARM_ROOT
#ifeq (,$(TS_SDK_PREFIX))
# default:
# @ERROR: you must set your TS_SDK_PREFIX environment variable
#endif # TS_SDK_PREFIX
# update the path to include our toolchain directory if it's
not there already
#ifeq (,$(findstring $(HOST_DIR)/bin,$(PATH)))
# PATH := $(PATH):$(TS_SDK_DIR)/bin
#endif # PATH
ifeq (,$(PERL_PATH))
PERL_PATH = perl
endif # ! PERL_PATH
# point to our cross-compiler toolchain
CROSS_COMPILE = $(ARM_ROOT)/bin/arm-linux
CXX = $(CROSS_COMPILE)-g++
CC = $(CROSS_COMPILE)-gcc
AS = $(CROSS_COMPILE)-as
AR = $(CROSS_COMPILE)-ar
NM = $(CROSS_COMPILE)-nm
LD = $(CROSS_COMPILE)-ld
OBJDUMP = $(CROSS_COMPILE)-objdump
OBJCOPY = $(CROSS_COMPILE)-objcopy
RANLIB = $(CROSS_COMPILE)-ranlib
STRIP = $(CROSS_COMPILE)-strip
ifeq ($(shared_libs),1)
SHARED_LIBS = 1
endif
ifeq ($(shared_libs_only),1)
SHARED_LIBS = 1
endif
CFLAGS += -W -Wall -Wpointer-arith -pipe
ifeq ($(threads),1)
CPPFLAGS += -D_POSIX_THREADS -
D_POSIX_THREAD_SAFE_FUNCTIONS -D_REENTRANT \
$(PLATFORM_AIO_SUPPORT)
endif # threads
ifeq ($(IMPLICIT_TEMPLATES_FLAG),)
IMPLICIT_TEMPLATES_FLAG=-fno-implicit-templates
endif
CCFLAGS += $(CFLAGS) $(IMPLICIT_TEMPLATES_FLAG) -Wno-deprecated
DCFLAGS += -g
DLD = $(CXX)
LD = $(CXX)
LIBS += -ldl
ifeq ($(threads),1)
LIBS += -lpthread
ifeq (-DACE_HAS_AIO_CALLS,$(PLATFORM_AIO_SUPPORT))
LIBS += -lrt
endif
endif
OCFLAGS += -O3
PIC = -fPIC
#AR = ar
ARFLAGS = rsuv
SOFLAGS = $(CPPFLAGS) -shared
SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $<; \
$(SOLINK.cc) -o $@ $(LDFLAGS) $(VSHDIR)$*.o
PRELIB = @true
# Added line below to support "Executable Shared Object" files
(as
# needed by the service configurator).
# Marius Kjeldahl <
mar...@sn.no,
mar...@funcom.com>
ifeq ($(threads),1)
ESOBUILD = $(COMPILEESO.cc) $(PIC) -shared -o $(VSHDIR)
$*.so $<
ifndef PRELIB
PRELIB = @true
endif # ! PRELIB
endif
# not sure why this is necessary, check to see if ACE_CC is
used elsewhere
ACE_CC := $(CC)
# the scripts don't detect this correctly, so set manually here
ACE_HAS_GNUG_PRE_2_8 = 0
BUILD METHOD USED:
GNUmakefile generated by "
mwc.pl -type gnuace" command
CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/
default.features
No default/features file available
AREA/CLASS/EXAMPLE AFFECTED:
Local_Name_Space.cpp failed to compile
DOES THE PROBLEM AFFECT:
COMPILATION? YES
LINKING? NO
On Unix systems, did you run make realclean first?
EXECUTION? NO
OTHER (please specify)?
SYNOPSIS:
To build ACE+TAO using Cross Compiler GCC 4.6.2 for ARM
processor
failed.
DESCRIPTION:
I am trying to build ACE+TAO using Cross Compiler for ARM
processor
and getting an error as follows:
% /opt/tools/ACE_wrappers_arm-linux/ace$ make
make[1]: Entering directory `/opt/tools/ACE_wrappers_arm-linux/
ace'
GNUmakefile: /opt/tools/ACE_wrappers_arm-linux/ace/
GNUmakefile.ACE MAKEFLAGS=w
/opt/tools/arm-tools/usr/bin/arm-linux-g++ -W -Wall -Wpointer-
arith -pipe -O3 -g -fno-implicit-templates -Wno-deprecated -
D_POSIX_THREADS -D_POSIX_THREAD_SAFE_FUNCTIONS -D_REENTRANT -I/opt/
tools/ACE_wrappers_arm-linux -D__ACE_INLINE__ -I.. -
DACE_AS_STATIC_LIBS -c -o arm-linux.obj/Local_Name_Space.o
Local_Name_Space.cpp
In file included from /opt/tools/ACE_wrappers_arm-linux/ace/
OS_NS_stropts.h:32:0,
from /opt/tools/ACE_wrappers_arm-linux/ace/
OS_NS_sys_socket.h:30,
from /opt/tools/ACE_wrappers_arm-linux/ace/ACE.inl:8,
from /opt/tools/ACE_wrappers_arm-linux/ace/ACE.h:886,
from /opt/tools/ACE_wrappers_arm-linux/ace/
Malloc_T.cpp:16,
from /opt/tools/ACE_wrappers_arm-linux/ace/Malloc_T.h:
885,
from /opt/tools/ACE_wrappers_arm-linux/ace/
Local_Name_Space.h:20,
from Local_Name_Space.cpp:3:
/opt/tools/ACE_wrappers_arm-linux/ace/os_include/os_stropts.h:
58:28: fatal error: stropts.h: No such file or directory
compilation terminated.
make[1]: *** [arm-linux.obj/Local_Name_Space.o] Error 1
make[1]: Leaving directory `/opt/tools/ACE_wrappers_arm-linux/
ace'
make: *** [ACE] Error 2
% /opt/tools/ACE_wrappers_arm-linux/ace$
REPEAT BY:
cd $ACE_ROOT/ace
mwc.pl -type gnuace
make
SAMPLE FIX/WORKAROUND:
NONE
===========================================================
Thanks,
Chong Pak