Boost logo

Boost-Build :

From: Jorge Suit Perez Ronda (josp.jorge_at_[hidden])
Date: 2007-01-01 20:32:20


Hello, I'm having this problem when doing install. Attached is my
Jamroot (which use another Jamfiles)

------------------- the problem ----------------------
bjam toolset=intel release install --prefix=/usr/local/tol-intel
...patience...
...found 1546 targets...
...updating 210 targets...
MkDir1 /usr/local/tol-intel
MkDir1 /usr/local/tol-intel/bin
intel-linux.link /usr/local/tol-intel/bin/tolcon
/bin/sh: -Wl,-rpath-link: not found

       -Wl,-rpath-link
-Wl,"/home/jsperez/TOL/trunk/tol/bin/intel-linux/release"
-Wl,-rpath-link -Wl,"/usr/local/cholmod/lib" -o
"/usr/local/tol-intel/bin/tolcon" "bin/intel-linux/release/tol.o"
"bin/intel-linux/release/libtol.so" -Wl,--strip-all

...failed intel-linux.link /usr/local/tol-intel/bin/tolcon...
-------------------------------------------------------------

when doing bjam toolset=intel release everything is ok.

my boost-build version is:

Boost.Build V2 (Milestone 11)
Boost.Jam 03.1.14

any idea about what is wrong?

best regards,

Jorge

import path ;
import modules ;
import os ;
import option ;
import property ;
import package ;

path-constant TOP : . ;

local os ;
if [ modules.peek : UNIX ]
{
  os = UNIX ;
}
else
{
  os ?= [ os.name ] ;
}

if $(os) = UNIX
{
  os-reqs = <define>UNIX ;
}

include [ path.join $(TOP) config.jam ] ;

# this rule is a factorization of package.install.
rule get-lib-location ( requirements * )
{
  local prefix = [ option.get
                   prefix : [ property.select <install-default-prefix>
                              : $(requirements) ] ] ;
  requirements = [ property.change
                   $(requirements) : <install-default-prefix> ] ;
  # Or some likely defaults if neither is given.
  if ! $(prefix)
  {
    if [ modules.peek : NT ] { prefix = C:\\$(name) ; }
    else if [ modules.peek : UNIX ] { prefix = /usr/local ; }
  }
  
  # object code libraries
  local lib-locate = [ option.get libdir : $(prefix)/lib ] ;
  return $(lib-locate) ;
}

local scripts-locate = [ path.join [ get-lib-location ] initlibrary ] ;

project tol
  : requirements <toolset>gcc:<cxxflags>-fno-strict-aliasing
                 <include>.
                 <include>$(TOP)
                 <include>$(TOP)/contrib/kmlocal
                 [ inc-path ]
                 $(os-reqs)
                 <define>HAVE_CONFIG_H
                 <define>__USE_OIS__
                 <define>USE_DELAY_INIT
                 <define>__USE_DYNSCOPE__
                 <define>TOLINIT_LIB_DIR=\"$(scripts-locate)\"
  ;

rule obj_req ( properties * )
{
}

rule objects ( name : sources + : requirements * )
{
  local t_list = ;
  for o in $(sources)
  {
    local t = $(o:B) ;
    obj $(t)
      : $(o)
      : <conditional>@obj_req $(requirements) ;
      t_list += $(t) ;
  }
  alias $(name) : $(t_list) ;
}

rule ln-H ( h_list + )
{
  local cwd = [ PWD ] ;
  local caller = [ CALLER_MODULE ] ;
  # echo caller is $(caller) ;
  local caller-location = [ modules.binding $(caller) ] ;
  caller-location = $(caller-location:D) ;
  # echo cl is $(caller-location) ;
  caller-location = [ path.root $(caller-location) $(cwd) ] ;
  for h in $(h_list)
  {
    h-location = [ path.root $(h) $(caller-location) ] ;
    local n = $(h:B)$(h:S) ;
    make $(TOP)/tol/$(n) : $(h-location) : @myln ;
  }
}

rule myln
{
}

actions myln
{
  ln -s -f $(>) $(<) ;
}

ln-H [ glob *.h ] ;

#local subdirs = bbasic bmath bparser btol contrib dbdrivers initLibrary
# lang OIS

local subdirs = bbasic bmath bparser btol contrib lang OIS ;
local all-obj-aliases ;
for dir in $(subdirs)
{
  build-project $(dir) ;
  all-obj-aliases += $(dir)//objs ;
}

obj init : init.cpp ;

lib gsl : : [ lib-path gsl ] ;
lib gslcblas : : [ lib-path gsl ] ;
lib cholmod : : [ lib-path cholmod ] ;
lib bz2 : : [ lib-path bz2 ] ;
lib tol : init $(all-obj-aliases) cholmod gsl gslcblas bz2
        ;

build-project dbdrivers ;

exe tolcon : tol.cpp tol ;

package.install install-tol
    : # requirements
      <install-header-subdir>tol
    : # binaries
      tolcon
    : # libraries
      tol dbdrivers
    : # headers
      [ glob tol/*.h tol/*.hpp ]
    ;

install install-initlib
      : [ path.glob-tree initLibrary : *.tol *.tcl *.bst *.txt : CVS ]
      : <install-source-root>initLibrary
        <location>$(scripts-locate) ;

explicit install-initlib ;

alias install : install-tol install-initlib ;

explicit install ;


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk