#2546 closed Bugs (fixed)
Cannot build bjam on Linux with vacpp
Reported by: | 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)
Change History (4)
by , 14 years ago
Attachment: | build.jam.patch added |
---|
comment:1 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 14 years ago
Component: | Building Boost → bjam |
---|
comment:3 by , 14 years ago
Milestone: | Boost.Jam 3.1.18 → Boost.Jam 3.1.17 |
---|
Patch for tools/jam/src/build.jam and vacpp(xlC)