[MacPorts] #38239: boost builds but does not run
#38239: boost builds but does not run -------------------------+-------------------------------- Reporter: steenparl@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: | Port: boost -------------------------+-------------------------------- I am trying to get boost on my mac. I have had it before, but it is not working. The Macports almost works, though. I have executed the following: sudo port self update sudo port upgrade outdated sudo port install boost It builds, but running the simple attached program using boost threads hangs with what looks like an invalid address (0). -- Ticket URL: <https://trac.macports.org/ticket/38239> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38239: boost builds but does not run --------------------------+-------------------------------- Reporter: steenparl@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: boost | --------------------------+-------------------------------- Comment (by egall@…):
No log file
Even if it doesn't create one automatically, if you're compiling it from the command line, you can always redirect the output to your own log file, or pipe it through `tee`, or something else like that -- Ticket URL: <https://trac.macports.org/ticket/38239#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38239: boost builds but does not run --------------------------+-------------------------------- Reporter: steenparl@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: boost | --------------------------+-------------------------------- Comment (by steenparl@…): Hi, I attached the log file by redirecting as you suggested. -- Ticket URL: <https://trac.macports.org/ticket/38239#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38239: boost builds but does not run --------------------------+--------------------------- Reporter: steenparl@… | Owner: adfernandes@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: boost | --------------------------+--------------------------- Changes (by macsforever2000@…): * owner: macports-tickets@… => adfernandes@… Old description:
I am trying to get boost on my mac. I have had it before, but it is not working. The Macports almost works, though. I have executed the following: sudo port self update sudo port upgrade outdated sudo port install boost
It builds, but running the simple attached program using boost threads hangs with what looks like an invalid address (0).
New description: I am trying to get boost on my mac. I have had it before, but it is not working. The Macports almost works, though. I have executed the following: {{{ sudo port self update sudo port upgrade outdated sudo port install boost }}} It builds, but running the simple attached program using boost threads hangs with what looks like an invalid address (0). -- Comment: In the future, please use WikiFormatting and Cc the port maintainer(s). -- Ticket URL: <https://trac.macports.org/ticket/38239#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38239: boost builds but does not run --------------------------+--------------------------- Reporter: steenparl@… | Owner: adfernandes@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: boost | --------------------------+--------------------------- Comment (by adfernandes@…): Works just fine for me with both {{{ /usr/bin/clang++ -I /opt/local/include -L /opt/local/lib main.cpp -lboost_thread-mt -lboost_system-mt -o main }}} and {{{ g++-mp-4.7 -I /opt/local/include -L /opt/local/lib main.cpp -lboost_thread-mt -lboost_system-mt -o main }}} Can you run your test program under the debugger (either `gdb` or `lldb`)? You might want to add the `-g` debugging flags to the compilation of `main.cpp` for that. You should '''not''' need to install the `debug` variant of `boost`! -- Ticket URL: <https://trac.macports.org/ticket/38239#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38239: boost builds but does not run --------------------------+--------------------------- Reporter: steenparl@… | Owner: adfernandes@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: boost | --------------------------+--------------------------- Comment (by steenparl@…): Replying to [comment:4 adfernandes@…]:
Works just fine for me with both {{{ /usr/bin/clang++ -I /opt/local/include -L /opt/local/lib main.cpp -lboost_thread-mt -lboost_system-mt -o main }}} and {{{ g++-mp-4.7 -I /opt/local/include -L /opt/local/lib main.cpp -lboost_thread-mt -lboost_system-mt -o main }}} or {{{ /usr/bin/clang++ -I /opt/local/include main.cpp /opt/local/lib /libboost_thread-mt.a /opt/local/lib/libboost_system-mt.a -o main }}} and {{{ g++-mp-4.7 -I /opt/local/include main.cpp /opt/local/lib /libboost_thread-mt.a /opt/local/lib/libboost_system-mt.a -o main }}}
Can you run your test program under the debugger (either `gdb` or `lldb`)?
You might want to add the `-g` debugging flags to the compilation of `main.cpp` for that. You should '''not''' need to install the `debug` variant of `boost`!
Thank you for that. I copied your lines and they both work for me, except for the "-mp-4.7" which my system doesn't seem to recognize. This shows, I assume, that the macport is fine and the problem I am having must be in xCode, where I still have the problem. Thanks again for your help. -- Ticket URL: <https://trac.macports.org/ticket/38239#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38239: boost builds but does not run --------------------------+--------------------------- Reporter: steenparl@… | Owner: adfernandes@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: invalid | Keywords: Port: boost | --------------------------+--------------------------- Changes (by adfernandes@…): * status: new => closed * resolution: => invalid Comment: The "-mp-4.7" denotes the MacPorts `gcc` compiler. Thanks for letting me know! -- Ticket URL: <https://trac.macports.org/ticket/38239#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38239: boost builds but does not run --------------------------+--------------------------- Reporter: steenparl@… | Owner: adfernandes@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: invalid | Keywords: Port: boost | --------------------------+--------------------------- Comment (by adfernandes@…): One thought - boost has problems with 32-bit builds due to the atomic operations. So if you have universal builds or are running a 32-bit executable, that might be the problem. -- Ticket URL: <https://trac.macports.org/ticket/38239#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts