[MacPorts] #64577: advice on macports-gcc-10 errors on 10.5.8

MacPorts noreply at macports.org
Mon Jan 31 12:00:12 UTC 2022


#64577: advice on macports-gcc-10 errors on 10.5.8
-------------------------------------+--------------------
 Reporter:  barracuda156             |      Owner:  (none)
     Type:  request                  |     Status:  new
 Priority:  Normal                   |  Milestone:
Component:  ports                    |    Version:  2.7.1
 Keywords:  powerpc, Leopard, ppc64  |       Port:  gcc10
-------------------------------------+--------------------
 I have finally made gcc10 to build within Macports on 10.5.8 (outside
 Macports it builds and works normally).

 {{{
 36-47:gcc-10.3.0 svacchanda$ port -v installed gcc10
 The following ports are currently installed:
   gcc10 @10.3.0_1+universal (active) requested_variants='+universal'
 platform='darwin 9' archs='ppc ppc64' date='2022-01-31T17:09:01+0800'
 }}}

 Resulting compiler does work, however I have encountered some errors now
 when testing it. It is most likely me messing some arguments when building
 (or less likely Macports interaction). I look for advice on where to look
 for - what config settings could affect such behavior.

 Case one:

 {{{

 checking build system type... powerpc-apple-darwin9.8.0
 checking host system type... powerpc-apple-darwin9.8.0
 checking whether to build debug libraries... no
 checking whether to build release libraries... yes
 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-10 accepts -g... yes
 checking for /opt/local/bin/gcc-mp-10 option to accept ISO C89... none
 needed
 checking whether we are using the GNU C++ compiler... yes
 checking whether /opt/local/bin/g++-mp-10 accepts -g... yes
 checking for pkg-config... /opt/local/bin/pkg-config
 checking pkg-config is at least version 0.20... yes
 checking for ICULEHB... no
 checking how to run the C preprocessor... /opt/local/bin/gcc-mp-10 -E
 checking for a BSD-compatible install... /usr/bin/install -c
 checking for python3... /opt/local/bin/python2.7
 checking for gmake... /opt/local/bin/gmake
 checking for doxygen... no
 checking checking for executable suffix...
 checking whether strict compiling is on... yes
 checking for grep that handles long lines and -e... /opt/local/bin/ggrep
 checking for egrep... /opt/local/bin/ggrep -E
 checking for ANSI C header files... yes
 checking for sys/types.h... yes
 checking for sys/stat.h... yes
 checking for stdlib.h... yes
 checking for string.h... yes
 checking for memory.h... yes
 checking for strings.h... yes
 checking for inttypes.h... yes
 checking for stdint.h... yes
 checking for unistd.h... yes
 checking size of void *... 4
 checking whether runnable 64 bit binaries are built by default... no
 checking which Makefile fragment to use for powerpc-apple-darwin9.8.0...
 mh-darwin
 checking for floor in -lm... yes
 checking whether to build shared libraries... yes
 checking whether to build static libraries... yes
 checking whether to enable auto cleanup of libraries... no
 checking whether to enable draft APIs... yes
 checking for ranlib... ranlib
 checking for a sed that does not truncate output... /usr/bin/sed
 checking for ar... ar
 checking whether to enable renaming of symbols... yes
 checking whether to enable function and data tracing... no
 checking elf.h usability... no
 checking elf.h presence... no
 checking for elf.h... no
 checking whether to enable dynamic loading of plugins. Ignored if plugins
 disabled.... yes
 checking dlfcn.h usability... yes
 checking dlfcn.h presence... yes
 checking for dlfcn.h... yes
 checking for library containing dlopen... none required
 checking for dlopen... yes
 checking for gettimeofday... yes
 checking if we have a C++ compiler... Good
 checking if we have a C++11 compiler... yes
 configure: Adding CXXFLAGS option -std=c++11
 checking for pthread_attr_init in -lpthread... yes
 checking for mmap... yes
 checking for genccode assembly...
 checking for inttypes.h... (cached) yes
 checking dirent.h usability... yes
 checking dirent.h presence... yes
 checking for dirent.h... yes
 checking whether byte ordering is bigendian... yes
 checking for nl_langinfo... yes
 checking for nl_langinfo's argument to obtain the codeset... CODESET
 checking for namespace support... no
 configure: error: Namespace support is required to build ICU.
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_PPCLeopardPorts_devel_icu/icu/work/icu
 /source-ppc" && ./configure --prefix=/opt/local --disable-layoutex
 --disable-samples --enable-static
 Exit code: 1
 }}}

 Case two:

 {{{
 libtool: compile:  /opt/local/bin/g++-mp-10 -DHAVE_CONFIG_H -I. -I../..
 -I../../include -I../../include -I/opt/local/include -pipe -Os
 -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -Werror -Wall -Wextra -pedantic -MT
 Win32DynamicLibraryManager.lo -MD -MP -MF
 .deps/Win32DynamicLibraryManager.Tpo -c Win32DynamicLibraryManager.cpp
 -fno-common -DPIC -o .libs/Win32DynamicLibraryManager.o
 mv -f .deps/Win32DynamicLibraryManager.Tpo
 .deps/Win32DynamicLibraryManager.Plo
 mv -f .deps/XmlElement.Tpo .deps/XmlElement.Plo
 mv -f .deps/XmlOutputter.Tpo .deps/XmlOutputter.Plo
 /bin/sh ../../libtool  --tag=CXX   --mode=link /opt/local/bin/g++-mp-10
 -pipe -Os -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -Werror -Wall -Wextra
 -pedantic -no-undefined -version-info 1:0:0 -release 1.15
 -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc -o
 libcppunit.la -rpath /opt/local/lib AdditionalMessage.lo Asserter.lo
 BriefTestProgressListener.lo CompilerOutputter.lo DefaultProtector.lo
 DynamicLibraryManager.lo DynamicLibraryManagerException.lo Exception.lo
 Message.lo RepeatedTest.lo PlugInManager.lo PlugInParameters.lo
 Protector.lo ProtectorChain.lo SourceLine.lo StringTools.lo
 SynchronizedObject.lo Test.lo TestAssert.lo TestCase.lo
 TestCaseDecorator.lo TestComposite.lo TestDecorator.lo
 TestFactoryRegistry.lo TestFailure.lo TestLeaf.lo TestNamer.lo TestPath.lo
 TestPlugInDefaultImpl.lo TestResult.lo TestResultCollector.lo
 TestRunner.lo TestSetUp.lo TestSuccessListener.lo TestSuite.lo
 TestSuiteBuilderContext.lo TextOutputter.lo TextTestProgressListener.lo
 TextTestResult.lo TextTestRunner.lo TypeInfoHelper.lo
 UnixDynamicLibraryManager.lo ShlDynamicLibraryManager.lo XmlDocument.lo
 XmlElement.lo XmlOutputter.lo XmlOutputterHook.lo
 Win32DynamicLibraryManager.lo
 libtool: link: /opt/local/bin/g++-mp-10 -dynamiclib  -o
 .libs/libcppunit-1.15.1.dylib  .libs/AdditionalMessage.o .libs/Asserter.o
 .libs/BriefTestProgressListener.o .libs/CompilerOutputter.o
 .libs/DefaultProtector.o .libs/DynamicLibraryManager.o
 .libs/DynamicLibraryManagerException.o .libs/Exception.o .libs/Message.o
 .libs/RepeatedTest.o .libs/PlugInManager.o .libs/PlugInParameters.o
 .libs/Protector.o .libs/ProtectorChain.o .libs/SourceLine.o
 .libs/StringTools.o .libs/SynchronizedObject.o .libs/Test.o
 .libs/TestAssert.o .libs/TestCase.o .libs/TestCaseDecorator.o
 .libs/TestComposite.o .libs/TestDecorator.o .libs/TestFactoryRegistry.o
 .libs/TestFailure.o .libs/TestLeaf.o .libs/TestNamer.o .libs/TestPath.o
 .libs/TestPlugInDefaultImpl.o .libs/TestResult.o
 .libs/TestResultCollector.o .libs/TestRunner.o .libs/TestSetUp.o
 .libs/TestSuccessListener.o .libs/TestSuite.o
 .libs/TestSuiteBuilderContext.o .libs/TextOutputter.o
 .libs/TextTestProgressListener.o .libs/TextTestResult.o
 .libs/TextTestRunner.o .libs/TypeInfoHelper.o
 .libs/UnixDynamicLibraryManager.o .libs/ShlDynamicLibraryManager.o
 .libs/XmlDocument.o .libs/XmlElement.o .libs/XmlOutputter.o
 .libs/XmlOutputterHook.o .libs/Win32DynamicLibraryManager.o
 -L/opt/local/lib  -Os -arch ppc -Wl,-headerpad_max_install_names -arch ppc
 -install_name  /opt/local/lib/libcppunit-1.15.1.dylib
 -compatibility_version 2 -current_version 2.0 -Wl,-single_module
 ld: library not found for -lgcc_s.1.1
 collect2: error: ld returned 1 exit status
 }}}

 (cppunit did build with macports-gcc-7 with no tweaks, so the error is not
 on the port side.)

 Basic functionality is there:


 {{{
 36-47:MacPorts-2.7.1 svacchanda$ cd /Users/svacchanda/Dev
 36-47:Dev svacchanda$ /opt/local/bin/gcc-mp-10
 /Users/svacchanda/Dev/HelloWorld.c -o hello -m64
 /Users/svacchanda/Dev/HelloWorld.c:2:1: warning: return type defaults to
 'int' -Wimplicit-int]
     2 | main() {
       | ^~~~
 36-47:Dev svacchanda$ /Users/svacchanda/Dev/hello
 hello, world
 36-47:Dev svacchanda$ file /Users/svacchanda/Dev/hello
 /Users/svacchanda/Dev/hello: Mach-O 64-bit executable ppc64
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/64577>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list