Jump to content
30960 posts in this topic

Recommended Posts

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.

I worked a bit on the build cc and cxx flags, to make the xcode config and gcc more similar. Took the occasion to clean some of them (for example, there was -fsigned-char and -funsigned-char on the same line !)

Probably won't fix @Matgen84 xcode compilation problem, but who knows...

  • Thanks 1

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

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

@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

@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

 

Edited by Matgen84
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
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
3 minutes ago, Jief_Machak said:

The theme is not read before the main function of Clover is called. And the first line (or almost) is a message "Start".

On the Z390, "hit any key" is a BootloaderChooser message, I suppose ?


Right.
I use Bootloader Chooser for Z390 and also IvyBridge test. On Ivy, only underscore no text message

44 minutes ago, Jief_Machak said:

The theme is not read before the main function of Clover is called. And the first line (or almost) is a message "Start".

True! you're absolutely right

 

40 minutes ago, Matgen84 said:

I use Bootloader Chooser for Z390 and also IvyBridge test. On Ivy, only underscore no text message

delete BLC.plist inside the boot folder
are you using latest BLC release?
 

35 minutes ago, iCanaro said:

delete BLC.plist inside the boot folder
are you using latest BLC release?
 

 

I use BLC sent by @Jief_Machak few month ago (November). Why remove BLC.plist who points to USB !  Do you mean BLC.log instead.

Edited by Matgen84
10 hours ago, Jief_Machak said:

 

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

 

This is the difference. You started DEBUG version while the problem is with RELEASE_XCODE8.

iMac2017:CloverBootloader sergey$ ./Qemu/launch ./Build/Clover/RELEASE_XCODE8/X64/CLOVERX64.efi
clover_efi_file=./Build/Clover/RELEASE_XCODE8/X64/CLOVERX64.efi
++ '[' Darwin = Darwin ']'
++ '[' -f ./Qemu/qemu_portable/qemu-system-x86_64 ']'
++ '[' -f /Users/sergey/src/CloverBootloader/Qemu/disk_image_gpt.img ']'
++ unzip -o /Users/sergey/src/CloverBootloader/Qemu/disk_image_gpt.img.zip
Archive:  /Users/sergey/src/CloverBootloader/Qemu/disk_image_gpt.img.zip
  inflating: disk_image_gpt.img      
   creating: __MACOSX/
  inflating: __MACOSX/._disk_image_gpt.img  
++ rm -rf /Users/sergey/src/CloverBootloader/Qemu/__MACOSX
++ pgrep qemu
++ hdiutil attach /Users/sergey/src/CloverBootloader/Qemu/disk_image_gpt.img
hdiutil: attach failed - Файл или каталог не существуют
++ exit 1
iMac2017:CloverBootloader sergey$ 

Somehow the file Qemu/disk_image_gpt.img is missing

On 2/8/2021 at 9:44 PM, Slice said:

 

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

I have an idea.

As you see no the picture first command contains rsi register. It is because UNIX ABI which is wrong. Good compilation using rdx register that correspond to EFI ABI.

We have here

EFI_STATUS
EFIAPI
RefitMain (IN EFI_HANDLE           ImageHandle,
           IN EFI_SYSTEM_TABLE     *SystemTable)
{

But release xcode compilation somehow ignores EFIAPI.

×
×
  • Create New...