View previous topic :: View next topic |
Author |
Message |
jsusanka n00b
Joined: 29 Aug 2015 Posts: 6
|
Posted: Mon Feb 27, 2017 9:40 pm Post subject: compiling kernel on new install on sublade 100 |
|
|
installing the latest gentoo on a sunblade 100
Everything went okay until I got to the kernel part.
I did a emerge --ask sys-kernel/gentoo-sources
And when it starts to compile bc-1.06.95-r1 it fails.
Tells me to look in the config.log file.
I look in that file and I get the error message:
ld cannot find -lc
it has gcc as the path in front of the error message.
not sure what it is looking for here as it just says c.
any help is greatly appreciated.
Here is the line where the error occurred in config.log
usr/lib/gcc/sparc-unknown-linux-gnu/4.9.3/../../../../sparc-unknown-linux-gnu/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
thanks
Moved to Gentoo on SPARC so the SPARC community is more likely to see the post.
Edited original post to add this message so it sill appears in the unanswered posts search.
--
NeddySeagoon |
|
Back to top |
|
|
jsusanka n00b
Joined: 29 Aug 2015 Posts: 6
|
Posted: Wed Mar 01, 2017 4:09 pm Post subject: here is the config.log |
|
|
I started from scratch again but I still am stuck in the same place. Is there something obvious I am missing? Here is the config.log file hopefully that will provide a clue to somebody.
cat /mnt/gentoo/media/data/var/tmp/portage/portage/sys-devel/bc-1.06.95-r1/work/bc-1.06.95/config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by bc configure 1.06.95, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ ./configure --prefix=/usr --build=sparc-unknown-linux-gnu --host=sparc-unknown-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-readline --without-libedit
## --------- ##
## Platform. ##
## --------- ##
hostname = livecd
uname -m = sparc64
uname -r = 3.14.14-gentoo
uname -s = Linux
uname -v = #1 SMP Wed Dec 3 13:49:00 UTC 2014
/usr/bin/uname -p = sun4u
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/lib/portage/python2.7/ebuild-helpers/xattr
PATH: /usr/lib/portage/python2.7/ebuild-helpers
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /opt/bin
PATH: /usr/sparc-unknown-linux-gnu/gcc-bin/4.9.3
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1357: checking for a BSD-compatible install
configure:1412: result: /usr/lib/portage/python2.7/ebuild-helpers/xattr/install -c
configure:1423: checking whether build environment is sane
configure:1466: result: yes
configure:1531: checking for gawk
configure:1547: found /usr/bin/gawk
configure:1557: result: gawk
configure:1567: checking whether make sets $(MAKE)
configure:1587: result: yes
configure:1784: checking for sparc-unknown-linux-gnu-gcc
configure:1800: found /usr/bin/sparc-unknown-linux-gnu-gcc
configure:1810: result: sparc-unknown-linux-gnu-gcc
configure:2092: checking for C compiler version
configure:2095: sparc-unknown-linux-gnu-gcc --version </dev/null >&5
sparc-unknown-linux-gnu-gcc (Gentoo 4.9.3 p1.5, pie-0.6.4) 4.9.3
Copyright (C) 2015 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:2098: $? = 0
configure:2100: sparc-unknown-linux-gnu-gcc -v </dev/null >&5
Using built-in specs.
COLLECT_GCC=/usr/sparc-unknown-linux-gnu/gcc-bin/4.9.3/sparc-unknown-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/sparc-unknown-linux-gnu/4.9.3/lto-wrapper
Target: sparc-unknown-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/configure --host=sparc-unknown-linux-gnu --build=sparc-unknown-linux-gnu --prefix=/usr --bindir=/usr/sparc-unknown-linux-gnu/gcc-bin/4.9.3 --includedir=/usr/lib/gcc/sparc-unknown-linux-gnu/4.9.3/include --datadir=/usr/share/gcc-data/sparc-unknown-linux-gnu/4.9.3 --mandir=/usr/share/gcc-data/sparc-unknown-linux-gnu/4.9.3/man --infodir=/usr/share/gcc-data/sparc-unknown-linux-gnu/4.9.3/info --with-gxx-include-dir=/usr/lib/gcc/sparc-unknown-linux-gnu/4.9.3/include/g++-v4 --with-python-dir=/share/gcc-data/sparc-unknown-linux-gnu/4.9.3/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.9.3 p1.5, pie-0.6.4' --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --disable-altivec --disable-fixed-point --enable-targets=all --disable-libgcj --enable-libgomp --disable-libmudflap --disable-libssp --disable-libcilkrts --enable-lto --without-cloog --enable-libsanitizer
Thread model: posix
gcc version 4.9.3 (Gentoo 4.9.3 p1.5, pie-0.6.4)
configure:2103: $? = 0
configure:2105: sparc-unknown-linux-gnu-gcc -V </dev/null >&5
sparc-unknown-linux-gnu-gcc: error: unrecognized command line option '-V'
sparc-unknown-linux-gnu-gcc: fatal error: no input files
compilation terminated.
configure:2108: $? = 1
configure:2131: checking for C compiler default output file name
configure:2134: sparc-unknown-linux-gnu-gcc -O2 -mcpu=ultrasparc -pipe -Wl,-O1 -Wl,--as-needed conftest.c >&5
/usr/lib/gcc/sparc-unknown-linux-gnu/4.9.3/../../../../sparc-unknown-linux-gnu/bin/ld: cannot find crt1.o: No such file or directory
/usr/lib/gcc/sparc-unknown-linux-gnu/4.9.3/../../../../sparc-unknown-linux-gnu/bin/ld: cannot find crti.o: No such file or directory
/usr/lib/gcc/sparc-unknown-linux-gnu/4.9.3/../../../../sparc-unknown-linux-gnu/bin/ld: cannot find -lc
/usr/lib/gcc/sparc-unknown-linux-gnu/4.9.3/../../../../sparc-unknown-linux-gnu/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
configure:2137: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "bc"
| #define PACKAGE_TARNAME "bc"
| #define PACKAGE_VERSION "1.06.95"
| #define PACKAGE_STRING "bc 1.06.95"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "bc"
| #define VERSION "1.06.95"
| #define DC_VERSION "1.3.95"
| #define BC_COPYRIGHT "Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc."
| #define DC_COPYRIGHT "Copyright 1994, 1997, 1998, 2000, 2001, 2004, 2005, 2006 Free Software Foundation, Inc."
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2176: error: C compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-O2 -mcpu=ultrasparc -pipe'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-Wl,-O1 -Wl,--as-needed'
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=sparc-unknown-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=sparc-unknown-linux-gnu
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/usr/lib/portage/python2.7/ebuild-helpers/xattr/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=sparc-unknown-linux-gnu-gcc
ac_cv_prog_make_make_set=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /media/data/var/tmp/portage/portage/sys-devel/bc-1.06.95-r1/work/bc-1.06.95/missing --run aclocal-1.9'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /media/data/var/tmp/portage/portage/sys-devel/bc-1.06.95-r1/work/bc-1.06.95/missing --run tar'
AUTOCONF='${SHELL} /media/data/var/tmp/portage/portage/sys-devel/bc-1.06.95-r1/work/bc-1.06.95/missing --run autoconf'
AUTOHEADER='${SHELL} /media/data/var/tmp/portage/portage/sys-devel/bc-1.06.95-r1/work/bc-1.06.95/missing --run autoheader'
AUTOMAKE='${SHELL} /media/data/var/tmp/portage/portage/sys-devel/bc-1.06.95-r1/work/bc-1.06.95/missing --run automake-1.9'
AWK='gawk'
BC_VERSION=''
CC='sparc-unknown-linux-gnu-gcc'
CCDEPMODE=''
CFLAGS='-O2 -mcpu=ultrasparc -pipe'
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DC_VERSION=''
DEFS=''
DEPDIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS='-Wl,-O1 -Wl,--as-needed'
LEX=''
LEXLIB=''
LEX_OUTPUT_ROOT=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /media/data/var/tmp/portage/portage/sys-devel/bc-1.06.95-r1/work/bc-1.06.95/missing --run makeinfo'
OBJEXT=''
PACKAGE='bc'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='bc'
PACKAGE_STRING='bc 1.06.95'
PACKAGE_TARNAME='bc'
PACKAGE_VERSION='1.06.95'
PATH_SEPARATOR=':'
RANLIB=''
READLINELIB=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='1.06.95'
YACC=''
ac_ct_CC=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build_alias='sparc-unknown-linux-gnu'
datadir='/usr/share'
exec_prefix='NONE'
host_alias='sparc-unknown-linux-gnu'
includedir='${prefix}/include'
infodir='/usr/share/info'
install_sh='/media/data/var/tmp/portage/portage/sys-devel/bc-1.06.95-r1/work/bc-1.06.95/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='/var/lib'
mandir='/usr/share/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
prefix='/usr'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define BC_COPYRIGHT "Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc."
#define DC_COPYRIGHT "Copyright 1994, 1997, 1998, 2000, 2001, 2004, 2005, 2006 Free Software Foundation, Inc."
#define DC_VERSION "1.3.95"
#define PACKAGE "bc"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "bc"
#define PACKAGE_STRING "bc 1.06.95"
#define PACKAGE_TARNAME "bc"
#define PACKAGE_VERSION "1.06.95"
#define VERSION "1.06.95"
configure: exit 77
livecd data # |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54596 Location: 56N 3W
|
Posted: Wed Mar 01, 2017 4:48 pm Post subject: |
|
|
jsusanka,
Code: | configure:2134: sparc-unknown-linux-gnu-gcc -O2 -mcpu=ultrasparc -pipe -Wl,-O1 -Wl,--as-needed conftest.c >&5
/usr/lib/gcc/sparc-unknown-linux-gnu/4.9.3/../../../../sparc-unknown-linux-gnu/bin/ld: cannot find crt1.o: No such file or directory
/usr/lib/gcc/sparc-unknown-linux-gnu/4.9.3/../../../../sparc-unknown-linux-gnu/bin/ld: cannot find crti.o: No such file or directory
/usr/lib/gcc/sparc-unknown-linux-gnu/4.9.3/../../../../sparc-unknown-linux-gnu/bin/ld: cannot find -lc
/usr/lib/gcc/sparc-unknown-linux-gnu/4.9.3/../../../../sparc-unknown-linux-gnu/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status |
Those files are provided by glibc. On my AMD64 they are in /usr/lib64/ My U10 keyboard failed, so I don't have a SPARC system right now. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
jsusanka n00b
Joined: 29 Aug 2015 Posts: 6
|
Posted: Thu Mar 02, 2017 2:49 am Post subject: what is cannot find -lc? |
|
|
cannot find -lc
do you know what it is looking for with that line.
I don't see that anywhere unless it is called something else. |
|
Back to top |
|
|
jsusanka n00b
Joined: 29 Aug 2015 Posts: 6
|
Posted: Thu Mar 02, 2017 3:56 pm Post subject: solved this problem |
|
|
NeddySeagoon wrote: | jsusanka,
Code: | configure:2134: sparc-unknown-linux-gnu-gcc -O2 -mcpu=ultrasparc -pipe -Wl,-O1 -Wl,--as-needed conftest.c >&5
/usr/lib/gcc/sparc-unknown-linux-gnu/4.9.3/../../../../sparc-unknown-linux-gnu/bin/ld: cannot find crt1.o: No such file or directory
/usr/lib/gcc/sparc-unknown-linux-gnu/4.9.3/../../../../sparc-unknown-linux-gnu/bin/ld: cannot find crti.o: No such file or directory
/usr/lib/gcc/sparc-unknown-linux-gnu/4.9.3/../../../../sparc-unknown-linux-gnu/bin/ld: cannot find -lc
/usr/lib/gcc/sparc-unknown-linux-gnu/4.9.3/../../../../sparc-unknown-linux-gnu/bin/ld: cannot find rtn.oc: No such file or directory
collect2: error: ld returned 1 exit status |
Those files are provided by glibc. On my AMD64 they are in /usr/lib64/ My U10 keyboard failed, so I don't have a SPARC system right now. |
Well you hit the problem - at least it looks like it is going to compile bc-1.06.95.
But what I did was make soft links in /usr/lib to the following files that were in /usr for some reason.
libc.a
libc.so
crtn.o
crti.o
crt1.o
not really sure why they weren't in /usr/lib
onward to the next mountain |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|