tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Intel compiler on NetBSD-current



Hi,
I'm trying to build all packages from my pkgchk.conf with my recently
commited wip/icc10 package (which is Intel C++ Compiler for Linux,
10.1.021).  So far it builds 88 out of 321 packages (these 321 were
mostly compiled with system gcc but few were installed from binary
packages).

It fails to link textproc/expat. Looks like libtool --mode=link
doesn't add -lirc option and /usr/pkg/icc10/lib to a list of search
directories.

I don't know whether it's related to my problem but in
mk/gnu-config/config.rpath the following code detects intel compiler
only under linux:

linux*)
  echo '__INTEL_COMPILER' > conftest.$ac_ext
  if $CC -E conftest.$ac_ext >/dev/null | grep __INTEL_COMPILER >/dev/null
    then
      :
    else
      # Intel icc
      wl='-Qoption,ld,'
    fi
    ;;

Intel 10.1 is also available on intel based Mac OS X (though, pkgsrc
does not support intel compiler on Mac OS).  And now you can use
it on NetBSD i386 (and hopefully on x86_64).

Can someone point me to other places I need to look at?

Thanks,
Alex

$ pkg_info -a|grep libtool
libtool-base-1.5.26 Generic shared library support script (the script itself)

$ bmake
...
xmlwf/codepage.c(63): remark #869: parameter "p" was never referenced
  codepageConvert(int cp, const char *p)
                                      ^

cc -I./lib -I. -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes
-fexceptions  -DHAVE_EXPAT_CONFIG_H -o xmlwf/unixfilemap.o -c
xmlwf/unixfilemap.c
iccbin: command line remark #10010: option '-static-libcxa' is
deprecated and will be removed in a future release. See '-help
deprecated'
/bin/sh ./libtool --silent --mode=link cc -I./lib -I. -O2 -Wall
-Wmissing-prototypes -Wstrict-prototypes -fexceptions
-DHAVE_EXPAT_CONFIG_H -Wl,-R/home/alnsn/icc10-pkg//lib -o xmlwf/xmlwf
xmlwf/xmlwf.o xmlwf/xmlfile.o xmlwf/codepage.o xmlwf/unixfilemap.o
libexpat.la
xmlwf/xmlwf.o: In function `main':
xmlwf.c:(.text+0xa): undefined reference to `__intel_new_proc_init'
gmake: *** [xmlwf/xmlwf] Error 1
*** Error code 2


.work.log:

<.> 
/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/textproc/expat/work/.icc/bin/icc
 -static-libcxa -I./lib -I. -O2 -Wall -fexceptions -DHAVE_EXPAT_CONFIG_H -o 
xmlwf/codepage.o -c xmlwf/codepage.c 
-I/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/textproc/expat/work/.buildlink/include
 
-L/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/textproc/expat/work/.buildlink/lib
 
[*] 
/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/textproc/expat/work/.wrapper/bin/cc
 
/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/textproc/expat/work/.wrapper/bin/cc
 -I./lib -I. -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions 
-DHAVE_EXPAT_CONFIG_H -o xmlwf/unixfilemap.o -c xmlwf/unixfilemap.c
WARNING: [transform-icc-cc] passing unknown option -O2
WARNING: [transform-icc-cc] discarding option -Wmissing-prototypes
WARNING: [transform-icc-cc] discarding option -Wstrict-prototypes
<.> 
/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/textproc/expat/work/.icc/bin/icc
 -static-libcxa -I./lib -I. -O2 -Wall -fexceptions -DHAVE_EXPAT_CONFIG_H -o 
xmlwf/unixfilemap.o -c xmlwf/unixfilemap.c 
-I/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/textproc/expat/work/.buildlink/include
 
-L/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/textproc/expat/work/.buildlink/lib
 
[*] 
/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/textproc/expat/work/.wrapper/bin/libtool
 
/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/textproc/expat/work/.wrapper/bin/libtool
 --silent --mode=link cc -I./lib -I. -O2 -Wall -Wmissing-prototypes 
-Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H 
-Wl,-R/home/alnsn/icc10-pkg//lib -o xmlwf/xmlwf xmlwf/xmlwf.o xmlwf/xmlfile.o 
xmlwf/codepage.o xmlwf/unixfilemap.o libexpat.la
<.> /home/alnsn/icc10-pkg//bin/libtool --silent --mode=link cc -I./lib -I. -O2 
-Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions 
-DHAVE_EXPAT_CONFIG_H -Wl,-R/home/alnsn/icc10-pkg//lib -o xmlwf/xmlwf 
xmlwf/xmlwf.o xmlwf/xmlfile.o xmlwf/codepage.o xmlwf/unixfilemap.o libexpat.la 
-L/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/textproc/expat/work/.buildlink/lib
 




Home | Main Index | Thread Index | Old Index