Jump to content

Clover General discussion


ErmaC
30,134 posts in this topic

Recommended Posts

Hi Slice.

On a Laptop with an Ivy Bridge  (i5-3340M) or on a Desktop with Kaby Lake (i5-7600K), both with :  Big Sur 11.2 (20D64) Xcode  12.4 (12D4e) and clang 12.0.0

The last r_5129 XCODE8 RELEASE i could build is « master, commit e24ceaa47 ».

From a170710 to d66a144a commit XCODE8 build abort but never with GCC.

GCC53 (default) builds all commits from a170710 to the last d66a144a.

So i’m not sure it’s an Xcode and/or clang releases problem.

 

  • Confused 1
Link to comment
Share on other sites

3 hours ago, Jief_Machak said:

Sorry, but I'm lost. You said that your xcode compilation doesn't work. iCanaro xcode compiled efi and mine works. Looks like an xcode bug, isn't it ?

So now, replace main.cpp by this one main.cpp, compile with xcode and try. What's on the screen ?

Underscore in the lef-top corner and then switch to next boot entry in UEFI BIOS.

It will happen if execution encounter return;.

  • Like 1
Link to comment
Share on other sites

55 minutes ago, SavageAUS said:

So newest clover includes datahubdxe?
On my Intel i7-9750h do I need useARTfrequency?
What if datahubdexe already exists in EFI will clover remove it?


Sent from my iPhone using Tapatalk

Double installed is not a problem. Last will work and no matter if they are the same.

Yes, for i7-9750h you need ARTfrequency. May be obligatory. I can tell exactly if look into Clover's preboot.log.

Link to comment
Share on other sites

12 hours ago, Slice said:

DEBUG_ERALY_CRASH does nothing on screen. No messages.

QEMU crashes

Снимок экрана 2021-02-08 в 21.42.54.png

Size of Clover greater then allowed?

Снимок экрана 2021-02-08 в 21.47.51.png

 

 

Cannot reproduce that...

Could send me your QEMU disk image ?

Screenshot 2021-02-09 at 09.51.43.png

 

Also :

Do you use the qemu I put in qemu folder ? If not, could you try, so we have the same exact Qemu version ? To do so :

 - be in your Clover folder in terminal

 - ./Qemu/launch ./Build/Clover/DEBUG_XCODE8/X64/CLOVERX64.efi

 

Edited by Jief_Machak
Link to comment
Share on other sites

2 hours ago, Jief_Machak said:

Cannot reproduce that...

And I'd like to add that I'd really like to reproduce this crash. Maybe it's a settings in QEMU or a QEMU version, and I prefer to have straight crash instead of something working because settings that allow to ignore crash.

Link to comment
Share on other sites

And I disable -Werror for debug compilation. So DEBUG compilation can now succeed with warnings. Nice when you want to try something quickly. Also handy because you can see all warnings to one compilation instead of having to recompile each you fixed one. At least I think it is...

  • Like 1
Link to comment
Share on other sites

no good  :cry:

Spoiler

buildme, Clover r5129 (SHA: b346d25c3)

TOOLCHAIN: GCC53 (override example: './buildme XCODE8')

 

 1) build Clover

 2) build Clover with HFSPlus

 3) make pkg

 4) make app

 5) make app (with Clover)

 6) make iso

 7) build all

 8) test build (no autogen, no boot files)

 9) status

10) update Clover

11) show diff

12) open CloverV2/EFI/CLOVER directory

13) update Clover (reset changes)

14) clean BaseTools

15) quit

Please enter your choice: 10

[UPDATE CLOVER]

Fetching origin

Fetching submodule OpenCorePkg

Fetching submodule OpenCorePkg

From https://github.com/CloverHackyColor/CloverBootloader

 * branch                master     -> FETCH_HEAD

Fetching submodule OpenCorePkg

Already up-to-date.

 

------------------------------------------------------------------------

buildme, Clover r5129 (SHA: b346d25c3)

TOOLCHAIN: GCC53 (override example: './buildme XCODE8')

 

 1) build Clover

 2) build Clover with HFSPlus

 3) make pkg

 4) make app

 5) make app (with Clover)

 6) make iso

 7) build all

 8) test build (no autogen, no boot files)

 9) status

10) update Clover

11) show diff

12) open CloverV2/EFI/CLOVER directory

13) update Clover (reset changes)

14) clean BaseTools

15) quit

Please enter your choice: 7

[CHECK XCODE]

WORKSPACE: /Users/utente/CloverBootloader

EDK_TOOLS_PATH: /Users/utente/CloverBootloader/BaseTools

CONF_PATH: /Users/utente/CloverBootloader/Conf

Copying $EDK_TOOLS_PATH/Conf/build_rule.template

     to /Users/utente/CloverBootloader/Conf/build_rule.txt

Copying $EDK_TOOLS_PATH/Conf/tools_def.template

     to /Users/utente/CloverBootloader/Conf/tools_def.txt

Copying $EDK_TOOLS_PATH/Conf/target.template

     to /Users/utente/CloverBootloader/Conf/target.txt

[BUILD CLOVER]

TOOLCHAIN_DIR: /Users/utente/CloverBootloader/toolchain

NASM_PREFIX: /Users/utente/CloverBootloader/toolchain/bin/

NASM_VER: 2.15.05

Initializing workspace

recreate Conf folder

WORKSPACE: /Users/utente/CloverBootloader

EDK_TOOLS_PATH: /Users/utente/CloverBootloader/BaseTools

CONF_PATH: /Users/utente/CloverBootloader/Conf

Copying $EDK_TOOLS_PATH/Conf/build_rule.template

     to /Users/utente/CloverBootloader/Conf/build_rule.txt

Copying $EDK_TOOLS_PATH/Conf/tools_def.template

     to /Users/utente/CloverBootloader/Conf/tools_def.txt

Copying $EDK_TOOLS_PATH/Conf/target.template

     to /Users/utente/CloverBootloader/Conf/target.txt

 

Running edk2 build for CloverX64 using the command:

build  -D DISABLE_USB_SUPPORT -D NO_GRUB_DRIVERS_EMBEDDED --conf=/Users/utente/CloverBootloader/Conf -D USE_BIOS_BLOCKIO -D USE_LOW_EBDA -p Clover.dsc  -a X64 -b RELEASE -t GCC53 -n 13 

 

Build environment: Darwin-19.6.0-x86_64-i386-64bit

Build start time: 13:13:17, Feb.09 2021

 

WORKSPACE        = /Users/utente/CloverBootloader

EDK_TOOLS_PATH   = /Users/utente/CloverBootloader/BaseTools

CONF_PATH        = /Users/utente/CloverBootloader/Conf

 

 

Processing meta-data 

.Architecture(s)  = X64

Build target     = RELEASE

Toolchain        = GCC53

 

Active Platform          = /Users/utente/CloverBootloader/Clover.dsc

...build: : warning: Module MetaFile [Sources] is missing local header!

    Local Header: /users/utente/cloverbootloader/refit_uefi/platform/posix/strings.h not found in /Users/utente/CloverBootloader/rEFIt_UEFI/refit.inf

build: : warning: Module MetaFile [Sources] is missing local header!

    Local Header: /users/utente/cloverbootloader/refit_uefi/platform/posix/strings.h not found in /Users/utente/CloverBootloader/rEFIt_UEFI/refit.inf

build: : warning: Module MetaFile [Sources] is missing local header!

    Local Header: /users/utente/cloverbootloader/refit_uefi/cpp_unit_test/config-test.h not found in /Users/utente/CloverBootloader/rEFIt_UEFI/refit.inf

build: : warning: Module MetaFile [Sources] is missing local header!

    Local Header: /users/utente/cloverbootloader/refit_uefi/cpp_unit_test/config-test.h not found in /Users/utente/CloverBootloader/rEFIt_UEFI/refit.inf

build: : warning: Module MetaFile [Sources] is missing local header!

    Local Header: /users/utente/cloverbootloader/refit_uefi/include/dsdtfixlist.h not found in /Users/utente/CloverBootloader/rEFIt_UEFI/refit.inf

build: : warning: Module MetaFile [Sources] is missing local header!

    Local Header: /users/utente/cloverbootloader/refit_uefi/include/dsdtfixlist.h not found in /Users/utente/CloverBootloader/rEFIt_UEFI/refit.inf

build: : warning: Module MetaFile [Sources] is missing local header!

    Local Header: /users/utente/cloverbootloader/refit_uefi/cpp_unit_test/xml_lite-test.h not found in /Users/utente/CloverBootloader/rEFIt_UEFI/refit.inf

build: : warning: Module MetaFile [Sources] is missing local header!

    Local Header: /users/utente/cloverbootloader/refit_uefi/cpp_unit_test/xml_lite-test.h not found in /Users/utente/CloverBootloader/rEFIt_UEFI/refit.inf

 done!

Building ... /Users/utente/CloverBootloader/MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf [X64]

Building ... /Users/utente/CloverBootloader/MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf [X64]

make: Nothing to be done for `tbuild'.

Building ... /Users/utente/CloverBootloader/Library/HdaDevicesLib/HdaDevicesLib.inf [X64]

make: Nothing to be done for `tbuild'.

make: Nothing to be done for `tbuild'.

Building ... /Users/utente/CloverBootloader/MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf [X64]

make: Nothing to be done for `tbuild'.

Building ... /Users/utente/CloverBootloader/MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf [X64]

make: Nothing to be done for `tbuild'.

Building ... /Users/utente/CloverBootloader/Library/DuetTimerLib/DuetTimerLib.inf [X64]

[CC] X86TimerLib

Building ... /Users/utente/CloverBootloader/MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf [X64]

make: Nothing to be done for `tbuild'.

Building ... /Users/utente/CloverBootloader/MdePkg/Library/DxeHobLib/DxeHobLib.inf [X64]

make: Nothing to be done for `tbuild'.

Building ... /Users/utente/CloverBootloader/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf [X64]

make: Nothing to be done for `tbuild'.

In file included from /Users/utente/CloverBootloader/Library/DuetTimerLib/X86TimerLib.c:24:

/Users/utente/CloverBootloader/Library/DuetTimerLib/X86TimerLib.c: In function 'InternalGetApciDescrptionTable':

Building ... /Users/utente/CloverBootloader/MdePkg/Library/UefiLib/UefiLib.inf [X64]

/Users/utente/CloverBootloader/MdePkg/Include/Library/HobLib.h:545:13: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]

  545 |   (VOID *)(*(UINT8 **)&(HobStart) + sizeof (EFI_HOB_GUID_TYPE))

      |             ^~~~~~~~~~~~~~~~~~~~~

/Users/utente/CloverBootloader/Library/DuetTimerLib/X86TimerLib.c:49:17: note: in expansion of macro 'GET_GUID_HOB_DATA'

   49 |     gAcpiDesc = GET_GUID_HOB_DATA (GuidHob.Guid);

      |                 ^~~~~~~~~~~~~~~~~

/Users/utente/CloverBootloader/Library/DuetTimerLib/X86TimerLib.c: At top level:

cc1: note: unrecognized command-line option '-Wno-incompatible-ms-struct' may have been intended to silence earlier diagnostics

cc1: all warnings being treated as errors

make: *** [/Users/utente/CloverBootloader/Build/Clover/RELEASE_GCC53/X64/Library/DuetTimerLib/DuetTimerLib/OUTPUT/X86TimerLib.obj] Error 1

 

 

build.py...

 : error 7000: Failed to execute command

make tbuild [/Users/utente/CloverBootloader/Build/Clover/RELEASE_GCC53/X64/Library/DuetTimerLib/DuetTimerLib]

 

 

build.py...

 : error F002: Failed to build module

/Users/utente/CloverBootloader/Library/DuetTimerLib/DuetTimerLib.inf [X64, GCC53, RELEASE]

 

- Failed -

Build end time: 13:13:21, Feb.09 2021

Build total time: 00:00:05

 

logout

Saving session...

...copying shared history...

...saving history...truncating history files...

...completed.

 

[Processo completato]

 

 

Edited by iCanaro
Link to comment
Share on other sites

@Jief_Machak @iCanaro

No good with Xcode8 too, but different error message

 

Spoiler

[CC] CapsuleCache
[CC] UhciDebug
[MTOC] VBoxHfs
/Users/mathieu/src/Cloverbootloader/MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIo.c:50:1: error: missing field 'BlockIo2' initializer [-Werror,-Wmissing-field-initializers]
};
^
[CC] grub_file
[CC] CapsuleReset
1 error generated.
make: *** [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe/OUTPUT/DiskIo.obj] Error 1


build.py...
 : error 7000: Failed to execute command
    make tbuild [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe]


build.py...
 : error F002: Failed to build module
    /Users/mathieu/src/Cloverbootloader/MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf [X64, XCODE8, RELEASE]
 

 

  • Sad 1
Link to comment
Share on other sites

21 minutes ago, Matgen84 said:

@Jief_Machak @iCanaro

No Clover GUI: only Underscore in the top left corner with black screen (IvyBridge, Mojave, Xcode Build).:cry: Test with Bootloader Chooser

 

I'm using this newly compiled Clover, to update on the Z170 catalina with the sec up combo 2021-001
no GUI problem at boot
But it's not like you're using a problematic theme??? try to re-heat it updated or change it

Edited by iCanaro
Link to comment
Share on other sites

41 minutes ago, iCanaro said:

I'm using this newly compiled Clover, to update on the Z170 catalina with the sec up combo 2021-001
no GUI problem at boot
But it's not like you're using a problematic theme??? try to re-heat it updated or change it


I don't have a problem of theme with Clover build with GCC. I can try anyway changing it for Xcode Build. 
 

Remember: I build with Xcode 11.3.1 (Mojave) clang-1100.0.33.17

Very strange issue :cry:

EDIT: I change the theme, same issue

 

----> commit d4e748b87 (Bootloader Chooser)


Ivybridge: underscore at the top left of the screen

Z390,: stuck at * Hit any key...*

 

Edited by Matgen84
Link to comment
Share on other sites

×
×
  • Create New...