linux-from-scratch

uint64_t or int64_t not found error when compiling gcc-7.3.0

和自甴很熟 提交于 2021-01-27 12:50:42
问题 I am building my own linux system from scratch. As I am a beginner I don't know much about the error, and I've tried some ways, but still I am unable to solve this. I came across a step to compile gcc. The command I used to compile is CC=$LFS_TGT-gcc \ CXX=$LFS_TGT-g++\ AR=$LFS_TGT-ar \ RANLIB=$LFS_TGT-ranlib \ ../gcc-7.3.0/configure \ --prefix=/tools \ --with-local-prefix=/tools \ --with-native-system-header-dir=/tools/include \ --enable-languages=c,c++ \ --disable-libstdcxx-pch \ --disable

Gcc compilation “cannot compute suffix of object files: cannot compile”

走远了吗. 提交于 2020-11-30 04:08:09
问题 I'm actually reading the LFS book (version 7.1) and I'm blocked at page 53. Trying to compile gcc, I tried the following command: ./configure --target=$LFS_TGT --prefix=$LFS/build/gcc-build --disable-nls\ --disable-shared --disable-multilib --disable-decimal-float --disable-threads\ --disable-libmudflap --disable-libssp --disable-libgomp --disable-libquadmath\ --disable-target-libiberty --disable-target-zlib\ --enable-languages=c\ --without-ppl --without-cloog\ --with-mpfr-include=$LFS/source

why multiple passes for building Linux From Scratch (LFS)?

送分小仙女□ 提交于 2020-01-01 09:01:08
问题 I am trying to understand the concept of Linux From Scratch and would like to know why there are multiple passes for building binutils , gcc etc. Why do we need pass1 and pass2 separately? Why can't we build the tools in pass 1 and then use them to build gcc , glibc , libstdc++ , etc. 回答1: The goal is to ensure that your build is consistent, no matter which compiler you're using to compile your compiler (and thus which bugs that compiler has). Let's say you're building gcc 4.1 with gcc 3.2 (I

Building LFS: Segmentation fault with make on a graphical shell

匆匆过客 提交于 2019-12-24 08:46:46
问题 I'm building a LFS system following the steps from the book (version 7.6, though I think the problem is not related to a specific version). After building the toolchain (chapter 5) now I'm into building the system proper (chapter 6). But here's the thing: when I try to build any package from a graphical shell (in my case LXTerminal from the Lubuntu desktop environment) I can unpack the sources and configure the build with ./configure, but on issuing the 'make' command I get a Segmentation

How to use OpenGL without a window manager in Linux?

眉间皱痕 提交于 2019-12-22 09:24:41
问题 I've just finished the LFS book and my Linux system is working right now. I want to use OpenGL to display graphics on the screen, while the only installed package right now are those described on http://www.linuxfromscratch.org/lfs/view/stable/chapter03/packages.html. I don't want to install something like Gnome, KDE or X.org. Instead, I want to use OpenGL directly from my software. Is this possible, and how can I do this? Or is it just as easy (I don't think so :'p) as writing an OpenGL

How to use OpenGL without a window manager in Linux?

♀尐吖头ヾ 提交于 2019-12-22 09:23:56
问题 I've just finished the LFS book and my Linux system is working right now. I want to use OpenGL to display graphics on the screen, while the only installed package right now are those described on http://www.linuxfromscratch.org/lfs/view/stable/chapter03/packages.html. I don't want to install something like Gnome, KDE or X.org. Instead, I want to use OpenGL directly from my software. Is this possible, and how can I do this? Or is it just as easy (I don't think so :'p) as writing an OpenGL

LFS 7.2 glibc-2.16.0 make error

∥☆過路亽.° 提交于 2019-12-13 21:53:23
问题 I'm building an LFS system ( refering to LFS 7.2 ) I got this make error while building glibc-2.16.0: /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/bin/ld: cannot find -lgcc_s collect2: error: ld returned 1 exit status make[2]: *** [/mnt/lfs/sources/glibc-build/iconv/iconvconfig] Error 1 make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.16.0/iconv' make[1]: *** [iconv/others] Error 2 make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.16.0' make: **

error while using make to compile Glibc-2.11.1 for Linux From Scratch

↘锁芯ラ 提交于 2019-12-10 12:48:06
问题 I am building LFS and I am in the part where we need to install Glibc-2.11.1 http://www.linuxfromscratch.org/lfs/view/6.6/chapter05/glibc.html I have successfully configured it but I cant run the make command. Whenever I run the command it runs for a while then stops. I think the following lines show that something I did is incorrect: mawk: scripts/gen-sorted.awk: line 19: regular expression compile failed (bad class -- [], [^] or [) /[^ mawk: scripts/gen-sorted.awk: line 19: syntax error at

What is the difference between _LARGEFILE_SOURCE and _FILE_OFFSET_BITS=64?

不问归期 提交于 2019-12-09 04:20:19
问题 I understand that -D_FILE_OFFSET_BITS=64 causes off_t to be 64bits. So what does -D_LARGEFILE_SOURCE do that isn't already done by -D_FILE_OFFSET_BITS=64 ? What do these definitions do exactly? 回答1: The GLIBC Feature test macros documentation states: _LARGEFILE_SOURCE If this macro is defined some extra functions are available which rectify a few shortcomings in all previous standards. Specifically, the functions fseeko and ftello are available. Without these functions the difference between