Re: [Boost-bugs] [Boost C++ Libraries] #8266: context library don't compile for Mac OSX universal binary

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8266: context library don't compile for Mac OSX universal binary
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-01-09 00:17:34


#8266: context library don't compile for Mac OSX universal binary
-------------------------------------+-------------------------------------
  Reporter: Serguei E. Leontiev | Owner: olli
  <leo@…> | Status: closed
      Type: Bugs | Component: context
 Milestone: To Be Determined | Severity: Problem
   Version: Boost 1.53.0 | Keywords: mac osx universal
Resolution: fixed | binary
-------------------------------------+-------------------------------------

Comment (by marco.serantoni@…):

 I was able to fix, passing thru the compiler with this changes:


 macbook:context marco$ git diff
 {{{
 diff --git a/build/Jamfile.v2 b/build/Jamfile.v2
 index 1e5b096..dee50db 100644
 --- a/build/Jamfile.v2
 +++ b/build/Jamfile.v2
 @@ -513,8 +513,8 @@ alias asm_context_sources

  #X86 universal
  alias asm_context_sources
 - : [ make asm/make_i386_x86_64_sysv_macho_gas.o :
 asm/make_i386_x86_64_sysv_macho_gas.S : @gas ]
 - [ make asm/jump_i386_x86_64_sysv_macho_gas.o :
 asm/jump_i386_x86_64_sysv_macho_gas.S : @gas ]
 + : asm/make_i386_x86_64_sysv_macho_gas.S
 + asm/jump_i386_x86_64_sysv_macho_gas.S
     : <address-model>32_64
       <architecture>x86
       <binary-format>mach-o
 }}}

 RESULT

 {{{
 macbook:boost_develop marco$ ./b2 architecture=x86 address-model=32_64
 context -d+2
 Performing configuration checks

     - symlinks supported : yes (cached)
     - hardlinks supported : yes (cached)
 darwin.compile.asm bin.v2/libs/context/build/darwin-4.2.1/debug/address-
 model-32_64/architecture-x86/asm/make_i386_x86_64_sysv_macho_gas.o

     "g++" -x assembler-with-cpp -O0 -fno-inline -Wall -g -dynamic
 -gdwarf-2 -fexceptions -fPIC -arch i386 -arch x86_64 -DBOOST_ALL_NO_LIB=1
 -DBOOST_CONTEXT_DYN_LINK=1 -DBOOST_CONTEXT_SOURCE -I"." -c -o
 "bin.v2/libs/context/build/darwin-4.2.1/debug/address-model-
 32_64/architecture-x86/asm/make_i386_x86_64_sysv_macho_gas.o"
 "libs/context/src/asm/make_i386_x86_64_sysv_macho_gas.S"

 darwin.compile.asm bin.v2/libs/context/build/darwin-4.2.1/debug/address-
 model-32_64/architecture-x86/asm/jump_i386_x86_64_sysv_macho_gas.o

     "g++" -x assembler-with-cpp -O0 -fno-inline -Wall -g -dynamic
 -gdwarf-2 -fexceptions -fPIC -arch i386 -arch x86_64 -DBOOST_ALL_NO_LIB=1
 -DBOOST_CONTEXT_DYN_LINK=1 -DBOOST_CONTEXT_SOURCE -I"." -c -o
 "bin.v2/libs/context/build/darwin-4.2.1/debug/address-model-
 32_64/architecture-x86/asm/jump_i386_x86_64_sysv_macho_gas.o"
 "libs/context/src/asm/jump_i386_x86_64_sysv_macho_gas.S"

 darwin.link.dll bin.v2/libs/context/build/darwin-4.2.1/debug/address-
 model-32_64/architecture-x86/libboost_context.dylib

     "g++" -dynamiclib -Wl,-single_module -install_name
 "libboost_context.dylib" -o "bin.v2/libs/context/build/darwin-4.2.1/debug
 /address-model-32_64/architecture-x86/libboost_context.dylib"
 "bin.v2/libs/context/build/darwin-4.2.1/debug/address-model-
 32_64/architecture-x86/asm/make_i386_x86_64_sysv_macho_gas.o"
 "bin.v2/libs/context/build/darwin-4.2.1/debug/address-model-
 32_64/architecture-x86/asm/jump_i386_x86_64_sysv_macho_gas.o"
 -headerpad_max_install_names -g -arch i386 -arch x86_64
 }}}

 {{{
 macbook:boost_develop marco$ file
 bin.v2/libs/context/build/darwin-4.2.1/debug/address-model-
 32_64/architecture-x86/link-static/asm/make_i386_x86_64_sysv_macho_gas.o
 bin.v2/libs/context/build/darwin-4.2.1/debug/address-model-
 32_64/architecture-x86/link-static/asm/make_i386_x86_64_sysv_macho_gas.o:
 Mach-O universal binary with 2 architectures
 bin.v2/libs/context/build/darwin-4.2.1/debug/address-model-
 32_64/architecture-x86/link-static/asm/make_i386_x86_64_sysv_macho_gas.o
 (for architecture i386): Mach-O object i386
 bin.v2/libs/context/build/darwin-4.2.1/debug/address-model-
 32_64/architecture-x86/link-static/asm/make_i386_x86_64_sysv_macho_gas.o
 (for architecture x86_64): Mach-O 64-bit object x86_64

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8266#comment:25>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:15 UTC