tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Selecting a C++ compiler



On 10/11/17 11:06, Jason Bacon wrote:
On 10/11/17 10:26, Petar Bogdanovic wrote:
On Tue, Oct 10, 2017 at 08:01:28PM -0500, Jason Bacon wrote:
GCC_REQD+=5
That worked?  I remember setting this to GCC_REQD+=5.0 since otherwise,
pkgsrc would build gcc7.

No, that's why I said "something like".  ;-)  It does require a minor version as well, as I discovered this morning when setting up a test tree.  I'm doing a quick test build now and plan to run a complete bulk build with gcc5 later.  That will take about a week and I'll report the results relative to gcc48 when it's done.


Well, it didn't take long to hit a problem on CentOS 6.  Apparently GCC 4.4.7 cannot compile the current gcc5.

Attempting to build biology/plink with GCC_REQD=5.3.0 in mk.conf:

/bin/sh ./libtool --tag=CXX   --mode=compile /home/bacon/Pkgsrc/pkgsrc-2017-10-11/lang/gcc5/work/build/./gcc/xg++ -B/home/bacon/Pkgsrc/pkgsrc-2017-10-11/lang/gcc5/work/build/./gcc/ -nostdinc++ -nostdinc++ -I/home/bacon/Pkgsrc/pkgsrc-2017-10-11/lang/gcc5/work/build/x86_64-redhat-linux/libstdc++-v3/include/x86_64-redhat-linux -I/home/bacon/Pkgsrc/pkgsrc-2017-10-11/lang/gcc5/work/build/x86_64-redhat-linux/libstdc++-v3/include -I/home/bacon/Pkgsrc/pkgsrc-2017-10-11/lang/gcc5/work/gcc-5.4.0/libstdc++-v3/libsupc++ -I/home/bacon/Pkgsrc/pkgsrc-2017-10-11/lang/gcc5/work/gcc-5.4.0/libstdc++-v3/include/backward -I/home/bacon/Pkgsrc/pkgsrc-2017-10-11/lang/gcc5/work/gcc-5.4.0/libstdc++-v3/testsuite/util -L/home/bacon/Pkgsrc/pkgsrc-2017-10-11/lang/gcc5/work/build/x86_64-redhat-linux/libstdc++-v3/src -L/home/bacon/Pkgsrc/pkgsrc-2017-10-11/lang/gcc5/work/build/x86_64-redhat-linux/libstdc++-v3/src/.libs -L/home/bacon/Pkgsrc/pkgsrc-2017-10-11/lang/gcc5/work/build/x86_64-redhat-linux/libstdc++-v3/libsupc++/.libs -B/home/bacon/Pkgsrc/pkgsrc-2017-10-11/lang/gcc5/work/build/x86_64-redhat-linux/libstdc++-v3/src/.libs -B/home/bacon/Pkgsrc/pkgsrc-2017-10-11/lang/gcc5/work/build/x86_64-redhat-linux/libstdc++-v3/libsupc++/.libs -B/home/bacon/Pkgsrc/pkg-2017-10-11/gcc5/x86_64-redhat-linux/bin/ -B/home/bacon/Pkgsrc/pkg-2017-10-11/gcc5/x86_64-redhat-linux/lib/ -isystem /home/bacon/Pkgsrc/pkg-2017-10-11/gcc5/x86_64-redhat-linux/include -isystem /home/bacon/Pkgsrc/pkg-2017-10-11/gcc5/x86_64-redhat-linux/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc-5.4.0/libitm -I../../../gcc-5.4.0/libitm/config/linux/x86 -I../../../gcc-5.4.0/libitm/config/linux -I../../../gcc-5.4.0/libitm/config/x86 -I../../../gcc-5.4.0/libitm/config/posix -I../../../gcc-5.4.0/libitm/config/generic -I../../../gcc-5.4.0/libitm  -mrtm -Wall -Werror  -Wc,-pthread -std=gnu++0x -funwind-tables -fno-exceptions -fno-rtti -fabi-version=4 -g -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -D_GNU_SOURCE -MT util.lo -MD -MP -MF .deps/util.Tpo -c -o util.lo ../../../gcc-5.4.0/libitm/util.cc libtool: compile: /home/bacon/Pkgsrc/pkgsrc-2017-10-11/lang/gcc5/work/build/./gcc/xg++ -B/home/bacon/Pkgsrc/pkgsrc-2017-10-11/lang/gcc5/work/build/./gcc/ -nostdinc++ -nostdinc++ -I/home/bacon/Pkgsrc/pkgsrc-2017-10-11/lang/gcc5/work/build/x86_64-redhat-linux/libstdc++-v3/include/x86_64-redhat-linux -I/home/bacon/Pkgsrc/pkgsrc-2017-10-11/lang/gcc5/work/build/x86_64-redhat-linux/libstdc++-v3/include -I/home/bacon/Pkgsrc/pkgsrc-2017-10-11/lang/gcc5/work/gcc-5.4.0/libstdc++-v3/libsupc++ -I/home/bacon/Pkgsrc/pkgsrc-2017-10-11/lang/gcc5/work/gcc-5.4.0/libstdc++-v3/include/backward -I/home/bacon/Pkgsrc/pkgsrc-2017-10-11/lang/gcc5/work/gcc-5.4.0/libstdc++-v3/testsuite/util -L/home/bacon/Pkgsrc/pkgsrc-2017-10-11/lang/gcc5/work/build/x86_64-redhat-linux/libstdc++-v3/src -L/home/bacon/Pkgsrc/pkgsrc-2017-10-11/lang/gcc5/work/build/x86_64-redhat-linux/libstdc++-v3/src/.libs -L/home/bacon/Pkgsrc/pkgsrc-2017-10-11/lang/gcc5/work/build/x86_64-redhat-linux/libstdc++-v3/libsupc++/.libs -B/home/bacon/Pkgsrc/pkgsrc-2017-10-11/lang/gcc5/work/build/x86_64-redhat-linux/libstdc++-v3/src/.libs -B/home/bacon/Pkgsrc/pkgsrc-2017-10-11/lang/gcc5/work/build/x86_64-redhat-linux/libstdc++-v3/libsupc++/.libs -B/home/bacon/Pkgsrc/pkg-2017-10-11/gcc5/x86_64-redhat-linux/bin/ -B/home/bacon/Pkgsrc/pkg-2017-10-11/gcc5/x86_64-redhat-linux/lib/ -isystem /home/bacon/Pkgsrc/pkg-2017-10-11/gcc5/x86_64-redhat-linux/include -isystem /home/bacon/Pkgsrc/pkg-2017-10-11/gcc5/x86_64-redhat-linux/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc-5.4.0/libitm -I../../../gcc-5.4.0/libitm/config/linux/x86 -I../../../gcc-5.4.0/libitm/config/linux -I../../../gcc-5.4.0/libitm/config/x86 -I../../../gcc-5.4.0/libitm/config/posix -I../../../gcc-5.4.0/libitm/config/generic -I../../../gcc-5.4.0/libitm -mrtm -Wall -pthread -Werror -std=gnu++0x -funwind-tables -fno-exceptions -fno-rtti -fabi-version=4 -g -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -D_GNU_SOURCE -MT util.lo -MD -MP -MF .deps/util.Tpo -c ../../../gcc-5.4.0/libitm/util.cc  -fPIC -DPIC -o .libs/util.o
In file included from /usr/include/stdio.h:932:0,
                 from ../../../gcc-5.4.0/libitm/util.cc:27:
/usr/include/bits/stdio2.h: In function 'void GTM::gtm_verror(const char*, __va_list_tag*)': /usr/include/bits/stdio2.h:125:1: error: inlining failed in call to always_inline 'int vfprintf(FILE*, const char*, __va_list_tag*)': function body can be overwritten at link time
 vfprintf (FILE *__restrict __stream,
 ^
../../../gcc-5.4.0/libitm/util.cc:35:31: error: called from here
   vfprintf (stderr, fmt, list);
                               ^
make[4]: *** [util.lo] Error 1
make[4]: Leaving directory `/home/bacon/Pkgsrc/pkgsrc-2017-10-11/lang/gcc5/work/build/x86_64-redhat-linux/libitm'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/bacon/Pkgsrc/pkgsrc-2017-10-11/lang/gcc5/work/build/x86_64-redhat-linux/libitm'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/bacon/Pkgsrc/pkgsrc-2017-10-11/lang/gcc5/work/build/x86_64-redhat-linux/libitm'
make[1]: *** [all-target-libitm] Error 2
make[1]: Leaving directory `/home/bacon/Pkgsrc/pkgsrc-2017-10-11/lang/gcc5/work/build'
make: *** [all] Error 2
*** Error code 2

Stop.
bmake.bin[3]: stopped in /home/bacon/Pkgsrc/pkgsrc-2017-10-11/lang/gcc5
*** Error code 1

Stop.
bmake.bin[2]: stopped in /home/bacon/Pkgsrc/pkgsrc-2017-10-11/lang/gcc5
*** Error code 1

Stop.
bmake.bin[1]: stopped in /home/bacon/Pkgsrc/pkgsrc-2017-10-11/archivers/unzip
*** Error code 1

Stop.
bmake.bin: stopped in /home/bacon/Pkgsrc/pkgsrc-2017-10-11/biology/plink

The same build in an identical tree, but with GCC_REQD=4.8:

===> Installing for plink-1.07
=> Generating pre-install file lists
=> Creating installation directories
/usr/bin/install -c -s -o bacon -g bacon -m 755 /home/bacon/Pkgsrc/pkgsrc/biology/plink/work/plink-1.07-src/plink /home/bacon/Pkgsrc/pkgsrc/biology/plink/work/.destdir/home/bacon/Pkgsrc/pkg/bin
=> Automatic manual page handling
=> Generating post-install file lists
=> Checking file-check results for plink-1.07
=> Checking for non-existent script interpreters in plink-1.07
=> Checking file permissions in plink-1.07
=> Checking for missing run-time search paths in plink-1.07
WARNING: Skipping check for SSP in DESTDIR mode.
=> Checking for work-directory references in plink-1.07
=> Creating binary package /home/bacon/Pkgsrc/pkgsrc/biology/plink/work/.packages/plink-1.07.tgz
===> Building binary package for plink-1.07
=> Creating binary package /home/bacon/Pkgsrc/pkgsrc/packages/All/plink-1.07.tgz
===> Installing binary package of plink-1.07

--
Earth is a beta site.


Home | Main Index | Thread Index | Old Index