[oi-dev] Porting of the Epiphany Browser

Hung Nguyen Gia gh_origin at zohomail.com
Mon Jan 11 07:52:48 UTC 2021


Maybe I just wasted my time your time, too, with this stupid GNOME sh8t.

Just tried to compile it with clang-90 and it failed, again. Having to edit meson.build to commenting out flags again.

They can't even make their software compile cleanly without having to turn off error checking flags.

Or these morons just paranoid and turned every fuckin flags on when in fact they should not be considered as errors?

It seemed they hard coded the compiler and linker commands, too. Environment variables can't overwrite this.

Regardless of everything, it stills invoke the incorrect command to link. Even if I use the make file you wanted to give me that integrated with your oi-userland stuffs, I think so.

That sh8t will not compile if we do not patch these fuckin meson build scripts ourselves.

I hate this meson sh8t. They intended to replace cmake, another sh8t, that only to be another PoS.

Maybe their Pythonic syntax you are already familiar with you could deal easier than me.

I give up on this sh8t altogether.


---- On Sun, 10 Jan 2021 12:47:50 +0700 Hung Nguyen Gia via oi-dev <oi-dev at openindiana.org> wrote ----

 > I guest I figured out how to make libdazzle compiles, but I fails at the linking stage. Not related to the Solaris patch, though. That patch doesn't help. 
 >  
 > Let me describe the problems in details: 
 >  
 > libdazzle fails to compile because of a compiler flag. With this flag on, it will fail with this error: https://pastebin.com/bqnZUUrN 
 >  
 > We have to edit meson.build and comment out '-Werror=incompatible-pointer-types', from test_c_args like this: https://pastebin.com/DWbE4xSE 
 >  
 > The it will build happily. But will suddenly fail because the system was hard coded to use gcc-7! 
 >  
 > See this: https://pastebin.com/8K4XR7fv 
 >  
 > After installing gcc-7 with pkg, gcc-7 replaced gcc-10 as the default compiler. We now could get over this. 
 >  
 > But again, it suddenly fails because it can't execute 'cc'. Unlike other Unix system, OpenIndiana doesn't have the binary 'cc' available by default. 
 >  
 > This, too, caused many minor but annoying problems when porting software. A simple symbolic link solved this: 
 >  
 > sudo ln -s /usr/bin/gcc /usr/bin/cc 
 >  
 > I wonder why this symlink doesn't created by default? This would save the porters from many troubles! 
 >  
 > So finally, the command is this: 
 >  
 > CC='cc -m64' meson .. 
 >  
 > ninja --verbose 
 >  
 > The compilation fine, but the final linking stage fails, because of: 
 >  
 > ld: fatal: file /export/home/giahung/Downloads/libdazzle-3.38.0/build/tmp-introspect2wjcgx9j/Dazzle-1.0.o: wrong ELF class: ELFCLASS64 
 > ld: fatal: file processing errors. No output written to /export/home/giahung/Downloads/libdazzle-3.38.0/build/tmp-introspect2wjcgx9j/Dazzle-1.0 
 > collect2: error: ld returned 1 exit status 
 >  
 > See here for more detail: https://pastebin.com/Uvm62jNm 
 >  
 > That same old misery on any Illumos based system! Now, OI developers, this is you have to deal with this to have libdazzle packaged in your repo. 
 >  
 > After that, I could continue with Epiphany itself. 
 >  
 > ---- On Sun, 10 Jan 2021 09:53:21 +0700 Hung Nguyen Gia via oi-dev <oi-dev at openindiana.org> wrote ---- 
 >  
 >  > More detail: 
 >  > 
 >  > Packages needed to install on OI: gcc-10 cmake ninja meson git pkg-config vala 
 >  > 
 >  > Environment variable to set: export PKG_CONFIG_PATH='/usr/lib/64/pkgconfig' 
 >  > 
 >  > We're doing a 64 bit build. I don't know why, but gobject-introspection is not available on/usr/lib/pkgconfig, so we forced to do a 64 bit build 
 >  > 
 >  > Get the latest 3.x release of them: 
 >  > 
 >  > https://gitlab.gnome.org/GNOME/epiphany 
 >  > 
 >  > https://gitlab.gnome.org/GNOME/libdazzle 
 >  > 
 >  > Follow the build instructions. 
 >  > 
 >  > mkdir build && cd build 
 >  > 
 >  > CC='gcc -m64' CXX='g++ -m64' meson .. 
 >  > 
 >  > ninja --verbose 
 >  > 
 >  > The error will be straight forward of you. 
 >  > 
 >  > It's a compilation error. So your patch of the linker part doesn't help. 
 >  > 
 >  > _______________________________________________ 
 >  > oi-dev mailing list 
 >  > oi-dev at openindiana.org 
 >  > https://openindiana.org/mailman/listinfo/oi-dev 
 >  > 
 >  
 > _______________________________________________ 
 > oi-dev mailing list 
 > oi-dev at openindiana.org 
 > https://openindiana.org/mailman/listinfo/oi-dev 
 > 



More information about the oi-dev mailing list