PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

could not complete installation in UBUNTU
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Licenses and Installation
View previous topic :: View next topic  
Author Message
hongyon



Joined: 19 Jul 2004
Posts: 551

PostPosted: Tue May 20, 2008 3:10 pm    Post subject: Reply with quote

Hi,

makelocal did not finish the job and quit when it could not find the linker. Can you please write a small hello program or just empty program and compile using gcc -v and redirect its output in a file named out and then run following command:

% grep collect2 out | sed q | sed -e 's/.* -dynamic-linker //' -e 's/ .*//'

It should gives you a linker, if not:

What is the output?
What is in out file?

Thank you,
Hongyon
Back to top
View user's profile
gefstath



Joined: 16 May 2008
Posts: 10

PostPosted: Fri May 23, 2008 10:16 am    Post subject: Reply with quote

Hi again,

When I try to compile a simple hello program I get this message:

/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status

Any Ideas?

Thanks for your time!
George
Back to top
View user's profile
hongyon



Joined: 19 Jul 2004
Posts: 551

PostPosted: Fri May 23, 2008 11:28 am    Post subject: Reply with quote

Hi,

Did you compile with gcc -v? I am trying to determine where your linker is located.

Here is command:
% gcc -v hello.c >& out
% grep collect2 out | sed q | sed -e 's/.* -dynamic-linker //' -e 's/ .*//'

Now, what is in file named out?
And what is the output from grep command?

Hongyon
Back to top
View user's profile
gefstath



Joined: 16 May 2008
Posts: 10

PostPosted: Fri May 23, 2008 3:39 pm    Post subject: Reply with quote

Hi Hongyon,

The out file :

Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
/usr/lib/gcc/x86_64-linux-gnu/4.2.3/cc1 -quiet -v hello.c -quiet -dumpbase hello.c -mtune=generic -auxbase hello -version -fstack-protector -fstack-protector -o /tmp/ccE1fpZ6.s
ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../../x86_64-linux-gnu/include"
ignoring nonexistent directory "/usr/include/x86_64-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/lib/gcc/x86_64-linux-gnu/4.2.3/include
/usr/include
End of search list.
GNU C version 4.2.3 (Ubuntu 4.2.3-2ubuntu7) (x86_64-linux-gnu)
compiled by GNU C version 4.2.3 (Ubuntu 4.2.3-2ubuntu7).
GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=63946
Compiler executable checksum: 04286fa30e0b1c736cc2bb914c15518c
as --traditional-format -V -Qy -o /tmp/ccyMRZMc.o /tmp/ccE1fpZ6.s
GNU assembler version 2.18.0 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.18.0.20080103
/usr/lib/gcc/x86_64-linux-gnu/4.2.3/collect2 --eh-frame-hdr -m elf_x86_64 --hash-style=both -dynamic-linker /lib64/ld-linux-x86-64.so.2 crt1.o crti.o /usr/lib/gcc/x86_64-linux-gnu/4.2.3/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/4.2.3 -L/usr/lib/gcc/x86_64-linux-gnu/4.2.3 -L/usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../.. /tmp/ccyMRZMc.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/4.2.3/crtend.o crtn.o
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status


and the output from the grep command is the following:
/lib64/ld-linux-x86-64.so.2

George
Back to top
View user's profile
hongyon



Joined: 19 Jul 2004
Posts: 551

PostPosted: Tue May 27, 2008 8:45 am    Post subject: Reply with quote

Hi George,

You will need to install another Ubantu package.
Here is command:

%sudo apt-get install build-essential

You might need to do this first:
% sudo apt-get update

Which will fetch all of the most recent packages.

For more information: https://help.ubantu.com/community/InstallingCompilers

Then either reinstall PGI compilers or just rerun makelocalrc.

Hongyon
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Licenses and Installation All times are GMT - 7 Hours
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group