Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

[HOWTO] Intel C++ Compiler and per-package CFLAGS

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Locked
Advanced search
100 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
  • Next
Author
Message
a.b.
Apprentice
Apprentice
User avatar
Posts: 218
Joined: Sun Mar 23, 2008 12:37 pm
Location: Anus Mundi, Germany
Contact:
Contact a.b.
Website

Post by a.b. » Fri Sep 05, 2008 12:51 am

steveb wrote:
a.b. wrote:The fact portage complains about the usage of external programs in the bashrc seems like a bug to me. Ebuilds aren't supposed to use anything other than bash code but I see no actual reason to restrict that in a configuration file.
Wrong. If you ever have build Gentoo for an embedded system, then you will see that bash is not the number one choice for an shell. [...]
Honestly, I haven't even thought about the possibility that a bashrc might be sourced by anything other than bash so I didn't think about that while writing.
And in at least one place, I could replace use bash's '=~' operator to replace an ugly "cat | grep" construct which I find much worse.
And stuff like this:

Code: Select all

  while read atom data; do
    data="$(echo $data | sed -e 's/#.*//')"   #Strip comments
      if matchatom "$atom"; then
        if [ $append -eq 0 ]; then       
          ret="$data"
        else
          ret="$ret $data"
        fi
      fi
  done < $1
Could be replaced by this (untested but I think it should work. It should be even faster since calling the replace (in your code it is a call to GNU sed) is only done when needed):

Code: Select all

  while read atom data; do
      if matchatom "${atom}"; then
        if [ ${append} -eq 0 ]; then       
          ret="${data%%#*}"
        else
          ret="${ret} ${data%%#*}"
        fi
      fi
  done < ${1}
If I had knew that possibility exists, I'd have used it (And I'm going to use it as of know, of course). Does that kind of expression have a name I can google for?
Top
steveb
Advocate
Advocate
User avatar
Posts: 4563
Joined: Wed Sep 18, 2002 8:19 pm

Post by steveb » Fri Sep 05, 2008 9:02 am

a.b. wrote:Does that kind of expression have a name I can google for?
To be honest: I don't know how this is called.

// SteveB
Top
Gregoire
Apprentice
Apprentice
User avatar
Posts: 292
Joined: Sat Apr 15, 2006 9:51 am

Post by Gregoire » Fri Sep 05, 2008 10:53 am

About the "Could not open source file limits.h" problem :
I can't compil lots of package using icc if gcc-config is set to x86_64-pc-linux-gnu-4.3.1 : it fails with the limits.h error.
If I set it to x86_64-pc-linux-gnu-4.2.4 then it compils fine.

Any idea what could solve the compilation using the version 4.3.1 even if that's not the compiler being used ?

EDIT :

I can't compil packages depending on freetype, for example mplayer/xine :

Code: Select all

if /bin/sh ../../libtool --tag=CC --mode=compile /opt/intel/cce/10.1.018/bin/icc -DHAVE_CONFIG_H -I. -I. -I../../include -I../.. -I../../include -I../../include -I../../src -I../../src/xine-engine -I../../src/xine-engine -I../../src/xine-utils  -I../../src/input -I../../src/input  -I../../lib -I../../lib -I../../contrib/libxdg-basedir  -DXINE_LIBRARY_COMPILE -DNDEBUG -D_REENTRANT -DXINE_COMPILE   -O3  -ffast-math -fexpensive-optimizations  -I/usr/include -I/usr/include/freetype2     -fvisibility=hidden   -pipe  -Wall -Wformat=2 -Wno-format-zero-length -Wmissing-format-attribute -Werror-implicit-function-declaration -Wstrict-aliasing=2 -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wpointer-arith -g -O3 -gcc -xT -mtune=core2 -MT spu.lo -MD -MP -MF ".deps/spu.Tpo" -c -o spu.lo spu.c; \
        then mv -f ".deps/spu.Tpo" ".deps/spu.Plo"; else rm -f ".deps/spu.Tpo"; exit 1; fi
libtool: compile:  /opt/intel/cce/10.1.018/bin/icc -DHAVE_CONFIG_H -I. -I. -I../../include -I../.. -I../../include -I../../include -I../../src -I../../src/xine-engine -I../../src/xine-engine -I../../src/xine-utils -I../../src/input -I../../src/input -I../../lib -I../../lib -I../../contrib/libxdg-basedir -DXINE_LIBRARY_COMPILE -DNDEBUG -D_REENTRANT -DXINE_COMPILE -O3 -ffast-math -fexpensive-optimizations -I/usr/include -I/usr/include/freetype2 -fvisibility=hidden -pipe -Wall -Wformat=2 -Wno-format-zero-length -Wmissing-format-attribute -Werror-implicit-function-declaration -Wstrict-aliasing=2 -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wpointer-arith -g -O3 -gcc -xT -mtune=core2 -MT spu.lo -MD -MP -MF .deps/spu.Tpo -c spu.c  -fPIC -DPIC -o .libs/spu.o
icc: command line warning #10006: ignoring unknown option '-ffast-math'
icc: command line warning #10006: ignoring unknown option '-fexpensive-optimizations'
icc: command line warning #10156: ignoring option '-W'; no argument required
icc: command line warning #10156: ignoring option '-W'; no argument required
icc: command line warning #10156: ignoring option '-W'; no argument required
icc: command line warning #10156: ignoring option '-W'; no argument required
icc: command line warning #10156: ignoring option '-W'; no argument required
icc: command line warning #10156: ignoring option '-W'; no argument required
/usr/include/freetype/freetype.h(27): catastrophic error: #error directive: "This is freetype.h of FreeType 1!"
  #error "This is freetype.h of FreeType 1!"
I can't remove freetype-1 because it's needed for texlive.

I used this script to compil xine :

Code: Select all

#!/bin/bash
source /etc/make.conf
export CC="icc"
export CXX="cpc"
export CFLAGS="-O3 -xT -gcc -mtune=core2"
export CXXFLAGS="-O3 -xT -gcc -mtune=core2"

p=/data/linux/dvb/patches/xine/xine-lib.patch
MAKE='sudo nice -n 4 make -j3'
OPTIONS="show update dry-run apply undry-run  unapply compile log exit"
select opt in $OPTIONS; do
        if [ "$opt" = "show" ]; then
                vi $p
        elif [ "$opt" = "update" ]; then
                hg pull -u http://hg.debian.org/hg/xine-lib/xine-lib-1.2/
        elif [ "$opt" = "dry-run" ]; then
                patch --dry-run -p1 < $p
        elif [ "$opt" = "apply" ]; then
                patch -p1 < $p
        elif [ "$opt" = "undry-run" ]; then
                patch --dry-run -p1 -R < $p
        elif [ "$opt" = "unapply" ]; then
                patch -p1 -R < $p
        elif [ "$opt" = "compile" ]; then
                sudo ./autogen.sh --disable-dxr3 --enable-opengl --enable-v4l \
                --enable-glu --enable-dvb --prefix=/usr CC="/opt/intel/cce/10.1.018/bin/icc" \
                CFLAGS="-O3 -gcc -xT -mtune=core2" --build=x86_64-linux-gnu \
                --with-alsa --with-external-ffmpeg --with-fontconfig \
                --with-freetype --with-x --with-xv-path=/usr/X11R6/lib \
                --x-includes=/usr/include && $MAKE && $MAKE install && \
                sudo rm -fr /usr/lib/xine && $MAKE install && $MAKE distclean
        elif [ "$opt" = "log" ]; then
                hg log|less
        elif [ "$opt" = "exit" ]; then
                exit
        else   
                echo bad option
        fi
done
Should I change anything ?
Thanks.
Top
tranquilcool
Veteran
Veteran
Posts: 1246
Joined: Fri Mar 25, 2005 1:16 pm

Post by tranquilcool » Thu Sep 11, 2008 8:53 pm

a.b. wrote:
jdoe wrote:is there a way to use icc on a per package basis with paludis?
I's amazing. I just have finished a bashrc for paludis and now I see your post :D

I've uploaded it together with some example config files here: http://ihatenicks.bplaced.net/paludis-bashrc/ Read the config files and the comments in the script for instructions.

I haven't done much testing yet, feedback is welcome.
doesn't work for me.
anything i compile with paludis/icc errors with;

configure: error: C compiler cannot create executables
this is a strange strange world.
Top
a.b.
Apprentice
Apprentice
User avatar
Posts: 218
Joined: Sun Mar 23, 2008 12:37 pm
Location: Anus Mundi, Germany
Contact:
Contact a.b.
Website

Post by a.b. » Thu Sep 11, 2008 8:57 pm

With which CFLAGS did that happen? I had that problem after adding "-idirafter /usr/include/linux", it seems to work if I put it in icc.cfg.
Top
tranquilcool
Veteran
Veteran
Posts: 1246
Joined: Fri Mar 25, 2005 1:16 pm

Post by tranquilcool » Thu Sep 11, 2008 9:00 pm

a.b. wrote:With which CFLAGS did that happen? I had that problem after adding "-idirafter /usr/include/linux", it seems to work if I put it in icc.cfg.

iccflags;

*/* -O3 -xP -ip -gcc

cflags;

*/* -mtune=prescott -march=prescott -O2 -mfpmath=sse -msse3 -ftracer -funit-at-a-time -fomit-frame-pointer -frename-registers -ftree-vectorize -pipe

with emerge ruby compiles fine with the same iccflags.
this is a strange strange world.
Top
a.b.
Apprentice
Apprentice
User avatar
Posts: 218
Joined: Sun Mar 23, 2008 12:37 pm
Location: Anus Mundi, Germany
Contact:
Contact a.b.
Website

Post by a.b. » Thu Sep 11, 2008 9:22 pm

Please add temporary

Code: Select all

die "$CC | $CXX | $CFLAGS | $CXXFLAGS | $LDFLAGS"
At the end of bashrc and post the error message.

Also check if you have version 0.2, you can see which version you have at the top of the script. If not, get it (bplaced seems to be down, direct link)
Top
tranquilcool
Veteran
Veteran
Posts: 1246
Joined: Fri Mar 25, 2005 1:16 pm

Post by tranquilcool » Thu Sep 11, 2008 9:29 pm

a.b. wrote:Please add temporary

Code: Select all

die "$CC | $CXX | $CFLAGS | $CXXFLAGS | $LDFLAGS"
At the end of bashrc and post the error message.

Also check if you have version 0.2, you can see which version you have at the top of the script. If not, get it (bplaced seems to be down, direct link)
snip end of bashrc;

# Set LDFLAGS
if test -z "$LDFLAGS"; then
LDFLAGS="$(append=1 parseconfig $etc/ldflags.conf)" || die "error setting LDFLAGS"
fi

die "$CC | $CXX | $CFLAGS | $CXXFLAGS | $LDFLAGS"

errors;

Directory '/usr/portage/distfiles' owned by group 'portage', not 'paludisbuild', so cannot enable userpriv

!!! ERROR in dev-lang/ruby-1.8.6_p287-r1:
!!! In /usr/libexec/paludis/ebuild.bash at line 107
!!! icc | icpc | -O2 -march=i686 -pipe | -O2 -march=i686 -pipe | -Wl,-O1

!!! Call stack:
!!! * source (/etc/paludis/bashrc:107)
!!! * main (/usr/libexec/paludis/ebuild.bash:212)

diefunc: making ebuild PID 13898 exit with error
die trap: exiting with error.
am using version 0.2
this is a strange strange world.
Top
a.b.
Apprentice
Apprentice
User avatar
Posts: 218
Joined: Sun Mar 23, 2008 12:37 pm
Location: Anus Mundi, Germany
Contact:
Contact a.b.
Website

Post by a.b. » Thu Sep 11, 2008 9:42 pm

It fails to set any CFLAGS and tries to use the defaults, that's probably why icc fails. The question is why.

Create a debug log with.:

Code: Select all

export debug=1
paludis -i ruby
Then post/paste all *.conf files that belong to bashrc as well as /tmp/pbshrc-test.
Top
tranquilcool
Veteran
Veteran
Posts: 1246
Joined: Fri Mar 25, 2005 1:16 pm

Post by tranquilcool » Thu Sep 11, 2008 9:57 pm

a.b. wrote:It fails to set any CFLAGS and tries to use the defaults, that's probably why icc fails. The question is why.

Create a debug log with.:

Code: Select all

export debug=1
paludis -i ruby
Then post/paste all *.conf files that belong to bashrc as well as /tmp/pbshrc-test.
cat work/ruby-1.8.6-p287/config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.61. Invocation command line was

$ ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --program-suffix=18 --enable-shared --enable-socks --disable-install-doc --disable-pthread --enable-ipv6 --disable-debug --with-dbm --with-gdbm --with-openssl --without-tk --with-sitedir=/usr/lib/ruby/site_ruby --build=i686-pc-linux-gnu

## --------- ##
## Platform. ##
## --------- ##

hostname = xxxx
uname -m = i686
uname -r = 2.6.27-rc5-zen3
uname -s = Linux
uname -v = #1 SMP PREEMPT Tue Sep 9 17:46:51 CEST 2008

/usr/bin/uname -p = Intel(R) Pentium(R) 4 CPU 3.20GHz
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/libexec/paludis/utils
PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /bin
PATH: /sbin
PATH: /usr/bin
PATH: /usr/sbin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1892: checking build system type
configure:1910: result: i686-pc-linux-gnu
configure:1932: checking host system type
configure:1947: result: i686-pc-linux-gnu
configure:1969: checking target system type
configure:1984: result: i686-pc-linux-gnu
configure:2205: checking for i686-pc-linux-gnu-gcc
configure:2232: result: icc
configure:2510: checking for C compiler version
configure:2517: icc --version >&5
./configure: line 2518: icc: command not found
configure:2520: $? = 127
configure:2527: icc -v >&5
./configure: line 2528: icc: command not found
configure:2530: $? = 127
configure:2537: icc -V >&5
./configure: line 2538: icc: command not found
configure:2540: $? = 127
configure:2563: checking for C compiler default output file name
configure:2590: icc -O2 -march=i686 -pipe -fno-strict-aliasing -Wl,-O1 conftest.c >&5
./configure: line 2591: icc: command not found
configure:2593: $? = 127
configure:2631: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define USE_BUILTIN_FRAME_ADDRESS 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2638: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_env_CC_set=set
ac_cv_env_CC_value=icc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-O2 -march=i686 -pipe -fno-strict-aliasing'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-Wl,-O1
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_YACC_set=
ac_cv_env_YACC_value=
ac_cv_env_YFLAGS_set=
ac_cv_env_YFLAGS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i686-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=i686-pc-linux-gnu
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-pc-linux-gnu
ac_cv_prog_CC=icc
ac_cv_target=i686-pc-linux-gnu

## ----------------- ##
## Output variables. ##
## ----------------- ##

ALLOCA=''
AR=''
ARCHFILE=''
ARCH_FLAG=''
AS=''
ASFLAGS=''
CC='icc'
CCDLFLAGS=''
CFLAGS='-O2 -march=i686 -pipe -fno-strict-aliasing'
COMMON_HEADERS=''
COMMON_LIBS=''
COMMON_MACROS=''
CP=''
CPP=''
CPPFLAGS=''
CPPOUTFILE=''
DEFS=''
DLDFLAGS=''
DLDLIBS=''
DLEXT2=''
DLEXT=''
DLLWRAP=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_SHARED=''
EXEEXT=''
EXPORT_PREFIX=''
EXTOUT=''
EXTSTATIC=''
GNU_LD=''
GREP=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LDFLAGS='-Wl,-O1'
LDSHARED=''
LIBEXT=''
LIBOBJS=''
LIBPATHENV=''
LIBPATHFLAG=''
LIBRUBY=''
LIBRUBYARG=''
LIBRUBYARG_SHARED=''
LIBRUBYARG_STATIC=''
LIBRUBY_A=''
LIBRUBY_ALIASES=''
LIBRUBY_DLDFLAGS=''
LIBRUBY_LDSHARED=''
LIBRUBY_SO=''
LIBS=''
LINK_SO=''
LN_S=''
LTLIBOBJS=''
MAINLIBS=''
MAJOR='1'
MAKEDIRS=''
MAKEFILES=''
MANTYPE=''
MINIOBJS=''
MINIRUBY=''
MINOR='8'
NM=''
NROFF=''
OBJDUMP=''
OBJEXT=''
OUTFLAG=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PREP=''
RANLIB=''
RDOCTARGET=''
RM=''
RPATHFLAG=''
RUBYW_INSTALL_NAME=''
RUBY_INSTALL_NAME=''
RUBY_SO_NAME=''
RUNRUBY=''
SET_MAKE=''
SHELL='/bin/sh'
SOLIBS=''
STATIC=''
STRIP=''
TEENY='6'
TRY_LINK=''
WINDRES=''
XCFLAGS=''
XLDFLAGS=''
YACC=''
YFLAGS=''
ac_ct_CC=''
arch=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux-gnu'
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
configure_args=''
datadir='/usr/share'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias='i686-pc-linux-gnu'
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='/usr/share/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='/var/lib'
mandir='/usr/share/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s&$$&18&;s&^&&'
psdir='${docdir}'
rubyw_install_name=''
sbindir='${exec_prefix}/sbin'
setup=''
sharedstatedir='${prefix}/com'
sitearch=''
sitedir=''
sysconfdir='/etc'
target='i686-pc-linux-gnu'
target_alias=''
target_cpu='i686'
target_os='linux'
target_vendor='pc'

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define USE_BUILTIN_FRAME_ADDRESS 1

configure: exit 77

yes it uses defaul cflags.
this is a strange strange world.
Top
a.b.
Apprentice
Apprentice
User avatar
Posts: 218
Joined: Sun Mar 23, 2008 12:37 pm
Location: Anus Mundi, Germany
Contact:
Contact a.b.
Website

Post by a.b. » Thu Sep 11, 2008 10:00 pm

Thanks, but that's not what I asked for...

Anyway, I really must go to bed now so I can't help you before tomorrow.
Last edited by a.b. on Thu Sep 11, 2008 10:03 pm, edited 1 time in total.
Top
tranquilcool
Veteran
Veteran
Posts: 1246
Joined: Fri Mar 25, 2005 1:16 pm

Post by tranquilcool » Thu Sep 11, 2008 10:03 pm

a.b. wrote:Thanks, but that's not what I asked for...
i know but you were kinda cryptic to me.
i don't know the all *.conf you are talking about , at least where they are located.

ok thanks.
this is a strange strange world.
Top
a.b.
Apprentice
Apprentice
User avatar
Posts: 218
Joined: Sun Mar 23, 2008 12:37 pm
Location: Anus Mundi, Germany
Contact:
Contact a.b.
Website

Post by a.b. » Thu Sep 11, 2008 10:06 pm

tranquilcool wrote:
a.b. wrote:Thanks, but that's not what I asked for...
i know but you were kinda cryptic to me.
i don't know the all *.conf you are talking about , at least where they are located.
I need:

- /etc/paludis/
- cc.conf
- iccflags.conf
- iccxxflags.conf
- gccflags.conf
- gccxxflags.conf

- /tmp/pbshrc-test
Top
tranquilcool
Veteran
Veteran
Posts: 1246
Joined: Fri Mar 25, 2005 1:16 pm

Post by tranquilcool » Thu Sep 11, 2008 10:13 pm

a.b. wrote:
tranquilcool wrote:
a.b. wrote:Thanks, but that's not what I asked for...
i know but you were kinda cryptic to me.
i don't know the all *.conf you are talking about , at least where they are located.
I need:

- /etc/paludis/
- cc.conf
- iccflags.conf
- iccxxflags.conf
- gccflags.conf
- gccxxflags.conf

- /tmp/pbshrc-test
iccflags.conf;
*/* -O3 -xP -ip -w -gcc

cc.conf;
*/* gcc #Use gcc by default

# These packages have been reported to work with ICC (Source: gentoo-wiki.com)
dev-lang/python icc
dev-db/sqlite icc
dev-libs/libxml2 icc
app-arch/tar icc
app-arch/bzip2 icc
app-arch/gzip icc
app-arch/unzip icc
app-arch/cpio icc
sys-power/powertop icc
media-libs/x264-svn icc
media-sound/lame icc
media-libs/faac icc
media-libs/giflib icc
media-libs/speex icc
media-libs/libtheora icc
media-libs/xvid icc
media-libs/libogg icc
media-libs/libvorbis icc
dev-libs/lzo icc
net-irc/xchat icc
media-libs/freetype icc
dev-libs/glib icc
x11-libs/gtk+ icc
media-libs/libpng icc
dev-libs/libgpg-error icc
media-gfx/gimp icc
app-editors/nano icc
virtual/postgresql-base icc
dev-lang/ruby icc

# Critical packages should never be compiled with icc
app-shells/bash gcc
sys-apps/sed gcc
sys-devel/binutils gcc
sys-devel/gcc gcc
sys-libs/glibc gcc
sys-libs/ncurses gcc
sys-libs/libstdc++-v3 gcc
sys-libs/zlib gcc
sys-process/procps gcc

# Other packages that don't work with icc
kde-base/*:3.5 gcc
net-irc/konversation gcc
dev-lang/lua gcc
app-emulation/virtualbox-modules gcc
app-emulation/qemu-softemu gcc
media-sound/audacious gcc
media-plugins/audacious-plugins gcc
media-sound/audacity gcc

iccxxflags.conf;
*/* -fvisibility=hidden -fvisibility-inlines-hidden

gccflags.conf;

*/* -mtune=prescott -march=prescott -O2 -mfpmath=sse -msse3 -ftracer -funit-at-a-time -fomit-frame-pointer -frename-registers -ftree-vectorize -pipe

gccxxflags.conf;
# place extra gcc CXXFLAGS here, they'll be added to CFLAGS


/tmp/pbshrc-test;

00:10:45 Test: */*
00:10:45 Match 1: */*
00:10:45 Test:
00:10:45 No Match
00:10:45 Test: #
00:10:45 No Match
00:10:45 Test: dev-lang/python
00:10:45 No Match
00:10:45 Test: dev-db/sqlite
00:10:45 No Match
00:10:45 Test: dev-libs/libxml2
00:10:45 No Match
00:10:45 Test: app-arch/tar
00:10:45 No Match
00:10:45 Test: app-arch/bzip2
00:10:45 No Match
00:10:45 Test: app-arch/gzip
00:10:45 No Match
00:10:45 Test: app-arch/unzip
00:10:45 No Match
00:10:45 Test: app-arch/cpio
00:10:45 No Match
00:10:45 Test: sys-power/powertop
00:10:45 No Match
00:10:45 Test: media-libs/x264-svn
00:10:45 No Match
00:10:45 Test: media-sound/lame
00:10:45 No Match
00:10:45 Test: media-libs/faac
00:10:45 No Match
00:10:45 Test: media-libs/giflib
00:10:45 No Match
00:10:45 Test: media-libs/speex
00:10:45 No Match
00:10:45 Test: media-libs/libtheora
00:10:45 No Match
00:10:45 Test: media-libs/xvid
00:10:45 No Match
00:10:45 Test: media-libs/libogg
00:10:45 No Match
00:10:45 Test: media-libs/libvorbis
00:10:45 No Match
00:10:45 Test: dev-libs/lzo
00:10:45 No Match
00:10:45 Test: net-irc/xchat
00:10:45 No Match
00:10:45 Test: media-libs/freetype
00:10:45 No Match
00:10:45 Test: dev-libs/glib
00:10:45 No Match
00:10:45 Test: x11-libs/gtk+
00:10:45 No Match
00:10:45 Test: media-libs/libpng
00:10:45 No Match
00:10:45 Test: dev-libs/libgpg-error
00:10:45 No Match
00:10:45 Test: media-gfx/gimp
00:10:45 No Match
00:10:45 Test: app-editors/nano
00:10:45 No Match
00:10:45 Test: virtual/postgresql-base
00:10:45 No Match
00:10:45 Test: dev-lang/ruby
00:10:45 Match 1: dev-lang/ruby
00:10:45 Test:
00:10:45 No Match
00:10:45 Test: #
00:10:45 No Match
00:10:45 Test: app-shells/bash
00:10:45 No Match
00:10:45 Test: sys-apps/sed
00:10:45 No Match
00:10:45 Test: sys-devel/binutils
00:10:45 No Match
00:10:45 Test: sys-devel/gcc
00:10:45 No Match
00:10:45 Test: sys-libs/glibc
00:10:45 No Match
00:10:45 Test: sys-libs/ncurses
00:10:45 No Match
00:10:45 Test: sys-libs/libstdc++-v3
00:10:45 No Match
00:10:45 Test: sys-libs/zlib
00:10:45 No Match
00:10:45 Test: sys-process/procps
00:10:45 No Match
00:10:45 Test:
00:10:45 No Match
00:10:45 Test: #
00:10:45 No Match
00:10:45 Test: kde-base/*:3.5
00:10:45 No Match
00:10:45 Test: net-irc/konversation
00:10:45 No Match
00:10:45 Test: dev-lang/lua
00:10:46 No Match
00:10:46 Test: app-emulation/virtualbox-modules
00:10:46 No Match
00:10:46 Test: app-emulation/qemu-softemu
00:10:46 No Match
00:10:46 Test: media-sound/audacious
00:10:46 No Match
00:10:46 Test: media-plugins/audacious-plugins
00:10:46 No Match
00:10:46 Test: media-sound/audacity
00:10:46 No Match

ldflags;

*/* -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--sort-common -Wl,--warn-once

i'll let you go to sleep. thanks.
this is a strange strange world.
Top
a.b.
Apprentice
Apprentice
User avatar
Posts: 218
Joined: Sun Mar 23, 2008 12:37 pm
Location: Anus Mundi, Germany
Contact:
Contact a.b.
Website

Post by a.b. » Fri Sep 12, 2008 12:09 pm

There seem to be two issues. The more fatal one is
./configure: line 2518: icc: command not found
Obviously icc isn't in your path, at least it isn't while configure is running. Make sure it is in your normal shell, try env-update. As a workaround, you can put symlinks into /usr/local/bin.

The second problem was a bug, after updating to 0.2.0.1 it should work.
Top
tranquilcool
Veteran
Veteran
Posts: 1246
Joined: Fri Mar 25, 2005 1:16 pm

Post by tranquilcool » Fri Sep 12, 2008 1:21 pm

a.b. wrote:There seem to be two issues. The more fatal one is
./configure: line 2518: icc: command not found
Obviously icc isn't in your path, at least it isn't while configure is running. Make sure it is in your normal shell, try env-update. As a workaround, you can put symlinks into /usr/local/bin.

The second problem was a bug, after updating to 0.2.0.1 it should work.

yes it's a path problem.
env-update solves it.

thanks.
this is a strange strange world.
Top
a.b.
Apprentice
Apprentice
User avatar
Posts: 218
Joined: Sun Mar 23, 2008 12:37 pm
Location: Anus Mundi, Germany
Contact:
Contact a.b.
Website

Post by a.b. » Fri Sep 12, 2008 1:53 pm

Don't forget upgrading, otherwise your flags will be extremly sane :D
Top
tranquilcool
Veteran
Veteran
Posts: 1246
Joined: Fri Mar 25, 2005 1:16 pm

Post by tranquilcool » Fri Sep 12, 2008 2:29 pm

a.b. wrote:Don't forget upgrading, otherwise your flags will be extremly sane :D
yes i did.
i don't want too sane flags.
this is a strange strange world.
Top
tranquilcool
Veteran
Veteran
Posts: 1246
Joined: Fri Mar 25, 2005 1:16 pm

Post by tranquilcool » Fri Sep 12, 2008 8:12 pm

what's the best possible way to solve the env-update issue, if i may ask, without making links?
i just don't like links all over the place.
thanks.
this is a strange strange world.
Top
a.b.
Apprentice
Apprentice
User avatar
Posts: 218
Joined: Sun Mar 23, 2008 12:37 pm
Location: Anus Mundi, Germany
Contact:
Contact a.b.
Website

Post by a.b. » Fri Sep 12, 2008 8:32 pm

Add /opt/intel/cc/<version>/bin to the path. Actually that should have been done by the ebuild.
Top
tranquilcool
Veteran
Veteran
Posts: 1246
Joined: Fri Mar 25, 2005 1:16 pm

Post by tranquilcool » Fri Sep 12, 2008 10:28 pm

a.b. wrote:Add /opt/intel/cc/<version>/bin to the path. Actually that should have been done by the ebuild.

i have it in;

/etc/env.d/05icc

in /etc/ld.so.conf

i have;

/opt/intel/cc/10.1.018/lib


isn't it the same thing?

EDIT:

i decided to have /root/.bashrc source /etc/profile to get full path with su.
this is a strange strange world.
Top
a.b.
Apprentice
Apprentice
User avatar
Posts: 218
Joined: Sun Mar 23, 2008 12:37 pm
Location: Anus Mundi, Germany
Contact:
Contact a.b.
Website

Post by a.b. » Sat Sep 13, 2008 9:14 am

tranquilcool wrote: /opt/intel/cc/10.1.018/lib

isn't it the same thing?
Of course not, having */lib in PATH makes no sense.
Top
tranquilcool
Veteran
Veteran
Posts: 1246
Joined: Fri Mar 25, 2005 1:16 pm

Post by tranquilcool » Sat Sep 13, 2008 1:15 pm

a.b. wrote:
tranquilcool wrote: /opt/intel/cc/10.1.018/lib

isn't it the same thing?
Of course not, having */lib in PATH makes no sense.

dunno. i wont put bin in /etc/ld.so.conf.

fact is i dont know why paludis finds gcc and not icc untill i do env-update.
that shouldn't be so.
this is a strange strange world.
Top
a.b.
Apprentice
Apprentice
User avatar
Posts: 218
Joined: Sun Mar 23, 2008 12:37 pm
Location: Anus Mundi, Germany
Contact:
Contact a.b.
Website

Post by a.b. » Sat Sep 13, 2008 2:31 pm

tranquilcool wrote:
a.b. wrote:
tranquilcool wrote: /opt/intel/cc/10.1.018/lib

isn't it the same thing?
Of course not, having */lib in PATH makes no sense.

dunno. i wont put bin in /etc/ld.so.conf.

fact is i dont know why paludis finds gcc and not icc untill i do env-update.
that shouldn't be so.
Sorry, ld.so.conf shouldn't get bin of course.
Top
jdoe
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 122
Joined: Mon Jun 02, 2003 6:29 pm
Location: Italy - Florence - Empoli
Contact:
Contact jdoe
Website

Post by jdoe » Sun Sep 14, 2008 10:43 am

a.b. wrote:
jdoe wrote:is there a way to use icc on a per package basis with paludis?
I's amazing. I just have finished a bashrc for paludis and now I see your post :D

I've uploaded it together with some example config files here: http://ihatenicks.bplaced.net/paludis-bashrc/ Read the config files and the comments in the script for instructions.

I haven't done much testing yet, feedback is welcome.
thanks for your work (and for the work of the others in the thread too :))

I'll try you bashrc later.

[edit]: http://ihatenicks.bplaced.net/paludis-bashrc/ seems down :(
[edit2]: now is up again :) [/edit]
[edit3]: works like a charm. thanks :) [/edit]
me
Top
Locked

100 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
  • Next

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic