[haiku-development] Re: Contributing to Haiku

  • From: Arshdeep Singh <arshdeep55singh@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 17 Oct 2020 14:35:58 +0530

On Thu, Oct 15, 2020 at 11:06 PM Adrien Destugues
<pulkomandy@xxxxxxxxxxxxx> wrote:



<snip>

There is currently no fs_shell for ext4. So you will need to add one.
The fs_shells for other filesystems are here: 
https://git.haiku-os.org/haiku/tree/src/tests/add-ons/kernel/file_systems

So i made Jamfile in /src/tests/add-ons/kernel/file_systems/ext2 and
another Jamfile in
/src/tests/add-ons/kernel/file_systems/ext2/ext2_shell directory by
reusing btrfs jamfile.
and then i tried to build it but got this error


Link /home/mehta/Arsh/generated/objects/linux/lib/libroot_build.so
Chmod1 /home/mehta/Arsh/generated/objects/linux/lib/libroot_build.so
Link 
objects/linux/x86_64/release/tests/add-ons/kernel/file_systems/ext2/ext2_shell/ext2_shell
                                  /usr/bin/ld: cannot find -luuid
collect2: error: ld returned 1 exit status

LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/mehta/Arsh/generated/objects/linux/lib"
../haiku/build/scripts/rm_attrs
objects/linux/x86_64/release/tools/rm_attrs -f
"objects/linux/x86_64/release/tests/add-ons/kernel/file_systems/ext2/ext2_shell/ext2_shell"
gcc -Xlinker --no-as-needed -Wl,--copy-dt-needed-entries -lm -ldl -lz
-lz -o 
"objects/linux/x86_64/release/tests/add-ons/kernel/file_systems/ext2/ext2_shell/ext2_shell"
   \
"objects/linux/x86_64/release/tests/add-ons/kernel/file_systems/ext2/ext2_shell/ext2.o"
"objects/linux/x86_64/release/tools/fs_shell/fs_shell.a"
"objects/linux/x86_64/release/build/libroot/libroot_build_function_remapper.a"
"/home/mehta/Arsh/generated/objects/linux/lib/libroot_build.so"
-lsupc++ -lstdc++ -luuid  \


...failed Link 
objects/linux/x86_64/release/tests/add-ons/kernel/file_systems/ext2/ext2_shell/ext2_shell
...

BUILD FAILURE:
...failed updating 1 target(s)...
...updated 62 target(s)...



You can look at xfs, ufs2 and btrfs which have an fs_shell there already. 
You'd need to add one for ext2 and then use Jam to build it.




-- 
Arshdeep Singh
https://github.com/arsh9806
https://www.hackerrank.com/arshdeep55singh
https://www.hackerearth.com/@arshdeep69

Other related posts: