Opened 7 years ago

Closed 4 years ago

#54282 closed defect (fixed)

poppler @0.55.0_0 fails to build on PPC Leopard, Mac OS X 10.5.8, because GCC 4.2 does not understand "-std=c++11"

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.4.1
Keywords: leopard powerpc Cc:
Port: poppler

Description

Making all in goo
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-0.55.0/goo'
/bin/sh ../libtool  --tag=CXX   --mode=compile /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I.. -I../poppler  -I..   -I/opt/local/include/openjpeg-2.1 -I/opt/local/include/libpng16 -I/opt/local/include  -fPIC -Wall -Woverloaded-virtual -Wnon-virtual-dtor -Wcast-align -fno-exceptions  -fno-common -pipe -Os -arch ppc -std=c++11 -MT libgoo_la-gfile.lo -MD -MP -MF .deps/libgoo_la-gfile.Tpo -c -o libgoo_la-gfile.lo `test -f 'gfile.cc' || echo './'`gfile.cc
libtool: compile:  /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I.. -I../poppler -I.. -I/opt/local/include/openjpeg-2.1 -I/opt/local/include/libpng16 -I/opt/local/include -fPIC -Wall -Woverloaded-virtual -Wnon-virtual-dtor -Wcast-align -fno-exceptions -fno-common -pipe -Os -arch ppc -std=c++11 -MT libgoo_la-gfile.lo -MD -MP -MF .deps/libgoo_la-gfile.Tpo -c gfile.cc  -fno-common -DPIC -o .libs/libgoo_la-gfile.o
cc1plus: error: unrecognized command line option "-std=c++11"
make[2]: *** [libgoo_la-gfile.lo] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-0.55.0/goo'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-0.55.0'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-0.55.0'

GCC 4.2 seems to understand only these standards:

  -std=c89                    Conform to the ISO 1990 C standard
  -std=c99                    Conform to the ISO 1999 C standard
  -std=c9x                    Deprecated in favor of -std=c99
  -std=gnu89                  Conform to the ISO 1990 C standard with GNU extensions
  -std=gnu99                  Conform to the ISO 1999 C standard with GNU extensions
  -std=gnu9x                  Deprecated in favor of -std=gnu99
  -std=iso9899:1990           Conform to the ISO 1990 C standard
  -std=iso9899:199409         Conform to the ISO 1990 C standard as amended in 1994
  -std=iso9899:1999           Conform to the ISO 1999 C standard
  -std=iso9899:199x           Deprecated in favor of -std=iso9899:1999
  -std=c++98                  Conform to the ISO 1998 C++ standard
  -std=gnu++98                Conform to the ISO 1998 C++ standard with GNU extensions

Attachments (1)

main.log (34.0 KB) - added by ballapete (Peter "Pete" Dyballa) 7 years ago.
main.log from PPC Leopard

Download all attachments as: .zip

Change History (11)

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

Attachment: main.log added

main.log from PPC Leopard

comment:1 Changed 7 years ago by ballapete (Peter "Pete" Dyballa)

I think autoreconf introduces this faulty "-std=c++11"

comment:2 Changed 7 years ago by mf2k (Frank Schima)

Cc: devans@… removed
Keywords: powerpc added
Owner: set to dbevans
Status: newassigned

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

As of poppler 0.53 <https://cgit.freedesktop.org/poppler/poppler/commit/?id=7ba4eb3ac3f23236e3df1ef992160d702dc5e4e9> the build system has been set to require c++11, according to the referenced commit.

So you'll have to use a newer gcc version, or wait for me to finish porting clang-3.8 to 10.4 and 10.5 PPC (done, nearly ready for prime time) and try that.

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

Replying to kencu:

As of poppler 0.53 <https://cgit.freedesktop.org/poppler/poppler/commit/?id=7ba4eb3ac3f23236e3df1ef992160d702dc5e4e9> the build system has been set to require c++11, according to the referenced commit.

So you'll have to use a newer gcc version, or wait for me to finish porting clang-3.8 to 10.4 and 10.5 PPC (done, nearly ready for prime time) and try that.

Am I already hit from your progress? When I now want to upgrade poppler it leads to:

DEBUG: ld64-127 127.2_14 exists in the ports tree
DEBUG: ld64-127 127.2_14 +llvm34 is the latest installed
DEBUG: ld64-127 127.2_14 +llvm34 is active
DEBUG: Merging existing variants '+llvm34' into variants
DEBUG: new fully merged portvariants: llvm34 +
DEBUG: Changing to port directory: /opt/local/var/macports/sources/nue.de.rsync.macports.org/macports/release/tarballs/ports/devel/ld64
DEBUG: OS darwin/9.8.0 (Mac OS X 10.5) arch powerpc
DEBUG: Sourcing PortGroup compiler_blacklist_versions 1.0 from /opt/local/var/macports/sources/nue.de.rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/compiler_blacklist_versions-1.0.tcl
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/nue.de.rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Executing variant llvm34 provides llvm34
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: No need to upgrade! ld64-127 127.2_14 >= ld64-127 127.2_14
DEBUG: dropping privileges: euid changed to 502, egid changed to 502.
DEBUG: Starting logging for libomp
Error: libomp cannot be installed for the configured universal_archs 'i386 ppc' because it only supports the arch(s) 'i386 x86_64'.
Error: Problem while installing libomp
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

comment:5 Changed 7 years ago by kencu (Ken)

you might try this:

sudo port -v upgrade poppler configure.compiler=macports-gcc-6

comment:6 Changed 7 years ago by Schamschula (Marius Schamschula)

Also see #54249

comment:7 Changed 7 years ago by mojca (Mojca Miklavec)

I think I installed poppler on an old box with the cxx11 1.1 hack, but I'm not sure to what extent this is applicable to 10.5.

comment:8 Changed 7 years ago by kencu (Ken)

popper installs fine on 10.4 PPC and 10.5 PPC with macports-gcc-6.

It also installs fine on 10.5 PPC and appears to work correctly with the slightly modified version of clang-3.8 I made not long ago <https://github.com/kencu/LeopardPorts/tree/master/lang/llvm-3.8>, using Marcus' -stdlib=macports-libstdc++ trick. I may see if I can sell that idea to Jeremy, as it has legs for 10.5 PPC I think.

The cxx11 portgroup does not work as it is with 10.5 PPC just now, but I think if we just blacklist clang-3.9 and clang-4.0 on PPC in that portgroup it could work then. Not everything builds with gcc6, but a lot of things do.

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

Replying to kencu:

Indeed, GCC 6 is needed.

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

Resolution: fixed
Status: assignedclosed

fixed somewhere along the line:

$ port -v installed poppler
The following ports are currently installed:
  poppler @0.81.0_0 (active) platform='darwin 9' archs='ppc' date='2019-10-06T10:46:44-0700'
Note: See TracTickets for help on using tickets.