
Hi, I'm trying to build boost on the iphone OS 3.0 and Jam is telling me: error: "iphone-3.0" is not a known value of feature <macosx-version> error: legal values: "10.6" "10.5" "10.4" "10.3" "10.2" "10.1" "iphone-2.3" "iphonesim-2.3" "iphone-2.2" "iphonesim-2.2" "iphone-2.1" "iphonesim-2.1" "iphone-2.0" "iphonesim-2.0" "iphone-1.x" I'd like to add this OS to Jam, is there a tutorial (or anything helpful) to accomplish such task? Thanks, Frank

gtsml owevwr wrote:
Hi, I'm trying to build boost on the iphone OS 3.0 and Jam is telling me: error: "iphone-3.0" is not a known value of feature <macosx-version> error: legal values: "10.6" "10.5" "10.4" "10.3" "10.2" "10.1" "iphone-2.3" "iphonesim-2.3" "iphone-2.2" "iphonesim-2.2" "iphone-2.1" "iphonesim-2.1" "iphone-2.0" "iphonesim-2.0" "iphone-1.x"
I'd like to add this OS to Jam, is there a tutorial (or anything helpful) to accomplish such task?
See tools/build/v2/tools/darwin.jam Note this is Boost.Build, not Jam -- which is low-level build engine. - Volodya

Thanks, that helped, I added this line in tools/build/v2/tools/darwin.jam: iphone-3.0 iphonesim-3.0 I'm now having an error message saying: error: unrecognized command line option: "-Wno-long-double" I solved that by taking this out: # - GCC 4.2 and higher in Darwin does not have -Wno-long-double. if $(version) < "4.2.0" { flags darwin.compile OPTIONS $(condition) : -Wno-long-double ; } What's the clean here, does anybody know? Thanks, Frank

gtsml owevwr wrote:
Thanks, that helped, I added this line in tools/build/v2/tools/darwin.jam: iphone-3.0 iphonesim-3.0
I'm now having an error message saying: error: unrecognized command line option: "-Wno-long-double" I solved that by taking this out:
# - GCC 4.2 and higher in Darwin does not have -Wno-long-double. if $(version) < "4.2.0" { flags darwin.compile OPTIONS $(condition) : -Wno-long-double ; }
What's the clean here, does anybody know?
You need to provide the details, including your compiler version, your Boost.Build version, and your user-config.jam. - Volodya

Hope that's enough. ************************ using boost .138 ************************ compiler gcc 4.2 i686-apple-darwin9-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5572) (dot 10.2) Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ************************ FILE user-config.jam: # Boost.Build Configuration # Automatically generated by Boost configure # Compiler configuration using darwin : 4.0.1~iphone : /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch arm : <striper> : <architecture>arm <target-os>iphone <macosx-version>iphone-3.0 ; using darwin : 4.0.1~iphonesim : /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 : <striper> : <architecture>x86 <target-os>iphone <macosx-version>iphonesim-3.0 ; ************************ FILE makefile (handtuned) BJAM=./tools/jam/src/bin.macosxx86/bjam -d 2 BJAM_USER_CONFIG=iphone30-user-config.jam ##################### BJAM_CONFIG_IPHONE=toolset=darwin architecture=arm target-os=iphone --layout=system link=static macosx-version=iphone-3.0 define=_LITTLE_ENDIAN BJAM_CONFIG_IPHONESIM=toolset=darwin architecture=x86 target-os=iphone --layout=system link=static macosx-version=iphonesim-3.0 prefix_IPHONE=<removedforprivacy>/boost-iphone-os30 prefix_IPHONESIM=<removedforprivacy>/boost-iphonesim-os30 ##################### BJAM_CONFIG=$(BJAM_CONFIG_IPHONE) prefix = $(prefix_IPHONE) exec_prefix=$(prefix) libdir=$(exec_prefix)/lib includedir=$(prefix)/include LIBS= --with-serialization --with-filesystem --with-regex all: .dummy @echo "$(BJAM) $(BJAM_CONFIG) --user-config=$(BJAM_USER_CONFIG) $(LIBS)" @$(BJAM) $(BJAM_CONFIG) --user-config=$(BJAM_USER_CONFIG) $(LIBS) || \ echo "Not all Boost libraries built properly." clean: .dummy rm -rf bin.v2 distclean: clean rm -rf Makefile config.log check: .dummy @cd status && ../$(BJAM) $(BJAM_CONFIG) --user-config=../$(BJAM_USER_CONFIG) || echo "Some Boost regression tests failed. This is normal for many compilers." install: .dummy @echo "$(BJAM) $(BJAM_CONFIG) --user-config=$(BJAM_USER_CONFIG) --prefix=$(prefix) --exec-prefix=$(exec_prefix) --libdir=$(libdir) --includedir=$(includedir) $(LIBS) install" @$(BJAM) $(BJAM_CONFIG) --user-config=$(BJAM_USER_CONFIG) --prefix=$(prefix) --exec-prefix=$(exec_prefix) --libdir=$(libdir) --includedir=$(includedir) $(LIBS) install || echo "Not all Boost libraries built properly." .dummy:

gtsml owevwr wrote:
Hope that's enough.
************************ using boost .138
************************ compiler gcc 4.2
i686-apple-darwin9-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5572) (dot 10.2) Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Then, I suggest that you indeed comment out that problematic code. In 1.39, the logic was improved so that comparison uses "real" compiler version, and not the version specified in user-config.jam, so the option is passed or not passed properly. - Volodya
participants (2)
-
gtsml owevwr
-
Vladimir Prus