Jump to content
30960 posts in this topic

Recommended Posts

Hi @Slice

 

I've got a problem to build Clover latest commit: [CPP] kext_inject 

 

 

Spoiler

[CPP] kext_inject
/Users/mathieu/src/Cloverbootloader/rEFIt_UEFI/Platform/kext_patcher.cpp:1013:53: error: use of undeclared identifier 'i'
      if (!Entry->KernelAndKextPatches->KextPatches.StartPattern ||
                                                    ^
/Users/mathieu/src/Cloverbootloader/rEFIt_UEFI/Platform/kext_patcher.cpp:1014:53: error: use of undeclared identifier 'i'
          !Entry->KernelAndKextPatches->KextPatches.StartPatternLen) {
                                                    ^
2 errors generated.
make: *** [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/rEFIt_UEFI/refit/OUTPUT/Platform/kext_patcher.obj] Error 1


build.py...
 : error 7000: Failed to execute command
    make tbuild [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/rEFIt_UEFI/refit]


build.py...
 : error F002: Failed to build module
    /Users/mathieu/src/Cloverbootloader/rEFIt_UEFI/refit.inf [X64, XCODE8, RELEASE]

- Failed -
 

 

Edited by Matgen84
29 minutes ago, Matgen84 said:

Hi @Slice

 

I've got a problem to build Clover latest commit: [CPP] kext_inject 

 

 

  Reveal hidden contents

[CPP] kext_inject
/Users/mathieu/src/Cloverbootloader/rEFIt_UEFI/Platform/kext_patcher.cpp:1013:53: error: use of undeclared identifier 'i'
      if (!Entry->KernelAndKextPatches->KextPatches.StartPattern ||
                                                    ^
/Users/mathieu/src/Cloverbootloader/rEFIt_UEFI/Platform/kext_patcher.cpp:1014:53: error: use of undeclared identifier 'i'
          !Entry->KernelAndKextPatches->KextPatches.StartPatternLen) {
                                                    ^
2 errors generated.
make: *** [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/rEFIt_UEFI/refit/OUTPUT/Platform/kext_patcher.obj] Error 1


build.py...
 : error 7000: Failed to execute command
    make tbuild [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/rEFIt_UEFI/refit]


build.py...
 : error F002: Failed to build module
    /Users/mathieu/src/Cloverbootloader/rEFIt_UEFI/refit.inf [X64, XCODE8, RELEASE]

- Failed -
 

 

Corrected.

  • Thanks 1
15 hours ago, Pene said:

@Badruzeus

Can you confirm if this change produces you a working binary on your Linux?

(Really sorry for late reply)

I just built r5114 from latest commit under Debian 10 with GCC53, but on my test it still produces similar issue; once I see boot6 / boot7 I get Red Screen of Death immediately. It' s bit weird that last debug.log line printed about "Anime" while I use "Catalina" theme which contains no anime resource. Thanks.

CloverBuild-AOH-Deb10-042620.txt.zip

debug.log.crash-AOH.zip

I've refactored boot options as a XStringArray, which allow to get rid of AddLoadOption and RemoveLoadOption

If someone have the impression that something changed with the boot options, come to me :)

 

@Badruzeus and linux compiler : compilation under linux doesn't work yet See @Pene posts (https://www.insanelymac.com/forum/topic/341986-c-proposition/?page=29&tab=comments#comment-2719199). There is a unresolved problem with C++ static initialiser section. Will come soon (when I find the time !).

  • Like 1
  • Thanks 1

@Slice

Hi sorry to bother you again,

i've found a little glitch in graphics 

 

when selecting options menu, the first menu item, as per screenshots, shows indeed the icon

s3.png.e4b1a804be604e7f90a41bf6145daf7f.png

 

but when selecting a submenu the icons is gone...

s2.png.3723c8c2001c89d44332a1aef91d1625.png

 

and on others its half rendered

s1.png.36751dfcce9a79759485a1d6eeb1b1cb.png

 

Sorry can't give you more infos about it as i never noticed before

appeared on this release r5114 (2ccc95513))

 

 

curious thing is, this behaviour acts only for submeus.

 

 

Edited by LAbyOne
36 minutes ago, Jief_Machak said:

I've refactored boot options as a XStringArray, which allow to get rid of AddLoadOption and RemoveLoadOption

If someone have the impression that something changed with the boot options, come to me :)

 

@Badruzeus and linux compiler : compilation under linux doesn't work yet See @Pene posts (https://www.insanelymac.com/forum/topic/341986-c-proposition/?page=29&tab=comments#comment-2719199). There is a unresolved problem with C++ static initialiser section. Will come soon (when I find the time !).

 

Thanks for your effort @Jief_Machak 

 

I don't see "Clover Options" in GUI, only "Options". 

 

 

 

 

Capture d’écran 2020-04-26 à 15.48.46.png

4 hours ago, Badruzeus said:

(Really sorry for late reply)

I just built r5114 from latest commit under Debian 10 with GCC53, but on my test it still produces similar issue; once I see boot6 / boot7 I get Red Screen of Death immediately. It' s bit weird that last debug.log line printed about "Anime" while I use "Catalina" theme which contains no anime resource. Thanks.

CloverBuild-AOH-Deb10-042620.txt.zip

debug.log.crash-AOH.zip

Yes, as Jief said, you can try to make manually the change I describe in that post. It's not in master yet, as it is still in the works - but I wondered if the change I describe there solves the problem for you as well, it's really not complicated to do it manually and try.

Edited by Pene
  • Thanks 1
2 hours ago, LAbyOne said:

@Slice

Hi sorry to bother you again,

i've found a little glitch in graphics 

 

when selecting options menu, the first menu item, as per screenshots, shows indeed the icon

s3.png.e4b1a804be604e7f90a41bf6145daf7f.png

 

but when selecting a submenu the icons is gone...

s2.png.3723c8c2001c89d44332a1aef91d1625.png

 

and on others its half rendered

s1.png.36751dfcce9a79759485a1d6eeb1b1cb.png

 

Sorry can't give you more infos about it as i never noticed before

appeared on this release r5114 (2ccc95513))

 

I tried and I cannot reproduce that.

Did you try with a recent build? There are many issues fixed since r5114.

In any case, attach your theme and I'll take a look. And also specify which resolution you are using.

1 minute ago, Jief_Machak said:

@Pene You commit your work if you properly #ifdef'd in globals_ctor, it won't impact the others.

The change that makes it work is only in GccBase.lds, nothing changed in global_ctor. I think you might have missed my last post in the C++ thread :)

I can't see any problem with that.

And I think that it's common to create a section with one pointer for every static initialisation needed. Even Microsoft does it this way and god knows they like to be different.

I surprise that the init section is called init_array on linux and .ctors on mac with the same compiler, though.

Good job, thanks.

11 minutes ago, Jief_Machak said:

I can't see any problem with that.

And I think that it's common to create a section with one pointer for every static initialisation needed. Even Microsoft does it this way and god knows they like to be different.

I surprise that the init section is called init_array on linux and .ctors on mac with the same compiler, though.

Good job, thanks.

OK, committed.

@Badruzeus you can try now from master, no need to change anything.

  • Thanks 1
2 hours ago, Pene said:

 

I tried and I cannot reproduce that.

Did you try with a recent build? There are many issues fixed since r5114.

In any case, attach your theme and I'll take a look. And also specify which resolution you are using.

 

I'm running the latest commit from master.

Resolution is 1920x1080

It happen with all themes i tested. (on my repo) the one you see is Zhuyin, you can get it from within Clover.app

 

Thanks

2 hours ago, Pene said:

OK, committed.

@Badruzeus you can try now from master, no need to change anything.

Fantastic! It works as promised; built under Debian 10 with GCC53 then just booting fine w/o problem at all (and gotta bit smaller *.efi binaries from Linux as usual, actually about 24-32KB only LOL). Many thanks @Pene and 
@Jief_Machak , @Slice and Others.

 

Hi @vector sigma, there's no Option on 'buildme' script for removing previous (bad / obsolete) "Build" dir? I usually, beside clean BaseTools also do 'rm -rf Build' or... Plz correct me; is this step required? Thanks.

 

debug.log_r5114_cppfixed_deb10_AOH.zip

Edited by Badruzeus
  • Like 1
32 minutes ago, Badruzeus said:

Hi @vector sigma, there's no Option on 'buildme' script for removing previous (bad / obsolete) "Build" dir? I usually, beside clean BaseTools also do 'rm -rf Build' or... Plz correct me; is this step required? Thanks.

I guess once the Build dir is deleted your good to go. BaseTools shouldn't be a problem I guess, but a clean will not be bad anyway.

  • Thanks 1
1 hour ago, LAbyOne said:

I'm running the latest commit from master.

Resolution is 1920x1080

It happen with all themes i tested. (on my repo) the one you see is Zhuyin, you can get it from within Clover.app

 

Thanks

OK, I think I see the cause. Committed a fix to master, try again.

  • Thanks 1
1 hour ago, Pene said:

OK, I think I see the cause. Committed a fix to master, try again.

 

thanks, just booted from it : r5114 (SHA: e210ec2d0)

Submenus are good now, but, don't know why, curiously going further ( on 3rd menu choice) the glitch still there

s1.png.596a4915e3c067d6c0b86942f1286548.png

i.e.

Options/System Prameters/Boot_args-Flags

41 minutes ago, LAbyOne said:

 

thanks, just booted from it : r5114 (SHA: e210ec2d0)

Submenus are good now, but, don't know why, curiously going further ( on 3rd menu choice) the glitch still there

s1.png.596a4915e3c067d6c0b86942f1286548.png

i.e.

Options/System Prameters/Boot_args-Flags

Hmm, I can't reproduce that now even with your theme. Do you take some special steps to make that bug appear? Or just entering the menu location you specified directly?

1 hour ago, Pene said:

Hmm, I can't reproduce that now even with your theme. Do you take some special steps to make that bug appear? Or just entering the menu location you specified directly?

no special steps, just entered the menu directly

 

PS

not that would make any difference, but i'm building Clover with XCODE8 not GCC53.

specifying because its weird, if it works byyour side why shouldn't here too?

 

My bad, just after replying to your post, just for the sake of it, I rebuilt Clover from master

and YOU WERE RIGHT!

Glitch not there anymore, thanks!

Edited by LAbyOne
i'm a coconut
47 minutes ago, LAbyOne said:

no special steps, just entered the menu directly

 

PS

not that would make any difference, but i'm building Clover with XCODE8 not GCC53.

specifying because its weird, if it works byyour side why shouldn't here too?

 

My bad, just after replying to your post, just for the sake of it, I rebuilt Clover from master

and YOU WERE RIGHT!

Glitch not there anymore, thanks!

Good:)

But it's for the best, as while navigating the menus I did notice some other glitches, so I just pushed another commit.

  • Like 1

Hi @Slice @Pene @Jief_Machak

 

Thanks for all commits :) I just boot from r5114 commit 84f7f87

 

I can't find "Clover Boot Options" in GUI: Is it normal because of changes or I make a mistake somewhere.
 

Sorry for my stupid question: about Options/System Parameters/Boot_args-Flags, where can i find explanations on boot-flags, some are unknown to me. Please.

 

EDIT: it's longer to display Clover GUI and boot on a real hard disk (Black screen, users settings, test hardware, GUI and after select OS, black screen before booting). 
 

Capture d’écran 2020-04-27 à 07.16.56.png

 

 

 

 

 

 

Edited by Matgen84
23 minutes ago, Pene said:

I can't reproduce that so please post your config.plist and a boot.log

 

The "Clover Boot Options" button come back: I use r5114 (84f7f87a5). Despite everything, I attach my config.plist and preboot.log. If you can take a look.

 

Now, Clover is more longer: test hardware, user settings and of Corus scan entries before Clover GUI, after select OS there is a black screen before boot (verbose mode). Do you know why?

 

config.plist

preboot.log

 

 

 

screenshot1.png

Edited by Matgen84
×
×
  • Create New...