{"id":20113799,"url":"https://github.com/mkj/yocto-y2038","last_synced_at":"2026-06-09T17:31:22.809Z","repository":{"id":150882203,"uuid":"573342537","full_name":"mkj/yocto-y2038","owner":"mkj","description":"64-bit time_t compile warnings","archived":false,"fork":false,"pushed_at":"2022-12-02T09:22:08.000Z","size":25896,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T18:51:26.166Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mkj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-02T08:33:11.000Z","updated_at":"2022-12-02T08:38:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"e9672e6d-167d-4e85-a63f-4ac36e0818fe","html_url":"https://github.com/mkj/yocto-y2038","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mkj/yocto-y2038","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkj%2Fyocto-y2038","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkj%2Fyocto-y2038/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkj%2Fyocto-y2038/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkj%2Fyocto-y2038/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkj","download_url":"https://codeload.github.com/mkj/yocto-y2038/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkj%2Fyocto-y2038/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34118751,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T18:26:00.820Z","updated_at":"2026-06-09T17:31:22.794Z","avatar_url":"https://github.com/mkj.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Differential builds for 64-bit `time_t`\n\ngcc and clang are able to flag truncated conversions for 64-bit `time_t` with\n`-Wconversion`, but it's pretty noisy. Comparing that against a 32-bit `time_t`\nbuild, however, gives a pretty clean list of code that needs attention.\n\nYocto makes it fairly easy to apply flags to all packages. \nSee [conf/local.conf](conf/local.conf). Some packages set `-Werror` by default,\nso [workspace](workspace) workarounds are used from `devtool modify`.\n\n\n## Building\n\nThis git repo is an OpenBMC build directory. Set up the build, pointing at this checkout:\n\n```shell\nbash\numask 022\ncd ~/src/openbmc\n. setup evb-ast2600 ~/path/to/yocto-y2038\n```\n\nBuild once with 32-bit, then copy the log files out:\n\n```shell\nnice bitbake core-image-full-cmdline # or another target\n# TODO perhaps a better way to do includes\n(cd tmp/work;  rsync -a armv7ahf-vfpv4d16-openbmc-linux-gnueabi/ ../../log1-32/ --include '*/*/temp/**' --include '/*' --include '/*/*' --include '/*/*' --include '/*/*/temp' --exclude '*')\n```\n\nEdit [conf/local.conf](conf/local.conf) and enable the 64-bit `TARGET_CPPFLAGS`.\nClean source and build again 64-bit:\n\n```shell\nrm -rf tmp/work/armv7ahf-vfpv4d16-openbmc-linux-gnueabi/\nrm -rf tmp/stamps/armv7ahf-vfpv4d16-openbmc-linux-gnueabi/\nnice bitbake core-image-full-cmdline\n(cd tmp/work;  rsync -a armv7ahf-vfpv4d16-openbmc-linux-gnueabi/ ../../log1-64/ --include '*/*/temp/**' --include '/*' --include '/*/*' --include '/*/*' --include '/*/*/temp' --exclude '*')\n```\n\nNow the logs can be compared:\n\n```shell\n./difflog.sh\n```\n\nTo produce logs such as [diff1/busybox.diff](diff1/busybox.diff).\n\nSome are false positives, but others seem like real problems, come the year 2038.\n\n## Source\n\nI've been working with OpenBMC (a Yocto downstream), so that's what I tested.\nThis uses OpenBMC source tree https://github.com/openbmc/openbmc/\n\nTested with rev `f35e6b7ecc6b5c5fdb561643831082226c586b6e`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkj%2Fyocto-y2038","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkj%2Fyocto-y2038","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkj%2Fyocto-y2038/lists"}