Jump to content

Clover Problems and Solutions


ErmaC
3,206 posts in this topic

Recommended Posts

Yes, something seems wrong with the gcc.

If I disable StartupSound it falls somewhere else

[CC] BmLib
d=c99: In function 'SqrtF':
d=c99:40:3: internal compiler error: Segmentation fault: 11
   40 |   Yf = X * 0.3f;
      |   ^~

 

Link to comment
Share on other sites

1 hour ago, Pene said:

Yes, something seems wrong with the gcc.

If I disable StartupSound it falls somewhere else


[CC] BmLib
d=c99: In function 'SqrtF':
d=c99:40:3: internal compiler error: Segmentation fault: 11
   40 |   Yf = X * 0.3f;
      |   ^~

 

It is perfect in Catalina Beta 6 and Xcode 11 beta 2. Now I am going to update the OS and Xcode, let see what

Link to comment
Share on other sites

4 minutes ago, vector sigma said:

It is perfect in Catalina Beta 6 and Xcode 11 beta 2. Now I am going to update the OS and Xcode, let see what

I am on latest Catalina and Xcode 11 final.

There are also other reports (arsradu) with same problem.

 

Link to comment
Share on other sites

23 minutes ago, Pene said:

 

There are also other reports (arsradu) with same problem.

Bro' I hope you are not afraid that I don't believe you because I trust you,  but is it more interesting to know who is buggy between gcc or Xcode. Probably the second as was working fine .

Edited by vector sigma
Link to comment
Share on other sites

4 minutes ago, vector sigma said:

Bro' I hope you are not afraid that I don't believe you because I trust you,  but is it more interesting to know who is buggy between gcc or Xcode. Probably the second as was working fine .

Ha, no! I was just excluding it is something with my system :)

And yes it would be good to know.

 

Edited by Pene
  • Like 1
Link to comment
Share on other sites

1 hour ago, Pene said:

Did it break for you after the update?

Yes, but I find also a way to make it work, some how.

22 hours ago, vector sigma said:

personally I'm trusting more GNU guys than Apple ones :)

how true. Apple just break the standard library Lol

 

To compile with Xcode 11 GM had to edit this file as a workaround:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/Availability.h

search and delete or comment out these lines:

#if defined(__has_builtin)

and 

#endif /* #if defined(__has_builtin) */

..but of course without deleting everything in the middle. Not sure how to fix it, i.e. building gcc.

  • Like 2
Link to comment
Share on other sites

On 9/24/2019 at 9:16 PM, Slice said:

May be somewhere in build_gcc script define arg -D__has_builtin?

tomorrow I'll try that!

EDIT
won't work because stdio.h must be included before stdlib.h. GNU guys can do that in autoconf, or Apple can fix Xcode 11 GM as in Xcode 11 beta 2 was fine.

Edited by vector sigma
Link to comment
Share on other sites

On 9/5/2019 at 4:22 PM, Zenith432 said:

The makefile rule for nasm sources is generted from build_rule.txt


        "$(NASM)" -I${s_path}(+) $(NASM_INC) $(NASM_FLAGS) -o $dst ${d_path}(+)${s_base}.iii

and I see this line in cbuild.bat


  set NASM_INC=

which is not found in ebuild.sh.  Could have something to do with it.

You can look in the Build product folder (Build\Clover\RELEASE_VS2015x86\X64\MdePkg\Library\BaseLib\BaseLib) and compare the makefile generated for macOS (GNUmakefile) to the makefile generated for Windows see if produces a different rule.

 

When I comment out on line 603-606, they no longer produced invalid path (I guess, with caret on last line) on their makefile, something like below:

INC =  \
    -I$(WORKSPACE)\Source\edk2\MdePkg\Library\BaseIoLibIntrinsic\X64 \
    -I$(WORKSPACE)\Source\edk2\MdePkg\Library\BaseIoLibIntrinsic \
    -I$(DEBUG_DIR) \
    -I$(WORKSPACE)\Source\edk2\MdePkg \
    -I$(WORKSPACE)\Source\edk2\MdePkg\Include \
    -I$(WORKSPACE)\Source\edk2\MdePkg\Include\X64

NASM_INC =  \
    -I$(WORKSPACE)\Source\edk2\MdePkg\Library\BaseIoLibIntrinsic\X64\ \
    -I$(WORKSPACE)\Source\edk2\MdePkg\Library\BaseIoLibIntrinsic\ \
    -I$(DEBUG_DIR)\ \
    -I$(WORKSPACE)\Source\edk2\MdePkg\ \
    -I$(WORKSPACE)\Source\edk2\MdePkg\Include\ \
    -I$(WORKSPACE)\Source\edk2\MdePkg\Include\X64^\

 

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
11 hours ago, vector sigma said:

are you sensed something Lol?  the package is nearly to be the same ...So   Clover.app.zip .. .tell me if you like..

 

P.S. is it in embryonic state and anyway will require time..

I think it should be prefPane with a checkbox to show in the Menu.

  • Like 1
Link to comment
Share on other sites

13 hours ago, Sherlocks said:

is it support on 10.16?

in the next year Lol? If you mean 10.6 instead...never. 10.11+

 

10 hours ago, Slice said:

I think it should be prefPane with a checkbox to show in the Menu.

What are the functionalities you are looking for?

  • Like 1
Link to comment
Share on other sites

8 hours ago, vector sigma said:

 

What are the functionalities you are looking for?

We are gathered here to discuss.

1. Mount/umount EFI

2. Check for updates.

3. Set nvram variables with prefix Clover. {theme, sound}

4. Check for existing themes? Or delegate this functionality to CloverThemeManager?

Link to comment
Share on other sites

14 hours ago, Slice said:

1. Mount/umount EFI

mount is already present in the installer (maybe a prominent popup to select the desired disk and open the volume), but not umount ...isn't it useless as you can do it just using the Finder? 

Anyway I can do it if a need be

14 hours ago, Slice said:

2. Check for updates.

Already present, or better to say the app already know which is the latest release available on github and the relative link, but since I don't want to download the package... it should download the entire CloverV2 directory or just a copy of the app itself (it is built against Clover.. so always will have latest Clover embedded).

 

14 hours ago, Slice said:

3. Set nvram variables with prefix Clover. {theme, sound}

there will be!

 

14 hours ago, Slice said:

4. Check for existing themes? Or delegate this functionality to CloverThemeManager?

The idea is to install Extras as a separate thing from Clover (themes, rc script etc.). The actual pkg reached some limits because you select a volume, but is not the one to install Clover into, plus you don't really know if the desired ESP will be used (raid, fusion, fv2... a mix of them) . The installer-app instead know that has to show only partitions formatted in fat32/exfat/hfs to install the boot loader:

412117341_Schermata2019-10-23alle21_37_22.thumb.png.57a098348cc52d8ff9ba54cd58a26b77.png

while rc script for example will have only "/" as a target volume, without the risk to ruin Catalina because you choiced the user partition instead of the System partition. pretty easy with no headache. 

CloverThemeManager is good enough, so why not install a theme only on fresh installations (i.e. the case you need one), and let users using it?

 

P.S. aving the CloverV2 directory embedded... the iso can always be created on the fly at user will.

Link to comment
Share on other sites

On 9/24/2019 at 10:16 PM, Slice said:

May be somewhere in build_gcc script define arg -D__has_builtin?

GCC9 issues on Catalina were a mix of:

- GMP having to be compiled (for now) with no-stack-check flag in order not to produce segmentation fault, until the cause of this issue is fully tracked.

- the Availability.h issue (a patch for that is available now from homebrew)

- need to set CPATH to Xcode's path, as /usr/include is no longer available on Catalina.

 

I committed corresponding workarounds to build_gcc9.sh, so now it should be able to produce a working gcc9 toolchain with Catalina. Make sure to erase old attempts before it can work, as GMP needs to be recompiled. 

Edited by Pene
  • Like 1
  • Thanks 1
Link to comment
Share on other sites

9 hours ago, vector sigma said:

you don't really know if the desired ESP will be used (raid, fusion, fv2... a mix of them) . The installer-app instead know that has to show only partitions formatted in fat32/exfat/hfs to install the boot loader:

412117341_Schermata2019-10-23alle21_37_22.thumb.png.57a098348cc52d8ff9ba54cd58a26b77.png

 

See this

iMac-Sergey:Clover sergey$ sudo gpt show disk0
      start       size  index  contents
          0          1         PMBR
          1          1         Pri GPT header
          2         32         Pri GPT table
         34          6         
         40     409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
     409640  529632224      2  GPT part - 7C3457EF-0000-11AA-AA11-00306543ECAC
  530041864  230970584      3  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
  761012448    1269536      4  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
  762281984     204800      5  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
  762486784      57344         
  762544128  214228992      6  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
  976773120         15         
  976773135         32         Sec GPT table
  976773167          1         Sec GPT header
iMac-Sergey:Clover sergey$ 

The UUID = C12A7328-F81F-11D2-BA4B-00A0C93EC93B is exactly for EFI partition and not for MS-DOS partition

 

About CloverThemeManager it is good application for its purpose.

See old Clover.prefPane, it allows to choose a theme among installed for next boot.

Link to comment
Share on other sites

×
×
  • Create New...