pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Can't bootstrap pkgsrc on Solaris 10
Hi,
I downloaded pkgsrc 2017Q2. I tried to bootstrap it on a Solaris 10 zone using gcc included with it (sfw) but it fails :
[root@zone6 bootstrap]$ nohup env CC=/usr/sfw/bin/gcc CPP=/usr/sfw/bin/cpp CXX=/usr/sfw/bin/cpp CFLAGS='-O2' GCCBASE=/usr/sfw ./bootstrap --abi=64 &
[root@zone6 bootstrap]$ grep -i error: nohup.out
configure: error: in `/usr/pkgsrc/bootstrap/work/wrk/pkgtools/cwrappers/work/libnbcompat':
configure: error: C compiler cannot create executables
root@zone6 bootstrap]$ grep -i error /usr/pkgsrc/bootstrap/work/wrk/pkgtools/cwrappers/work/libnbcompat/config.log | grep error
cc1: error: unrecognized command line option "-fstack-protector"
configure:3120: error: in `/usr/pkgsrc/bootstrap/work/wrk/pkgtools/cwrappers/work/libnbcompat':
configure:3122: error: C compiler cannot create executables
More info (config.log will be attach) :
cc1: error: unrecognized command line option "-fstack-protector"
configure:3115: result: no
configure: failed program was:
| #define PACKAGE_NAME "libnbcompat"
| #define PACKAGE_TARNAME "libnbcompat"
| #define PACKAGE_VERSION "20150419"
| #define PACKAGE_STRING "libnbcompat 20150419"
| #define PACKAGE_BUGREPORT "joerg%NetBSD.org@localhost"
configure:3120: error: in `/usr/pkgsrc/bootstrap/work/wrk/pkgtools/cwrappers/work/libnbcompat':
configure:3122: error: C compiler cannot create executables
It seems to be related to an unsupported option ( -fstack-protector ).
gcc version i'm using is 3.4.3.
Questions are :
- Is this version of gcc (3.4.3) below minimum supported version ?
- If not below minimum, how can I make sure "-fstack-protector" not used ?
- If below, which gcc version should I use ?
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by libnbcompat configure 20150419, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --host=sparc64-sun-solaris2.10
## --------- ##
## Platform. ##
## --------- ##
hostname = zone6
uname -m = sun4u
uname -r = 5.10
uname -s = SunOS
uname -v = Generic_147147-26
/usr/bin/uname -p = sparc
/bin/uname -X = System = SunOS
Node = zone6
Release = 5.10
KernelID = Generic_147147-26
Machine = sun4u
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 1
/bin/arch = sun4
/usr/bin/arch -k = sun4u
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/pkgsrc/bootstrap/work/wrk/pkgtools/cwrappers/work/.wrapper/bin
PATH: /usr/pkgsrc/bootstrap/work/wrk/pkgtools/cwrappers/work/.buildlink/bin
PATH: /usr/pkgsrc/bootstrap/work/wrk/pkgtools/cwrappers/work/.gcc/bin
PATH: /usr/pkgsrc/bootstrap/work/wrk/pkgtools/cwrappers/work/.tools/bin
PATH: /usr/pkg/bin
PATH: /usr/pkg/bin
PATH: /usr/pkg/sbin
PATH: .
PATH: /usr/sbin
PATH: /usr/bin
PATH: /opt/csw/bin/
PATH: /usr/sfw/bin
PATH: /usr/pkg/bin
PATH: /sbin
PATH: /usr/sbin
PATH: /usr/ccs/bin
PATH: /usr/pkg/bin
PATH: /usr/openwin/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2640: checking build system type
configure:2654: result: sparc-sun-solaris2.10
configure:2674: checking host system type
configure:2687: result: sparc64-sun-solaris2.10
configure:2715: checking for sparc64-sun-solaris2.10-gcc
configure:2742: result: gcc
configure:3011: checking for C compiler version
configure:3020: gcc --version >&5
gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3031: $? = 0
configure:3020: gcc -v >&5
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with: /sfw10/builds/build/sfw10-patch/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/ccs/bin/as --without-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
configure:3031: $? = 0
configure:3020: gcc -V >&5
gcc: couldn't run `/usr/pkgsrc/bootstrap/work/wrk/pkgtools/cwrappers/work/.gcc/bin/sparc-sun-solaris2.10-gcc--m64': No such file or directory
configure:3031: $? = 1
configure:3020: gcc -qversion >&5
gcc: unrecognized option `-qversion'
gcc: no input files
configure:3031: $? = 1
configure:3051: checking whether the C compiler works
configure:3073: gcc -O2 -D_FORTIFY_SOURCE=2 -DHAVE_NBCOMPAT_H=1 -I/usr/pkgsrc/bootstrap/work/wrk/pkgtools/cwrappers/work/libnbcompat -L/usr/pkgsrc/bootstrap/work/wrk/pkgtools/cwrappers/work/libnbcompat -Wl,-R/usr/pkg/lib conftest.c >&5
cc1: error: unrecognized command line option "-fstack-protector"
configure:3077: $? = 1
configure:3115: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libnbcompat"
| #define PACKAGE_TARNAME "libnbcompat"
| #define PACKAGE_VERSION "20150419"
| #define PACKAGE_STRING "libnbcompat 20150419"
| #define PACKAGE_BUGREPORT "joerg%NetBSD.org@localhost"
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3120: error: in `/usr/pkgsrc/bootstrap/work/wrk/pkgtools/cwrappers/work/libnbcompat':
configure:3122: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=sparc-sun-solaris2.10
ac_cv_env_CC_set=set
ac_cv_env_CC_value=gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-O2 -D_FORTIFY_SOURCE=2'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value='-DHAVE_NBCOMPAT_H=1 -I/usr/pkgsrc/bootstrap/work/wrk/pkgtools/cwrappers/work/libnbcompat'
ac_cv_env_CPP_set=set
ac_cv_env_CPP_value=/usr/sfw/bin/cpp
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-L/usr/pkgsrc/bootstrap/work/wrk/pkgtools/cwrappers/work/libnbcompat -Wl,-R/usr/pkg/lib'
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=sparc64-sun-solaris2.10
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=sparc64-sun-solaris2.10
ac_cv_path_CAT=/usr/bin/cat
ac_cv_path_ECHO=echo
ac_cv_path_EGREP='/usr/sfw/bin/ggrep -E'
ac_cv_path_ENV=/usr/bin/env
ac_cv_path_FALSE=false
ac_cv_path_GREP=/usr/sfw/bin/ggrep
ac_cv_path_TEST=test
ac_cv_path_TRUE=true
ac_cv_prog_CC=gcc
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR=''
AUTOCONF=''
AUTOHEADER=''
AWK='/usr/pkgsrc/bootstrap/work/bin/nawk'
CANONICAL_HOST=''
CC='gcc'
CFLAGS='-O2 -D_FORTIFY_SOURCE=2'
CPP='/usr/sfw/bin/cpp'
CPPFLAGS='-DHAVE_NBCOMPAT_H=1 -I/usr/pkgsrc/bootstrap/work/wrk/pkgtools/cwrappers/work/libnbcompat'
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/usr/sfw/bin/ggrep -E'
EXEEXT=''
GREP='/usr/sfw/bin/ggrep'
INCLUDES=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LDFLAGS='-L/usr/pkgsrc/bootstrap/work/wrk/pkgtools/cwrappers/work/libnbcompat -Wl,-R/usr/pkg/lib'
LIBOBJS=''
LIBS=''
LN_S=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT='joerg%NetBSD.org@localhost'
PACKAGE_NAME='libnbcompat'
PACKAGE_STRING='libnbcompat 20150419'
PACKAGE_TARNAME='libnbcompat'
PACKAGE_URL=''
PACKAGE_VERSION='20150419'
PATH_SEPARATOR=':'
RANLIB=''
SET_MAKE=''
SHELL='/usr/bin/bash'
WITH_DB=''
ac_ct_CC=''
bindir='${exec_prefix}/bin'
build='sparc-sun-solaris2.10'
build_alias=''
build_cpu='sparc'
build_os='solaris2.10'
build_vendor='sun'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='sparc64-sun-solaris2.10'
host_alias='sparc64-sun-solaris2.10'
host_cpu='sparc64'
host_os='solaris2.10'
host_vendor='sun'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "libnbcompat"
#define PACKAGE_TARNAME "libnbcompat"
#define PACKAGE_VERSION "20150419"
#define PACKAGE_STRING "libnbcompat 20150419"
#define PACKAGE_BUGREPORT "joerg%NetBSD.org@localhost"
#define PACKAGE_URL ""
configure: exit 77
Home |
Main Index |
Thread Index |
Old Index