r1033 - trunk

archaic at linuxfromscratch.org archaic at linuxfromscratch.org
Sat May 20 14:37:08 PDT 2006


Author: archaic
Date: 2006-05-20 15:37:07 -0600 (Sat, 20 May 2006)
New Revision: 1033

Modified:
   trunk/intel-c-compiler.txt
Log:
Updated: intel-c-compiler.txt.

Modified: trunk/intel-c-compiler.txt
===================================================================
--- trunk/intel-c-compiler.txt	2006-05-14 14:15:54 UTC (rev 1032)
+++ trunk/intel-c-compiler.txt	2006-05-20 21:37:07 UTC (rev 1033)
@@ -1,7 +1,7 @@
 AUTHOR:	Robert Connolly <robert at linuxfromscratch dot org> (ashes)
 	Daniel Baumann <daniel.baumann at panthera-systems.net>
 
-DATE: 2005-12-08
+DATE: 2006-05-19
 
 LICENSE: GNU General Public License
 
@@ -236,50 +236,33 @@
 # To keep this hint shorter, I won't give complete instructions for every
 # package, but I'll give notes where needed.
 
-# *** Coreutils 5.93 ***
-# The first package that will compile with ICC is Coreutils, and it can be
-# profiled too. Compile Coreutils like this (apply patches first):
+# To use ICC profiling we need to add "-prof_gen" and "-prof_dir=$(pwd)" to
+# CFLAGS/CXXFLAGS for the first build. Then run 'make check' in order to run the
+# programs and generate profiling data. If you are able to run the programs better
+# than how 'make check' does, then I suggest you do that. Then 'make clean', and
+# finally make again with "-prof_use". You can run 'make check' again if you like,
+# and 'make install'.
 
-env CFLAGS="$ICC_CFLAGS -prof_gen -prof_dir=$(pwd)" LC_ALL="C" \
-	LANG="en" LANGUAGE="en" CC="icc" ./configure --prefix=/usr && make &&
-make clean &&
-make CFLAGS="$ICC_CFLAGS -prof_use -prof_dir=$(pwd)"
-
-# Then run the testsuite, everything should pass, and install Coreutils.
-
-# *** Zlib 1.2.3 ***
-# I suggest you compile Zlib with GCC so that X11 will link to it. Also, Zlib
-# can't compile with ICC's profiling. If you do not plan to use X11, then:
-
-env CFLAGS="$ICC_CFLAGS -fpic -gcc" LC_ALL="C" LANG="en" LANGUAGE="en" \
-	CC="icc" ./configure --prefix=/usr --shared --libdir=/lib &&
-make && make check
-
-# If 'make check' went well..
-
-make install && rm -v /lib/libz.so &&
-ln -sfv ../../lib/libz.so.1.2.3 /usr/lib/libz.so &&
-make clean && env CFLAGS="$ICC_CFLAGS -gcc" LC_ALL="C" \
-	LANG="en" LANGUAGE="en" CC="icc" ./configure --prefix=/usr &&
-make && make install && chmod -v 644 /usr/lib/libz.a
-
-# As you can see, when compiling with profiling we add "-prof_gen" and
-# "-prof_dir=$(pwd)" to CFLAGS/CXXFLAGS for the first build. Then 'make clean',
-# and replace "-prof_gen" with "-prof_use", then make check, then install.
-
 # In general, use this:
 
 env CFLAGS="$ICC_CFLAGS -prof_gen -prof_dir=$(pwd)" \
 	CXXFLAGS="$ICC_CFLAGS -prof_gen -prof_dir=$(pwd)" LC_ALL="C" \
         LANG="en" LANGUAGE="en" CC="icc" CXX="icpc" ./configure...
 
-# Then 'make && make clean', and final build with:
+# Then 'make && make check && make clean', and final build with:
 
 make CFLAGS="$ICC_CFLAGS -prof_use -prof_dir=$(pwd)" \
 	CXXFLAGS="$ICC_CFLAGS -prof_use -prof_dir=$(pwd)"
 
-# Then 'make check' and 'make install'.
+# Then 'make install'.
 
+# DB can not be compiled with ICC.
+
+# Coreutils can compile with ICC profiling.
+
+# Zlib can compile with ICC, but X11 will not be able to link to it, so I do not
+# suggest it.
+
 # Mktemp can compile with ICC profiling.
 
 # Iana-Etc has no C/C++ code.
@@ -611,4 +594,6 @@
 	* Several more packages compile now.
 	* Added instructions to profile code.
 	* Added -gcc for Iproute2.
+[2006-05-19]
+	* Run 'make check' after building with prof_gen, to generate profiling data.
 




More information about the hints mailing list