Operating System - Linux
1828170 Members
2498 Online
109975 Solutions
New Discussion

Need help with aCC compiler version 6

 
nayeem khan
Occasional Advisor

Need help with aCC compiler version 6

Hi

We were using aC++ compiler version 5 and now we are migrating to new Version 6 Compiler

But one of the module which compiles fine but on execution throws a run time error

"aCC runtime: Use of "-mt" must be consistent during both compilation and linking
.
ABORT instruction (core dumped)"

This means some of the libraries/archives are not compiled with "-mt" option,this error was not appearing with Version 5 compiler may its a new compiler feature

Can someone tell me how to switch off this feature in version 6 compiler

Thanks in advance
3 REPLIES 3
Peter Nikitka
Honored Contributor

Re: Need help with aCC compiler version 6

Hi,

do exactly what the compiler tells you:
if you want to create a multithreaded application, every part of it need to be compiled/linked with the option '-mt'.

If it worked before without using '-mt' in all calls to aCC, it was by mistake.
Other UNIXes/Compilers behave exactly this way, as well.

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Dennis Handly
Acclaimed Contributor

Re: Need help with aCC compiler version 6

You switch off this error by not linking with libpthread. -mt is a required option for making multithreaded aC++ applications.

It it didn't appear with aCC5, it is either a fluke, (the heap wasn't zeroed), or aCC6 generates better/smaller code.

There is a bug with one version of the aC++ runtime lib that will give false missing -mt errors if you have illegally linked a shared lib with the aC++ runtime libs in the wrong order. You can fix that by going to the latest:
PHSS_35978

>Peter: do exactly what the compiler tells you:

Right.
nayeem khan
Occasional Advisor

Re: Need help with aCC compiler version 6

one of the TAO libraries was not compiled with -mt option