Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Can`t build image+all packages. Need separate whole patch file for lede 17.0.4 (or better 18.06) #3

Open
euvdev opened this issue Jun 29, 2018 · 1 comment

Comments

@euvdev
Copy link

euvdev commented Jun 29, 2018

Hi!
Can you do separate whole patch file for lede 17.0.4 (or better 18.06) or write how fix issue?

In config I add 3 params in “Global Build Settings” section for build all packages:
“select all target specific packages by default”
“select all kernel module packages by default”
“select all userspace packages by default”

I`m try to build image+all packages on 17.0.4 version from sources by your instruction, but on step "make" got error compilation:
.......
make[2] toolchain/compile
make[3] -C toolchain/gdb compile
make -r world: build failed. Please re-run make with -j1 V=s to see what's going on
/home/ev/lede/openwrt/include/toplevel.mk:216: failed to perform the recipe for the target «world»
make: *** [world] Error 1

Im try re-run make with -j1 V=s, but I cant understand how to fix it.

@avoidik
Copy link

avoidik commented Jan 4, 2020

I know it's old, but here is the solution

cat << 'EOF' | tee tools/e2fsprogs/patches/006-glibc-conflict.patch
--- a/misc/create_inode.c
+++ b/misc/create_inode.c	
@@ -392,7 +392,7 @@ static ssize_t my_pread(int fd, void *buf, size_t count, off_t offset)
 }
 #endif /* !defined HAVE_PREAD64 && !defined HAVE_PREAD */

-static errcode_t copy_file_range(ext2_filsys fs, int fd, ext2_file_t e2_file,
+static errcode_t copy_file_chunk(ext2_filsys fs, int fd, ext2_file_t e2_file,
         off_t start, off_t end, char *buf,
         char *zerobuf)
 {
@@ -466,7 +466,7 @@ static errcode_t try_lseek_copy(ext2_filsys fs, int fd, struct stat *statbuf,

    data_blk = data & ~(fs->blocksize - 1);
    hole_blk = (hole + (fs->blocksize - 1)) & ~(fs->blocksize - 1);
-		err = copy_file_range(fs, fd, e2_file, data_blk, hole_blk, buf,
+		err = copy_file_chunk(fs, fd, e2_file, data_blk, hole_blk, buf,
              zerobuf);
    if (err)
      return err;
@@ -516,7 +516,7 @@ static errcode_t try_fiemap_copy(ext2_filsys fs, int fd, ext2_file_t e2_file,
    }
    for (i = 0, ext = ext_buf; i < fiemap_buf->fm_mapped_extents;
         i++, ext++) {
-			err = copy_file_range(fs, fd, e2_file, ext->fe_logical,
+			err = copy_file_chunk(fs, fd, e2_file, ext->fe_logical,
                ext->fe_logical + ext->fe_length,
                buf, zerobuf);
      if (err)
@@ -569,7 +569,7 @@ static errcode_t copy_file(ext2_filsys fs, int fd, struct stat *statbuf,
    goto out;
 #endif

-	err = copy_file_range(fs, fd, e2_file, 0, statbuf->st_size, buf,
+	err = copy_file_chunk(fs, fd, e2_file, 0, statbuf->st_size, buf,
            zerobuf);
 out:
  ext2fs_free_mem(&zerobuf);
EOF

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants