Opened 3 years ago

Closed 3 years ago

Last modified 16 months ago

#63120 closed defect (fixed)

boost176 needs a compiler that supports C++11

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: Chris Jones <jonesc@…>
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: tiger Cc: michaelld@…, cjones051073 (Chris Jones)
Port: boost176

Description

From configure: A C++11 capable compiler is required for building the B2 engine.

Attachments (2)

main.log (28.8 KB) - added by ballapete (Peter "Pete" Dyballa) 3 years ago.
Main.log from PPC Tiger
main.2.log (573.9 KB) - added by ballapete (Peter "Pete" Dyballa) 3 years ago.
Main.log from PPC Tiger, g++-mp-7 fails to compile libs/nowide/src/cstdlib.cpp

Download all attachments as: .zip

Change History (14)

Changed 3 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

Main.log from PPC Tiger

comment:1 Changed 3 years ago by cjones051073 (Chris Jones)

Resolution: worksforme
Status: newclosed

comment:2 Changed 3 years ago by cjones051073 (Chris Jones)

Cc: cjones051073 added

comment:3 Changed 3 years ago by cjones051073 (Chris Jones)

Resolution: worksforme
Status: closedreopened

Reopening, as I have an idea how to address this.

comment:4 Changed 3 years ago by Chris Jones <jonesc@…>

Owner: set to Chris Jones <jonesc@…>
Resolution: fixed
Status: reopenedclosed

In 2f7c222384c558960d6093572b59918836d36974/macports-ports (master):

boost176: Add compiler PATH workaround for older OSes using gcc
Closes: #63120

comment:5 Changed 3 years ago by cjones051073 (Chris Jones)

Peter, please try again with the above.

comment:6 in reply to:  5 Changed 3 years ago by ballapete (Peter "Pete" Dyballa)

Replying to cjones051073: CXX='/opt/local/bin/g++-mp-7' is being used and build of the B2 engine has just begun…

comment:7 Changed 3 years ago by cjones051073 (Chris Jones)

Peter, if boost176 still is not building please post a complete build log.

comment:8 in reply to:  7 Changed 3 years ago by ballapete (Peter "Pete" Dyballa)

Replying to cjones051073:

Yesterday, after the build failure, I decided to continue living without Poppler since Xpdf provides quite the same, even more, and makes no problems. So I cleaned my PowerBook G4. But – upon request the log is being recreated! This might take some time… (one PPC 7447A with one core at 1.5 GHz)

Changed 3 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.2.log added

Main.log from PPC Tiger, g++-mp-7 fails to compile libs/nowide/src/cstdlib.cpp

comment:9 Changed 3 years ago by ballapete (Peter "Pete" Dyballa)

Here is the failure:

   3873 :info:build     "/opt/local/bin/g++-mp-7"   -fvisibility-inlines-hidden -Os -std=gnu++11 -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc  -fPIC -m32 -O3 -Wall -fvisibility=hidden -dynamic -gdwarf-2 -fexceptions -Wno-inline  -DBOOST_ALL_NO_LIB=1 -DBOOST_NOWIDE_DYN_LINK=1 -DBOOST_NOWIDE_NO_LFS -DNDEBUG  -I"."  -c -o "bin.v2/libs/nowide/build/darwin-7.5.0/release/threading-multi/visibility-hidden/cstdlib.o" "libs/nowide/src/cstdlib.cpp"
   3874 :info:build libs/nowide/src/cstdlib.cpp: In function 'int boost::nowide::unsetenv(const char*)':
   3875 :info:build libs/nowide/src/cstdlib.cpp:31:30: error: void value not ignored as it ought to be
   3876 :info:build          return ::unsetenv(key);
   3877 :info:build                               ^
   3878 :info:build ...failed darwin.compile.c++ bin.v2/libs/nowide/build/darwin-7.5.0/release/threading-multi/visibility-hidden/cstdlib.o...

comment:10 Changed 3 years ago by kencu (Ken)

this is the define unix2003 thing.

comment:11 Changed 3 years ago by cjones051073 (Chris Jones)

I've just pushed https://github.com/macports/macports-ports/commit/e5316596d177c9f6370d5817f94b94879a939405 which makes boost 1.71 the default on Darwin9 and older.

comment:12 Changed 16 months ago by ballapete (Peter "Pete" Dyballa)

boost176 @1.76.0_6 is now the standard and it builds easily (within one day). So this ticket can be closed.

Note: See TracTickets for help on using tickets.