Hi all,

I'm experiencing the same issue as Louis Rine in this thread:

https://www.mail-archive.com/[email protected]/msg21373.html

I'm unsure whether or not reply to the cited thread, or create one on my
own. I apologize if this causes a duplication of the same topic :(

I got the following otuput error after make install of package
libstdc++-4.8.1:

 make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/include'
Making install in libsupc++
make[1]: Entering directory `/mnt/lfs/sources/gcc-build/libsupc++'
make[2]: Entering directory `/mnt/lfs/sources/gcc-build/libsupc++'
test -z "/tools/lib" || /bin/mkdir -p "/tools/lib"
 /bin/sh ../libtool   --mode=install /usr/bin/install -c   libsupc++.la
'/tools/lib'
libtool: install: /usr/bin/install -c .libs/libsupc++.lai
/tools/lib/libsupc++.la
libtool: install: /usr/bin/install -c .libs/libsupc++.a
/tools/lib/libsupc++.a
libtool: install: chmod 644 /tools/lib/libsupc++.a
libtool: install: i686-lfs-linux-gnu-ranlib /tools/lib/libsupc++.a
../libtool: line 1132: i686-lfs-linux-gnu-ranlib: command not found
make[2]: *** [install-toolexeclibLTLIBRARIES] Error 127
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/libsupc++'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/libsupc++'
make: *** [install-recursive] Error 1


I've checked and  i686-lfs-linux-gnu-gcc-ranlib IS under /tools/bin. I'm
building with host Ubuntu 12.04, I've checked the host requirements and are
all OK (i think), in particular:
-  /bin/sh points to bash not dash
- /usr/bin/yacc -> /etc/alternatives/yacc -> /usr/bin/bison.yacc
  with bison.yacc being the following simple script:
   #! /bin/sh
  exec '/usr/bin/bison' -y "$@"

.bashrc file of lfs user has $LFS variable well defined, /tools directory
is a symlink to $LFS/tools and $PATH has first /tools/bin.

In case you find it useful, I'm including the errors in the config.log
after configure Libstdc++-4.8.1, located in $LFS/sources/gcc-build. Not
sure what they mean or if they are related to the issue (yes, I untar'ed
gcc package again to build libstdc++):

lfs@tornasol:/mnt/lfs/sources/gcc-build$ cat config.log | grep -i error
i686-lfs-linux-gnu-gcc: error: unrecognized command line option '-V'
i686-lfs-linux-gnu-gcc: fatal error: no input files
i686-lfs-linux-gnu-gcc: error: unrecognized command line option '-qversion'
i686-lfs-linux-gnu-gcc: fatal error: no input files
i686-lfs-linux-gnu-g++: error: unrecognized command line option '-V'
i686-lfs-linux-gnu-g++: fatal error: no input files
i686-lfs-linux-gnu-g++: error: unrecognized command line option '-qversion'
i686-lfs-linux-gnu-g++: fatal error: no input files
conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory
conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory
collect2: error: ld returned 1 exit status
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| /* Override any GCC internal prototype to avoid an error.
conftest.cpp:21:28: fatal error: ac_nonexistent.h: No such file or directory
conftest.cpp:21:28: fatal error: ac_nonexistent.h: No such file or directory
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
configure:15573:3: error: decimal floating point not supported for this
target
configure:15574:3: error: decimal floating point not supported for this
target
configure:15575:3: error: decimal floating point not supported for this
target
configure:15622:31: error: template argument 2 is invalid
configure:15622:54: error: expected '(' before 'i1'
configure:15622:54: error: expected ';' before 'i1'
configure:15623:36: error: template argument 2 is invalid
configure:15623:54: error: expected '(' before 'i2'
configure:15623:54: error: expected ';' before 'i2'
configure:15725: i686-lfs-linux-gnu-g++ -c -g -Werror -ffunction-sections
-fdata-sections  conftest.cpp >&5
configure:15882: i686-lfs-linux-gnu-gcc -c -Wimplicit-function-declaration
-Werror  conftest.c >&5
configure:15903: i686-lfs-linux-gnu-gcc -c -Wimplicit-function-declaration
-Werror  conftest.c >&5
configure:15929: i686-lfs-linux-gnu-gcc -c -Wimplicit-function-declaration
-Werror  conftest.c >&5
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
configure:17362: checking for -Werror
conftest.cpp:67:38: error: size of array 'array' is negative
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
conftest.c:99:23: fatal error: sys/filio.h: No such file or directory
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
conftest.c:66:23: fatal error: sys/filio.h: No such file or directory
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
conftest.c:82:12: error: size of array 'test_array' is negative
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
conftest.c:83:12: error: size of array 'test_array' is negative
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
conftest.c:84:12: error: size of array 'test_array' is negative
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
conftest.c:84:12: error: size of array 'test_array' is negative
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
conftest.cpp:94:17: error: '_SC_NPROC_ONLN' was not declared in this scope
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
conftest.cpp:94:35: error: 'pthread_num_processors_np' was not declared in
this scope
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
conftest.cpp:100:22: error: 'CTL_HW' was not declared in this scope
conftest.cpp:100:30: error: 'HW_NCPU' was not declared in this scope
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
conftest.c:91:27: fatal error: sys/sdt.h: No such file or directory
conftest.c:126:16: fatal error: fp.h: No such file or directory
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
conftest.c:93:16: fatal error: fp.h: No such file or directory
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
conftest.c:126:20: fatal error: ieeefp.h: No such file or directory
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
conftest.c:93:20: fatal error: ieeefp.h: No such file or directory
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
conftest.c:128:28: fatal error: machine/endian.h: No such file or directory
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
conftest.c:95:28: fatal error: machine/endian.h: No such file or directory
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
conftest.c:128:27: fatal error: machine/param.h: No such file or directory
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
conftest.c:95:27: fatal error: machine/param.h: No such file or directory
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
conftest.c:128:17: fatal error: nan.h: No such file or directory
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
conftest.c:95:17: fatal error: nan.h: No such file or directory
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
conftest.c:133:26: fatal error: sys/isa_defs.h: No such file or directory
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
conftest.c:100:26: fatal error: sys/isa_defs.h: No such file or directory
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
conftest.c:133:25: fatal error: sys/machine.h: No such file or directory
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
conftest.c:100:25: fatal error: sys/machine.h: No such file or directory
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
configure:46153: i686-lfs-linux-gnu-g++ -c -g -Werror -ffunction-sections
-fdata-sections  conftest.cpp >&5
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
conftest.cpp:120:11: error: 'fpclass' was not declared in this scope
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
conftest.cpp:120:12: error: '_fpclass' was not declared in this scope
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
conftest.cpp:120:12: error: 'qfpclass' was not declared in this scope
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
conftest.cpp:120:13: error: '_qfpclass' was not declared in this scope
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
collect2: error: ld returned 1 exit status
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
| /* Override any GCC internal prototype to avoid an error.
conftest.c:141:24: error: expected expression before ')' token
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
conftest.c:141:24: error: expected expression before ')' token
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
conftest.c:141:28: error: expected expression before ')' token
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
conftest.c:141:27: error: expected expression before ')' token
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
conftest.c:141:23: error: expected expression before ')' token
| #define HAVE_STRERROR_L 1
| #define HAVE_STRERROR_R 1
configure:71692: i686-lfs-linux-gnu-gcc -c -Werror  conftest.c >&5
configure:71722: i686-lfs-linux-gnu-gcc -c -Werror  conftest.c >&5
configure:71774: i686-lfs-linux-gnu-gcc -c -g -O2 -Werror  conftest.c >&5
glibcxx_cv_system_error10=yes
glibcxx_cv_system_error11=yes
glibcxx_cv_system_error12=yes
glibcxx_cv_system_error13=yes
glibcxx_cv_system_error14=yes
glibcxx_cv_system_error15=yes
glibcxx_cv_system_error16=yes
glibcxx_cv_system_error17=yes
glibcxx_cv_system_error18=yes
glibcxx_cv_system_error19=yes
glibcxx_cv_system_error1=yes
glibcxx_cv_system_error2=yes
glibcxx_cv_system_error3=yes
glibcxx_cv_system_error4=yes
glibcxx_cv_system_error5=yes
glibcxx_cv_system_error6=yes
glibcxx_cv_system_error7=yes
glibcxx_cv_system_error8=yes
glibcxx_cv_system_error9=yes
ENABLE_WERROR_FALSE='#'
ENABLE_WERROR_TRUE=''
ERROR_CONSTANTS_SRCDIR='config/os/generic'
WERROR=''
#define HAVE_STRERROR_L 1
#define HAVE_STRERROR_R 1


Hope you experts can give me a hand here! I would not like to re build up
to this point and find the same error again :-(

Thanks,

Kike
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to