tech-pkg archive

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

Re: Intel compiler on NetBSD-current



Hi Joerg,
Sorry for the delay, I left the computer to build more packages.
The change doubled a number of built packages (from 82 to 167).

But, if I remove cc and c++, libtool-base build succeeds. 
It doesn't build anything, though. There is an error in pkg_delete,
I don't know if it's related. See my session log below for details.

I checked that config.log still detects /usr/bin/cc.
.wrapper/bin/cc is attached.

Thanks,
Alex

$ sudo rm /usr/pkg/icc10/bin/cc /usr/pkg/icc10/bin/c++

$ bmake clean && bmake clean-depends

$ bmake show-var VARNAME=WRKOBJDIR
/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir

$ rm -rf /home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir

$ pkg_delete libtool-base
pkg_delete: no files matching
``/home/alnsn/icc10-pkg//var/db/pkg/libtool-base-1.5.26/+*'' found:
Undefined error: 0
pkg_delete: couldn't remove log entry in
/home/alnsn/icc10-pkg//var/db/pkg/libtool-base-1.5.26

$ rm -rf /home/alnsn/icc10-pkg//var/db/pkg/libtool-base-1.5.26

$ bmake configure
...

$ bmake
=> Bootstrap dependency digest>=20010302: found digest-20080510
===> Building for libtool-base-1.5.26
Making all in .
CONFIG_FILES=libtoolize CONFIG_HEADERS= /bin/sh ./config.status
config.status: creating libtoolize
config.status: executing depfiles commands
chmod +x libtoolize
Making all in libltdl
/home/alnsn/icc10-pkg/bin//bmake  all-am
Making all in tests
cd
/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/devel/libtool-base/work/libtool-1.5.26;
for f in libtool; do                           /usr/bin/sed   -e
"s,-L/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/devel/libtool-base/work/.buildlink/lib,,"
$f > $f.new;    if [ -x $f ]; then /bin/chmod +x $f.new; fi;
/bin/mv -f $f.new $f;                          done
=> Unwrapping files-to-be-installed.

Joerg Sonnenberger wrote:
> On Fri, Jan 30, 2009 at 08:32:48PM +0000, Alexander Nasonov wrote:
> > > There should be a wrapper during the build of libtool named cc. Do you
> > > have that?
> > 
> > Yes, the script in work/.wrapper/bin and it executes work/.icc/bin/icc
> > which in turn executes the real compiler.
> > 
> > $ ls work/.wrapper/bin/
> > CC  as  c++ cc  cpp cxx g++ gcc ld
> 
> What is the content of cc?
> 
> Joerg

-- 
#! /bin/sh
arg_pp="/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/devel/libtool-base/work/.wrapper/tmp/empty"
arg_pp_main="/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/devel/libtool-base/work/.wrapper/tmp/arg-pp-main"
arg_source="/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/devel/libtool-base/work/.wrapper/tmp/arg-source"
buildcmd="/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/devel/libtool-base/work/.wrapper/tmp/buildcmd"
cache="/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/devel/libtool-base/work/.wrapper/tmp/cache"
cache_body="/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/devel/libtool-base/work/.wrapper/tmp/cache-body-icc-cc"
cleanup="/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/devel/libtool-base/work/.wrapper/tmp/empty"
cmd_sink="/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/devel/libtool-base/work/.wrapper/tmp/cmd-sink-icc-cc"
logic="/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/devel/libtool-base/work/.wrapper/tmp/logic"
reorderlibs="/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/devel/libtool-base/work/.wrapper/tmp/reorderlibs"
shell_lib="/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/devel/libtool-base/work/.wrapper/tmp/shell-lib"
scan="/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/devel/libtool-base/work/.wrapper/tmp/scan"
transform="/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/devel/libtool-base/work/.wrapper/tmp/transform-icc-cc"
transform_sed=" -f 
/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/devel/libtool-base/work/.wrapper/tmp/transform.sed"
wrapper_subr_sh="/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/devel/libtool-base/work/.wrapper/tmp/wrapper-subr.sh"
wrapper_abi=""          # see ABI in mk/defaults/mk.conf
wrapper_type="CC"       # one of AS, CC, CXX, FC, IMAKE, LD, LIBTOOL.
wrapperlog="${WRAPPER_LOG-/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/devel/libtool-base/work/.work.log}"
skip_transform="${WRAPPER_SKIP_TRANSFORM-no}"
debug="${WRAPPER_DEBUG-no}"
cat="/bin/cat"
echo="echo"
expr="/bin/expr"
mv="/bin/mv"
sed="/usr/bin/sed"
test="test"
Xsed="$sed -e 1s/^X//"
. $shell_lib
. "$wrapper_subr_sh"
updatecache=${WRAPPER_UPDATE_CACHE-yes}
reorder=${WRAPPER_REORDER-no}
case $debug in
yes)    debug_log="msg_log" ;;
*)      debug_log=":" ;;
esac
qcmd="$0"; for arg in ${1+"$@"}; do shquote "$arg"; qcmd="$qcmd $shquoted"; done
msg_log "$wrapperlog" "[*] $0 $qcmd"
cmd="/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/devel/libtool-base/work/.icc/bin/icc"
case "$*" in
*--wrappee-name*) $echo $cmd ; exit ;;
esac
libs=""
rellpath=""
do_transform=yes
init_queue argbuf
init_queue cmdbuf
append_extra_args=yes
. $scan
case $append_extra_args in
yes)
        $debug_log $wrapperlog "    (wrapper.sh) append args: 
-I/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/devel/libtool-base/work/.buildlink/include
 
-L/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/devel/libtool-base/work/.buildlink/lib"
        set -- "$@" 
-I/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/devel/libtool-base/work/.buildlink/include
 
-L/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/devel/libtool-base/work/.buildlink/lib
        ;;
*)
        ;;
esac
. $arg_source
. $logic
. $cmd_sink
case $reorder in
yes)
        if $test -n "$libs"; then
                . $reorderlibs
        fi
        ;;
esac
cmd="$cmd $libs"
PATH="/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/devel/libtool-base/work/.buildlink/bin:/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/devel/libtool-base/work/.icc/bin:/home/alnsn/pkgsrc/WRKOBJDIR-pkgsrc-icc-modular-x11-no-destdir/devel/libtool-base/work/.tools/bin:/home/alnsn/icc10-pkg//bin:/usr/pkg/icc10/bin/:/home/alnsn/icc10-pkg/bin/:/home/alnsn/icc10-pkg/sbin/:/usr/bin/:/bin/";
 export PATH
msg_log $wrapperlog "<.>" "$cmd"
wrapper_result=0
eval "$cmd" || wrapper_result="$?"
. $cleanup
[ $wrapper_result -eq 0 ] || [ "$debug" != "yes" ] || {
        echo ""
        echo "[wrapper.sh] note: The real command line, after the pkgsrc 
wrapper, was:"
        echo "$cmd"
} 1>&2
exit ${wrapper_result}


Home | Main Index | Thread Index | Old Index