Boost logo

Boost-Build :

Subject: Re: [Boost-build] Building Boost.Python in MacOS X 10.6 hangs
From: Boris Dušek (boris.dusek_at_[hidden])
Date: 2010-01-18 04:53:19


Thanks for the info, I managed to reproduce the behavior (I added
tooset=darwin to the bjam command-line), with bjam from trunk and
libs/python from 1_41_0, I got a backtrace from bjam (I ran in
debugger and when it hang, I pressed CTRL+C and asked gdb for the
backtrace):

#0 0x00007fff850fd9e2 in select$DARWIN_EXTSN ()
#1 0x000000010001bf3a in exec_wait () at execunix.c:470
#2 0x000000010001b587 in exec_cmd (string=0x100e15e00 "\n
DYLD_LIBRARY_PATH=\"/System/Library/Frameworks/Python.framework/Versions/2.6/lib:/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config:/Users/boris/Downloads/boost_1_41_0/b"...,
func=0x10000d347 <make_closure>, closure=0x100899fc0, shell=0x0,
action=0x100976349 "capture-output", target=0x100d688b5
"bin/test_ext.test/darwin-4.2.1/debug/test_ext") at execunix.c:328
#3 0x000000010000cba0 in make1c (pState=0x101a92220) at make1.c:532
#4 0x000000010000c2c6 in make1 (t=0x100d546e0) at make1.c:229
#5 0x000000010000a75e in make (n_targets=1, targets=0x101a37680,
anyhow=0) at make.c:167
#6 0x0000000100008371 in main (argc=3, argv=0x7fff5fbff6f0,
arg_environ=0x7fff5fbff710) at jam.c:529

full backtrace:

#0 0x00007fff850fd9e2 in select$DARWIN_EXTSN ()
No symbol table info available.
#1 0x000000010001bf3a in exec_wait () at execunix.c:470
        i = 1
        ret = -1
        fd_max = 4
        pid = 1606409360
        status = 1
        finished = 0
        rstat = 1
        time_info = {
  system = 1.9762625833649862e-323,
  user = 1.9762625833649862e-323,
  start = 4303356105,
  end = 140735425769223
}
        fds = {
  fds_bits = {16, 0 <repeats 31 times>}
}
        new_time = {
  tms_utime = 1,
  tms_stime = 1459110787540043694,
  tms_cutime = 4303356011,
  tms_cstime = 4
}
#2 0x000000010001b587 in exec_cmd (string=0x100e15e00 "\n
DYLD_LIBRARY_PATH=\"/System/Library/Frameworks/Python.framework/Versions/2.6/lib:/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config:/Users/boris/Downloads/boost_1_41_0/b"...,
func=0x10000d347 <make_closure>, closure=0x100899fc0, shell=0x0,
action=0x100976349 "capture-output", target=0x100d688b5
"bin/test_ext.test/darwin-4.2.1/debug/test_ext") at execunix.c:328
        out = {4, 5}
        err = {6, 7}
        slot = 0
        len = 46
        argv = {0x100026607 "/bin/sh", 0x10002660f "-c", 0x100e15e00 "\n
DYLD_LIBRARY_PATH=\"/System/Library/Frameworks/Python.framework/Versions/2.6/lib:/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config:/Users/boris/Downloads/boost_1_41_0/b"...,
0x0, 0x7fff5fbfdd50 "pݿ_?", 0x100a0cf60 "???", 0x818b89 <Address
0x818b89 out of bounds>, 0x101770ab0 "", 0x7fff5fbfdd50 "pݿ_?",
0x1000143ba "H?E?H?E?H?@\bH?E?H?\005/?\001", 0x0, 0x100818b89
"LOCATE", 0x10129eec0 "", 0x100a0cf60 "???", 0x7fff5fbfdd70 "?Ý¿_?",
0x100913580 "P?\005\001\001", 0x0, 0x10105b750 ")\001", 0x7fff5fbfdd90
"?Ý¿_?", 0x10001482b "??UH??H??`H?}?H?u?H?u?H?=?\031\001",
0x7fff5fbfdda0 "", 0x100913570 "Fd?", 0x7fff5fbfddc0 "pÞ¿_?",
0x10000d650 "H?U?H?E?H?\002H?}?", 0x0, 0x0, 0x7fff5fbfde30 "",
0x7fff5fbfde38 ".", 0x7fff5fbfde70 "?޿_?", 0x10000da1a "H?E?H?Đ",
0x89b35d <Address 0x89b35d out of bounds>, 0x101a929e0 "?\"?\001\001",
0x7fff5fbfde10 "\006"}
        initialized = 1
#3 0x000000010000cba0 in make1c (pState=0x101a92220) at make1.c:532
        rule_name = 0x100976349 "capture-output"
        target = 0x100d688b5 "bin/test_ext.test/darwin-4.2.1/debug/test_ext"
        cmd = (CMD *) 0x101a92350
        __func__ = "make1c"
#4 0x000000010000c2c6 in make1 (t=0x100d546e0) at make1.c:229
        pState = (state *) 0x101a92220
#5 0x000000010000a75e in make (n_targets=1, targets=0x101a37680,
anyhow=0) at make.c:167
        PROF_MAKE_MAKE1 = {
  info = 0x1008000c9,
  overhead = 0,
  entry_time = 140734799798208,
  caller = 0x7fff850bda4a,
  subrules = 140734799798240
}
        PROF_MAKE_MAKE1_p = (profile_frame *) 0x7fff5fbfdf80
        i = 0
        counts = {{
    temp = 0,
    updating = 54,
    cantfind = 0,
    cantmake = 0,
    targets = 1579,
    made = 0
  }}
        status = 0
#6 0x0000000100008371 in main (argc=3, argv=0x7fff5fbff6f0,
arg_environ=0x7fff5fbff710) at jam.c:529
        targets_count = 1
        targets2 = (const char **) 0x101a37680
        n = 1
        PROF_MAIN_MAKE = {
  info = 0x0,
  overhead = 0,
  entry_time = 0,
  caller = 0x0,
  subrules = 0
}
        PROF_MAIN_MAKE_p = (profile_frame *) 0x7fff5fbff010
        targets = (LIST *) 0x0
        PROF_MAIN = {
  info = 0x0,
  overhead = 0,
  entry_time = 0,
  caller = 0x0,
  subrules = 0
}
        PROF_MAIN_p = (profile_frame *) 0x7fff5fbff0e0
        n = 0
        s = 0x0
        optv = {{
    flag = 45 '-',
    val = 0x7fff5fbff86e "verbose-test"
  }, {
    flag = 0 '\0',
    val = 0x0
  } <repeats 255 times>}
        all = 0x10001e269 "all"
        anyhow = 0
        status = 0
        arg_c = 4
        arg_v = (char **) 0x7fff5fbff6e8
        progname = 0x7fff5fbff818
"/Users/boris/Documents/git/boost/tools/jam/src/bin.macosxx86_64/bjam"

The command after which it hangs is

"g++" -dynamiclib -Wl,-single_module -install_name "extending.so"
-L"/System/Library/Frameworks/Python.framework/Versions/2.6/lib"
-L"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config"
-o "bin/darwin-4.2.1/debug/extending.so"
"bin/darwin-4.2.1/debug/extending.o"
"../../../../bin.v2/libs/python/build/darwin-4.2.1/debug/libboost_python.dylib"
 -lpython2.6 -headerpad_max_install_names -g

and this command itself executes fine (with 0 exit status) when
executed manually on command-line.

Not sure where to go from now. I could create a ticket if it's desired.

Boris

On Sun, Jan 17, 2010 at 11:37 PM, Ryan Capote <trooper777_at_[hidden]> wrote:
> Sorry, last email was from my phone so I didn't have the environment infront
> of me. There are two dashes infront of verbose-test. I am running bjam
> 3.1.17. In the full download, there is a libs/python/examples/quickstart. I
> am following this
> documentation: http://www.boost.org/doc/libs/1_41_0/libs/python/doc/building.html
>
> 2010/1/17 Boris Dušek <boris.dusek_at_[hidden]>
>>
>> On Fri, Jan 15, 2010 at 8:10 PM, Ryan Capote <trooper777_at_[hidden]> wrote:
>> > I used this command in the quickbuild directory
>> >
>> > bjam toolset=darwin -verbose-test test
>>
>> I still do not know how to reproduce your setup:
>>
>> 1. There is no quickbuild directory anywhere in the boost 1.41.0
>> distribution.
>> 2. What version of bjam do you use? The one included with boost
>> 1.41.0? Or some system one (in that case, please post output of "bjam
>> --version")?
>> 3. Both bjam 3.1.17 (included with boost 1.41.0) and bjam 3.1.18 (from
>> trunk) complain with your command-line: "Invalid option: -e".
>>
>> Cheers,
>> Boris
>> _______________________________________________
>> Unsubscribe & other changes:
>> http://lists.boost.org/mailman/listinfo.cgi/boost-build
>
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost-build
>
>


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