[haiku-development] Re: GSoC 2020

  • From: Suhel Mehta <mehtasuhel@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 12 Mar 2020 00:28:23 +0530

On Mon, Mar 2, 2020 at 11:39 PM Adrien Destugues
<pulkomandy@xxxxxxxxxxxxx> wrote:


I have compiled Haiku and I am running it on my virtual machine.
I want to work on UFS2 file system.

Ok, in that case the first step will be to create some directories and 
Jamfiles in Haiku
to add the new filesystem to it. You can look at 
https://review.haiku-os.org/c/haiku/+/2096
as a reference, it recently added similar things for the XFS filesystem.

The idea is to get an "fs_shell" running. This is an application that will 
run the filesystem
code in a controlled environment and allow to run specific parts of the code 
through a command
line interface, with the availability of an user-space debugger. It makes it 
a lot simpler to
test the filesystem code.

I have added code in ufs2 directory and made files similar to the the
above commit. Then I ran command
jam -q "ufs2_shell" in src/tests/add-ons/kernel/file_systems/ufs2 and
it gave me output

No `BuildConfig' found in ../../../../../generated/build!
Run ./configure in the source tree's root directory first!

Then I ran jam command in generated.x86_64 and it gave me haiku.image
file. Now when I run jam -q "ufs2" it gives error
Starting build of type regular ...
...patience...
don't know how to make <src!add-ons!kernel!file_systems!ufs2>kernel_cpp.cpp
...found 9782 target(s)...
...updating 1 target(s)...
...can't find 1 target(s)...
...can't make 2 target(s)...
C++ 
objects/haiku/x86_64/release/add-ons/kernel/file_systems/ufs2/kernel_interface.o
../src/add-ons/kernel/file_systems/ufs2/kernel_interface.cpp:1:10:
fatal error: system_dependencies.h: No such file or directory
 #include "system_dependencies.h"
          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

/home/chintu/Documents/haiku/haiku/generated.x86_64/cross-tools-x86_64/bin/x86_64-unknown-haiku-gcc
-c "../src/add-ons/kernel/file_systems/ufs2/kernel_interface.cpp" -O2
-Wall -Wno-multichar -Wpointer-arith -Wsign-compare
-Wno-ctor-dtor-privacy -Woverloaded-virtual -DUFS2_DEBUGGER_COMMANDS
-fno-strict-aliasing -fno-delete-null-pointer-checks -fno-builtin-fork
-fno-builtin-vfork -nostdinc -finline -fno-builtin -ffreestanding
-fno-exceptions -fno-use-cxa-atexit -mno-red-zone
-fno-omit-frame-pointer -DDEBUG_APP=\"ufs2\" -D_KERNEL_MODE
-DARCH_x86_64 -DBOOT_ARCHIVE_IMAGE_OFFSET=320
-D__HAIKU_PRIMARY_PACKAGING_ARCH=\"x86_64\"
-DHAIKU_DISTRO_COMPATIBILITY_DEFAULT -DHAIKU_TARGET_PLATFORM_HAIKU
-DHAIKU_REGULAR_BUILD -iquote ../build/user_config_headers -iquote
../build/config_headers -iquote
../src/add-ons/kernel/file_systems/ufs2 -iquote
objects/common/add-ons/kernel/file_systems/ufs2 -iquote
objects/linux/x86_64/common/add-ons/kernel/file_systems/ufs2 -iquote
objects/haiku/x86_64/common/add-ons/kernel/file_systems/ufs2 -I
../headers/private/kernel/util -I ../headers/private/shared -I
../headers/private/storage -I ../headers/private/file_systems -I
../headers/private/. -I ../headers/private/kernel -I
../headers/private/libroot -I ../headers/private/shared -I
../headers/private/kernel/boot/platform/bios_ia32 -I
../headers/private/kernel/arch/x86 -I
objects/haiku/x86_64/common/system/kernel -I ../headers/private/. -I
../headers/private/system -I ../headers/private/system/arch/x86_64 -I
../src/libs/uuid -I
build_packages/gcc_syslibs_devel-8.3.0_2019_05_24-7-x86_64/develop/headers/c++
-I 
build_packages/gcc_syslibs_devel-8.3.0_2019_05_24-7-x86_64/develop/headers/c++/x86_64-unknown-haiku
-I 
build_packages/gcc_syslibs_devel-8.3.0_2019_05_24-7-x86_64/develop/headers/c++/backward
-I 
build_packages/gcc_syslibs_devel-8.3.0_2019_05_24-7-x86_64/develop/headers/c++/ext
-I ../headers/glibc -I ../headers/posix -I
build_packages/gcc_syslibs_devel-8.3.0_2019_05_24-7-x86_64/develop/headers/gcc/include
-I 
build_packages/gcc_syslibs_devel-8.3.0_2019_05_24-7-x86_64/develop/headers/gcc/include-fixed
-I ../headers -I ../headers/os -I ../headers/os/add-ons -I
../headers/os/add-ons/file_system -I ../headers/os/add-ons/graphics -I
../headers/os/add-ons/input_server -I ../headers/os/add-ons/registrar
-I ../headers/os/add-ons/screen_saver -I ../headers/os/add-ons/tracker
-I ../headers/os/app -I ../headers/os/device -I ../headers/os/drivers
-I ../headers/os/game -I ../headers/os/interface -I
../headers/os/kernel -I ../headers/os/locale -I ../headers/os/media -I
../headers/os/mail -I ../headers/os/midi -I ../headers/os/midi2 -I
../headers/os/net -I ../headers/os/storage -I ../headers/os/support -I
../headers/os/translation -I ../headers/private/. -o
"objects/haiku/x86_64/release/add-ons/kernel/file_systems/ufs2/kernel_interface.o"

...failed C++ 
objects/haiku/x86_64/release/add-ons/kernel/file_systems/ufs2/kernel_interface.o
...

BUILD FAILURE:
...failed updating 1 target(s)...
...skipped 2 target(s)...

Where are the things going wrong?

-- 
Suhel Mehta
https://github.com/SuhelMehta9

Other related posts: