Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Studio 12.4 tarball install can't compile programs on Linux

874627Nov 16 2014 — edited Dec 31 2014

Hi,

I just installed the tarball for 12.4 in /opt. I have previously used Studio 12.3, 12.2, and 12.0.

Problem #1 command line C and Fortran compilers fail

The IDE can compile and build an application but the command line compilers (C and Fortran) both fail:

EDIT: The IDE didn't build the project from existing code either. I was fooled by the fact dmake ran but it actually ignored my makefiles and did nothing. I got no error messages and the executables ran, so I ASSumed everything was ok. It now appears the tollowing error (Problem #2) below affects the IDE and command line tools and nothing works at all.

user@sys:~/devel/C/hello$ cc -V

cc: Sun C 5.13 Linux_i386 2014/10/20

user@sys:~/devel/C/hello$ which cc

/opt/solarisstudio12.4/bin/cc

user@sys:~/devel/C/hello$ cc -o hello hello.c

"hello.c", line 4: internal compiler error: DBGGEN ERROR: FILE="../src/dbg_libdwarf.c", LINE=31, Could not load dwarf library: libdwarf.so : libelf.so.1: cannot open shared object file: No such file or directory [DBG_GEN 5.5.0]

cc: acomp failed for hello.c

user@sys:~/devel/C/hello$

Problem #2 building a project using the wizard:

Yesterday I was able to get the IDE to build one of my Fortran apps from existing source. Today I tried using the wizard to build a C project from scratch.

I chose C/C++/Fortran application.

Next

It shows CppApplication_1

Finish

I expand source files to edit main.c

after a few seconds I get a popup that says

Project

/home/user/SolStudioProjects/CppApplication_1

metadata was modified in file system and in current session

Reload the project from disk and

override current changes to the project settings?

If I select no I get warning icons on the filename and Studio refuses to open it in edit. If I delete the project from /home/user/SolStudioProjects and start all over again and answer yes instead of no here, the entire project has a warning on it, nothing expands and when I look in the CppApplication_1 folder in /home/user/SolStudioProjects it's completely empty.

This post has been answered by Valeriy Soldatov-Oracle on Nov 17 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 28 2015
Added on Nov 16 2014
32 comments
7,764 views