Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Unable to build on Manjaro Linux x86_64: BaseException on first try. #86

@Folaht

Description

@Folaht

When I try make a second time, I get a different error.
See other issue.

BOARD = qemu
KERNEL = vmlinuz-virt
INITRD = initramfs-virt.gz
ROM = boards/qemu/qemu.rom
GenFfs.c: In the "GetAlignmentFromFile" function:
GenFfs.c:545:5: error: the "InFileHandle" pointer is used after "fclose" [-Werror=use-after-free]
  545 | Error(NULL, 0, 4001, "Resource", "memory cannot be allocated of %s", InFileHandle);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GenFfs.c:544:5: note: call "fclose" here
  544 | fclose (InFileHandle);
      | ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings are treated as errors
make[3]: *** [../Makefiles/footer.makefile:27: GenFfs.o] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions