Bug 198549 - [build] FreeBSD -STABLE r280855 world fail to build.
Summary: [build] FreeBSD -STABLE r280855 world fail to build.
Status: Closed Unable to Reproduce
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 10.1-STABLE
Hardware: i386 Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-12 19:07 UTC by sasamotikomi
Modified: 2015-03-31 13:23 UTC (History)
2 users (show)

See Also:


Attachments
without_openssl (29.02 KB, text/plain)
2015-03-30 23:34 UTC, sasamotikomi
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description sasamotikomi 2015-03-12 19:07:34 UTC
FreeBSD -STABLE r279935:(i686)

# make -j4 buildworld

cc -O2 -pipe  -std=gnu99   -I/usr/obj/usr/src/tmp/legacy/usr/include -I/usr/src/share/syscons/scrnmaps -DFIL=\"us-ascii_to_cp437\"  -L/usr/obj/usr/src/tmp/legacy/usr/lib  -o us-ascii_to_cp437.mk /usr/src/share/syscons/scrnmaps/mkscrfil.c
===> usr.bin/awk (obj,build-tools)
--- obj ---
--- awkgram.c ---
yacc -d -o awkgram.c /usr/src/usr.bin/awk/../../contrib/one-true-awk/awkgram.y
yacc: 43 shift/reduce conflicts, 85 reduce/reduce conflicts.
--- ytab.h ---
ln -sf awkgram.h ytab.h
--- maketab ---
cc -O2 -pipe  -DHAS_ISBLANK -I. -I/usr/src/usr.bin/awk/../../contrib/one-true-awk -DFOPEN_MAX=64 -std=gnu99   -I/usr/obj/usr/src/tmp/legacy/usr/include  -L/usr/obj/usr/src/tmp/legacy/usr/lib /usr/src/usr.bin/awk/../../contrib/one-true-awk/maketab.c  -o maketab
===> lib/libmagic (obj,build-tools)
--- obj ---
--- mkmagic ---
cc -O2 -pipe  -DMAGIC='"/usr/share/misc/magic"' -DHAVE_CONFIG_H -I/usr/src/lib/libmagic -I/usr/src/lib/libmagic/../../contrib/file/src -std=gnu99   -I/usr/obj/usr/src/tmp/legacy/usr/include -DCOMPILE_ONLY  -L/usr/obj/usr/src/tmp/legacy/usr/lib -o mkmagic /usr/src/lib/libmagic/../../contrib/file/src/apprentice.c /usr/src/lib/libmagic/../../contrib/file/src/cdf_time.c /usr/src/lib/libmagic/../../contrib/file/src/encoding.c /usr/src/lib/libmagic/../../contrib/file/src/funcs.c /usr/src/lib/libmagic/../../contrib/file/src/magic.c /usr/src/lib/libmagic/../../contrib/file/src/print.c  -lz -legacy
/usr/src/lib/libmagic/../../contrib/file/src/apprentice.c:527:6: error: no member named 'indir_max' in 'struct magic_set'
        ms->indir_max = FILE_INDIR_MAX;
        ~~  ^
/usr/src/lib/libmagic/../../contrib/file/src/apprentice.c:527:18: error: use of undeclared identifier 'FILE_INDIR_MAX'
        ms->indir_max = FILE_INDIR_MAX;
                        ^
/usr/src/lib/libmagic/../../contrib/file/src/apprentice.c:528:6: error: no member named 'name_max' in 'struct magic_set'
        ms->name_max = FILE_NAME_MAX;
        ~~  ^
/usr/src/lib/libmagic/../../contrib/file/src/apprentice.c:528:17: error: use of undeclared identifier 'FILE_NAME_MAX'
        ms->name_max = FILE_NAME_MAX;
                       ^
/usr/src/lib/libmagic/../../contrib/file/src/apprentice.c:529:6: error: no member named 'elf_shnum_max' in 'struct magic_set'
        ms->elf_shnum_max = FILE_ELF_SHNUM_MAX;
        ~~  ^
/usr/src/lib/libmagic/../../contrib/file/src/apprentice.c:529:22: error: use of undeclared identifier 'FILE_ELF_SHNUM_MAX'
        ms->elf_shnum_max = FILE_ELF_SHNUM_MAX;
                            ^
/usr/src/lib/libmagic/../../contrib/file/src/apprentice.c:530:6: error: no member named 'elf_phnum_max' in 'struct magic_set'
        ms->elf_phnum_max = FILE_ELF_PHNUM_MAX;
        ~~  ^
/usr/src/lib/libmagic/../../contrib/file/src/apprentice.c:530:22: error: use of undeclared identifier 'FILE_ELF_PHNUM_MAX'
        ms->elf_phnum_max = FILE_ELF_PHNUM_MAX;
                            ^
/usr/src/lib/libmagic/../../contrib/file/src/apprentice.c:531:6: error: no member named 'elf_notes_max' in 'struct magic_set'
        ms->elf_notes_max = FILE_ELF_NOTES_MAX;
        ~~  ^
/usr/src/lib/libmagic/../../contrib/file/src/apprentice.c:531:22: error: use of undeclared identifier 'FILE_ELF_NOTES_MAX'
        ms->elf_notes_max = FILE_ELF_NOTES_MAX;
                            ^
/usr/src/lib/libmagic/../../contrib/file/src/apprentice.c:1615:8: error: use of undeclared identifier 'CHAR_INDIRECT_RELATIVE'
                case CHAR_INDIRECT_RELATIVE:
                     ^
/usr/src/lib/libmagic/../../contrib/file/src/apprentice.c:1616:20: error: use of undeclared identifier 'INDIRECT_RELATIVE'
                        m->str_flags |= INDIRECT_RELATIVE;
                                        ^
12 errors generated.
/usr/src/lib/libmagic/../../contrib/file/src/magic.c:546:7: error: no member named 'indir_max' in 'struct magic_set'
                ms->indir_max = *(const size_t *)val;
                ~~  ^
/usr/src/lib/libmagic/../../contrib/file/src/magic.c:549:7: error: no member named 'name_max' in 'struct magic_set'
                ms->name_max = *(const size_t *)val;
                ~~  ^
/usr/src/lib/libmagic/../../contrib/file/src/magic.c:552:7: error: no member named 'elf_phnum_max' in 'struct magic_set'
                ms->elf_phnum_max = *(const size_t *)val;
                ~~  ^
/usr/src/lib/libmagic/../../contrib/file/src/magic.c:555:7: error: no member named 'elf_shnum_max' in 'struct magic_set'
                ms->elf_shnum_max = *(const size_t *)val;
                ~~  ^
/usr/src/lib/libmagic/../../contrib/file/src/magic.c:558:7: error: no member named 'elf_notes_max' in 'struct magic_set'
                ms->elf_notes_max = *(const size_t *)val;
                ~~  ^
/usr/src/lib/libmagic/../../contrib/file/src/magic.c:571:24: error: no member named 'indir_max' in 'struct magic_set'
                *(size_t *)val = ms->indir_max;
                                 ~~  ^
/usr/src/lib/libmagic/../../contrib/file/src/magic.c:574:24: error: no member named 'name_max' in 'struct magic_set'
                *(size_t *)val = ms->name_max;
                                 ~~  ^
/usr/src/lib/libmagic/../../contrib/file/src/magic.c:577:24: error: no member named 'elf_phnum_max' in 'struct magic_set'
                *(size_t *)val = ms->elf_phnum_max;
                                 ~~  ^
/usr/src/lib/libmagic/../../contrib/file/src/magic.c:580:24: error: no member named 'elf_shnum_max' in 'struct magic_set'
                *(size_t *)val = ms->elf_shnum_max;
                                 ~~  ^
/usr/src/lib/libmagic/../../contrib/file/src/magic.c:583:24: error: no member named 'elf_notes_max' in 'struct magic_set'
                *(size_t *)val = ms->elf_notes_max;
                                 ~~  ^
10 errors generated.
*** [mkmagic] Error code 1

make[3]: stopped in /usr/src/lib/libmagic
1 error

make[3]: stopped in /usr/src/lib/libmagic
*** [build-tools] Error code 2

make[2]: stopped in /usr/src
1 error

make[2]: stopped in /usr/src
*** [_build-tools] Error code 2

make[1]: stopped in /usr/src
1 error

make[1]: stopped in /usr/src
*** [buildworld] Error code 2

make: stopped in /usr/src
1 error

make: stopped in /usr/src
Comment 1 sasamotikomi 2015-03-18 21:09:50 UTC
Problem still not fixed for me.
Also strange allergy to "" in argument:
/etc/make.conf
CPUTYPE?=athlon-xp
ok
CPUTYPE?="athlon-xp"
--- buildworld ---
make[1]: "/usr/src/Makefile.inc1" line 169: CPUTYPE global should be set with ?=.
*** [buildworld] Error code 1

make: stopped in /usr/src
1 error

make: stopped in /usr/src

and NO_PROFILE=true is required in make.conf or need only WITHOUT_PROFILE=true in src.conf?
And my src.conf:
WITHOUT_PROFILE=true
WITHOUT_GAMES=true
WITHOUT_HTML=true
WITHOUT_HYPERV=true
WITHOUT_OPENSSH=true
WITHOUT_OPENSSL=true
WITHOUT_KVM=true
WITHOUT_MAIL=true
Comment 2 sasamotikomi 2015-03-30 01:31:35 UTC
Without -j even without src.conf and optimization flag, failure still repeatable.
Comment 3 Dimitry Andric freebsd_committer freebsd_triage 2015-03-30 06:42:39 UTC
Is your source tree completely up-to-date?  The fields in your error messages were added to contrib/file/src/file.h in r276415.  Maybe your source tree was updated just partially?  Try removing it completely, and checking it out from scratch.
Comment 4 sasamotikomi 2015-03-30 16:22:14 UTC
Thank, previous failure is gone but here is another one... 
:/usr # rm -rf src
#  svn checkout https://svn0.us-west.FreeBSD.org/base/stable/10 /usr/src
# make -j4 buildworld
--- LegacyPassManager.o ---
c++  -O2 -pipe -I/usr/src/lib/clang/libllvmcore/../../../contrib/llvm/include -I/usr/src/lib/clang/libllvmcore/../../../contrib/llvm/tools/clang/include -I/usr/src/lib/clang/libllvmcore/../../../contrib/llvm/lib/IR -I. -I/usr/src/lib/clang/libllvmcore/../../../contrib/llvm/../../lib/clang/include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DNDEBUG -fno-strict-aliasing -DLLVM_DEFAULT_TARGET_TRIPLE=\"i386-unknown-freebsd10.1\" -DLLVM_HOST_TRIPLE=\"i386-unknown-freebsd10.1\" -DDEFAULT_SYSROOT=\"/usr/obj/usr/src/tmp\" -I/usr/obj/usr/src/tmp/legacy/usr/include  -fno-exceptions -fno-rtti -c /usr/src/lib/clang/libllvmcore/../../../contrib/llvm/lib/IR/LegacyPassManager.cpp -o LegacyPassManager.o
--- all_subdir_libllvmanalysis ---
--- TargetTransformInfo.o ---
c++  -O2 -pipe -I/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/include -I/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/tools/clang/include -I/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/lib/Analysis -I. -I/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/../../lib/clang/include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DNDEBUG -fno-strict-aliasing -DLLVM_DEFAULT_TARGET_TRIPLE=\"i386-unknown-freebsd10.1\" -DLLVM_HOST_TRIPLE=\"i386-unknown-freebsd10.1\" -DDEFAULT_SYSROOT=\"/usr/obj/usr/src/tmp\" -I/usr/obj/usr/src/tmp/legacy/usr/include  -fno-exceptions -fno-rtti -c /usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/lib/Analysis/TargetTransformInfo.cpp -o TargetTransformInfo.o
--- all_subdir_libllvmcodegen ---
--- LiveDebugVariables.o ---
c++  -O2 -pipe -I/usr/src/lib/clang/libllvmcodegen/../../../contrib/llvm/include -I/usr/src/lib/clang/libllvmcodegen/../../../contrib/llvm/tools/clang/include -I/usr/src/lib/clang/libllvmcodegen/../../../contrib/llvm/lib/CodeGen -I. -I/usr/src/lib/clang/libllvmcodegen/../../../contrib/llvm/../../lib/clang/include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DNDEBUG -fno-strict-aliasing -DLLVM_DEFAULT_TARGET_TRIPLE=\"i386-unknown-freebsd10.1\" -DLLVM_HOST_TRIPLE=\"i386-unknown-freebsd10.1\" -DDEFAULT_SYSROOT=\"/usr/obj/usr/src/tmp\" -I/usr/obj/usr/src/tmp/legacy/usr/include  -fno-exceptions -fno-rtti -c /usr/src/lib/clang/libllvmcodegen/../../../contrib/llvm/lib/CodeGen/LiveDebugVariables.cpp -o LiveDebugVariables.o
--- all_subdir_libllvmanalysis ---
--- ValueTracking.o ---
c++  -O2 -pipe -I/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/include -I/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/tools/clang/include -I/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/lib/Analysis -I. -I/usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/../../lib/clang/include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DNDEBUG -fno-strict-aliasing -DLLVM_DEFAULT_TARGET_TRIPLE=\"i386-unknown-freebsd10.1\" -DLLVM_HOST_TRIPLE=\"i386-unknown-freebsd10.1\" -DDEFAULT_SYSROOT=\"/usr/obj/usr/src/tmp\" -I/usr/obj/usr/src/tmp/legacy/usr/include  -fno-exceptions -fno-rtti -c /usr/src/lib/clang/libllvmanalysis/../../../contrib/llvm/lib/Analysis/ValueTracking.cpp -o ValueTracking.o
--- all_subdir_libllvmcodegen ---
/usr/src/lib/clang/libllvmcodegen/../../../contrib/llvm/lib/CodeGen/LiveDebugVariables.cpp:242:29: error: no template named 'SmallVectorYmpl'; did you mean 'SmallVectorImpl'?
                      const SmallVectorYmpl<SlotIndex> &Kills,
                            ^~~~~~~~~~~~~~~
                            SmallVectorImpl
/usr/src/lib/clang/libllvmcodegen/../../../contrib/llvm/include/llvm/Target/TargetInstrInfo.h:40:25: note: 'SmallVectorImpl' declared here
template<class T> class SmallVectorImpl;
                        ^
--- all_subdir_libllvmcore ---
--- Metadata.o ---
c++  -O2 -pipe -I/usr/src/lib/clang/libllvmcore/../../../contrib/llvm/include -I/usr/src/lib/clang/libllvmcore/../../../contrib/llvm/tools/clang/include -I/usr/src/lib/clang/libllvmcore/../../../contrib/llvm/lib/IR -I. -I/usr/src/lib/clang/libllvmcore/../../../contrib/llvm/../../lib/clang/include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DNDEBUG -fno-strict-aliasing -DLLVM_DEFAULT_TARGET_TRIPLE=\"i386-unknown-freebsd10.1\" -DLLVM_HOST_TRIPLE=\"i386-unknown-freebsd10.1\" -DDEFAULT_SYSROOT=\"/usr/obj/usr/src/tmp\" -I/usr/obj/usr/src/tmp/legacy/usr/include  -fno-exceptions -fno-rtti -c /usr/src/lib/clang/libllvmcore/../../../contrib/llvm/lib/IR/Metadata.cpp -o Metadata.o
--- all_subdir_libllvmcodegen ---
1 error generated.
*** [LiveDebugVariables.o] Error code 1

make[4]: stopped in /usr/src/lib/clang/libllvmcodegen
1 error

make[4]: stopped in /usr/src/lib/clang/libllvmcodegen
*** [all_subdir_libllvmcodegen] Error code 2

make[3]: stopped in /usr/src/lib/clang
--- all_subdir_libllvmanalysis ---
A failure has been detected in another branch of the parallel make

make[4]: stopped in /usr/src/lib/clang/libllvmanalysis
*** [all_subdir_libllvmanalysis] Error code 2

make[3]: stopped in /usr/src/lib/clang
--- all_subdir_libclangsema ---
A failure has been detected in another branch of the parallel make

make[4]: stopped in /usr/src/lib/clang/libclangsema
*** [all_subdir_libclangsema] Error code 2

make[3]: stopped in /usr/src/lib/clang
4 errors

make[3]: stopped in /usr/src/lib/clang
===> usr.bin/clang (obj,depend,all,install)
A failure has been detected in another branch of the parallel make

make[3]: stopped in /usr/src/usr.bin/clang
===> gnu/usr.bin/binutils (obj,depend,all,install)
A failure has been detected in another branch of the parallel make

make[3]: stopped in /usr/src/gnu/usr.bin/binutils
===> usr.bin/xlint/lint1 (obj,depend,all,install)
A failure has been detected in another branch of the parallel make

make[3]: stopped in /usr/src/usr.bin/xlint/lint1
===> usr.bin/xlint/lint2 (obj,depend,all,install)
A failure has been detected in another branch of the parallel make

make[3]: stopped in /usr/src/usr.bin/xlint/lint2
===> usr.bin/xlint/xlint (obj,depend,all,install)
A failure has been detected in another branch of the parallel make

make[3]: stopped in /usr/src/usr.bin/xlint/xlint
A failure has been detected in another branch of the parallel make

make[2]: stopped in /usr/src
*** [_cross-tools] Error code 2

make[1]: stopped in /usr/src
1 error

make[1]: stopped in /usr/src
*** [buildworld] Error code 2

make: stopped in /usr/src
1 error

make: stopped in /usr/src
Comment 5 Dimitry Andric freebsd_committer freebsd_triage 2015-03-30 17:32:03 UTC
(In reply to sasamotikomi from comment #4)
> --- all_subdir_libllvmcodegen ---
> /usr/src/lib/clang/libllvmcodegen/../../../contrib/llvm/lib/CodeGen/LiveDebugVariables.cpp:242:29:
> error: no template named 'SmallVectorYmpl'; did you mean 'SmallVectorImpl'?
>                      const SmallVectorYmpl<SlotIndex> &Kills,
>                            ^~~~~~~~~~~~~~~
>                            SmallVectorImpl
> /usr/src/lib/clang/libllvmcodegen/../../../contrib/llvm/include/llvm/Target/TargetInstrInfo.h:40:25:
> note: 'SmallVectorImpl' declared here
> template<class T> class SmallVectorImpl;
>                        ^

There is definitely something not right with your system, as my copy of LiveDebugVariables has the correct spelling of 'SmallVectorImpl':

  void addDefsFromCopies(LiveInterval *LI, unsigned LocNo,
                      const SmallVectorImpl<SlotIndex> &Kills,
                      SmallVectorImpl<std::pair<SlotIndex, unsigned> > &NewDefs,
                      MachineRegisterInfo &MRI,
                      LiveIntervals &LIS);

Note that 'Y' (0x59) is just one bit difference from 'I' (0x49), so I suspect that your RAM is randomly flipping bits.  Please run a thorough memory test, and replace any faulty hardware.
Comment 6 sasamotikomi 2015-03-30 23:33:19 UTC
(In reply to Dimitry Andric from comment #5)
Sorry, I forgot I has difference COLLATE, also forgot many open program...
So it's will be just lack of memory.
#  locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_ALL=en_US.UTF-8
And another problem wihtout_openssl isn't enforces "disable openssl support" or usage openssl from port/not build program who request it by default?
Comment 7 sasamotikomi 2015-03-30 23:34:10 UTC
Created attachment 155033 [details]
without_openssl
Comment 8 Dimitry Andric freebsd_committer freebsd_triage 2015-03-31 07:02:43 UTC
(In reply to sasamotikomi from comment #6)
Let's not mix different issues here. I'm quite convinced that your hardware is faulty. Please fix your hardware first, and it it still occurs, reopen the bug.
Comment 9 sasamotikomi 2015-03-31 13:23:50 UTC
(In reply to Dimitry Andric from comment #8)
Yes, I understand it but a lot people who reproduce it:  
http://lists.freebsd.org/pipermail/freebsd-stable/2014-July/079413.html 
Here is partial solution: 
WITH_OPENSSL_PORT=yes in /etc/make.conf 
http://lists.freebsd.org/pipermail/freebsd-current/2014-December/053780.html