I got it to successfully link by adding some lines to the target.mk file (attached below). I then got some errors / warnings regarding the stdlib. I fixed that by appending CC_CXX_WARN_STRICT= to the make command.

However, I still cannot compile the program as I get an error that ld.lib.so is missing even though it is listed as a build dependency in my run file (see attached log file).

Rumen



From: Michael Grunditz <michael.grunditz@gmail.com>
Sent: Sunday, August 18, 2024 4:18 PM
To: Genode users mailing list <users@lists.genode.org>
Subject: Re: ext4.h not found
 
I see , thanks. 

sön 18 aug. 2024 kl. 18:09 skrev Rumen Mitov <Rumen.Mitov@constructor.tech>:
Hi Michael,

I want to use the ext4.h header to open files on the ext4 filesystem (i.e. with ext4_fopen) as I am reworking the snapshotting capability of the project I am working on. The hello world file was just a test to see if everything (primarily the run file) would compile successfully.

Rumen

From: Michael Grunditz <michael.grunditz@gmail.com>
Sent: Saturday, August 17, 2024 6:43 PM
To: Genode users mailing list <users@lists.genode.org>
Subject: Re: ext4.h not found
 



17 aug. 2024 kl. 19:43 skrev Michael Grunditz <michael.grunditz@gmail.com>:




16 aug. 2024 kl. 16:42 skrev Rumen Mitov <Rumen.Mitov@constructor.tech>:


Hello,

I want to test out lwext4, however when I try to compile it, I get an error that ext4.h was not found. I have attached my main.cc, target.mk and squid.run files below. The platform I am using is x86_64 linux. If anyone knows has any idea how to link the lwext4 library please let me know, as I could not find much information online.

Best,
Rumen



Not sure what you want to achieve. Accessing ext4 file systems? Probably a bad idea in Genode/Linux.

Michael 


Sorry didn’t read your run file. Looks fine even though, why include the header in a hello world file?


Michael
_______________________________________________
users mailing list -- users@lists.genode.org
To unsubscribe send an email to users-leave@lists.genode.org
Archived at https://lists.genode.org/mailman3/hyperkitty/list/users@lists.genode.org/message/KQPDMIL6B5QW2C77B4YC7ZC4TMKTNO2M/