FC4系统下安装完PGI,到测试时
1.f90为a=1
write(*,*) a
end
然后执行pgf90 -v 1.f90
出现:usr/pgi/linux86/6.0/bin/pgf901 1.f90 -opt 1 -nohpf -nostatic -x 119 0x100000 -x 19 0x400000 -x 59 4 -x 15 2 -x 49 0x400004 -x 51 0x20 -x 57 0x4c -x 58 0x10000 -x 124 0x1000 -x 57 0xfb0000 -x 58 0x78031040 -x 48 3328 -stdinc /usr/pgi/linux86/6.0/include:/usr/local/include:/usr/lib/gcc/i386-redhat-linux/4.0.0/include:/usr/lib/gcc/i386-redhat-linux/4.0.0/include:/usr/include -def unix -def __unix -def __unix__ -def linux -def __linux -def __linux__ -def __inline__= -def i386 -def __i386 -def __i386__ -def __NO_MATH_INLINES -def linux86 -def __THROW= -freeform -vect 48 -output /tmp/pgf90aaaaadkdau.ilm
0 inform, 0 warnings, 0 severes, 0 fatal for MAIN
PGF90/any Linux/x86 6.0-5: compilation successful
/usr/pgi/linux86/6.0/bin/pgf902 /tmp/pgf90aaaaadkdau.ilm -fn 1.f90 -opt 1 -x 51 0x20 -x 119 0xa10000 -x 119 0x100000 -x 122 0x40 -x 123 0x1000 -x 127 4 -x 119 0x40000000 -x 19 0x400000 -x 59 4 -x 129 4 -x 80 0x300 -y 80 0x1000 -x 80 0x40000000 -x 124 0x1400 -y 15 2 -x 129 4 -x 80 0x300 -y 80 0x1000 -x 80 0x40000000 -x 57 0x3b0000 -x 58 0x48000000 -astype 0 -x 124 1 -cmdline '+pgf90 /tmp/pgf90aaaaadkdau.ilm -v' -asm /tmp/pgf90baaaadkdau.s
0 inform, 0 warnings, 0 severes, 0 fatal for MAIN
PGF90/x86 Linux/x86 6.0-5: compilation successful
/usr/bin/as /tmp/pgf90baaaadkdau.s -o /tmp/pgf90caaaadkdau.o
/usr/bin/ld /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/gcc/i386-redhat-linux/4.0.0/crtbegin.o /usr/pgi/linux86/6.0/lib/f90main.o -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 /tmp/pgf90caaaadkdau.o -L/usr/pgi/linux86/6.0/lib -L/usr/lib -L/usr/lib/gcc/i386-redhat-linux/4.0.0 -rpath /usr/pgi/linux86/6.0/lib -lpgf90 -lpgf90_rpm1 -lpgf902 -lpgf90rtl -lpgftnrtl -lc -lnspgc -lpgc -lm -lgcc -lc -lgcc /usr/lib/gcc/i386-redhat-linux/4.0.0/crtend.o /usr/lib/crtn.o
Unlinking /tmp/pgf90aaaaadkdau.ilm
Unlinking /tmp/pgf90baaaadkdau.s
Unlinking /tmp/pgf90caaaadkdau.o
接着执行./a.out
结果为:./a.out: error while loading shared libraries: /usr/pgi/linux86/6.0/lib/libpgc.so: cannot restore segment prot after reloc: Permission denied
请教各位高手问题出在哪,应该怎么改 |