tech-pkg archive

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

Re: gcc8 on CentOS 7



On 2019-03-18 13:31, Jason Bacon wrote:
On 3/17/19 12:27 AM, maya%netbsd.org@localhost wrote:
Re-run the gcc invocation manually (enter the same directory and run the
command)
If this succeeds, then it's a pkgsrc wrappers issue.
If this fails still, use -Wl,--verbose to see why it has issues.
Attached the verbose output.

libz.* exist in ~/Pkgsrc/pkg/lib, but it's not looking there. Should it be?  Or should there be a link to it somewhere else?

Thanks,

    JB
FYI, I'm seeing another issue with gcc8 now that I have a working install:

Some programs built with gcc8 appear to get caught in an infinite loop on startup.  I noticed a few builds that hang running conftest and one installed program that hangs on startup.  All with 100% CPU usage.  They all work fine with gcc7.

I'd say let's shelve this until after the branch.  Even if we can fix these issues by then, I won't be confident enough to use gcc8 for my quarterly bulk builds without a good testing period.

    JB

===> Configuring for libunistring-0.9.10
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
=> Checking for portability problems in extracted files
checking for a BSD-compatible install... /bin/install -c -o bacon -g bacon
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /data/bacon/Pkgsrc/pkgsrc/textproc/libunistring/work/.tools/bin/mkdir -p

[snip]

checking for inttypes.h... yes
checking for stdint.h... yes
checking for intmax_t... yes
checking whether snprintf returns a byte count as in C99... ^C

* conftest shows 100% CPU usage here and ran for hours before I killed it.

Below is one of the conftest programs that hung.  If I build it outside pkgsrc, it works fine.  So something in my pkgsrc env is interacting badly with gcc8.

/* confdefs.h */
#define PACKAGE_NAME "Concurrent Versions System (CVS)"
#define PACKAGE_TARNAME "cvs"
#define PACKAGE_VERSION "1.12.13"
#define PACKAGE_STRING "Concurrent Versions System (CVS) 1.12.13"
#define PACKAGE_BUGREPORT "bug-cvs%nongnu.org@localhost"
#define PACKAGE_URL ""
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define __EXTENSIONS__ 1
#define _ALL_SOURCE 1
#define _GNU_SOURCE 1
#define _POSIX_PTHREAD_SEMANTICS 1
#define _TANDEM_SOURCE 1
#define __EXTENSIONS__ 1
#define _POSIX_PTHREAD_SEMANTICS 1
#define PR_PROGRAM "/usr/bin/pr"
#define HAVE_DIRENT_H 1
#define STDC_HEADERS 1
#define HAVE_SYS_WAIT_H 1
#define HAVE_FCNTL_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STDINT_H 1
#define HAVE_SYSLOG_H 1
#define HAVE_SYS_FILE_H 1
#define HAVE_SYS_PARAM_H 1
#define HAVE_SYS_RESOURCE_H 1
#define HAVE_SYS_SELECT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_UTIME_H 1
#define RETSIGTYPE void
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
#define HAVE_STRUCT_STAT_ST_RDEV 1
#define HAVE_FSEEKO 1
#define HAVE_WAITPID 1
#define HAVE_FCNTL_H 1
#define HAVE_ALLOCA_H 1
#define HAVE_ALLOCA 1
#define HAVE_STDLIB_H 1
#define MALLOC_0_IS_NONNULL 1
#define HAVE_LONG_LONG 1
#define HAVE_LONG_DOUBLE 1
#define HAVE_IPV4 1
#define HAVE_IPV6 1
#define HAVE_GETADDRINFO 1
#define HAVE_GAI_STRERROR 1
#define HAVE__BOOL 1
#define HAVE_STDBOOL_H 1
#define HAVE_FCHDIR 1
#define HAVE_MEMPCPY 1
#define HAVE_ISASCII 1
#define HAVE___FSETLOCKING 1
#define HAVE_TCGETATTR 1
#define HAVE_TCSETATTR 1
#define HAVE_GETTIMEOFDAY 1
#define HAVE_GETLOGIN_R 1
#define HAVE_GETPWNAM_R 1
#define HAVE_SIGINTERRUPT 1
#define HAVE_POSIX_MEMALIGN 1
#define HAVE_ISWPRINT 1
#define HAVE_MBSINIT 1
#define HAVE_ISBLANK 1
#define HAVE_MBRTOWC 1
#define HAVE_WCRTOMB 1
#define HAVE_WCSCOLL 1
#define HAVE_MBLEN 1
#define HAVE_MBRLEN 1
#define HAVE_TZSET 1
#define HAVE_UNISTD_H 1
#define HAVE_SYS_TIME_H 1
#define HAVE_SYS_PARAM_H 1
#define HAVE_STDIO_EXT_H 1
#define HAVE_TERMIOS_H 1
#define HAVE_SYS_CDEFS_H 1
#define HAVE_WCHAR_H 1
#define HAVE_WCTYPE_H 1
#define HAVE_STDINT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_LOCALE_H 1
#define HAVE_UTIME_H 1
#define HAVE_DECL_MEMRCHR 1
#define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX 0
#define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR 0
#define HAVE_DECL_STRERROR_R 1
#define HAVE_STRERROR_R 1
#define STRERROR_R_CHAR_P 1
#define HAVE_MBSTATE_T 1
#define HAVE_DECL_GETCWD 1
#define D_INO_IN_DIRENT 1
#define TIME_WITH_SYS_TIME 1
#define HAVE_STRUCT_TIMESPEC 1
#define HAVE_DECL_NANOSLEEP 1
#define HAVE_CLOCK_GETTIME 1
#define HAVE_CLOCK_SETTIME 1
#define HAVE_TM_GMTOFF 1
#define HAVE_DECL_GETDELIM 1
#define HAVE_DECL_GETLOGIN 1
#define HAVE_DECL_GETLOGIN_R 1
#define HAVE_GETOPT_H 1
#define HAVE_GETOPT_LONG_ONLY 1
#define HAVE_DECL_GETPASS 1
#define HAVE_DECL_FFLUSH_UNLOCKED 1
#define HAVE_DECL_FLOCKFILE 1
#define HAVE_DECL_FPUTS_UNLOCKED 1
#define HAVE_DECL_FUNLOCKFILE 1
#define HAVE_DECL_PUTC_UNLOCKED 1
#define HAVE_STRUCT_DIRENT_D_TYPE 1
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
#define HAVE_MINMAX_IN_SYS_PARAM_H 1
#define HAVE_DECL_GETENV 1
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
#define HAVE_STDINT_H_WITH_UINTMAX 1
#define HAVE_UNSIGNED_LONG_LONG 1
#define HAVE_UINTMAX_T 1
#define HAVE_STDLIB_H 1
#define HAVE_SYS_TIME_H 1
#define HAVE_UNISTD_H 1
#define HAVE_ALARM 1
#define HAVE_GETPAGESIZE 1
#define HAVE_MMAP 1
#define HAVE_MAP_ANONYMOUS 1
#define HAVE_LANGINFO_CODESET 1
#define HAVE_INTTYPES_H 1
#define HAVE_DECL_STRDUP 1
#define HAVE_STRFTIME 1
#define HAVE_STRUCT_TM_TM_ZONE 1
#define HAVE_TM_ZONE 1
#define my_strftime nstrftime
#define HAVE_DECL_CLEARERR_UNLOCKED 1
#define HAVE_DECL_FEOF_UNLOCKED 1
#define HAVE_DECL_FERROR_UNLOCKED 1
#define HAVE_DECL_FGETS_UNLOCKED 1
#define HAVE_DECL_FPUTC_UNLOCKED 1
#define HAVE_DECL_FREAD_UNLOCKED 1
#define HAVE_DECL_FWRITE_UNLOCKED 1
#define HAVE_DECL_GETC_UNLOCKED 1
#define HAVE_DECL_GETCHAR_UNLOCKED 1
#define HAVE_DECL_PUTCHAR_UNLOCKED 1
#define HAVE_WCHAR_T 1
#define HAVE_WINT_T 1
#define HAVE_INTMAX_T 1
#define HAVE_ALLOCA 1
#define HAVE_ALLOCA_H 1
#define HAVE_ATEXIT 1
#define HAVE_STRING_H 1
#define HAVE_SYS_PARAM_H 1
#define HAVE_CANONICALIZE_FILE_NAME 1
#define HAVE_MEMPCPY 1
#define HAVE_OPENAT 1
#define HAVE_MEMRCHR 1
#define HAVE_DUP2 1
#define HAVE_STDIO_EXT_H 1
#define HAVE___FPENDING 1
#define HAVE_DECL___FPENDING 1
#define HAVE_FTRUNCATE 1
#define HAVE_GETADDRINFO 1
#define HAVE_GAI_STRERROR 1
#define HAVE_STRUCT_TM_TM_ZONE 1
#define HAVE_TM_ZONE 1
#define HAVE_GETDELIM 1
#define HAVE_GETHOSTNAME 1
#define HAVE_DECL_GETLINE 1
#define HAVE_GETLOGIN_R 1
#define HAVE_GETPAGESIZE 1
#define getpass gnu_getpass
#define HAVE_GLOB_H 1
#define HAVE_STDLIB_H 1
#define HAVE_MALLOC 1
#define HAVE_MEMCHR 1
#define HAVE_MEMMOVE 1
#define HAVE_MEMPCPY 1
#define HAVE_MEMRCHR 1
#define HAVE_MKSTEMP 1
#define mktime rpl_mktime
#define HAVE_OPENAT 1
#define HAVE_MBSTATE_T 1
#define HAVE_MBRTOWC 1
#define HAVE_READLINK 1
#define HAVE_STDLIB_H 1
#define HAVE_REALLOC 1
#define _REGEX_LARGE_OFFSETS 1
#define HAVE_RPMATCH 1
#define HAVE_SETENV 1
#define HAVE_UNSETENV 1
#define HAVE_STDINT_H 1
#define HAVE_STDINT_H 1
#define strcasecmp rpl_strcasecmp
#define HAVE_MBRTOWC 1
#define HAVE_STRNCASECMP 1
#define HAVE_STRDUP 1
#define HAVE_STRERROR 1
#define HAVE_MBRTOWC 1
#define HAVE_STRTOL 1
#define HAVE_STRTOUL 1
#define HAVE_TIME_R_POSIX 1
#define HAVE_STRUCT_TIMESPEC 1
#define HAVE_DECL_NANOSLEEP 1
#define HAVE_RUN_TZSET_TEST 1
#define USE_UNLOCKED_IO 1
#define HAVE_PTRDIFF_T 1
#define HAVE_SNPRINTF 1
#define HAVE_WCSLEN 1
#define HAVE_VASPRINTF 1
#define HAVE_STDINT_H 1
#define ENABLE_NLS 1
#define HAVE_GETTEXT 1
#define HAVE_DCGETTEXT 1
#define HAVE_DECL_STRERROR_R 1
#define HAVE_STRERROR_R 1
#define STRERROR_R_CHAR_P 1
#define HAVE_INTMAX_T 1
#define HAVE_GLOB_H 1
#define HAVE_FCHDIR 1
#define HAVE_FCHMOD 1
#define HAVE_FSYNC 1
#define HAVE_FTIME 1
#define HAVE_GETEUID 1
#define HAVE_GETGROUPS 1
#define HAVE_GETPAGESIZE 1
#define HAVE_GETTIMEOFDAY 1
#define HAVE_INITGROUPS 1
#define HAVE_MKNOD 1
#define HAVE_REGCOMP 1
#define HAVE_REGERROR 1
#define HAVE_REGEXEC 1
#define HAVE_REGFREE 1
#define HAVE_SIGACTION 1
#define HAVE_SIGBLOCK 1
#define HAVE_SIGPROCMASK 1
#define HAVE_SIGSETMASK 1
#define HAVE_SIGVEC 1
#define HAVE_TIMEZONE 1
#define HAVE_TZSET 1
#define HAVE_VPRINTF 1
#define HAVE_WAIT3 1
#define SIZEOF_CHAR 1
#define UNIQUE_INT_TYPE_CHAR 1
#define SIZEOF_SHORT 2
#define UNIQUE_INT_TYPE_SHORT 1
#define SIZEOF_INT 4
#define UNIQUE_INT_TYPE_INT 1
#define SIZEOF_LONG 8
#define UNIQUE_INT_TYPE_LONG 1
#define SIZEOF_LONG_LONG 8
#define SIZEOF_SIZE_T 8
#define SIZEOF_PTRDIFF_T 8
#define SIZEOF_WINT_T 4
#define SIZEOF_INTMAX_T 8
#define SIZEOF_FLOAT 4
#define UNIQUE_FLOAT_TYPE_FLOAT 1
#define SIZEOF_DOUBLE 8
#define UNIQUE_FLOAT_TYPE_DOUBLE 1
#define SIZEOF_LONG_DOUBLE 16
#define UNIQUE_FLOAT_TYPE_LONG_DOUBLE 1
#define HAVE_STRCHR 1
#define HAVE_MEMCHR 1
#define REGEX_MALLOC 1
#define _REGEX_RE_COMP 1
#define HAVE_FORK 1
#define HAVE_VFORK 1
#define HAVE_WORKING_VFORK 1
#define HAVE_WORKING_FORK 1
#define HAVE_GETSPNAM 1
#define HAVE_UTIME_NULL 1
#define HAVE_LONG_FILE_NAMES 1
/* end confdefs.h.  */
#include <stdio.h>
/* If printf supports %p, exit 0. */
int
main ()
{
  void *p1, *p2;
  char buf[256];
  p1 = &p1; p2 = &p2;
  sprintf(buf, "%p", p1);
  exit(sscanf(buf, "%p", &p2) != 1 || p2 != p1);
}




Home | Main Index | Thread Index | Old Index