Opened 7 years ago

Closed 7 years ago

#54374 closed defect (fixed)

texlive-bin @2017_0 won't build on PPC Leopard, Mac OS X 10.5.8, because other characters are expected

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: drkp (Dan Ports)
Priority: Normal Milestone:
Component: ports Version: 2.4.1
Keywords: leopard Cc: mojca (Mojca Miklavec)
Port: texlive-bin

Description

/usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I./w2c   -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/texlive-source-20170604-stripped/texk -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/texlive-source-20170604-stripped/texk  -I/opt/local/include/libpng16 -DPOPPLER_VERSION=\"0.55.0\" -I/opt/local/include/poppler -I./libmd5 -I./pdftexdir -isystem/opt/local/include -Wimplicit -Wreturn-type -Wno-unknown-pragmas -Wno-write-strings -pipe -Os -arch ppc -MT pdftexdir/libpdftex_a-pdftoepdf.o -MD -MP -MF pdftexdir/.deps/libpdftex_a-pdftoepdf.Tpo -c -o pdftexdir/libpdftex_a-pdftoepdf.o `test -f 'pdftexdir/pdftoepdf.cc' || echo './'`pdftexdir/pdftoepdf.cc
In file included from /opt/local/include/poppler/Object.h:360,
                 from pdftexdir/pdftoepdf.cc:49:
/opt/local/include/poppler/Stream.h:286: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:288: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:290: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:292: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:314: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:315: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:316: error: expected `;' before ‘BaseStream’
/opt/local/include/poppler/Stream.h:316: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:317: error: expected `;' before ‘Stream’
/opt/local/include/poppler/Stream.h:317: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:318: error: expected `;' before ‘Dict’
/opt/local/include/poppler/Stream.h:318: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:319: error: expected `;' before ‘virtual’
/opt/local/include/poppler/Stream.h:343: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:344: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:345: error: expected `;' before ‘void’
/opt/local/include/poppler/Stream.h:345: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:346: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:347: error: expected `;' before ‘Stream’
/opt/local/include/poppler/Stream.h:347: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:348: error: expected `;' before ‘Dict’
/opt/local/include/poppler/Stream.h:348: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:349: error: expected `;' before ‘Stream’
/opt/local/include/poppler/Stream.h:349: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:351: error: expected `;' before ‘int’
/opt/local/include/poppler/Stream.h:351: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:352: error: expected `;' before ‘void’
/opt/local/include/poppler/Stream.h:352: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:354: error: expected `;' before ‘protected’
/opt/local/include/poppler/Stream.h:452: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:454: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:455: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:456: error: expected `;' before ‘void’
/opt/local/include/poppler/Stream.h:456: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:457: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:458: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:460: error: expected `;' before ‘int’
/opt/local/include/poppler/Stream.h:460: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:462: error: expected `;' before ‘Goffset’
/opt/local/include/poppler/Stream.h:462: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:463: error: expected `;' before ‘void’
/opt/local/include/poppler/Stream.h:463: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:464: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:465: error: expected `;' before ‘void’
/opt/local/include/poppler/Stream.h:465: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:467: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:468: error: expected `;' before ‘void’
/opt/local/include/poppler/Stream.h:468: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:470: error: expected `;' before ‘private’
/opt/local/include/poppler/Stream.h:474: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:475: error: expected `;' before ‘int’
/opt/local/include/poppler/Stream.h:475: error: expected ‘;’ before ‘override’
pdftexdir/pdftoepdf.cc:1110: error: expected `;' at end of input
pdftexdir/pdftoepdf.cc:1110: error: expected `}' at end of input
pdftexdir/pdftoepdf.cc:1110: error: expected unqualified-id at end of input
make[5]: *** [pdftexdir/libpdftex_a-pdftoepdf.o] Error 1
make[5]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/texlive-source-20170604-stripped/texk/web2c'
make[4]: *** [all-recursive] Error 1

Attachments (2)

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

Download all attachments as: .zip

Change History (23)

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 mf2k (Frank Schima)

Cc: dports@… removed
Owner: set to drkp
Status: newassigned

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

Trying to use in Portfile

  6 PortGroup       cxx11 1.1

leads to another error:

DEBUG: Attempting ln -sf /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_libomp/libomp/work /opt/local/var/macports/sources/nue.de.rsync.macports.org/macports/release/tarballs/ports/lang/libomp/work
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
DEBUG: Rebuilding port texlive-bin finished with status 1
DEBUG: rev-upgrade failed: Error rebuilding texlive-bin

libomp is not installed. Probably the problem is more the compiler used. I'll try to invoke port with configure.compiler=macports-gcc-6!

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

I'll try to invoke port with configure.compiler=macports-gcc-6!

This setting does not make it to configure:

--->  Configuring texlive-bin
DEBUG: Preferred compilers: gcc-4.2 apple-gcc-4.2 gcc-4.0 macports-clang-3.4 macports-clang-3.3
DEBUG: Using compiler 'Xcode GCC 4.2'
DEBUG: Executing org.macports.configure (texlive-bin)
DEBUG: Environment: 
CC='/usr/bin/gcc-4.2'
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/.CC_PRINT_OPTIONS'
CFLAGS='-pipe -Os -arch ppc'
CPATH='/opt/local/include'
CPPFLAGS='-isystem/opt/local/include'
CXX='/usr/bin/g++-4.2'
CXXFLAGS='-pipe -Os -arch ppc'
F77FLAGS='-m32'
F90FLAGS='-pipe -Os -m32'
FCFLAGS='-pipe -Os -m32'
FFLAGS='-pipe -Os'
INSTALL='/usr/bin/install -c'
LDFLAGS='-Wl,-headerpad_max_install_names -arch ppc'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='10.5'
OBJC='/usr/bin/gcc-4.2'
OBJCFLAGS='-pipe -Os -arch ppc'
OBJCXX='/usr/bin/g++-4.2'
OBJCXXFLAGS='-pipe -Os -arch ppc'
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/texlive-source-20170604-stripped" && ./configure --prefix=/opt/local --bindir=/opt/local/libexec/texlive/binaries --mandir=/opt/local/libexec/texlive/binaries --infodir=/opt/local/share/info --enable-shared --disable-multiplatform --disable-native-texlive-build --without-old-mac-fonts --with-banner-add="/MacPorts 2017_0" --with-system-freetype2 --without-system-freetype --without-system-icu --with-system-cairo --with-system-gd --with-system-gmp --with-system-graphite2 --with-system-harfbuzz --with-system-icu --with-system-libpaper --with-libpaper-includes=/opt/local/include --with-libpaper-libdir=/opt/local/lib --with-system-libpng --with-libpng-includes=/opt/local/include --with-libpng-libdir=/opt/local/lib --with-system-mpfr --with-system-ncurses --with-system-pixman --with-system-poppler --with-system-potrace --with-system-xpdf --with-system-zlib --with-system-zziplib --disable-biber --disable-etex --disable-detex --disable-dvi2tty --disable-dvipng --disable-lcdf-typetools --disable-ps2eps --disable-psutils --disable-t1utils --disable-texinfo --disable-xindy --enable-build-in-source-tree ac_cv_prog_AWK=/usr/bin/awk --disable-luajittex --with-xdvi-x-toolkit=xaw 
DEBUG: system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/texlive-source-20170604-stripped" && ./configure --prefix=/opt/local --bindir=/opt/local/libexec/texlive/binaries --mandir=/opt/local/libexec/texlive/binaries --infodir=/opt/local/share/info --enable-shared --disable-multiplatform --disable-native-texlive-build --without-old-mac-fonts --with-banner-add="/MacPorts 2017_0" --with-system-freetype2 --without-system-freetype --without-system-icu --with-system-cairo --with-system-gd --with-system-gmp --with-system-graphite2 --with-system-harfbuzz --with-system-icu --with-system-libpaper --with-libpaper-includes=/opt/local/include --with-libpaper-libdir=/opt/local/lib --with-system-libpng --with-libpng-includes=/opt/local/include --with-libpng-libdir=/opt/local/lib --with-system-mpfr --with-system-ncurses --with-system-pixman --with-system-poppler --with-system-potrace --with-system-xpdf --with-system-zlib --with-system-zziplib --disable-biber --disable-etex --disable-detex --disable-dvi2tty --disable-dvipng --disable-lcdf-typetools --disable-ps2eps --disable-psutils --disable-t1utils --disable-texinfo --disable-xindy --enable-build-in-source-tree ac_cv_prog_AWK=/usr/bin/awk --disable-luajittex --with-xdvi-x-toolkit=xaw 
checking build system type... powerpc-apple-darwin9.8.0
checking host system type... powerpc-apple-darwin9.8.0
checking for gcc... /usr/bin/gcc-4.2

So continuous failure.

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

I think you're on the right track. When you see errors like this:

/opt/local/include/poppler/Stream.h:463: error: expected `;' before ‘void’
/opt/local/include/poppler/Stream.h:463: error: expected ‘;’ before ‘override’
/opt/local/include/poppler/Stream.h:464: error: expected ‘;’ before ‘override’

you can almost guarantee the compiler is too old, and doesn't speak the current language. So your idea to use something newer, like gcc6, is right on.

The cxx11 1.1 portgroup is currently pretty messed up (i.e. useless) on 10.5 PPC. It has to be fixed to work properly on that system. At present, it will lead you towards installing clang-4.0, and that's a dead end on PPC, as you found out. So for the moment, on PPC, you can delete that I guess.

The real question is why your configure.compiler=macports-gcc-6 was ignored by texlive-bin. It seems to have not seen that at all:

CC='/usr/bin/gcc-4.2'

That should not happen. Maybe delete the cxx11 1.1 portgroup, and try it again, because that should work. Although I see in the textlive-bin Portfile there are some additional unusual shenanigans that could possibly be relevant to this:

# work around bug in texlive makefiles where $OBJC is not recorded
# during configure phase
build.env                   OBJC=${configure.objc} \
                            OBJCFLAGS="${configure.objcflags} [get_canonical_archflags objc]" \
                            OBJCXX=${configure.objcxx}

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

On PPC Tiger, Mac OS X 10.4.11, texlive-bin started to build – with GCC 6! Could be the reason is that I did *not* tell "Yes" when port told me that a rev-upgrade was necessary after libpoppler.dylib had changed. Here, on Tiger, I started a new build.

This looks like a bug in port for me. The upgrade of poppler started with the designation of the compiler to be used. Additionally the rev-upgrade does *not* accept this argument, possibly no argument at all.

This is as unsatisfying as is when port thinks, "Ahh, first I have to build this and that, and maybe later, if nothing breaks, then I can build what this bloody wants me to build" and I have given an extra directive. Then this is applied to all builds, particularly those on which *my* build does not depend.

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

That explains it -- the build that ignored the configure.compiler set was not a clean build.

I have something for you to try, it you like. I added the following block to the cxx11 1.1 portgroup on 10.5 PPC, and so far at least, it seems to work well.

In this file:

/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/cxx11-1.1.tcl

add this platform darwin power block in the location noted:

    # see https://trac.macports.org/ticket/53194
    configure.cxx_stdlib macports-libstdc++

    # added for powerpc cxx11 compatability
    platform darwin powerpc {
        puts "Doing PPC c++11 overrides. EXPERIMENTAL."
        puts "Selected c++ library is: "
        puts ${cxx_stdlib}
        compiler.whitelist macports-gcc-6 macports-gcc-5
        universal_variant no
    }

    if { ${os.major} < 13 } {

Note you just need to add the powerpc block - the bits prior and after are to see the correct location.

Last edited 7 years ago by kencu (Ken) (previous) (diff)

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

Replying to kencu:

Your eMail came just in time! I was starting to upgrade on Leopard. It's strange that I had nothing more to do and port output:

DEBUG: compiler clang blacklisted because it's not installed or it doesn't work
Doing PPC c++11 overrides. EXPERIMENTAL.
Selected c++ library is: 
libstdc++
DEBUG: Sourcing PortGroup cxx11 1.1 from /opt/local/var/macports/sources/nue.de.rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/cxx11-1.1.tcl

Why and how is port sourcing that TCL file?

But it failed to work:

--->  Configuring texlive-bin
DEBUG: Preferred compilers: gcc-4.2 apple-gcc-4.2 gcc-4.0 macports-clang-3.4 macports-clang-3.3
DEBUG: Using compiler 'Xcode GCC 4.2'
DEBUG: Executing org.macports.configure (texlive-bin)
DEBUG: Environment: 
CC='/usr/bin/gcc-4.2'
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/.CC_PRINT_OPTIONS'
CFLAGS='-pipe -Os -arch ppc'
CPATH='/opt/local/include'
CPPFLAGS='-isystem/opt/local/include'
CXX='/usr/bin/g++-4.2'
CXXFLAGS='-pipe -Os -arch ppc'
F77FLAGS='-m32'
F90FLAGS='-pipe -Os -m32'
FCFLAGS='-pipe -Os -m32'
FFLAGS='-pipe -Os'
INSTALL='/usr/bin/install -c'
LDFLAGS='-Wl,-headerpad_max_install_names -arch ppc'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='10.5'
OBJC='/usr/bin/gcc-4.2'
OBJCFLAGS='-pipe -Os -arch ppc'
OBJCXX='/usr/bin/g++-4.2'
OBJCXXFLAGS='-pipe -Os -arch ppc'
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/texlive-source-20170604-stripped" && ./configure --prefix=/opt/local --bindir=/opt/local/libexec/texlive/binaries --mandir=/opt/local/libexec/texlive/binaries --infodir=/opt/local/share/info --enable-shared --disable-multiplatform --disable-native-texlive-build --without-old-mac-fonts --with-banner-add="/MacPorts 2017_0" --with-system-freetype2 --without-system-freetype --without-system-icu --with-system-cairo --with-system-gd --with-system-gmp --with-system-graphite2 --with-system-harfbuzz --with-system-icu --with-system-libpaper --with-libpaper-includes=/opt/local/include --with-libpaper-libdir=/opt/local/lib --with-system-libpng --with-libpng-includes=/opt/local/include --with-libpng-libdir=/opt/local/lib --with-system-mpfr --with-system-ncurses --with-system-pixman --with-system-poppler --with-system-potrace --with-system-xpdf --with-system-zlib --with-system-zziplib --disable-biber --disable-etex --disable-detex --disable-dvi2tty --disable-dvipng --disable-lcdf-typetools --disable-ps2eps --disable-psutils --disable-t1utils --disable-texinfo --disable-xindy --enable-build-in-source-tree ac_cv_prog_AWK=/usr/bin/awk --disable-luajittex --with-xdvi-x-toolkit=xaw 
DEBUG: system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/texlive-source-20170604-stripped" && ./configure --prefix=/opt/local --bindir=/opt/local/libexec/texlive/binaries --mandir=/opt/local/libexec/texlive/binaries --infodir=/opt/local/share/info --enable-shared --disable-multiplatform --disable-native-texlive-build --without-old-mac-fonts --with-banner-add="/MacPorts 2017_0" --with-system-freetype2 --without-system-freetype --without-system-icu --with-system-cairo --with-system-gd --with-system-gmp --with-system-graphite2 --with-system-harfbuzz --with-system-icu --with-system-libpaper --with-libpaper-includes=/opt/local/include --with-libpaper-libdir=/opt/local/lib --with-system-libpng --with-libpng-includes=/opt/local/include --with-libpng-libdir=/opt/local/lib --with-system-mpfr --with-system-ncurses --with-system-pixman --with-system-poppler --with-system-potrace --with-system-xpdf --with-system-zlib --with-system-zziplib --disable-biber --disable-etex --disable-detex --disable-dvi2tty --disable-dvipng --disable-lcdf-typetools --disable-ps2eps --disable-psutils --disable-t1utils --disable-texinfo --disable-xindy --enable-build-in-source-tree ac_cv_prog_AWK=/usr/bin/awk --disable-luajittex --with-xdvi-x-toolkit=xaw 
checking build system type... powerpc-apple-darwin9.8.0
checking host system type... powerpc-apple-darwin9.8.0
checking for gcc... /usr/bin/gcc-4.2
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc-4.2 accepts -g... yes
checking for /usr/bin/gcc-4.2 option to accept ISO C89... none needed
checking whether /usr/bin/gcc-4.2 understands -c and -o together... yes
checking for native WIN32 or MINGW32... no
configure: Assuming `--with-x'

Still GCC 4.2 at work. Which will fail in the near future…

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

The block is meant to force gcc6 to build cxx11 ports on powerpc. It should do so for any ports that have the cxx11 Portgroup 1.1 added. It also uses the gcc4 ABI compatability to make the gcc6-built software compatible with the systems' gcc4-era /usr/lib/libstdc++. It worked great to build a bunch of them for me. Hope it works for you.

In the case just above, either texlive-bin is not in the cxx11 portgroup, or perhaps the build was unclean (partially configured) and needs to be cleaned and built again.

Good luck!

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

Replying to kencu:

In the case just above, either texlive-bin is not in the cxx11 portgroup, or perhaps the build was unclean (partially configured) and needs to be cleaned and built again.

Me, I do not know how to determine whether texlive-bin is in the cxx11 port group. (Or not.) What I do know is that I started with a cleaned texlive-bin.

Is this "in" or out just synonymous for a line

PortGroup       cxx11 1.1

in Portfile or not?

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

Cc: mojca added

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

I can report another error in port… (At least another one.)

My previous attempts were, with the updated cxx11-1.1.tcl file:

port -vd upgrade texlive-basic texlive-bin
port -vd upgrade texlive-basic texlive-bin  configure.compiler=macports-gcc-6
port -vd upgrade texlive-bin

All attempts were failures, GCC 4.2 was used for compilation. So I tried for a final time, before throwing away my PowerBook G4:

port -vd upgrade texlive-bin configure.compiler=macports-gcc-6

This works. Port does not have to compute what comes first and forget the compiler option.

I feel like a Microsoft user.

DEBUG: setting attributes on /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/texlive-source-20170604-stripped/texk/kpathsea/paths.h
DEBUG: euid/egid changed to: 502/502
DEBUG: Executing proc-post-org.macports.patch-patch-1
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: configure phase started at Wed Jun 28 17:08:49 CEST 2017
--->  Configuring texlive-bin
DEBUG: Preferred compilers: gcc-4.2 apple-gcc-4.2 gcc-4.0 macports-clang-3.4 macports-clang-3.3
DEBUG: Using compiler 'MacPorts GCC 6'
DEBUG: Executing org.macports.configure (texlive-bin)
DEBUG: Environment: 
CC='/opt/local/bin/gcc-mp-6'
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/.CC_PRINT_OPTIONS'
CFLAGS='-pipe -Os -m32'
CPATH='/opt/local/include'
CPPFLAGS='-isystem/opt/local/include'
CXX='/opt/local/bin/g++-mp-6'
CXXFLAGS='-pipe -Os -m32'
F77='/opt/local/bin/gfortran-mp-6'
F77FLAGS='-m32'
F90='/opt/local/bin/gfortran-mp-6'
F90FLAGS='-pipe -Os -m32'
FC='/opt/local/bin/gfortran-mp-6'
FCFLAGS='-pipe -Os -m32'
FFLAGS='-pipe -Os'
INSTALL='/usr/bin/install -c'
LDFLAGS='-Wl,-headerpad_max_install_names'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='10.5'
OBJC='/opt/local/bin/gcc-mp-6'
OBJCFLAGS='-pipe -Os -m32'
OBJCXX='/opt/local/bin/g++-mp-6'
OBJCXXFLAGS='-pipe -Os -m32'
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/texlive-source-20170604-stripped" && ./configure --prefix=/opt/local --bindir=/opt/local/libexec/texlive/binaries --mandir=/opt/local/libexec/texlive/binaries --infodir=/opt/local/share/info --enable-shared --disable-multiplatform --disable-native-texlive-build --without-old-mac-fonts --with-banner-add="/MacPorts 2017_0" --with-system-freetype2 --without-system-freetype --without-system-icu --with-system-cairo --with-system-gd --with-system-gmp --with-system-graphite2 --with-system-harfbuzz --with-system-icu --with-system-libpaper --with-libpaper-includes=/opt/local/include --with-libpaper-libdir=/opt/local/lib --with-system-libpng --with-libpng-includes=/opt/local/include --with-libpng-libdir=/opt/local/lib --with-system-mpfr --with-system-ncurses --with-system-pixman --with-system-poppler --with-system-potrace --with-system-xpdf --with-system-zlib --with-system-zziplib --disable-biber --disable-etex --disable-detex --disable-dvi2tty --disable-dvipng --disable-lcdf-typetools --disable-ps2eps --disable-psutils --disable-t1utils --disable-texinfo --disable-xindy --enable-build-in-source-tree ac_cv_prog_AWK=/usr/bin/awk --disable-luajittex --with-xdvi-x-toolkit=xaw 
DEBUG: system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/texlive-source-20170604-stripped" && ./configure --prefix=/opt/local --bindir=/opt/local/libexec/texlive/binaries --mandir=/opt/local/libexec/texlive/binaries --infodir=/opt/local/share/info --enable-shared --disable-multiplatform --disable-native-texlive-build --without-old-mac-fonts --with-banner-add="/MacPorts 2017_0" --with-system-freetype2 --without-system-freetype --without-system-icu --with-system-cairo --with-system-gd --with-system-gmp --with-system-graphite2 --with-system-harfbuzz --with-system-icu --with-system-libpaper --with-libpaper-includes=/opt/local/include --with-libpaper-libdir=/opt/local/lib --with-system-libpng --with-libpng-includes=/opt/local/include --with-libpng-libdir=/opt/local/lib --with-system-mpfr --with-system-ncurses --with-system-pixman --with-system-poppler --with-system-potrace --with-system-xpdf --with-system-zlib --with-system-zziplib --disable-biber --disable-etex --disable-detex --disable-dvi2tty --disable-dvipng --disable-lcdf-typetools --disable-ps2eps --disable-psutils --disable-t1utils --disable-texinfo --disable-xindy --enable-build-in-source-tree ac_cv_prog_AWK=/usr/bin/awk --disable-luajittex --with-xdvi-x-toolkit=xaw 
checking build system type... powerpc-apple-darwin9.8.0
checking host system type... powerpc-apple-darwin9.8.0
checking for gcc... /opt/local/bin/gcc-mp-6
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /opt/local/bin/gcc-mp-6 accepts -g... yes
checking for /opt/local/bin/gcc-mp-6 option to accept ISO C89... none needed
checking whether /opt/local/bin/gcc-mp-6 understands -c and -o together... yes
checking for native WIN32 or MINGW32... no

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

See also #54358.

The requirement for C++11 could be avoided if you don't need dvisvgm, but it would help to understand why configure.compiler is not working as expected.

As for the cxx11 1.1 PortGroup ... maybe you can open a PR?

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

Replying to mojca:

As for the cxx11 1.1 PortGroup ... maybe you can open a PR?

What is a "PR?" A Public Relation? The last PRinter before the Autobahn? Or what else?

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

I'm sorry, this was for Ken who probably knows what it is: Pull Request.

I only have access to one super slow PPC, but if the patch fixes the problem, it makes perfect sense to add those few additional lines.

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

Mojca, it seems to work reasonably. It just built through texlive-bin and other cxx11 things on my 10.5 machine without intervention, and gcc6 respects the gcc4-abi flag so it should be compatible with the system's libstdc++.

I'm sure there will be failures (gcc6 can't build everything), but this approach should let a number of things work, and save some aggro. I don't see how it can make anything worse for people. If all are in agreement, I can make a PR and we can assess the fallout.

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

Just prepare a PR and check whether there will be some feedback there, in particular from Marcus.

Can you perhaps just delete macports-clang-4.0 from the whitelist instead of creating your own list? I believe that gcc 4.6 should be removed from the list, 4.7 is also slightly on the border case, but that's a different issue.

Universal variant is problematic in either case (also on x86_64) if gcc is being used.

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

In 1dab0d51d17febdd682ff263502055df81e31b0e/macports-ports:

cxx11 1.1 PortGroup: add support for PowerPC

Add support for C++11 on PowerPC using gcc6.
Blacklisting macports-clang-4.0 which doesn't work on PPC yet.

See: #54374

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

(I locked myself out of github and could not force push or comment.)

comment:19 Changed 7 years ago by mrkapqa

i am having also problem building texlive-bin on leopard 10.5.8 ppc

it happens when doing "sudo port install ffmpeg"

it builds normally on tiger 10.4.x with ffmpeg

on leopard,t though

"sudo port install ffmpeg" leads to

Error: Failed to build texlive-bin: command execution failed

Changed 7 years ago by mrkapqa

Attachment: log.log added

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

Replying to mrkapqa:

i am having also problem building texlive-bin on leopard 10.5.8 ppc

Your fault, failure to build dvisvgm, is described here: #54358. Changing Portfile to add the configure argument --disable-dvisvgm and then build – if needed – dvisvgm separately us one option, another is to use a different compiler for the whole texlive-bin build.

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

Resolution: fixed
Status: assignedclosed

In 2b1e49d05cd18b699f4fb1faf0b9f6c4890c3906/macports-ports:

texlive-bin: add cxx11 1.1 PortGroup

fixes build on older systems
still need to specificy clang > 500 however
can delete other compiler blacklisting as that is

now handled by cxx11 1.1 PortGroup

closes: #54358
closes: #54374
closes: #54475

Note: See TracTickets for help on using tickets.