* IBM xlC and Compaq cxx problems, possibly related
@ 2001-10-17 0:49 Charlie Zender
2001-10-17 12:16 ` Andrew Duane USG
0 siblings, 1 reply; 4+ messages in thread
From: Charlie Zender @ 2001-10-17 0:49 UTC (permalink / raw)
Hi,
I have beegn migrating a large'ish C++ program from GNU/Linux
platform where it was developed to IBM AIX and to Compaq Alpha
supercomputers. I need a few pointers as the process is not
as straightforward as I had hoped.
First, the IBM compiler, xlC, compiles all the source files
fine, but has problems linking. It does not seem to find
templated functions unless the definitions (i.e., the real
code) are placed in header files, where normally I would
just place the function prototypes (and not the functions
themselves). GNU g++ used to have this limitation, I remember,
but, as of 2.96, does not seem to suffer from this limitation
anymore. So my question is, is there a compiler/linker switch
on the IBM that will allow me to keep the function definitions
in the .cc files and not have to move them into the .hh files?
Or can I somehow forward declare the templates I will actually
be using so the compiler knows which ones to build so the linker
can find them?
Second, the Compaq Alpha compiler cxx compiles all the files in my
program fine except for the main routine, where it just never finishes
the compilation. I've let the machine (which is fast) chew up
hours trying to compile this code, and, although the CPU usage is
heavy, it never finishes compiling. I'm not using optimization
switches either. Is this a known problem with the cxx compiler,
or might I be doing something wrong? Anyone else encountered this?
Might this problem be the Compaq cxx symptom of the template location
discussed above?
Thanks,
Charlie
--
Charlie Zender, zender at uci dot edu, (949) 824-2987, Department of
Earth System Science, University of California, Irvine CA 92697-3100
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: IBM xlC and Compaq cxx problems, possibly related
2001-10-17 0:49 IBM xlC and Compaq cxx problems, possibly related Charlie Zender
@ 2001-10-17 12:16 ` Andrew Duane USG
2001-10-17 19:37 ` Charlie Zender
0 siblings, 1 reply; 4+ messages in thread
From: Andrew Duane USG @ 2001-10-17 12:16 UTC (permalink / raw)
In article <3BCCD5AD.70109@uci.edu> zender@uci_dot_edu writes:
>Second, the Compaq Alpha compiler cxx compiles all the files in my
>program fine except for the main routine, where it just never finishes
>the compilation. I've let the machine (which is fast) chew up
>hours trying to compile this code, and, although the CPU usage is
>heavy, it never finishes compiling. I'm not using optimization
>switches either. Is this a known problem with the cxx compiler,
>or might I be doing something wrong? Anyone else encountered this?
>Might this problem be the Compaq cxx symptom of the template location
>discussed above?
This should not happen.
What version of the O/S are you running? can you generate a core dump
of the compiler process (either with ^\ or the "coredump" command)?
--
Andrew L. Duane (JOT-7) duane@zk3.dec.com
Compaq Computer Corporation (603)-884-1294
110 Spit Brook Road
M/S ZKO3-3/U14
Nashua, NH 03062-2698
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: IBM xlC and Compaq cxx problems, possibly related
2001-10-17 12:16 ` Andrew Duane USG
@ 2001-10-17 19:37 ` Charlie Zender
2001-10-17 20:42 ` Kenneth Block
0 siblings, 1 reply; 4+ messages in thread
From: Charlie Zender @ 2001-10-17 19:37 UTC (permalink / raw)
To: Andrew Duane USG; +Cc: consult1
Andrew Duane USG wrote:
> In article <3BCCD5AD.70109@uci.edu> zender@uci_dot_edu writes:
>
>>Second, the Compaq Alpha compiler cxx compiles all the files in my
>>program fine except for the main routine, where it just never finishes
>>the compilation. I've let the machine (which is fast) chew up
>>hours trying to compile this code, and, although the CPU usage is
>>heavy, it never finishes compiling. I'm not using optimization
>>switches either. Is this a known problem with the cxx compiler,
>>or might I be doing something wrong? Anyone else encountered this?
>>Might this problem be the Compaq cxx symptom of the template location
>>discussed above?
>>
>
> This should not happen.
>
> What version of the O/S are you running? can you generate a core dump
> of the compiler process (either with ^\ or the "coredump" command)?
Machine is prospect.ucar.edu (NCAR: this is an FYI)
/home/prospect/zender/c++$ uname -a
OSF1 prospect0 V5.0 910 alpha
/home/prospect/zender/c++$ cxx -V
Compaq C++ V6.3-008 for Digital UNIX V5.0 (Rev. 910)
Compiler Driver V6.3-008 (cxx) cxx Driver
Compile command is
/home/prospect/zender/c++$ cxx -std strict_ansi -DALPHA -I.
-I${HOME}/include -I${NETCDF_INC} -c ccc.cc -o $MY_OBJ_DIR/ccc.o
I generated a core dump as instructed and now have two binary files:
-rw------- 1 zender cgdcsm 21602304 Oct 17 12:34 core.exx.prospect0.0
-rw------- 1 zender cgdcsm 303104 Oct 17 12:34
core.exx_driver.prospect0.0
What can I, Joe Average User, do with these compiler core dumps?
I've placed them on anonymous FTP at
ftp://dust.ps.uci.edu/pub/zender/c++
in case you're inclined to take a look at them.
Thanks,
Charlie
--
Charlie Zender, zender at uci dot edu, (949) 824-2987, Department of
Earth System Science, University of California, Irvine CA 92697-3100
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: IBM xlC and Compaq cxx problems, possibly related
2001-10-17 19:37 ` Charlie Zender
@ 2001-10-17 20:42 ` Kenneth Block
0 siblings, 0 replies; 4+ messages in thread
From: Kenneth Block @ 2001-10-17 20:42 UTC (permalink / raw)
For Compaq C++:
Customers with support contracts should seek support for problems through
local customer support centers.
Customers who do not have support contracts are encouraged to mail problem
reports to compaq_cxx.bugs@compaq.com. Although these reports will certainly
be used as a source of input for fixing problems for new releases, we cannot
give the reports individual attention. We can take remedial action only on a
best-effort basis.
If you have questions, suggestions, or comments, please send mail to
compaq_cxx@compaq.com
The easiest way to make a reproducer for this problem is to preprocess the
file that is failing and then verify that compiling the preprocessed file
also fails. Then just send the preprocessed file in. You can get quicker
response if you reduce the preprocessed file down to the smallest possible
example that will exhibit the error.
So, if "cxx -c foo.cxx ..." hangs. do "cxx -E foo.cxx ...> foo.ixx" and see
if "cxx -c foo.ixx ..." also hangs.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-10-17 20:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-17 0:49 IBM xlC and Compaq cxx problems, possibly related Charlie Zender
2001-10-17 12:16 ` Andrew Duane USG
2001-10-17 19:37 ` Charlie Zender
2001-10-17 20:42 ` Kenneth Block
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox