Opened 13 years ago
Closed 13 years ago
#8396 closed bug (fixed)
Building hrev43866 in Haiku fails (at least since hrev43849)
Reported by: | taos | Owned by: | axeld |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | File Systems/BFS | Version: | R1/Development |
Keywords: | Cc: | korli | |
Blocked By: | Blocking: | ||
Platform: | All |
Description
Using hrev43865 (gcc2h) from Haiku Files.
Building hrev43866 fails with:
...failed Link /GIT/haiku/generated/objects/haiku_host/x86/release/tools/copyattr ...
Complete terminal output is attached.
Attachments (2)
Change History (14)
by , 13 years ago
Attachment: | Terminal_output.txt added |
---|
comment:1 by , 13 years ago
Component: | Build System → File Systems/BFS |
---|---|
Owner: | changed from | to
The only reason I can think of why opening a file would fail with B_BAD_DATA
is a FS corruption. Please check your syslog -- BFS usually logs those kinds of errors.
comment:2 by , 13 years ago
It is FS corruption - checkfs finds b+tree errors on my SDHC cards mounted as /GIT. So, this ticket could be invalid.
But the strange thing is: Card 1 with hrev43866 shows b+tree errors, after initializing and formating as BFS the SD card no longer shows errors, however, after downloading the latest revision and trying to build a gcc2 hybrid image checkfs finds b+tree errors again. Card 2 (with hrev437xx source code) shows no errors, after updating the source and trying to build haiku there are b+tree errors, too. I'm going to order a couple of new SD cards to see if the same happens again.
comment:3 by , 13 years ago
renaming the objects folder in my generated fold solved the problem for me, but its a bandaid solution.I also suffer the same problem, just for ticket validation.I will attach my log. Yes it appears to be a bfs corruption issue.
related to ticket #8392
by , 13 years ago
Attachment: | syslog.old added |
---|
follow-ups: 6 7 comment:4 by , 13 years ago
I've got rid of b+tree errors, but now building hrev43874 gcc2hybrid fails with:
. . . BuildAlternativeGCCArchive1 /GIT/haiku/generated-gcc4/alternative_system_libs.zip Preparing contents of archive /GIT/haiku/generated-gcc4/alternative_system_libs.zip ... Error: Couldn't access "/GIT/haiku/generated-gcc4/build_packages/freetype-2.4.6-x86-gcc4-2012-03-15/common/lib/libfreetype.so.6.7.1": No such file or directory /GIT/haiku/build/scripts/build_archive /GIT/haiku/generated-gcc4/alternative_system_libs.zip /GIT/haiku/generated-gcc4/haiku-alternative-gcc-init-vars /GIT/haiku/generated-gcc4/haiku-alternative-gcc-make-dirs /GIT/haiku/generated-gcc4/haiku-alternative-gcc-copy-files ...failed BuildAlternativeGCCArchive1 /GIT/haiku/generated-gcc4/alternative_system_libs.zip ... BUILD FAILURE: ...failed updating 1 target(s)... ...updated 2906 target(s)... cd /GIT/haiku/generated-gcc4 export HAIKU_IGNORE_USER_BUILD_CONFIG=1 export HAIKU_ADD_OPTIONAL_PACKAGES=Pe/Nano/Vision/P7zip/XZ-Utils/Development/Git/OpenSSH/OpenSSL/MandatoryPackages/ICU/DevelopmentBase/CDRecord/LibIconv/DevelopmentMin/Yasm/Perl/Expat/Curl/CARootCertificates/PCRE/Tar/Bzip/Ctags/Sed export HAIKU_PRIMARY_GCC=2 jam -q haiku-alternative-gcc-archive ; ...failed InvokeSubJam1 /GIT/haiku/generated-gcc4/alternative_system_libs.zip ...
comment:5 by , 13 years ago
I'm in the same boat now myself. This issue seems to crop up after compiling a few times, which means this is likely related to the issues in 8392 and one of the known bfs block cahce issues. It really only seems to crop up under heavy,heavy disk write demand.More number of files, rather then size. At least thats my observation from experimenting.
Its really easy to reproduce to, just run a bunch of jam -a builds even on a clean install with a few threads, and it pops up right away.Takes me between 3-5 trys and or fresh code pulls from git with jam -a is about all it seems to take.
comment:6 by , 13 years ago
Cc: | added |
---|
comment:7 by , 13 years ago
Replying to taos:
unzip -d ~/haiku/haiku/generated.x86gcc4/build_packages/freetype-2.4.6-x86-gcc4-2012-03-15 ~/haiku/haiku/generated.x86gcc4/download/freetype-2.4.6-x86-gcc4-2012-03-15.zip
should fix it.
comment:8 by , 13 years ago
Unzipping freetype-....zip does indeed solve the problem with the freetype package. Unfortunately, I'm now back to build failure because of b+tree errors.
comment:9 by , 13 years ago
Can you retest with hrev43930 or newer? This may require running checkfs on the affected partitions.
comment:10 by , 13 years ago
I did retest with hrev43925 yesterday - running checkfs fixed the b+tree errors, however, I visited KDL during building and got b+tree errors again (fixing these took a few hours and at least 20 reboots because checkfs crashed on me repeatedly - supposedly due to #8438 or #8437). Unfortunately, I won't be home for the rest of the week, so I can't use my usual build machine (old centrino laptop). The atheros wifi of my netbook doesn't work with the new router here (it did before the router was replaced a few months ago), so without a proper network connection I can't really build a new haiku revision. I'll retest on Saturday with a current nightly and my standard build machine.
comment:12 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Terminal output: Build failure in hrev43865.