Operating System - HP-UX
1834814 Members
3083 Online
110070 Solutions
New Discussion

Re: Not able to make .o files using aC++ on HPUX IA64

 
johnsonjthomas
Frequent Advisor

Not able to make .o files using aC++ on HPUX IA64

Hi,

I am trying to port TBB (Thread Building Blocks) 2.2 to HP-UX IA64 platform. I encountered with an error in which .o files are not made when compiling .s files but .o files are produces when normal .cpp are given. The compiler used is aC++ (eval version).
The commands given are

cpp <../../src/tbb/ia64-gas/atomic_support.s | grep -v '^#' >atomic_support.tmp

/opt/aCC/bin/aCC -DTBB_DO_ASSERT -DDO_ITT_NOTIFY -g +O0 -DUSE_PTHREAD -AA +DD64 -mt -Wc,-ansi_for_scope,on -D__TBB_BUILD=1 -c -o atomic_support.o atomic_support.tmp

cpp: C preprocessor

The commands shown above are part of the build process. Individually also I tried to run the commands. The first command produces the .tmp file but when I run the second command, no output is produced, neither errors nor the .o file.

Could anyone tell me as to why this is happening?
Any help would be great!

Thanks,
Johnson
1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: Not able to make .o files using aC++ on HPUX IA64

Why are you using the off chip preprocessor? You should be assembling the .s directly. Why bother to remove the "#" lines?

>atomic_support.tmp

This isn't a valid input file suffix, it's assumed to be a linker file.