LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 02-16-2016, 05:56 AM   #1
fernubio
LQ Newbie
 
Registered: Feb 2016
Posts: 3

Rep: Reputation: Disabled
Fail at 5.8. Libstdc++-5.2.0 - LFS 7.8 - UBUNTU - libiberty/regex.c:52:25: fatal error: sys/types.h: No such file or directory


Hello, I'm stucked at 5.8. Libstc++ 5.2.0. Ubuntu 15.10. Everything is OK until here.

Here is the configure:
Code:
../gcc-5.2.0/configure 
--host=$LFS_TGT 
--prefix=/tools 
--disable-multilib 
--disable-nls 
--disable-libstdcxx-threads 
--disable-libstdcxx-pch 
--with-gxx-include-dir=/tools/$LFS_TGT/include/c++/5.2.0
Here is the make trace:
Code:
checking for ANSI C header files... no
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... no
checking for a sed that does not truncate output... /bin/sed
checking whether x86_64-lfs-linux-gnu-gcc supports -W... yes
checking whether x86_64-lfs-linux-gnu-gcc supports -Wall... yes
checking whether x86_64-lfs-linux-gnu-gcc supports -Wwrite-strings... yes
checking whether x86_64-lfs-linux-gnu-gcc supports -Wstrict-prototypes... yes
checking whether x86_64-lfs-linux-gnu-gcc supports -Wmissing-prototypes... yes
checking whether x86_64-lfs-linux-gnu-gcc supports -Wold-style-definition... yes
checking whether x86_64-lfs-linux-gnu-gcc supports -Wmissing-format-attribute... yes
checking whether x86_64-lfs-linux-gnu-gcc supports -Woverlength-strings... yes
checking whether x86_64-lfs-linux-gnu-gcc supports -pedantic -Wlong-long... yes
checking for ANSI C header files... (cached) no
checking stddef.h usability... no
checking stddef.h presence... yes
configure: WARNING: stddef.h: present but cannot be compiled
configure: WARNING: stddef.h:     check for missing prerequisite headers?
configure: WARNING: stddef.h: see the Autoconf documentation
configure: WARNING: stddef.h:     section "Present But Cannot Be Compiled"
configure: WARNING: stddef.h: proceeding with the compiler's result
checking for stddef.h... no
checking for stdlib.h... (cached) no
checking for strings.h... (cached) no
checking for unistd.h... (cached) no
checking fcntl.h usability... no
checking fcntl.h presence... no
checking for fcntl.h... no
checking sys/file.h usability... no
checking sys/file.h presence... no
checking for sys/file.h... no
checking for sys/stat.h... (cached) no
checking for clearerr_unlocked... yes
checking for feof_unlocked... yes
checking for ferror_unlocked... yes
checking for fflush_unlocked... yes
checking for fgetc_unlocked... yes
checking for fgets_unlocked... yes
checking for fileno_unlocked... yes
checking for fprintf_unlocked... no
checking for fputc_unlocked... yes
checking for fputs_unlocked... yes
checking for fread_unlocked... yes
checking for fwrite_unlocked... yes
checking for getchar_unlocked... yes
checking for getc_unlocked... yes
checking for putchar_unlocked... yes
checking for putc_unlocked... yes
checking whether abort is declared... no
checking whether asprintf is declared... no
checking whether basename is declared... no
checking whether errno is declared... no
checking whether vasprintf is declared... no
checking whether clearerr_unlocked is declared... no
checking whether feof_unlocked is declared... no
checking whether ferror_unlocked is declared... no
checking whether fflush_unlocked is declared... no
checking whether fgetc_unlocked is declared... no
checking whether fgets_unlocked is declared... no
checking whether fileno_unlocked is declared... no
checking whether fprintf_unlocked is declared... no
checking whether fputc_unlocked is declared... no
checking whether fputs_unlocked is declared... no
checking whether fread_unlocked is declared... no
checking whether fwrite_unlocked is declared... no
checking whether getchar_unlocked is declared... no
checking whether getc_unlocked is declared... no
checking whether putchar_unlocked is declared... no
checking whether putc_unlocked is declared... no
checking for an ANSI C-conforming const... yes
checking sys/mman.h usability... no
checking sys/mman.h presence... no
checking for sys/mman.h... no
checking for mmap... yes
checking whether to enable maintainer-specific portions of Makefiles... no
configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mkheaders.almost
config.status: creating config.h
mkdir -p -- ./libiberty
Configuring in ./libiberty
configure: creating cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... makeinfo --split-size=5000000
checking for perl... perl
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-lfs-linux-gnu
checking for x86_64-lfs-linux-gnu-ar... x86_64-lfs-linux-gnu-ar
checking for x86_64-lfs-linux-gnu-ranlib... x86_64-lfs-linux-gnu-ranlib
checking whether to install libiberty headers and static library... no
configure: target_header_dir = 
checking for x86_64-lfs-linux-gnu-gcc... x86_64-lfs-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-lfs-linux-gnu-gcc accepts -g... yes
checking for x86_64-lfs-linux-gnu-gcc option to accept ISO C89... unsupported
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... unknown
checking for _LARGE_FILES value needed for large files... unknown
checking how to run the C preprocessor... x86_64-lfs-linux-gnu-gcc -E
checking whether x86_64-lfs-linux-gnu-gcc supports -W... yes
checking whether x86_64-lfs-linux-gnu-gcc supports -Wall... yes
checking whether x86_64-lfs-linux-gnu-gcc supports -Wwrite-strings... yes
checking whether x86_64-lfs-linux-gnu-gcc supports -Wc++-compat... yes
checking whether x86_64-lfs-linux-gnu-gcc supports -Wstrict-prototypes... yes
checking whether x86_64-lfs-linux-gnu-gcc supports -pedantic ... yes
checking whether x86_64-lfs-linux-gnu-gcc and cc understand -c and -o together... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... no
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking whether byte ordering is bigendian... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for sys/file.h... no
checking for sys/param.h... no
checking for limits.h... yes
checking for stdlib.h... (cached) no
checking for malloc.h... no
checking for string.h... (cached) no
checking for unistd.h... (cached) no
checking for strings.h... (cached) no
checking for sys/time.h... no
checking for time.h... no
checking for sys/resource.h... no
checking for sys/stat.h... (cached) no
checking for sys/mman.h... no
checking for fcntl.h... no
checking for alloca.h... no
checking for sys/pstat.h... no
checking for sys/sysmp.h... no
checking for sys/sysinfo.h... no
checking for machine/hal_sysinfo.h... no
checking for sys/table.h... no
checking for sys/sysctl.h... no
checking for sys/systemcfg.h... no
checking for stdint.h... (cached) no
checking for stdio_ext.h... no
checking for process.h... no
checking for sys/prctl.h... no
checking for sys/wait.h that is POSIX.1 compatible... no
checking whether time.h and sys/time.h may both be included... no
checking whether errno must be declared... yes
checking size of int... 0
checking size of long... 0
checking for long long... no
checking for a 64-bit type... unsigned long
checking for intptr_t... no
checking for uintptr_t... no
checking for ssize_t... no
checking for pid_t... no
checking for library containing strerror... none required
checking for asprintf... yes
checking for atexit... yes
checking for basename... yes
checking for bcmp... yes
checking for bcopy... yes
checking for bsearch... yes
checking for bzero... yes
checking for calloc... yes
checking for clock... yes
checking for ffs... yes
checking for getcwd... yes
checking for getpagesize... yes
checking for gettimeofday... yes
checking for index... yes
checking for insque... yes
checking for memchr... yes
checking for memcmp... yes
checking for memcpy... yes
checking for memmem... yes
checking for memmove... yes
checking for mempcpy... yes
checking for memset... yes
checking for mkstemps... yes
checking for putenv... yes
checking for random... yes
checking for rename... yes
checking for rindex... yes
checking for setenv... yes
checking for snprintf... yes
checking for sigsetmask... yes
checking for stpcpy... yes
checking for stpncpy... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strncasecmp... yes
checking for strndup... yes
checking for strnlen... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtod... yes
checking for strtol... yes
checking for strtoul... yes
checking for strtoll... yes
checking for strtoull... yes
checking for strverscmp... yes
checking for tmpnam... yes
checking for vasprintf... yes
checking for vfprintf... yes
checking for vprintf... yes
checking for vsnprintf... yes
checking for vsprintf... yes
checking for waitpid... yes
checking for setproctitle... no
checking whether alloca needs Cray hooks... no
checking stack direction for C alloca... 0
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... cross
configure: WARNING: result yes guessed because of cross compilation
checking for working vfork... (cached) yes
checking for _doprnt... no
checking for sys_errlist... yes
checking for sys_nerr... yes
checking for sys_siglist... yes
checking for external symbol _system_configuration... no
checking for __fsetlocking... yes
checking for canonicalize_file_name... yes
checking for dup3... yes
checking for getrlimit... yes
checking for getrusage... yes
checking for getsysinfo... no
checking for gettimeofday... (cached) yes
checking for on_exit... yes
checking for psignal... yes
checking for pstat_getdynamic... no
checking for pstat_getstatic... no
checking for realpath... yes
checking for setrlimit... yes
checking for sbrk... yes
checking for spawnve... no
checking for spawnvpe... no
checking for strerror... yes
checking for strsignal... yes
checking for sysconf... yes
checking for sysctl... yes
checking for sysmp... no
checking for table... no
checking for times... yes
checking for wait3... yes
checking for wait4... yes
checking whether basename is declared... no
checking whether ffs is declared... no
checking whether asprintf is declared... no
checking whether vasprintf is declared... no
checking whether snprintf is declared... no
checking whether vsnprintf is declared... no
checking whether calloc is declared... no
checking whether getenv is declared... no
checking whether getopt is declared... no
checking whether malloc is declared... no
checking whether realloc is declared... no
checking whether sbrk is declared... no
checking whether strtol is declared... no
checking whether strtoul is declared... no
checking whether strtoll is declared... no
checking whether strtoull is declared... no
checking whether strverscmp is declared... no
checking whether canonicalize_file_name must be declared... yes
checking for stdlib.h... (cached) no
checking for unistd.h... (cached) no
checking for getpagesize... (cached) yes
checking for working mmap... no
checking for working strncmp... yes
configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating testsuite/Makefile
config.status: creating config.h
config.status: executing default commands
make[2]: Entering directory '/mnt/lfs/sources/gcc-build/libiberty'
if [ x"-fpic" != x ] && [ ! -d pic ]; then \
  mkdir pic; \
else true; fi
touch stamp-picdir
if [ x"" != x ] && [ ! -d noasan ]; then \
  mkdir noasan; \
else true; fi
touch stamp-noasandir
if [ x"-fpic" != x ]; then \
  x86_64-lfs-linux-gnu-gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I../../gcc-5.2.0/libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  -fpic ../../gcc-5.2.0/libiberty/regex.c -o pic/regex.o; \
else true; fi
../../gcc-5.2.0/libiberty/regex.c:52:25: fatal error: sys/types.h: No such file or directory
compilation terminated.
Makefile:1167: recipe for target 'regex.o' failed
make[2]: *** [regex.o] Error 1
make[2]: Leaving directory '/mnt/lfs/sources/gcc-build/libiberty'
Makefile:8384: recipe for target 'all-libiberty' failed
make[1]: *** [all-libiberty] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/gcc-build'
Makefile:881: recipe for target 'all' failed
make: *** [all] Error 2

Last edited by fernubio; 02-16-2016 at 06:15 PM.
 
Old 02-16-2016, 04:52 PM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Please use code tags, post the results of the version check script.
 
Old 02-16-2016, 05:27 PM   #3
fernubio
LQ Newbie
 
Registered: Feb 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Keith Hedger View Post
Please use code tags, post the results of the version check script.
Sorry for the question, I think it's kind of dummy but I don't know what you mean with "use code tags", I'm very sorry, I try to learn.
I'll post the version-check as soon as possible. Thank you for now.
 
Old 02-16-2016, 05:40 PM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
http://www.linuxquestions.org/questi....php?do=bbcode

Enclose your code intags like so
[code]
./configure
make
make install
[/code]

This will show as
Code:
./configure
make
make install
 
Old 02-17-2016, 03:40 AM   #5
fernubio
LQ Newbie
 
Registered: Feb 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Keith Hedger View Post
http://www.linuxquestions.org/questi....php?do=bbcode

Enclose your code intags like so
[code]
./configure
make
make install
[/code]

This will show as
Code:
./configure
make
make install

Hello Keith,

Here are the check-version out:
Code:
bash, version 4.3.42(1)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils for Ubuntu) 2.25.1
bison (GNU Bison) 3.0.2
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2,  Version 1.0.6, 6-Sept-2010.
Coreutils:  8.23
diff (GNU diffutils) 3.3
find (GNU findutils) 4.4.2
GNU Awk 4.1.1, API: 1.1 (GNU MPFR 3.1.3, GNU MP 6.0.0)
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu 5.2.1-22ubuntu2) 5.2.1 20151010
g++ (Ubuntu 5.2.1-22ubuntu2) 5.2.1 20151010
(GNU libc) 2.22
grep (GNU grep) 2.21
gzip 1.6
Linux version 4.2.0-27-generic (buildd@lgw01-12) (gcc version 5.2.1 20151010 (Ubuntu 5.2.1-22ubuntu2) ) #32-Ubuntu SMP Fri Jan 22 04:49:08 UTC 2016
m4 (GNU M4) 1.4.17
GNU Make 4.0
GNU patch 2.7.5
Perl version='5.20.2';
sed (GNU sed) 4.2.2
tar (GNU tar) 1.27.1
texi2any (GNU texinfo) 6.0
xz (XZ Utils) 5.1.0alpha
g++ compilation OK
Here are the library check out:
Code:
libgmp.la: not found
libmpfr.la: not found
libmpc.la: not found
 
Old 02-19-2016, 09:07 PM   #6
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
Quote:
Originally Posted by fernubio
Code:
../gcc-5.2.0/configure 
--host=$LFS_TGT 
--prefix=/tools 
--disable-multilib 
--disable-nls 
--disable-libstdcxx-threads 
--disable-libstdcxx-pch 
--with-gxx-include-dir=/tools/$LFS_TGT/include/c++/5.2.0
When I look at 5.8 in the book, I see this...

Code:
../gcc-5.2.0/libstdc++-v3/configure \
    --host=$LFS_TGT                 \
    --prefix=/tools                 \
    --disable-multilib              \
    --disable-nls                   \
    --disable-libstdcxx-threads     \
    --disable-libstdcxx-pch         \
    --with-gxx-include-dir=/tools/$LFS_TGT/include/c++/5.2.0
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sys/types.h: No such file or directory astralmaster Linux - Newbie 5 03-23-2015 11:03 PM
fatal error: goo/gmem.h: No such file or directory; but file does exist!! lgoldma Linux - General 3 03-07-2013 04:00 PM
error: sys/timerfd.h: No such file or directory manohar Programming 1 03-09-2011 01:29 AM
where can i find sys/types.h file? pavan.manipal Programming 4 03-25-2009 12:49 AM
thunderbird 2 runtime error on FC6 -libstdc++.so.5: No such file or directory powah Linux - Software 5 03-16-2009 10:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 09:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration