• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[Gelöst]Probleme beim compilieren von gcc (LFS)

Guten Tag Liebe Community,

ich bin neu hier und hoffe, jemand kann mir bei meinem Problem weiterhelfen...

Falls das Thema hier fehl am Platz ist tut mir das leid, bitte dann einfach Verschieben wenn möglich :)

Nun zu meinem Problem:

Ich habe mich dazu entschlossen, tiefer in Linux einzusteigen um das Bestmögliche zu lernen indem ich ein System von Grund auf aufbaue (Linux from Scratch).

Binutils habe ich bereits compilieren können und wird mir auch in meinem Tools Ordner angezeigt.

Nun Komme ich zu meinem Hauptproblem, was ich selbst durch Recherche im Internet bisher nicht lösen konnte...

Ich bin aktuell dabei, gcc zu kompilieren, damit ich mit dem nächsten Schritt weitermachen kann.

Aktuelles System worüber ich auf eine Partition LFS installieren möchte ist Ubuntu 20.04.3 LTS.

Laut Anleitung muss ich folgenden Befehl eingeben:
Code:
./configure --target=$LFS_TGT --prefix=$LFS/tools --with-glibc-version=2.11 --with-sysroot=$LFS --with-newlib --without-headers --enable-initfini-array --disable-nls --disable-shared --disable-multilib --disable-decimal-float --disable-threads --disable-libatomic --disable-libgomp --disable-libquadmath --disable-libssp --disable-libvtv --disable-libstdcxx --enable-languages=c,c++
was auch funktioniert, da er mir die Make datei erstellt.

Nachdem ich den befehl make aber ausführe, compiliert er ziemlich lange um dann letztendlich mit einem Fehler aufzuhören:
Code:
configure: error: in ' /mnt/lfs/sources/gcc-11.2.0/host-x86_64-pc-linux-gnu/intl':
configure: error: C compiler cannot create executables
see config.log for more details
make [2] *** [Makefile:9127: configure-stage2-intl] Fehler 77
make[2] Verzeichnis  /mnt/lfs/sources/gcc-11.2.0 wird verlassen
make[1] *** [Makefile:23471: stage2-bubble] Fehler2
make[1] Verzeichnis /mnt/lfs/sources/gcc-11.2.0 wird verlassen
make: *** [Makefile:954: all] Fehler 2

Hier die Config.log:
Code:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure --target= --prefix=/mnt/lfs/tools --with-glibc-version=2.11 --with-sysroot=/mnt/lfs --with-newlib --without-headers --enable-initfini-array --disable-nls --disable-shared --disable-multilib --disable-decimal-float --disable-threads --disable-libatomic --disable-libgomp --disable-libquadmath --disable-libssp --disable-libvtv --disable-libstdcxx --enable-languages=c,c++

## --------- ##
## Platform. ##
## --------- ##

hostname = noah-Lenovo-V130-15IKB
uname -m = x86_64
uname -r = 5.11.0-27-generic
uname -s = Linux
uname -v = #29~20.04.1-Ubuntu SMP Wed Aug 11 15:58:17 UTC 2021

/usr/bin/uname -p = x86_64
/bin/uname -X     = unknown

/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/games
PATH: /snap/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2354: checking build system type
configure:2368: result: x86_64-pc-linux-gnu
configure:2415: checking host system type
configure:2428: result: x86_64-pc-linux-gnu
configure:2448: checking target system type
configure:2461: result: x86_64-pc-linux-gnu
configure:2515: checking for a BSD-compatible install
configure:2583: result: /usr/bin/install -c
configure:2594: checking whether ln works
configure:2616: result: yes
configure:2620: checking whether ln -s works
configure:2624: result: yes
configure:2631: checking for a sed that does not truncate output
configure:2695: result: /usr/bin/sed
configure:2704: checking for gawk
configure:2720: found /usr/bin/gawk
configure:2731: result: gawk
configure:3263: checking for libitm support
configure:3273: result: yes
configure:3282: checking for libsanitizer support
configure:3292: result: yes
configure:3321: checking for libhsail-rt support
configure:3333: result: yes
configure:3454: checking for libphobos support
configure:3464: result: yes
configure:4165: checking for gcc
configure:4181: found /usr/bin/gcc
configure:4192: result: gcc
configure:4421: checking for C compiler version
configure:4430: gcc --version >&5
gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Copyright (C) 2019 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:4441: $? = 0
configure:4430: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.3.0-17ubuntu1~20.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-HskZEa/gcc-9-9.3.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04) 
configure:4441: $? = 0
configure:4430: gcc --version >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:4441: $? = 1
configure:4430: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:4441: $? = 1
configure:4461: checking whether the C compiler works
configure:4483: gcc    conftest.c  >&5
configure:4487: $? = 0
configure:4535: result: yes
configure:4538: checking for C compiler default output file name
configure:4540: result: a.out
configure:4546: checking for suffix of executables
configure:4553: gcc -o conftest    conftest.c  >&5
configure:4557: $? = 0
configure:4579: result: 
configure:4601: checking whether we are cross compiling
configure:4609: gcc -o conftest    conftest.c  >&5
configure:4613: $? = 0
configure:4620: ./conftest
configure:4624: $? = 0
configure:4612: result: no
configure:4617: checking for suffix of object files
configure:4639: gcc -c   conftest.c >&5
configure:4643: $? = 0
configure:4664: result: o
configure:4668: checking whether we are using the GNU C compiler
configure:4687: gcc -c   conftest.c >&5
configure:4687: $? = 0
configure:4696: result: yes
configure:4705: checking whether gcc accepts -g
configure:4725: gcc -c -g  conftest.c >&5
configure:4725: $? = 0
configure:4766: result: yes
configure:4783: checking for gcc option to accept ISO C89
configure:4846: gcc  -c -g -O2  conftest.c >&5
configure:4846: $? = 0
configure:4859: result: none needed
configure:4937: checking for g++
configure:4953: found /usr/bin/g++
configure:4964: result: g++
configure:4991: checking for C++ compiler version
configure:5000: g++ --version >&5
g++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Copyright (C) 2019 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:5011: $? = 0
configure:5000: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.3.0-17ubuntu1~20.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-HskZEa/gcc-9-9.3.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04) 
configure:5011: $? = 0
configure:5000: g++ -V >&5
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:5011: $? = 1
configure:5000: g++ -qversion >&5
g++: error: unrecognized command line option '-qversion'; did you mean '--version'?
g++: fatal error: no input files
compilation terminated.
configure:5011: $? = 1
configure:5015: checking whether we are using the GNU C++ compiler
configure:5034: g++ -c   conftest.cpp >&5
configure:5034: $? = 0
configure:5043: result: yes
configure:5052: checking whether g++ accepts -g
configure:5072: g++ -c -g  conftest.cpp >&5
configure:5072: $? = 0
configure:5113: result: yes
configure:5162: checking whether g++ accepts -static-libstdc++ -static-libgcc
configure:5179: g++ -o conftest -g -O2   -static-libstdc++ -static-libgcc conftest.cpp  >&5
configure:5179: $? = 0
configure:5180: result: yes
configure:5244: checking for gnatbind
configure:5274: result: no
configure:5336: checking for gnatmake
configure:5366: result: no
configure:5385: checking whether compiler driver understands Ada
configure:5408: result: no
configure:5417: checking how to compare bootstrapped objects
configure:5442: result: cmp --ignore-initial=16 $$f1 $$f2
configure:7501: checking for objdir
configure:7516: result: .libs
configure:8082: checking for isl 0.15 or later
configure:8095: gcc -o conftest -g -O2  -I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp -I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src -I$$s/mpc/src     -lisl -L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/mpfr/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/.libs -lmpc -lmpfr -lgmp conftest.c  -lisl -lgmp >&5
conftest.c:10:10: fatal error: isl/schedule.h: No such file or directory
   10 | #include <isl/schedule.h>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
configure:8095: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h.  */
| #include <isl/schedule.h>
| int
| main ()
| {
| isl_options_set_schedule_serialize_sccs (NULL, 0);
|   ;
|   return 0;
| }
configure:8102: result: no
configure:8106: result: required isl version is 0.15 or later
configure:9206: checking for default BUILD_CONFIG
configure:9238: result: bootstrap-debug
configure:9243: checking for --enable-vtable-verify
configure:9256: result: no
configure:9869: checking for bison
configure:9885: found /usr/bin/bison
configure:9896: result: bison -y
configure:9916: checking for bison
configure:9932: found /usr/bin/bison
configure:9943: result: bison
configure:9963: checking for gm4
configure:9993: result: no
configure:9963: checking for gnum4
configure:9993: result: no
configure:9963: checking for m4
configure:9979: found /usr/bin/m4
configure:9990: result: m4
configure:10010: checking for flex
configure:10026: found /usr/bin/flex
configure:10037: result: flex
configure:10058: checking for flex
configure:10074: found /usr/bin/flex
configure:10085: result: flex
configure:10105: checking for makeinfo
configure:10135: result: no
configure:10166: checking for expect
configure:10182: found /usr/bin/expect
configure:10193: result: expect
configure:10215: checking for runtest
configure:10231: found /usr/bin/runtest
configure:10242: result: runtest
configure:10360: checking for ar
configure:10376: found /usr/bin/ar
configure:10387: result: ar
configure:10501: checking for as
configure:10517: found /usr/bin/as
configure:10528: result: as
configure:10642: checking for dlltool
configure:10672: result: no
configure:10783: checking for ld
configure:10799: found /usr/bin/ld
configure:10810: result: ld
configure:10924: checking for lipo
configure:10954: result: no
configure:11065: checking for nm
configure:11081: found /usr/bin/nm
configure:11092: result: nm
configure:11206: checking for ranlib
configure:11222: found /usr/bin/ranlib
configure:11233: result: ranlib
configure:11342: checking for strip
configure:11358: found /usr/bin/strip
configure:11369: result: strip
configure:11478: checking for windres
configure:11508: result: no
configure:11619: checking for windmc
configure:11649: result: no
configure:11760: checking for objcopy
configure:11776: found /usr/bin/objcopy
configure:11787: result: objcopy
configure:11901: checking for objdump
configure:11917: found /usr/bin/objdump
configure:11928: result: objdump
configure:12042: checking for otool
configure:12072: result: no
configure:12183: checking for readelf
configure:12199: found /usr/bin/readelf
configure:12210: result: readelf
configure:12363: checking for cc
configure:12379: found /usr/bin/cc
configure:12390: result: cc
configure:12524: checking for c++
configure:12540: found /usr/bin/c++
configure:12551: result: c++
configure:12685: checking for gcc
configure:12701: found /usr/bin/gcc
configure:12712: result: gcc
configure:12841: checking for gfortran
configure:12871: result: no
configure:13002: checking for gccgo
configure:13032: result: no
configure:13163: checking for gdc
configure:13193: result: no
configure:13254: checking for ar
configure:13272: found /mnt/lfs/tools/x86_64-pc-linux-gnu/bin/ar
configure:13284: result: /mnt/lfs/tools/x86_64-pc-linux-gnu/bin/ar
configure:13484: checking for as
configure:13502: found /mnt/lfs/tools/x86_64-pc-linux-gnu/bin/as
configure:13514: result: /mnt/lfs/tools/x86_64-pc-linux-gnu/bin/as
configure:13714: checking for dlltool
configure:13747: result: no
configure:13864: checking for dlltool
configure:13894: result: no
configure:13944: checking for ld
configure:13962: found /mnt/lfs/tools/x86_64-pc-linux-gnu/bin/ld
configure:13974: result: /mnt/lfs/tools/x86_64-pc-linux-gnu/bin/ld
configure:14174: checking for lipo
configure:14207: result: no
configure:14324: checking for lipo
configure:14354: result: no
configure:14404: checking for nm
configure:14422: found /mnt/lfs/tools/x86_64-pc-linux-gnu/bin/nm
configure:14434: result: /mnt/lfs/tools/x86_64-pc-linux-gnu/bin/nm
configure:14634: checking for objcopy
configure:14652: found /mnt/lfs/tools/x86_64-pc-linux-gnu/bin/objcopy
configure:14664: result: /mnt/lfs/tools/x86_64-pc-linux-gnu/bin/objcopy
configure:14864: checking for objdump
configure:14882: found /mnt/lfs/tools/x86_64-pc-linux-gnu/bin/objdump
configure:14894: result: /mnt/lfs/tools/x86_64-pc-linux-gnu/bin/objdump
configure:15094: checking for otool
configure:15127: result: no
configure:15244: checking for otool
configure:15274: result: no
configure:15324: checking for ranlib
configure:15342: found /mnt/lfs/tools/x86_64-pc-linux-gnu/bin/ranlib
configure:15354: result: /mnt/lfs/tools/x86_64-pc-linux-gnu/bin/ranlib
configure:15554: checking for readelf
configure:15572: found /mnt/lfs/tools/x86_64-pc-linux-gnu/bin/readelf
configure:15584: result: /mnt/lfs/tools/x86_64-pc-linux-gnu/bin/readelf
configure:15784: checking for strip
configure:15802: found /mnt/lfs/tools/x86_64-pc-linux-gnu/bin/strip
configure:15814: result: /mnt/lfs/tools/x86_64-pc-linux-gnu/bin/strip
configure:16014: checking for windres
configure:16047: result: no
configure:16164: checking for windres
configure:16194: result: no
configure:16244: checking for windmc
configure:16277: result: no
configure:16394: checking for windmc
configure:16424: result: no
configure:16452: checking where to find the target ar
configure:16480: result: pre-installed in /mnt/lfs/tools/x86_64-pc-linux-gnu/bin
configure:16494: checking where to find the target as
configure:16522: result: pre-installed in /mnt/lfs/tools/x86_64-pc-linux-gnu/bin
configure:16536: checking where to find the target cc
configure:16559: result: just compiled
configure:16578: checking where to find the target c++
configure:16604: result: just compiled
configure:16623: checking where to find the target c++ for libstdc++
configure:16649: result: just compiled
configure:16668: checking where to find the target dlltool
configure:16701: result: host tool
configure:16710: checking where to find the target gcc
configure:16733: result: just compiled
configure:16752: checking where to find the target gfortran
configure:16788: result: host tool
configure:16797: checking where to find the target gccgo
configure:16833: result: host tool
configure:16842: checking where to find the target gdc
configure:16878: result: host tool
configure:16887: checking where to find the target ld
configure:16915: result: pre-installed in /mnt/lfs/tools/x86_64-pc-linux-gnu/bin
configure:16929: checking where to find the target lipo
configure:16951: result: host tool
configure:16960: checking where to find the target nm
configure:16988: result: pre-installed in /mnt/lfs/tools/x86_64-pc-linux-gnu/bin
configure:17002: checking where to find the target objcopy
configure:17030: result: pre-installed in /mnt/lfs/tools/x86_64-pc-linux-gnu/bin
configure:17044: checking where to find the target objdump
configure:17072: result: pre-installed in /mnt/lfs/tools/x86_64-pc-linux-gnu/bin
configure:17086: checking where to find the target otool
configure:17108: result: host tool
configure:17117: checking where to find the target ranlib
configure:17145: result: pre-installed in /mnt/lfs/tools/x86_64-pc-linux-gnu/bin
configure:17159: checking where to find the target readelf
configure:17187: result: pre-installed in /mnt/lfs/tools/x86_64-pc-linux-gnu/bin
configure:17201: checking where to find the target strip
configure:17229: result: pre-installed in /mnt/lfs/tools/x86_64-pc-linux-gnu/bin
configure:17243: checking where to find the target windres
configure:17276: result: host tool
configure:17285: checking where to find the target windmc
configure:17318: result: host tool
configure:17355: checking whether to enable maintainer-specific portions of Makefiles
configure:17364: result: no
configure:17599: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by config.status, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  CONFIG_FILES    = 
  CONFIG_HEADERS  = 
  CONFIG_LINKS    = 
  CONFIG_COMMANDS = 
  $ ./config.status 

on noah-Lenovo-V130-15IKB

config.status:1029: creating Makefile

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_AR_FOR_TARGET_set=
ac_cv_env_AR_FOR_TARGET_value=
ac_cv_env_AR_set=
ac_cv_env_AR_value=
ac_cv_env_AS_FOR_TARGET_set=
ac_cv_env_AS_FOR_TARGET_value=
ac_cv_env_AS_set=
ac_cv_env_AS_value=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_FOR_TARGET_set=
ac_cv_env_CC_FOR_TARGET_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_FOR_TARGET_set=
ac_cv_env_CXX_FOR_TARGET_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_DLLTOOL_FOR_TARGET_set=
ac_cv_env_DLLTOOL_FOR_TARGET_value=
ac_cv_env_DLLTOOL_set=
ac_cv_env_DLLTOOL_value=
ac_cv_env_GCC_FOR_TARGET_set=
ac_cv_env_GCC_FOR_TARGET_value=
ac_cv_env_GDC_FOR_TARGET_set=
ac_cv_env_GDC_FOR_TARGET_value=
ac_cv_env_GFORTRAN_FOR_TARGET_set=
ac_cv_env_GFORTRAN_FOR_TARGET_value=
ac_cv_env_GOC_FOR_TARGET_set=
ac_cv_env_GOC_FOR_TARGET_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LD_FOR_TARGET_set=
ac_cv_env_LD_FOR_TARGET_value=
ac_cv_env_LD_set=
ac_cv_env_LD_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LIPO_FOR_TARGET_set=
ac_cv_env_LIPO_FOR_TARGET_value=
ac_cv_env_LIPO_set=
ac_cv_env_LIPO_value=
ac_cv_env_NM_FOR_TARGET_set=
ac_cv_env_NM_FOR_TARGET_value=
ac_cv_env_NM_set=
ac_cv_env_NM_value=
ac_cv_env_OBJCOPY_FOR_TARGET_set=
ac_cv_env_OBJCOPY_FOR_TARGET_value=
ac_cv_env_OBJCOPY_set=
ac_cv_env_OBJCOPY_value=
ac_cv_env_OBJDUMP_FOR_TARGET_set=
ac_cv_env_OBJDUMP_FOR_TARGET_value=
ac_cv_env_OBJDUMP_set=
ac_cv_env_OBJDUMP_value=
ac_cv_env_OTOOL_FOR_TARGET_set=
ac_cv_env_OTOOL_FOR_TARGET_value=
ac_cv_env_OTOOL_set=
ac_cv_env_OTOOL_value=
ac_cv_env_RANLIB_FOR_TARGET_set=
ac_cv_env_RANLIB_FOR_TARGET_value=
ac_cv_env_RANLIB_set=
ac_cv_env_RANLIB_value=
ac_cv_env_READELF_FOR_TARGET_set=
ac_cv_env_READELF_FOR_TARGET_value=
ac_cv_env_READELF_set=
ac_cv_env_READELF_value=
ac_cv_env_STRIP_FOR_TARGET_set=
ac_cv_env_STRIP_FOR_TARGET_value=
ac_cv_env_STRIP_set=
ac_cv_env_STRIP_value=
ac_cv_env_WINDMC_FOR_TARGET_set=
ac_cv_env_WINDMC_FOR_TARGET_value=
ac_cv_env_WINDMC_set=
ac_cv_env_WINDMC_value=
ac_cv_env_WINDRES_FOR_TARGET_set=
ac_cv_env_WINDRES_FOR_TARGET_value=
ac_cv_env_WINDRES_set=
ac_cv_env_WINDRES_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_build_configargs_set=
ac_cv_env_build_configargs_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_host_configargs_set=
ac_cv_env_host_configargs_value=
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=
ac_cv_env_target_configargs_set=
ac_cv_env_target_configargs_value=
ac_cv_host=x86_64-pc-linux-gnu
ac_cv_objext=o
ac_cv_path_AR_FOR_TARGET=/mnt/lfs/tools/x86_64-pc-linux-gnu/bin/ar
ac_cv_path_AS_FOR_TARGET=/mnt/lfs/tools/x86_64-pc-linux-gnu/bin/as
ac_cv_path_LD_FOR_TARGET=/mnt/lfs/tools/x86_64-pc-linux-gnu/bin/ld
ac_cv_path_NM_FOR_TARGET=/mnt/lfs/tools/x86_64-pc-linux-gnu/bin/nm
ac_cv_path_OBJCOPY_FOR_TARGET=/mnt/lfs/tools/x86_64-pc-linux-gnu/bin/objcopy
ac_cv_path_OBJDUMP_FOR_TARGET=/mnt/lfs/tools/x86_64-pc-linux-gnu/bin/objdump
ac_cv_path_RANLIB_FOR_TARGET=/mnt/lfs/tools/x86_64-pc-linux-gnu/bin/ranlib
ac_cv_path_READELF_FOR_TARGET=/mnt/lfs/tools/x86_64-pc-linux-gnu/bin/readelf
ac_cv_path_SED=/usr/bin/sed
ac_cv_path_STRIP_FOR_TARGET=/mnt/lfs/tools/x86_64-pc-linux-gnu/bin/strip
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AR=ar
ac_cv_prog_AS=as
ac_cv_prog_AWK=gawk
ac_cv_prog_BISON=bison
ac_cv_prog_CC_FOR_TARGET=cc
ac_cv_prog_CXX_FOR_TARGET=c++
ac_cv_prog_EXPECT=expect
ac_cv_prog_FLEX=flex
ac_cv_prog_GCC_FOR_TARGET=gcc
ac_cv_prog_LD=ld
ac_cv_prog_LEX=flex
ac_cv_prog_M4=m4
ac_cv_prog_NM=nm
ac_cv_prog_OBJCOPY=objcopy
ac_cv_prog_OBJDUMP=objdump
ac_cv_prog_RANLIB=ranlib
ac_cv_prog_READELF=readelf
ac_cv_prog_RUNTEST=runtest
ac_cv_prog_STRIP=strip
ac_cv_prog_YACC='bison -y'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cxx_g=yes
ac_cv_target=x86_64-pc-linux-gnu
acx_cv_cc_gcc_supports_ada=no
acx_cv_prog_LN=ln
gcc_cv_isl=no
gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
gcc_cv_tool_dirs=/mnt/lfs/tools/libexec/gcc/x86_64-pc-linux-gnu/11.2.0:/mnt/lfs/tools/libexec/gcc/x86_64-pc-linux-gnu:/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0:/usr/lib/gcc/x86_64-pc-linux-gnu:/mnt/lfs/tools/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu/11.2.0:/mnt/lfs/tools/x86_64-pc-linux-gnu/bin:
gcc_cv_tool_prefix=/mnt/lfs/tools
lt_cv_objdir=.libs

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR='ar'
AR_FOR_BUILD='$(AR)'
AR_FOR_TARGET='/mnt/lfs/tools/x86_64-pc-linux-gnu/bin/ar'
AS='as'
AS_FOR_BUILD='$(AS)'
AS_FOR_TARGET='/mnt/lfs/tools/x86_64-pc-linux-gnu/bin/as'
AWK='gawk'
BISON='bison'
BUILD_CONFIG='bootstrap-debug'
CC='gcc'
CC_FOR_BUILD='$(CC)'
CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
CFLAGS='-g -O2'
CFLAGS_FOR_BUILD='-g -O2'
CFLAGS_FOR_TARGET='-g -O2'
COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'
CONFIGURE_GDB_TK=''
CPPFLAGS=''
CXX='g++ -std=c++11'
CXXFLAGS='-g -O2'
CXXFLAGS_FOR_BUILD='-g -O2'
CXXFLAGS_FOR_TARGET='-g -O2'
CXX_FOR_BUILD='$(CXX)'
CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
DEBUG_PREFIX_CFLAGS_FOR_TARGET=''
DEFS='-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DLT_OBJDIR=\".libs/\"'
DLLTOOL='dlltool'
DLLTOOL_FOR_BUILD='$(DLLTOOL)'
DLLTOOL_FOR_TARGET='$(DLLTOOL)'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
EXPECT='expect'
FLAGS_FOR_TARGET=' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
FLEX='flex'
GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
GCC_SHLIB_SUBDIR=''
GDB_TK=''
GDC_FOR_BUILD='$(GDC)'
GDC_FOR_TARGET='$(GDC)'
GFORTRAN_FOR_BUILD='$(GFORTRAN)'
GFORTRAN_FOR_TARGET='$(GFORTRAN)'
GNATBIND='no'
GNATMAKE='no'
GOC_FOR_BUILD='$(GOC)'
GOC_FOR_TARGET='$(GOC)'
HAVE_CXX11=''
HAVE_CXX11_FOR_BUILD=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_GDB_TK=''
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LD='ld'
LDFLAGS=''
LDFLAGS_FOR_BUILD=''
LDFLAGS_FOR_TARGET=''
LD_FOR_BUILD='$(LD)'
LD_FOR_TARGET='/mnt/lfs/tools/x86_64-pc-linux-gnu/bin/ld'
LEX='flex'
LIBOBJS=''
LIBS=''
LIPO='lipo'
LIPO_FOR_TARGET='$(LIPO)'
LN='ln'
LN_S='ln -s'
LTLIBOBJS=''
M4='m4'
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='/mnt/lfs/sources/gcc-11.2.0/missing makeinfo'
NM='nm'
NM_FOR_BUILD='$(NM)'
NM_FOR_TARGET='/mnt/lfs/tools/x86_64-pc-linux-gnu/bin/nm'
OBJCOPY='objcopy'
OBJCOPY_FOR_TARGET='/mnt/lfs/tools/x86_64-pc-linux-gnu/bin/objcopy'
OBJDUMP='objdump'
OBJDUMP_FOR_TARGET='/mnt/lfs/tools/x86_64-pc-linux-gnu/bin/objdump'
OBJEXT='o'
OTOOL='otool'
OTOOL_FOR_TARGET='$(OTOOL)'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB='ranlib'
RANLIB_FOR_BUILD='$(RANLIB)'
RANLIB_FOR_TARGET='/mnt/lfs/tools/x86_64-pc-linux-gnu/bin/ranlib'
RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
READELF='readelf'
READELF_FOR_TARGET='/mnt/lfs/tools/x86_64-pc-linux-gnu/bin/readelf'
RPATH_ENVVAR='LD_LIBRARY_PATH'
RUNTEST='runtest'
SED='/usr/bin/sed'
SHELL='/bin/bash'
STRIP='strip'
STRIP_FOR_TARGET='/mnt/lfs/tools/x86_64-pc-linux-gnu/bin/strip'
SYSROOT_CFLAGS_FOR_TARGET=''
TOPLEVEL_CONFIGURE_ARGUMENTS='./configure --target= --prefix=/mnt/lfs/tools --with-glibc-version=2.11 --with-sysroot=/mnt/lfs --with-newlib --without-headers --enable-initfini-array --disable-nls --disable-shared --disable-multilib --disable-decimal-float --disable-threads --disable-libatomic --disable-libgomp --disable-libquadmath --disable-libssp --disable-libvtv --disable-libstdcxx --enable-languages=c,c++'
WINDMC='windmc'
WINDMC_FOR_BUILD='$(WINDMC)'
WINDMC_FOR_TARGET='$(WINDMC)'
WINDRES='windres'
WINDRES_FOR_BUILD='$(WINDRES)'
WINDRES_FOR_TARGET='$(WINDRES)'
YACC='bison -y'
ac_ct_CC='gcc'
ac_ct_CXX='g++'
bindir='${exec_prefix}/bin'
build='x86_64-pc-linux-gnu'
build_alias=''
build_configargs=' --cache-file=./config.cache '\''--prefix=/mnt/lfs/tools'\'' '\''--with-glibc-version=2.11'\'' '\''--with-sysroot=/mnt/lfs'\'' '\''--with-newlib'\'' '\''--without-headers'\'' '\''--enable-initfini-array'\'' '\''--disable-nls'\'' '\''--disable-shared'\'' '\''--disable-multilib'\'' '\''--disable-decimal-float'\'' '\''--disable-threads'\'' '\''--disable-libatomic'\'' '\''--disable-libgomp'\'' '\''--disable-libquadmath'\'' '\''--disable-libssp'\'' '\''--disable-libvtv'\'' '\''--disable-libstdcxx'\'' '\''--enable-languages=c,c++,lto'\'' --program-transform-name='\''s,y,y,'\'' --disable-option-checking'
build_configdirs=' libiberty libcpp fixincludes'
build_cpu='x86_64'
build_libsubdir='build-x86_64-pc-linux-gnu'
build_noncanonical='x86_64-pc-linux-gnu'
build_os='linux-gnu'
build_subdir='build-x86_64-pc-linux-gnu'
build_tooldir='${exec_prefix}/x86_64-pc-linux-gnu'
build_vendor='pc'
compare_exclusions='gcc/cc*-checksum$(objext) | gcc/ada/*tools/*'
configdirs=' intl libiberty zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc fixincludes gcc libcc1 c++tools lto-plugin'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
do_compare='cmp --ignore-initial=16 $$f1 $$f2'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='${prefix}'
extra_host_libiberty_configure_flags='--enable-shared'
extra_host_zlib_configure_flags=''
extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
extra_liboffloadmic_configure_flags=''
extra_linker_plugin_configure_flags=''
extra_linker_plugin_flags=''
extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/.libs'
extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/.libs'
extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/.libs'
get_gcc_base_ver='cat'
gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp -I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src -I$$s/mpc/src '
gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/mpfr/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/.libs -lmpc -lmpfr -lgmp'
host='x86_64-pc-linux-gnu'
host_alias=''
host_configargs=' --cache-file=./config.cache  '\''--prefix=/mnt/lfs/tools'\'' '\''--with-glibc-version=2.11'\'' '\''--with-sysroot=/mnt/lfs'\'' '\''--with-newlib'\'' '\''--without-headers'\'' '\''--enable-initfini-array'\'' '\''--disable-nls'\'' '\''--disable-shared'\'' '\''--disable-multilib'\'' '\''--disable-decimal-float'\'' '\''--disable-threads'\'' '\''--disable-libatomic'\'' '\''--disable-libgomp'\'' '\''--disable-libquadmath'\'' '\''--disable-libssp'\'' '\''--disable-libvtv'\'' '\''--disable-libstdcxx'\'' '\''--enable-languages=c,c++,lto'\'' --program-transform-name='\''s,y,y,'\'' --disable-option-checking'
host_cpu='x86_64'
host_noncanonical='x86_64-pc-linux-gnu'
host_os='linux-gnu'
host_shared='no'
host_subdir='host-x86_64-pc-linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
islinc=''
isllibs=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
poststage1_ldflags='-static-libstdc++ -static-libgcc'
poststage1_libs=''
prefix='/mnt/lfs/tools'
program_transform_name='s,y,y,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
stage1_cflags='-g'
stage1_checking='--enable-checking=yes,types'
stage1_languages='c,c++,lto'
stage1_ldflags='-static-libstdc++ -static-libgcc'
stage1_libs=''
stage2_werror_flag=''
sysconfdir='${prefix}/etc'
target='x86_64-pc-linux-gnu'
target_alias=''
target_configargs='--cache-file=./config.cache   '\''--prefix=/mnt/lfs/tools'\'' '\''--with-glibc-version=2.11'\'' '\''--with-sysroot=/mnt/lfs'\'' '\''--with-newlib'\'' '\''--without-headers'\'' '\''--enable-initfini-array'\'' '\''--disable-nls'\'' '\''--disable-shared'\'' '\''--disable-multilib'\'' '\''--disable-decimal-float'\'' '\''--disable-threads'\'' '\''--disable-libatomic'\'' '\''--disable-libgomp'\'' '\''--disable-libquadmath'\'' '\''--disable-libssp'\'' '\''--disable-libvtv'\'' '\''--disable-libstdcxx'\'' '\''--enable-languages=c,c++,lto'\'' --program-transform-name='\''s,y,y,'\'' --disable-option-checking'
target_configdirs=' libgcc'
target_cpu='x86_64'
target_noncanonical='x86_64-pc-linux-gnu'
target_os='linux-gnu'
target_subdir='x86_64-pc-linux-gnu'
target_vendor='pc'
tooldir='${exec_prefix}/x86_64-pc-linux-gnu'

## ------------------- ##
## File substitutions. ##
## ------------------- ##

alphaieee_frag='/dev/null'
host_makefile_frag='/dev/null'
ospace_frag='/dev/null'
serialization_dependencies='serdep.tmp'
target_makefile_frag='./config/mt-gnu'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define LT_OBJDIR ".libs/"

configure: exit 0

Bin langsam echt am Verzweifeln und kann einfach den Fehler nicht finden...

Ich hoffe echt mir kann hier jemand helfen und mich damit erlösen, damit ich endlich weitermachen kann :)

Liebe Grüße
Euer Linuxnoob153
 

marce

Guru
Ich würde mal schauen, ob Du irgendwo die Parameter findest, die als fehlerhaft angemeckert werden.

Leider ist bei LFS ein Fehler in einem Schritt nicht zwingend in diesem Schritt zu lösen sondern auch gerne mal ein Folgefehler von einem beliebigen vorheringen, evtl. zwar trotzdem duchgelaufenen Schritt, aber evtl. halt nicht zu 100%...
 

abgdf

Guru
linuxnoob153 schrieb:
Ich habe mich dazu entschlossen, tiefer in Linux einzusteigen um das Bestmögliche zu lernen indem ich ein System von Grund auf aufbaue (Linux from Scratch).
Why are you looking for trouble? ;)

("looking for trouble" meint in dem Zusammenhang, sich aktiv in etwas zu stürzen, das man nicht unbedingt machen müßte und das einem nur Probleme bereitet, die einen dann viel Zeit kosten, obwohl die Lösung dieser Probleme einen nicht wirklich voranbringt. Sowas ist meist nicht gut, weil man seine Zeit produktiver einsetzen könnte.)
linuxnoob153 schrieb:
Ich bin aktuell dabei, gcc zu kompilieren, damit ich mit dem nächsten Schritt weitermachen kann.
Wie soll das gehen? gcc ist der C-Compiler. Wenn die Henne (der Compiler) nicht da ist, kann sie auch kein Ei legen (nichts kompilieren).

Vielleicht wäre meine Seite für Dich ganz interessant.
 
A

Anonymous

Gast
abgdf schrieb:
Wie soll das gehen? gcc ist der C-Compiler. Wenn die Henne (der Compiler) nicht da ist, kann sie auch kein Ei legen (nichts kompilieren).
Das Problem stellt sich hier nicht, hier kann auch eine Taube das erste Hühnerei legen. :schockiert:
Wohl fast jeder andere C-Compiler könnte aus dem GCC-Source einen erstmal einfache aber funktioniere GCC-Binaries erstellen, mit denen sich dann GCC in mehreren Schritten komplett und mit voller Komplexität GCC combilieren lässt. Also über einen Hilfscompiler im ersten Schritt der längst nicht die Komplexität von GCC haben muss, kann sich GCC also quasi anschließend selbst kompilieren. (hier wird wohl einfach eine andere GCC-Version genommen, denn es ist ja schon ein Linux als Grundlage vorhanden)
Ich hab von 25 Jahren auch mal mit sowas rumgespielt. Von DOS aus nur mit Netzanbindung (und ohne Hilfe weiterer Floppys oder CDs) Linux komplett auch dem Quellcode erstellen und installieren.


linuxnoob153 schrieb:
Nun Komme ich zu meinem Hauptproblem, was ich selbst durch Recherche im Internet bisher nicht lösen konnte...

Ich bin aktuell dabei, gcc zu kompilieren, damit ich mit dem nächsten Schritt weitermachen kann.

Aktuelles System worüber ich auf eine Partition LFS installieren möchte ist Ubuntu 20.04.3 LTS.

Laut Anleitung muss ich folgenden Befehl eingeben:
Code:
./configure --target=$LFS_TGT --prefix=$LFS/tools --with-glibc-version=2.11 --with-sysroot=$LFS --with-newlib --without-headers --enable-initfini-array --disable-nls --disable-shared --disable-multilib --disable-decimal-float --disable-threads --disable-libatomic --disable-libgomp --disable-libquadmath --disable-libssp --disable-libvtv --disable-libstdcxx --enable-languages=c,c++
was auch funktioniert, da er mir die Make datei erstellt.

Nachdem ich den befehl make aber ausführe, compiliert er ziemlich lange um dann letztendlich mit einem Fehler aufzuhören:
Code:
configure: error: in ' /mnt/lfs/sources/gcc-11.2.0/host-x86_64-pc-linux-gnu/intl':
configure: error: C compiler cannot create executables
see config.log for more details
make [2] *** [Makefile:9127: configure-stage2-intl] Fehler 77
make[2] Verzeichnis  /mnt/lfs/sources/gcc-11.2.0 wird verlassen
make[1] *** [Makefile:23471: stage2-bubble] Fehler2
make[1] Verzeichnis /mnt/lfs/sources/gcc-11.2.0 wird verlassen
make: *** [Makefile:954: all] Fehler 2
Schwierig hier weiterzuhelfen, wenn man das nicht selbst vor sich hat. Der Fehler ist so erstmal nichtssagend und kann 100 Gründe haben. letzllich scheint eventuell irgendetwas nicht gefunden oder nicht in der richtigen Version gefunden zu werden, oder irgendwas nicht wirklich zusammenzupassen. (oftmals ist sowas cc1 oder der Linker aber auch fehlende oder falsch gesetzte Verzeichnisse aber auch Probleme mit Dateizugriffrechten zB. keine Schreibrechte auf eine Datei die überschriebenwerden soll) zeigen die gleiche oder ähnliche Auswirkungen.)
Es sind aber irgendetwas unerwartetes und ein generelles Probleme und nicht etwa irgend etwas im Code.

Das kann aber auf diese Weise nicht so einfach von außen erkannt werden kann, weil die Paths in der Configs und in den Makefiles in Variablen gesetzt und umgebogen sein können. Hier wird GCC wie ich oben schon erwähnt habe über mehrer Stufen sich letztlich selbt kompilieren. Es sind also in den einzelnen Stufen auch immer andere Path in Nutzung.

Letzlich hilft bei solchen Fehlern typischerweise
# make distclean, dann nochmal die Grundvoraussetzungen prüfen und die Doku noch mal lesen ob man auch alles beachtet hat und dann nochmal neu mit config anfangen.
# wenn wieder das selbe passiert, dann in das Verzeichnis gehen in dem das scheinbar hängen bleibt.
# in diesem Verzeichnis schauen was dort eventuell schon kompiliert worden ist.
# dort dann die Kompilerbefehle in der Makefile in diesem Verzeichnis gespächiger machen, damit man bei make in der Ausgabe den kompletten Befehl mit allen Parametern hat der hängen bleibt, und eventuell auch ein bischen mehr Info aus der Fehlermeldung.
Dazu braucht man aber in der Regel schon ein bischen Erfahrung, wenn man zum ersten mal mit Kompilierungsproblemen zu tun hat, kann es was sehr langwieriges werden,

# alternativ versuchen über die typischen LFS-Supportseiten Hilfe zu bekommen.

robi
 

susejunky

Moderator
Teammitglied
Hallo linuxnoob153,
linuxnoob153 schrieb:
... Ich habe mich dazu entschlossen, tiefer in Linux einzusteigen um das Bestmögliche zu lernen indem ich ein System von Grund auf aufbaue (Linux from Scratch).

Binutils habe ich bereits compilieren können und wird mir auch in meinem Tools Ordner angezeigt.

Nun Komme ich zu meinem Hauptproblem, was ich selbst durch Recherche im Internet bisher nicht lösen konnte...

Ich bin aktuell dabei, gcc zu kompilieren, damit ich mit dem nächsten Schritt weitermachen kann.

Aktuelles System worüber ich auf eine Partition LFS installieren möchte ist Ubuntu 20.04.3 LTS.

Laut Anleitung muss ich folgenden Befehl eingeben:
Code:
./configure --target=$LFS_TGT --prefix=$LFS/tools --with-glibc-version=2.11 --with-sysroot=$LFS --with-newlib --without-headers --enable-initfini-array --disable-nls --disable-shared --disable-multilib --disable-decimal-float --disable-threads --disable-libatomic --disable-libgomp --disable-libquadmath --disable-libssp --disable-libvtv --disable-libstdcxx --enable-languages=c,c++
was auch funktioniert, da er mir die Make datei erstellt.

Nachdem ich den befehl make aber ausführe, compiliert er ziemlich lange um dann letztendlich mit einem Fehler aufzuhören:
Code:
configure: error: in ' /mnt/lfs/sources/gcc-11.2.0/host-x86_64-pc-linux-gnu/intl':
configure: error: C compiler cannot create executables
see config.log for more details
make [2] *** [Makefile:9127: configure-stage2-intl] Fehler 77
make[2] Verzeichnis  /mnt/lfs/sources/gcc-11.2.0 wird verlassen
make[1] *** [Makefile:23471: stage2-bubble] Fehler2
make[1] Verzeichnis /mnt/lfs/sources/gcc-11.2.0 wird verlassen
make: *** [Makefile:954: all] Fehler 2
da hast Du Dir wirklich Großes vorgenommen! Alle Achtung!

Ich kann Dir dabei nicht gezielt weiterhelfen, aber oft sind es ja die einfachen Dinge, die schief laufen; daher:

Hast Du schon geprüft, ob der Compiler auch die erforderlichen Zugriffsrechte für das Verzeichnis hat, in dem er das "executable" erstellen will?

Viele Grüße

susejunky
 

susejunky

Moderator
Teammitglied
abgdf schrieb:
... Wie soll das gehen? gcc ist der C-Compiler. Wenn die Henne (der Compiler) nicht da ist, kann sie auch kein Ei legen (nichts kompilieren).
Zur Information:

https://de.wikipedia.org/wiki/GNU_Compiler_Collection schrieb:
... Ursprünglich wurden die meisten Bestandteile der GCC in C geschrieben. Im Rahmen des Vorhabens „GCC in Cxx“[9] wurde 2010 die Umstellungen der gcc-Quellen auf C++ geplant und begonnen. Ziel dieser Umstellung ist, die GCC verständlich und wartbar zu halten. Im Nachfolgeprojekt[10] wurde auch die noch fehlende Stufe 1 des GCC-Bauprozesses auf C++-Code umgestellt.[11] Ausnahmen sind Backends, die in wesentlichen Teilen in RTL formuliert sind, sowie das Ada-Frontend, welches zum größten Teil in Ada geschrieben ist.

https://en.wikipedia.org/wiki/GNU_Compiler_Collection schrieb:
... GCC was written primarily in C except for parts of the Ada front end. The distribution includes the standard libraries for Ada and C++ whose code is mostly written in those languages.[46] On some platforms, the distribution also includes a low-level runtime library, libgcc, written in a combination of machine-independent C and processor-specific machine code, designed primarily to handle arithmetic operations that the target processor cannot perform directly.[47]

GCC uses many standard tools in its build, including Perl,[further explanation needed] Flex, Bison, and other common tools. In addition, it currently requires three additional libraries to be present in order to build: GMP, MPC, and MPFR.[citation needed]

In May 2010, the GCC steering committee decided to allow use of a C++ compiler to compile GCC.[48] The compiler was intended to be written mostly in C plus a subset of features from C++. In particular, this was decided so that GCC's developers could use the destructors and generics features of C++.[49]

In August 2012, the GCC steering committee announced that GCC now uses C++ as its implementation language.[50] This means that to build GCC from sources, a C++ compiler is required that understands ISO/IEC C++03 standard.

On May 18, 2020, GCC moved away from ISO/IEC C++03 standard to ISO/IEC C++11 standard (i.e. needed to compile, bootstrap, the compiler itself; by default it however compiles later versions of C++)

Viele Grüße

susejunky
 

abgdf

Guru
marce schrieb:
... oh, da hat jemand echte Kompetenz in dem Thema...
Ich schrub dies, weil seine Fehlermeldung war:
linuxnoob153 schrieb:
Laut Anleitung muss ich folgenden Befehl eingeben:
Code:
./configure ...
Nachdem ich den befehl make aber ausführe, compiliert er ziemlich lange um dann letztendlich mit einem Fehler aufzuhören:
Code:
configure: error: in ' /mnt/lfs/sources/gcc-11.2.0/host-x86_64-pc-linux-gnu/intl':
configure: error: C compiler cannot create executables
see config.log for more details
Er hat also "./configure" ausgeführt, dann "make", und der Fehler war
Code:
error: C compiler cannot create executables
Das sieht doch für mich so aus, daß der Compiler nicht da ist oder aber, wenn er ziemlich lange rumcompiliert hat, vielleicht doch da ist, aber nicht funktioniert. Dem müßte man also nachgehen. Was ist das für ein Compiler (wenn nicht gcc, der ja gerade erst gebaut werden soll), und funktioniert er auch?
 

susejunky

Moderator
Teammitglied
Hallo abgdf,
abgdf schrieb:
... Das sieht doch für mich so aus, daß der Compiler nicht da ist oder aber, wenn er ziemlich lange rumcompiliert hat, vielleicht doch da ist, aber nicht funktioniert. Dem müßte man also nachgehen. Was ist das für ein Compiler (wenn nicht gcc, der ja gerade erst gebaut werden soll), und funktioniert er auch?


Ich bin weit davon entfernt ein Experte zu sein, aber


linuxnoob153 schrieb:
... Hier die Config.log:
Code:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.69.  Invocation command line was
...
configure:4165: checking for gcc
configure:4181: found /usr/bin/gcc
configure:4192: result: gcc
configure:4421: checking for C compiler version
configure:4430: gcc --version >&5
gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Copyright (C) 2019 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:4461: checking whether the C compiler works
configure:4483: gcc    conftest.c  >&5
configure:4487: $? = 0
configure:4535: result: yes
configure:4538: checking for C compiler default output file name
configure:4540: result: a.out
configure:4546: checking for suffix of executables
configure:4553: gcc -o conftest    conftest.c  >&5
configure:4557: $? = 0
configure:4579: result: 
configure:4601: checking whether we are cross compiling
configure:4609: gcc -o conftest    conftest.c  >&5
configure:4613: $? = 0
configure:4620: ./conftest
configure:4624: $? = 0
configure:4612: result: no
configure:4617: checking for suffix of object files
configure:4639: gcc -c   conftest.c >&5
configure:4643: $? = 0
configure:4664: result: o
configure:4668: checking whether we are using the GNU C compiler
configure:4687: gcc -c   conftest.c >&5
configure:4687: $? = 0
configure:4696: result: yes
configure:4705: checking whether gcc accepts -g
configure:4725: gcc -c -g  conftest.c >&5
configure:4725: $? = 0
configure:4766: result: yes
configure:4783: checking for gcc option to accept ISO C89
configure:4846: gcc  -c -g -O2  conftest.c >&5
configure:4846: $? = 0
configure:4859: result: none needed

configure:4937: checking for g++
configure:4953: found /usr/bin/g++
configure:4964: result: g++
configure:4991: checking for C++ compiler version
configure:5000: g++ --version >&5
g++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Copyright (C) 2019 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:5015: checking whether we are using the GNU C++ compiler
configure:5034: g++ -c   conftest.cpp >&5
configure:5034: $? = 0
configure:5043: result: yes
configure:5052: checking whether g++ accepts -g
configure:5072: g++ -c -g  conftest.cpp >&5
configure:5072: $? = 0
configure:5113: result: yes
configure:5162: checking whether g++ accepts -static-libstdc++ -static-libgcc
configure:5179: g++ -o conftest -g -O2   -static-libstdc++ -static-libgcc conftest.cpp  >&5
configure:5179: $? = 0
configure:5180: result: yes
configure:5244: checking for gnatbind
configure:5274: result: no
configure:5336: checking for gnatmake
configure:5366: result: no
configure:5385: checking whether compiler driver understands Ada
configure:5408: result: no
configure:5417: checking how to compare bootstrapped objects
configure:5442: result: cmp --ignore-initial=16 $$f1 $$f2
configure:7501: checking for objdir
configure:7516: result: .libs
configure:8082: checking for isl 0.15 or later
configure:8095: gcc -o conftest -g -O2  -I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp -I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src -I$$s/mpc/src     -lisl -L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/mpfr/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/.libs -lmpc -lmpfr -lgmp conftest.c  -lisl -lgmp >&5

!!! !!! !!!
conftest.c:10:10: fatal error: isl/schedule.h: No such file or directory
   10 | #include <isl/schedule.h>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
configure:8095: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h.  */
| #include <isl/schedule.h>
| int
| main ()
| {
| isl_options_set_schedule_serialize_sccs (NULL, 0);
|   ;
|   return 0;
| }
!!! !!! !!!
...
configure: exit 0
lässt mich vermuten, dass OP den gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0 verwendet, um den gcc von LFS zu übersetzen. Und der Ubuntu-Compiler scheint vorhanden und grundsätzlich funktionstüchtig zu sein.

Ob allerdings die fehlende schedule.h problematisch ist, das kann ich nicht beurteilen. Der Exit-Code von 0 legt aber nahe, dass es sich dabei nicht um einen "Show-Stopper" handelt.

Aber vielleicht wissen Andere da mehr ...

Viele Grüße

susejunky
 
Ogottogott, LFS hab ich irgendwann mal in der Version 6 oder 7 gebaut, ist also schon ewig her...

@ abgdf,
die ganzen Voraussetzungen baust Du von einem schon laufenden System aus, egal ob installiert oder per Live-CD. Von daher kein Problem.

@ linuxnoob153,
die Config.log zeigt schon relativ früh einen Fehler der besagt "gcc: error: unrecognized command line option '-V'" und danach dann "gcc: fatal error: no input files". Und nun wird es sehr häßlich, denn Du müßtest jetzt im make-file nachgucken wo die Option "-V" verwendet wird. Mutmaßlich irgendwo zwischen Zeile 4430 und 4441, weil der nächste Fehler mit der zweiten Zeilennummer los geht. Da kannst Du dir dann einen Wolf suchen, bis Du alles gefunden hast. Hast Du Eines gefixt, werden sicherlich noch weitere Fehler hoch kommen.

Von daher, lösche den gesamten Schmutz den Du für gcc schon runtergeladen und gemacht hast und starte den gesamten Schritt komplett von vorne. Lies dir noch mal Kapitel 4 genau durch, da sollten beliebte Fehler beschrieben sein, evtl. findest Du dich da ja wieder. Geh geistig noch mal alle vorherigen Schritte durch und prüfe ob da möglicherweise schon etwas nicht ganz so lief wie es laut Anleitung laufen sollte.

Ich habe damals auch einmal den gesamten Kram in die Tonne getreten und komplett von Vorne angefangen weil ich irgendwo in einem der ersten Schritte einen Fehler gemacht hatte.

Letztlich fand ich den ganzen Zauber nicht wirklich lehrreich, weil es bei mir sehr schnell nur auf ein reines copy'n'paste hinauslief. Und als ich im zweiten Teil BLTFS dann mit dem grafischen System nicht klar kam wegen irgendwas grundlegendem mit vesa-Buffer und meiner nvidia-Karte und meinem Monitor, hab ich das dann an den Nagel gehängt.
 
OP
L

linuxnoob153

Newbie
Guten Abend zusammen und ersteinmal vielen Dank für die vielen Antworten.

Ich konnte das Problem nach stundenlanger Durchforstung der Config.logs und Makefile sehen, dass er alles im Source Ordner (GCC) Compilieren wollte, was eigentlich in einem Ordner namens Build hätte passieren müssen. Ich habe den Kompletten GCC Ordner gelöscht und neu entpackt, Build ordner neu Erstellt und habe die Conpilierung neu gestartet und siehe da, es hat endlich geklappt und ich bin einen großen Schritt nach vorne gekommen.

Das Thema kann geschlossen werden und nochmals vielen Dank an alle beteiligten hier die mir die Richtigen Ansätze vermittelt haben.

Liebe Grüße
Linuxnoob
 

gehrke

Administrator
Teammitglied
Glückwunsch zum Erfolg!

Schließen: https://linux-club.de/forum/viewtopic.php?f=89&t=120397&sid=14d7c59a7a8e2216ed958a63dfa56ea3
 
Oben