Opened 17 years ago

Closed 17 years ago

#504 closed Bugs (Fixed)

crach build bjam from mingw 3.4.4 with python

Reported by: shura_zam Owned by: René Rivera
Milestone: Component: None
Version: None Severity:
Keywords: Cc:

Description

OS: Windows XP pro rus + sp2
gcc: (GCC) 3.4.4 (mingw special)
ld: GNU ld version 2.16.91 20050827
Python: Python 2.4.2
Source: latest csv

I try build bjam with python.
Bat I have crach in linking.

Command line:
>bjam -f build.jam --toolset=mingw
--with-python=C:\Lang\Python24

Output (latest 8 lines)
C:\TEMP\Shura/ccaSyaaa.o:builtins.c:(.text+0x334e):
undefined reference to `_imp__PyCallable_Check'
C:\TEMP\Shura/ccaSyaaa.o:builtins.c:(.text+0x337c):
undefined reference to `_imp___Py_NoneStruct'
collect2: ld returned 1 exit status

    "gcc"    -o bin.ntx86\bjam.exe  -DNDEBUG
-DOPT_HEADER_CACHE_EXT -DOPT_GRAPH_DEBUG_EXT
-DOPT_SEMAPHORE -DOPT_FIX_TARGET_VARIABLES_EXT
-DOPT_IMPROVED_PATIENCE_EXT -DNT -DYYSTACKSIZE=5000
-DHAVE_PYTHON  -s -O3 -finline-functions
-IC:\Lang\Python24\include 
"C:\Lang\Python24\libs\python24.lib"  command.c
compile.c debug.c expand.c glob.c hash.c hcache.c
headers.c hdrmacro.c jam.c jambase.c jamgram.c lists.c
make.c make1.c newstr.c option.c parse.c regexp.c
rules.c scan.c search.c subst.c w32_getreg.c
timestamp.c variable.c modules.c strings.c filesys.c
builtins.c pwd.c class.c native.c modules/set.c
modules/path.c modules/regex.c modules/property-set.c
modules/sequence.c modules/order.c execnt.c filent.c
pathunix.c

...failed [COMPILE] bin.ntx86\bjam.exe...
...failed updating 1 target...

Change History (3)

comment:1 by david_abrahams, 17 years ago

Logged In: YES 
user_id=52572

Have you followed the instructions at
http://www.boost.org/libs/python/doc/building.html#mingw ?

comment:2 by shura_zam, 17 years ago

Logged In: YES 
user_id=980085

I see instructions at
http://www.boost.org/libs/python/doc/building.html#mingw
And also I look build skript for building bjam (build.jam)
Lines 46 - 56 find and add library for python in NT.
Pattern lib name for mingw mast by libpython$(v)* 
bat added python$(v).lib - MS style library. ;-(

comment:3 by René Rivera, 17 years ago

Status: assignedclosed
Note: See TracTickets for help on using tickets.