All Questions
Tagged with linux-from-scratch c
9
questions
21
votes
3
answers
14k
views
What is the difference between _LARGEFILE_SOURCE and _FILE_OFFSET_BITS=64?
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?
3
votes
2
answers
5k
views
C compiler cannot create executables when trying to build Binutils
I am trying to build Linux From Scratch, and now I am at chapter 5.4, which tells me how to build Binutils. I have binutils 2.20's source code, but when I try to build it:
time { ./binutils-2.20/...
3
votes
1
answer
5k
views
uint64_t or int64_t not found error when compiling gcc-7.3.0
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 ...
1
vote
3
answers
458
views
Failed sanity check at LFS 5.7.Glibc-2.29
I want to cross-compile LFS on CentOS v. 7.6.1810 with no sudo rights (I want to customize my environment on server). One problem is that globally a lot of packages are outdated (for instance, python ...
0
votes
1
answer
213
views
gcc compiles ELF file with wrong search list
After compiling gcc and using it to compile a simple c program:
echo 'int main(){}' > dummy.c
cc dummy.c -v -Wl,--verbose &> dummy.log
grep -B4 '^ /usr/include' dummy.log
the result is:
...
0
votes
1
answer
975
views
Cross Compiling GLIBC fro x86_64 from aarch64 Missing asm/prctl.h
I'm Attempting to do Linux From Scratch on aarch64 compiling for amd64, Everything is going smooth until I got this error running make -j1 for GLIBC Chapter 5.5
I've tried everything and I couldn't ...
0
votes
1
answer
199
views
error: invalid initializer va_list ap2 = va_arg(ap, va_list);
I'm currently in chroot building LFS. I was trying to compile a legacy project called install-log but I get this error:
(lfs chroot) root:/src/install-log# make install
cc -MMD -c -o list.o list.c
In ...
0
votes
0
answers
1k
views
Error concerning an " undefined reference to `__dso_handle' " when complinging Glibc
I am working on a Linux from Scratch system for the first time.
Background Info:
Book version - 10.1
Host distrobution - EndeavorOS
Problem occurs in step 5.5.1 https://www.linuxfromscratch.org/lfs/...
0
votes
1
answer
479
views
Issue while compiling gcc-5.2.0
I am trying to build my own lfs system for Raspberry PI 2.
As a part of it I am trying to compile gcc on Raspberry PI 2, with raspbian as a base operating system.
I could build the binutils using ...