Opened 9 years ago

Last modified 9 years ago

#9159 new Bugs

bootstrap under Linux w/Solaris Studio 12.3 defaults to 64-bit; doesn't run correctly

Reported by: Brian Vandenberg <phantall+boost@…> Owned by:
Milestone: To Be Determined Component: Building Boost
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc: Brian, Vandenberg, <phantall+boost@…>

Description

I ran bootstrap under Linux using Solaris Studio 12.3 in a few different ways:

# This defaults to 64-bit; note that
# 'tools/build/v2/engine/build.sh'
# does not have the means to add any
# flags in with any toolset except 'cc'
./bootstrap.sh --with-toolset=sun
# The binary produced doesn't work correctly:
test 0 -lt $(./bjam --help |& wc -c) || echo "Failed"
Failed

export CC=/opt/oracle/solarisstudio12.3/bin/cc
export CFLAGS=-m32
./bootstrap.sh --with-toolset=cc
test 0 -lt ./bjam --help |& wc -c) && echo "Succeeded"
Succeeded

When building with the cc toolset, the default project-config.jam file forces feature.values to contain the 'cc' toolset, which causes problems later on down the line because, or so it seems, cc is not a valid toolset to use with bjam. The workaround I used for that was to make the replacement s/cc/sun/g in the .jam file.

Change History (1)

comment:1 by viboes, 9 years ago

Component: NoneBuilding Boost
Note: See TracTickets for help on using tickets.