Operating System - HP-UX
1834031 Members
2407 Online
110063 Solutions
New Discussion

aCC: Unable to find stdanderd header files.

 
SOLVED
Go to solution
krjeev
Occasional Advisor

aCC: Unable to find stdanderd header files.

Hi,

I am trying to build cpp source files using aCC but it is unable to find the standered c header files as well as my header files, even though /usr/include and other include directory are present in inclusion list.

+ /opt/softbench/bin/aCC -O -z -mt +inst_implicit_include -DHPUX_aCC -Dhpux -DHPUX_11 -t p,/opt/softbench/lib/cpp -I-D/usr/att/ATTnmake/arch/hp.pa/lib/probe/C/pp/266F18C1binaCC -I- -Ibsrc -I/usr/include -I/opt/aCC/include/SC -c bsrc/tmp_expmain.c
Error 112: "bsrc/tmp_expmain.c", line 2 # Include file not found.
#include
^^^^^^^^^^
Error 112: "bsrc/tmp_expmain.c", line 3 # Include file not found.
#include
^^^^^^^^^^
Error 112: "bsrc/tmp_expmain.c", line 4 # Include file not found.
#include
^^^^^^^
Error 112: "bsrc/tmp_expmain.c", line 5 # Include file not found.
#include
^^^^^^^^^^
Error 112: "bsrc/tmp_expmain.c", line 6 # Include file not found.
#include
^^^^^^^^^^^^
Error 112: "bsrc/tmp_expmain.c", line 7 # Include file not found.
#include
^^^^^^^^^^^
Error 112: "bsrc/tmp_expmain.c", line 8 # Include file not found.
#include
^^^^^^^^^^^^^^^^^
11 REPLIES 11
James R. Ferguson
Acclaimed Contributor

Re: aCC: Unable to find stdanderd header files.

Hi:

Do the directory permissions allow searching (i.e the directory read and executable bits are set) and/or are the files beneath readable by the world?

Regards!

..JRF...
krjeev
Occasional Advisor

Re: aCC: Unable to find stdanderd header files.

Thanks for reply.
Yes, Permissions are ok, even when I compile using "cc" in place of "aCC" it give me error for only fstream.h and all other header file it is able to find.
I verified manually as well, all the required files have the read priviledge.

krjeev
Occasional Advisor

Re: aCC: Unable to find stdanderd header files.

I would like to add few points:
When I run just a file in home directory without usig any options it works perfectly. ex:
#include
#include

int main(){
printf("Test masage.\n");
cout<<"C++ test massage."<return 0;
}
HOME> aCC check.c
HOME> ./a.out
Test masage.
C++ test massage.
HOME>

But when I am using the above options with aCC, I am getting the error.
Dennis Handly
Acclaimed Contributor
Solution

Re: aCC: Unable to find standard header files.

>/opt/softbench/bin/aCC

Why are you using this instead of /opt/aCC/bin/aCC?

>even though /usr/include is present in inclusion list.

You must NOT do this.

>+inst_implicit_include

This is obsolete, remove it.

>-I-D/usr/att/ATTnmake/arch/hp.pa/lib/probe/C/pp/266F18C1binaCC

This looks like a make macro is missing, following the -I?

>-I/usr/include

You must NOT include the default include paths.

>-I/opt/aCC/include/SC

Are you really still using USL Standard Components? That's not there for Integrity.

krjeev
Occasional Advisor

Re: aCC: Unable to find stdanderd header files.

Thanks for your sugessions James
I updated everything you said except the following:
">-I-D/usr/att/ATTnmake/arch/hp.pa/lib/probe/C/pp/266F18C1binaCC
This looks like a make macro is missing, following the -I?"

It is unable to find string.h that is present in /usr/include.
Eroor is as below:
make: don't know how to make .ALL : tmpl_expander : /SM3/09.3UNOFFICIAL/util/gentools/tmp_expmain.o : bsrc/tmp_expmain.c : bsrc/tmpl_expander.h : String.h

I am unable to find in where to modify
HOME-> probe -l C make aCC
# ;VERSION;--version;aCC: HP ANSI C++ B3910B A.03.77;PATH;/opt/softbench/bin/aCC
CC.CC = /opt/softbench/bin/aCC
CC.NATIVE = /opt/softbench/bin/aCC
CC.EXECTYPE = hp.pa
CC.HOSTTYPE = hp.pa
CC.ALTPP.FLAGS = -t p,$(CPP)
CC.ALTPP.ENV =
CC.AR = /usr/ccs/bin/ar
CC.AR.ARFLAGS =
CC.ARFLAGS =
CC.DEBUG = -g
CC.DIALECT = C++ DOTI DYNAMIC TOUCHO -I- -L
CC.DLLBIG = -D_BLD_DLL +Z
CC.DLLSMALL = -D_BLD_DLL +z
CC.DLL = -D_BLD_DLL +Z
CC.DLL.DEF = -D_BLD_DLL
CC.DLL.DIR = $(LIBDIR)
CC.DLL.LIBRARIES = -lm -lc
CC.DLL.VARIANTS =
CC.DYNAMIC = -Wl,-ashared -Wl,+s
CC.EXPORT.DYNAMIC = -Wl,-E
CC.INCLUDE.LOCAL = -I-
if LDSHARED
CC.LD = /usr/ccs/bin/ld
else
CC.LD = /opt/softbench/bin/aCC
end
CC.LD.DYNAMIC =
CC.LD.LAZY =
CC.LD.NOLAZY =
CC.LD.ORIGIN =
CC.LD.RECORD =
CC.LD.NORECORD =
CC.LD.RUNPATH =
CC.LD.STATIC =
CC.LD.STRIP = -s -mr
CC.LIB.DLL = symbol
CC.LIB.ALL =
CC.LIB.UNDEF =
CC.MAKE.OPTIONS =
CC.NM = /usr/ccs/bin/nm
CC.NMEDIT = -e '/[ ]T[ ][ ]*[_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]/!d' -e 's/.*[ ]T[ ][ ]*//'
CC.NMFLAGS = -p
CC.NOPROTECT =
CC.OPTIMIZE = -O
CC.PICBIG = +Z
CC.PICSMALL = +z
CC.PIC = +Z
CC.READONLY =
CC.REPOSITORY =
CC.RUNPATH =
CC.SHARED = -b
CC.SHARED.LD = /opt/softbench/bin/aCC
CC.SHARED.NAME = -h
CC.SHARED.REGISTRY =
CC.SHARED.REGISTRY.PATH = $(LIBDIR)/registry.ld
CC.SHELLMAGIC =
CC.SIZE = /usr/ccs/bin/size
CC.STATIC = -Wl,-aarchive
CC.STDINCLUDE = /opt/aCC/include /opt/aCC/include/iostream /usr/include /usr
CC.STDLIB = /opt/aCC/lib /usr/lib /usr/ccs/lib
CC.STRICT = -ansi -pedantic
CC.STRIP = /usr/ccs/bin/strip
CC.STRIP.FLAGS =
CC.PREFIX.ARCHIVE = lib
CC.PREFIX.DYNAMIC =
CC.PREFIX.SHARED = lib
CC.PREFIX.SYMBOL =
CC.SUFFIX.ARCHIVE = .a
CC.SUFFIX.COMMAND =
CC.SUFFIX.DEBUG =
CC.SUFFIX.DYNAMIC =
CC.SUFFIX.LD = .ld
CC.SUFFIX.OBJECT = .o
CC.SUFFIX.SHARED = .sl
CC.SUFFIX.SOURCE = .c
CC.SUFFIX.STATIC =
CC.VERSION = --version
CC.VERSION.STRING = aCC: HP ANSI C++ B3910B A.03.77
CC.WARN = -fullwarn
CC.PREROOT =
CC.UNIVERSE = att
HOME->


Dennis Handly
Acclaimed Contributor

Re: aCC: Unable to find standard header files.

>It is unable to find string.h that is present in /usr/include.
>src/tmp_expmain.c : bsrc/tmpl_expander.h : String.h

These aren't the same. It appears you are using the obsolete Standard Components after all. And you can't remove that one -I.

(I would suggest you start porting away from USL SC.)

krjeev
Occasional Advisor

Re: aCC: Unable to find stdanderd header files.

I already removed "/opt/aCC/include/SC" but it is not working.
krjeev
Occasional Advisor

Re: aCC: Unable to find stdanderd header files.

Adding:
I am using
CCFLAGS += -w -mt -DRWSTD_NO_NAMESPACE -DHPUX_aCC -Dhpux -DHPUX_11

and

.SOURCE: bsrc
.SOURCE.C: bsrc
.SOURCE.c: bsrc
.SOURCE.g: . $(VROOT)/abstract_g2/bsrc $(VROOT)/libsrc/sa/bsrc $(VROOT)/gen_g2 \
$(EHOME)/include
.SOURCE.h: bsrc $(VROOT)/hdr $(VROOT)/hdr/bsrc $(EHOME)/include \
/opt/aCC/include/CC \
/opt/aCC/include \
/opt/aCC/include_std \
/opt/aCC/include/iostream \
/opt/acc/include \
/opt/acc/include/sys \
$(VHome)/include \
$(ORACLE_HOME)/rdbms/demo \
$(ORACLE_HOME)/rdbms/public \
/opt/dce/include



.SOURCE.a: $(VROOT)/lib $(EHOME)/lib \
/opt/aCC/lib \
/usr/lib \
/usr/local/lib \
$(VHome)/lib \
$(ORACLE_HOME)/rdbms/lib32 \
$(ORACLE_HOME)/rdbms/lib \
$(ORACLE_HOME)/lib32 \
$(ORACLE_HOME)/lib \
/opt/acc/lib

where bsrc is a directory where some of my .c and .h files are present(just to reduce confusio, I gave this point).
Dennis Handly
Acclaimed Contributor

Re: aCC: Unable to find standard header files.

>I already removed "/opt/aCC/include/SC" but it is not working.

I didn't tell you to remove it. I asked if you were using the obsolete USL SC headers and if you get that error, you were.
(And you may need +inst_implicit_include with them.)

krjeev
Occasional Advisor

Re: aCC: Unable to find stdanderd header files.

Hi Dennis,

I am not using "/opt/aCC/include/SC". Since nothing was working I tried to compile includig "/opt/aCC/include/SC".

As you said some macro may be missing in including probe file, I am uable to find that.
Dennis Handly
Acclaimed Contributor

Re: aCC: Unable to find standard header files.

>I am not using "/opt/aCC/include/SC". Since nothing was working I tried to compile including "/opt/aCC/include/SC".

Then you need to remove this dependency for String.h:
/util/gentools/tmp_expmain.o : bsrc/tmp_expmain.c : bsrc/tmpl_expander.h : String.h