Opened 11 years ago

Closed 9 years ago

#42130 closed defect (invalid)

invalid command name "configure.cxx_stdlib"

Reported by: jkhartshorne@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
Port:

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I am trying to install Boost as follows:

sudo port -s install boost +no_static +python27 configure.compiler=macports-gcc-4.8 configure.cxx_stdlib=libc++

I'm getting this error:

Error: Unable to open port: invalid command name "configure.cxx_stdlib"
Error: Unable to execute port: upgrade zlib failed

I recently upgraded to Mavericks. I followed the MacPort migration page, deleting all old ports and reinstalling the ones I thought I needed. I reinstalled gcc and clang, but maybe I'm still missing something I need? I've run port selfupdate a few times, which has not solved the problem.

Change History (4)

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Priority: HighNormal

configure.cxx_stdlib is a new variable that is not available in the currently-released version of MacPorts base (2.2.x); it's only available in trunk (which will eventually become MacPorts 2.3).

Why are you trying to set configure.compiler and configure.cxx_stdlib on the command line? You should let MacPorts install the port the way it wants to install it, with the usual compiler and C++ standard library.

comment:2 Changed 11 years ago by jkhartshorne@…

I'm trying to compiled something else with the boost libraries. The developer wrote:

"In order to compile Venture you need the boost libraries. These must be compiled with gcc-4.8 and linked against libc++ (the standard c++ libraries for c++11)."

I have no more information.

comment:3 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Well libc++ is the default C++ library as of Mavericks, so you don't need to specify anything to get that.

Building with gcc48 will use libgcc's libstdc++, not libc++. So I don't think you want that.

So I would encourage you to build boost as usual, not specifying the compiler or C++ library.

comment:4 Changed 9 years ago by mf2k (Frank Schima)

Resolution: invalid
Status: newclosed

There is nothing to fix here. Installing ports like this is not supported.

Note: See TracTickets for help on using tickets.