LFS(Linux From Scratch) 統合スレ 3 [無断転載禁止]©2ch.net
現行での最新版は7.10です。
本家
http://www.linuxfromscratch.org/
日本語参考
http://www.green.ne.jp/JF/LFS-BOOK.html (JFの日本語訳です。5.0なので注意)
http://www.atmarkit.co.jp/flinux/index/indexfiles/lfsindex.html (@ITの記事です。3.3なので注意)
http://lfsbookja.osdn.jp/7.10/(Version 7.10日本語訳)
LFS(Linux From Scratch) 統合スレ 1
http://pc8.2ch.net/test/read.cgi/linux/1019828587/
LFS(Linux From Scratch) 統合スレ 2
http://hayabusa6.2ch.net/test/read.cgi/linux/1155412397/
今はLiveCDやら自動化のシェルスクリプトなど便利なものがあるみたいですが、
本質的に理解したい人や初めての人は全て手動でやる事を進めます。
基本的に分からない事やトラブルに関しての質問をする時は気を付けましょう。
なるべく抽象的な表現は避け、具体的な事象を元に理論立てて相手に分かりやすいように
質問される側の立場に立って質問してください。 gcc-14
$ make -f unix/Makefile generic_gcc
> zip.c
>In file included from zip.c:16:
>zip.h:726:10: error: conflicting types for 'memset'; have 'char *(char *, int, unsigned int)'
> 726 | char *memset OF((char *, int, unsigned int));
> | ^~~~~~ >>121
gentoo
zip-3.0-clang-15-configure-tests.patch
で通る。
gcc-14 だと
unix/configure
の結果、
-DZMEM なんかが flag に立つのが原因
それ以上追求してない ghostscript
https://bugs.ghostscript.com/show_bug.cgi?id=707649
これで通る
diff --git a/pdf/pdf_sec.c b/pdf/pdf_sec.c
index 565ae80ca..7e8f6719d 100644
--- a/pdf/pdf_sec.c
+++ b/pdf/pdf_sec.c
@@ -183,8 +183,8 @@ static int apply_sasl(pdf_context *ctx, char *Password, int Len, char **NewPassw
* this easy: the errors we want to ignore are the ones with
* codes less than 100. */
if ((int)err < 100) {
- NewPassword = Password;
- NewLen = Len;
+ *NewPassword = Password;
+ *NewLen = Len;
return 0;
} gtk+2
ttps://gitweb.gentoo.org/repo/gentoo.git/plain/x11-libs/gtk+/files/gtk+-2.24.33-Fix-casts.patch >>121
>Certain warnings are now errors
>Implicit function declarations (-Werror=implicit-function-declaration)
gcc-14の変更で、以前は warning だったのが error 吐いて止まるんだね
conftest.c
int main(){ char k; memset(&k,0,0); return 0; }
これだと落ちる
#include <string.h>
int main(){ char k; memset(&k,0,0); return 0; }
これだと通る あかん…
xorg-server + tearfree_backport-1.patch
../hw/xfree86/drivers/modesetting/dri2.c: In function 'ms_dri2_schedule_flip':
../hw/xfree86/drivers/modesetting/dri2.c:498:36: error: passing argument 4 of 'ms_do_pageflip' makes pointer from integer without a cast [-Wint-conversion] あかん…
libcddb-1.3.2
cddb_net.c: In function 'timeout_connect':
cddb_net.c:328:63: error: passing argument 5 of 'getsockopt' from incompatible pointer type [-Wincompatible-pointer-types]