- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Sir;
I try and test ifort_11.1.064 on fedora12_x86_64 and core i7 920.
I successfully installedifort11.1.064following the guide.
http://software.intel.com/en-us/articles/using-intelr-compilers-for-linux-under-fedora/
But,
Compiling is failure when using -fast or -static option, although compiling is successful when no option and when using -m32, -m64, -O3, -ipo, -no-prec-div and -xHost option.
How can Iuse static option or fast option?(Is it impossible to link some libraries statically?)
best regards.
--------------------------------------
# cat hello.f90
program hello
print *,'hello'
end
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
THis is probably a good time to mention that FC12 is NOT supported. The instructions I give only show how one could install the compiler - this does not imply we test or support FC12. In fact, we don't test against FC12. It is best to stay with a Linux distro listed in the ReleaseNotes.
Well, this one sure surprised me. It seems Fedora doesn't want you to statically link! How about that.
The instructions listed only seem to install the capability for dynamic linking. You can get the 64bit static libc libraries with YUM
as root
yum install glibc-static.x86_64
I am trying to find a 32bit version of glibc static libraries, but so far no luck.
-fast includes -static. What was happening is that the linker was trying to find a static version of libm, libm.a.
You may want to statically link the Intel libraries with -static-intel and leave the system libraries dynamic. I would like to know if someone can find the 32bit version of glibc-static from any of the Fedora yum archives.
Notice that without the 32bit version of glibc-static you will NOT be able to create static 32bit executables - we need to find and install the 32bit version of libm.a in order to get static linking to work for ia32 32bit binaries.
I thought Fedora was better than this.
ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
using rpmfind, I can find the 32bit version of glibc-static:
http://www.rpmfind.net/linux/rpm2html/search.php?query=glibc-static
And you can download and install glibc-static-2.11.1-1.i686 to get the 32bit libraries.
WHat is interesting is the warning on using static linking from this rpmfind page:
"The glibc-static package contains the C library static libraries for -static linking. You don t need these, unless you link statically, which is highly discouraged.f"
There has been ongoing debate in the community about static linking versus dynamic linking for years. Personally, I think a programmer should have choice. However, increasingly static linking is being discouraged, especially on Windows OS. I understand the pros and cons of both sides of this argument. However, it is clear that Fedora is taking a stand on the side of making it difficult to link statically. I will have to check the newest distros of Ubuntu, OpenSUSE also to see if this is true of them as well.
ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I thanks Mr Green very much. Your advise is very useful.
I think, although there is noguarantee, if there is information for solution of problem and working well like this forum, some customer will upgrade or buy new one.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page