Hello!
I am trying to build the unicorn cpu emulator with "goa"... Shared build bails out completely. Static seems to work , but I need a static libm.
I tried to build one , setting SHARED_LIB=no, but it didn't work.
Is it possible to get a static libm?
Michael
On Sun, 15 Jan 2023 at 21:15, Michael Grunditz michael.grunditz@gmail.com wrote:
Hello!
I am trying to build the unicorn cpu emulator with "goa"... Shared build bails out completely. Static seems to work , but I need a static libm.
I tried to build one , setting SHARED_LIB=no, but it didn't work.
Is it possible to get a static libm?
Turns out share build was user error .. somehow the link.txt gets multiple copies of .a files. However the link of libunciorn.so fails with undefined symbol main (from libposix.lib.so)
Is it possible to build libraries at all? It would be a lot easier if I could build everything static.
Michael
Hello Michael
On 1/15/23 21:46, Michael Grunditz wrote:
Turns out share build was user error .. somehow the link.txt gets multiple copies of .a files. However the link of libunciorn.so fails with undefined symbol main (from libposix.lib.so)
Is it possible to build libraries at all?
Building libraries isn't supported in the upstream Goa tool from Norman.
I'm currently working on this and a draft that can build libraries when the build system is `cmake` can be found at [1]. Other build systems aren't tested, as I did not have any libraries to test with.
This is still work in progress, as Norman did not review my changes yet. There is a mailing list thread about this in [2].
[1] https://github.com/trimpim/goa/tree/library_support [2] https://lists.genode.org/pipermail/users/2022-November/008094.html
Regards, Pirmin
On Mon, 16 Jan 2023 at 00:03, Pirmin Duss pirmin.duss@gapfruit.com wrote:
Hello Michael
On 1/15/23 21:46, Michael Grunditz wrote:
Turns out share build was user error .. somehow the link.txt gets multiple copies of .a files. However the link of libunciorn.so fails with undefined symbol main (from libposix.lib.so)
Is it possible to build libraries at all?
Building libraries isn't supported in the upstream Goa tool from Norman.
I'm currently working on this and a draft that can build libraries when the build system is `cmake` can be found at [1]. Other build systems aren't tested, as I did not have any libraries to test with.
This is still work in progress, as Norman did not review my changes yet. There is a mailing list thread about this in [2].
[1] https://github.com/trimpim/goa/tree/library_support [2] https://lists.genode.org/pipermail/users/2022-November/008094.html
Thanks will have a look!
On Sun, 15 Jan 2023 at 21:46, Michael Grunditz michael.grunditz@gmail.com wrote:
On Sun, 15 Jan 2023 at 21:15, Michael Grunditz michael.grunditz@gmail.com wrote:
Hello!
I am trying to build the unicorn cpu emulator with "goa"... Shared build bails out completely. Static seems to work , but I need a static libm.
I tried to build one , setting SHARED_LIB=no, but it didn't work.
Is it possible to get a static libm?
Turns out share build was user error .. somehow the link.txt gets multiple copies of .a files. However the link of libunciorn.so fails with undefined symbol main (from libposix.lib.so)
Is it possible to build libraries at all? It would be a lot easier if I could build everything static.
I built it with the program , and I got the binary that can start. But it starts with following error (on screen) Error: no plugin found for fstat(1)