This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
From CR 6548580: DESCRIPTION OF PROBLEM -------------------------------- Using autopar in the multithread model dropdown, the CC -xautopar -c -xO5 etc compile to .o compiles ok, but when it comes to linking it fails. ERROR MESSAGES ---------------------- CC -xautopar -xvector -xreduction -xloopinfo -xarch=generic64 -o dist/Release/Sun-Solaris-Sparc/app build/Release/Sun-Solaris- Sparc/develop/src/unix.o etc... CC: -xautopar requires an optimization level >=3 STEPS TO DUPLICATE ------------------------- Create a C++ project, performance release, set up autopar from drop down, build. WORKAROUNDS ------------------- Not sure, I tried manually adding -xO5 to the linker command line but it didn't change anything: CC: Warning: Option -xO5 passed to ld, if ld is invoked, ignored otherwise CC: -xautopar requires an optimization level >=3 *** Error code 1 dmake: Fatal error: Command failed for target ... Impact * Select the severity of impact. Significant
The original issue was about linker in description area. However, customer mentioned that Also, this is what Sun Studio 12 configured, with the missing option for the linker. All I did was select 2 drop downs (performance release build and automatic multithreading). There are no such choices for the linker. Shouldn't this be an option under the linker like it is found under the c++ section or automatically appended if automatic multithreading is added? In fact, all the other options are appended at link time (-xautopar -xvector -xreduction -xloopinfo - xarch=generic64) without having to specify them on the command line section. I would think this is a bug in the IDE, bug#2.
Seems to work....