Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#2546 closed Bugs (fixed)

Cannot build bjam on Linux with vacpp

Reported by: ccambly@… Owned by:
Milestone: Boost.Jam 3.1.17 Component: bjam
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

If we try to build bjam on linux using xlC the build fails because of an invalid linker option. The file tools/jam/src/build.jam has the following:

## IBM VisualAge C++ toolset vacpp xlc : "-o " : -D

: [ opt --release : -s -O3 -qstrict -qinline ] [ opt --debug : -g -qNOOPTimize -qnoinline -pg ] -I$(--python-include) -I$(--extra-include) : -L$(--python-lib[1]) -l$(--python-lib[2]) -bmaxdata:0x40000000 ;

The -bmaxdata linker option is only valid on AIX. If I am building with xlC on Linux that linker option should not be specified.

The change in the patch file is:

## IBM VisualAge C++ { local linkopt = ; if $(OS) = AIX { linkopt = -bmaxdata:0x40000000 ; } toolset vacpp xlc : "-o " : -D

: [ opt --release : -s -O3 -qstrict -qinline ] [ opt --debug : -g -qNOOPTimize -qnoinline -pg ] -I$(--python-include) -I$(--extra-include) : -L$(--python-lib[1]) -l$(--python-lib[2]) $(linkopt) ;

}

Rene: I couldn't find a uname that worked so I left it as OS

Attachments (1)

build.jam.patch (765 bytes ) - added by ccambly@… 14 years ago.
Patch for tools/jam/src/build.jam and vacpp(xlC)

Download all attachments as: .zip

Change History (4)

by ccambly@…, 14 years ago

Attachment: build.jam.patch added

Patch for tools/jam/src/build.jam and vacpp(xlC)

comment:1 by René Rivera, 14 years ago

Resolution: fixed
Status: newclosed

(In [49990]) Fix compiling with vacpp on non-AIX systems. (fixes #2546)

comment:2 by René Rivera, 14 years ago

Component: Building Boostbjam

comment:3 by René Rivera, 14 years ago

Milestone: Boost.Jam 3.1.18Boost.Jam 3.1.17
Note: See TracTickets for help on using tickets.