Issue #567 has been updated by gitlab thnx.

Maximilian Brune wrote in #note-7:
> > Maybe You can tell me Your experience with starting from 'git clone 
> > --recursive github.com/coreboot/coreboot', if having a functional local 
> > repository for building the binaries or otherwise repeating the issue. (thx)
> 
> I issued the following comment: `git clone --recursive 
> "https://github.com/coreboot/coreboot"` and it works fine for me. I get no 
> errors when I issue a `git status` or `git log`.
> Did you try it on another device?

Correction on previous assumption: 'Retrying several times for several 
filesystems ( ~~ext4~~ , ntfs, ~~virtual filesystem tmpfs~~ )'

Probably found one reason, since cloning was always to a ntfs partition and 
local 'coreboot' repository directories were copied to the other filesystems 
for saving time and bandwidth. With directly cloning to an ext4 partition (now 
tested with `https://github.com/coreboot/coreboot`) `git status` and `git log` 
are returning suitable results.
    
The weird thing is, the repository from `https://review.coreboot.org/coreboot` 
is functional on ntfs partition with `git status` and `git log`. (Differences 
from ntfs compared to ext4 might affect the cloned structures? At the moment, 
this seems being the most probable reason for the git structure/naming(?) 
related errors for repositories from `https://github.com/coreboot/coreboot on 
local ntfs filesystems. Maybe `git diff` can offer hints where mentioned git 
repositories are different?  
If verified, maybe there's need for something to change or a hint in 
documentation/tutorials for handling repositories on local (ntfs, btrfs?, xfs?, 
hfs?, exfat?) filesystems?) (thx)  
  



----------------------------------------
Support #567: How init git repository for avoiding date error?
https://ticket.coreboot.org/issues/567#change-1968

* Author: gitlab thnx
* Status: New
* Priority: Normal
* Category: build system
* Target version: master
* Start date: 2024-11-05
* Affected versions: master
* Affected hardware: config.emulation_qemu_aarch64_fit_support_timestamps
* Affected OS: Ubuntu Noble Numbat, 24.04, LTS
----------------------------------------
With compiling for 'config.emulation_qemu_aarch64_fit_support_timestamps' 
following this tutorial 'https://doc.coreboot.org/tutorial/part1.html'
for origin/main branch on Linux Ubuntu Noble Numbat, 24.04, LTS, for a aarch64 
emulation target, there's this error:

> fatal: bad object HEAD
> fatal: bad object HEAD
> fatal: HEAD is neither a commit nor blob
> date: invalid date '@'
> date: invalid date '@'
> date: invalid date '@'
> date: invalid date '@'
> date: invalid date '@'
> date: invalid date '@'
> date: invalid date '@'
> date: invalid date '@'
> fatal: bad object HEAD
> fatal: HEAD is neither a commit nor blob
> Updating git submodules.
>     CC         romstage/lib/version.o
>     CC         romstage/southbridge/intel/common/rtc.o
>     CC         romstage/southbridge/intel/common/smbus.o
>     CC         romstage/southbridge/intel/i82371eb/early_pm.o
> src/lib/version.c:24:75: error: expected expression before ';' token
>    24 | const unsigned int coreboot_version_timestamp = 
> COREBOOT_VERSION_TIMESTAMP;
>       |                                                                       
>     ^
> In file included from src/lib/version.c:4:
> build/build.h:13:33: error: invalid suffix "x" on integer constant
>    13 | #define COREBOOT_BUILD_YEAR_BCD 0x
>       |                                 ^~
> src/lib/version.c:33:17: note: in expansion of macro 'COREBOOT_BUILD_YEAR_BCD'
>    33 |         .year = COREBOOT_BUILD_YEAR_BCD,
>       |                 ^~~~~~~~~~~~~~~~~~~~~~~
> build/build.h:14:34: error: invalid suffix "x" on integer constant
>    14 | #define COREBOOT_BUILD_MONTH_BCD 0x
>       |                                  ^~
> src/lib/version.c:34:18: note: in expansion of macro 
> 'COREBOOT_BUILD_MONTH_BCD'
>    34 |         .month = COREBOOT_BUILD_MONTH_BCD,
>       |                  ^~~~~~~~~~~~~~~~~~~~~~~~
> build/build.h:15:32: error: invalid suffix "x" on integer constant
>    15 | #define COREBOOT_BUILD_DAY_BCD 0x
>       |                                ^~
> src/lib/version.c:35:16: note: in expansion of macro 'COREBOOT_BUILD_DAY_BCD'
>    35 |         .day = COREBOOT_BUILD_DAY_BCD,
>       |                ^~~~~~~~~~~~~~~~~~~~~~
> build/build.h:16:36: error: invalid suffix "x" on integer constant
>    16 | #define COREBOOT_BUILD_WEEKDAY_BCD 0x
>       |                                    ^~
> src/lib/version.c:36:20: note: in expansion of macro 
> 'COREBOOT_BUILD_WEEKDAY_BCD'
>    36 |         .weekday = COREBOOT_BUILD_WEEKDAY_BCD,
>       |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
> make: *** [Makefile:430: build/romstage/lib/version.o] Error 1
> make: *** Waiting for unfinished jobs....

There seems to be no hint within tutorial documentation for to avoid this 
missing date and version from/for the repository?

( Thanks for Your time and engagement. )




-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
https://ticket.coreboot.org/my/account
_______________________________________________
coreboot mailing list -- coreboot@coreboot.org
To unsubscribe send an email to coreboot-le...@coreboot.org

Reply via email to