build error on octeon, 6.6

classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|

build error on octeon, 6.6

Christian Groessler
Hi,

I've installed OpenBSD 6.6 on an EdgeRouter Lite. I wanted to rebuild
the system.

/usr/src and /usr/obj are on a NFS server, I've changed /etc/mk.conf
accordingly:

routie$ cat /etc/mk.conf
BSDSRCDIR=/net/sirius/temp/routie-build/6.6/src
BSDOBJDIR=/net/sirius/temp/routie-build/6.6/obj
SKIPDIR=games
routie$
routie$ ls -l /usr/obj /usr/src
lrwxr-xr-x  1 root  wheel  37 Nov  5 19:38 /usr/obj ->
/net/sirius/temp/routie-build/6.6/obj
lrwxr-xr-x  1 root  wheel  37 Nov  5 19:38 /usr/src ->
/net/sirius/temp/routie-build/6.6/src
routie$


In /usr/src I typed "make obj" and then "make build". After building for
~1 day it fails with

...
ild/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms/Utils
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms/IPO
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../include
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include
-DNDEBUG -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -DLLVM_PREFIX="/usr" -DLLDB_DISABLE_PYTHON -c
/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
-o AMDGPUTargetMachine.o
c++: error: unable to execute command: Segmentation fault
c++: error: clang frontend command failed due to signal (use -v to see
invocation)
OpenBSD clang version 8.0.1 (tags/RELEASE_801/final) (based on LLVM 8.0.1)
Target: mips64-unknown-openbsd6.6
Thread model: posix
InstalledDir: /usr/bin
c++: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed
source, and associated run script.
c++: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
c++: note: diagnostic msg: /tmp/AMDGPUTargetMachine-6052ab.cpp
c++: note: diagnostic msg: /tmp/AMDGPUTargetMachine-6052ab.sh
c++: note: diagnostic msg:

********************
*** Error 254 in
/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM
(<bsd.lib.mk>:67 'AMDGPUTargetMachine.o': @c++ -O2 -pipe -...)
*** Error 1 in /net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang
(<bsd.subdir.mk>:48 'all')
*** Error 1 in /net/sirius/temp/routie-build/6.6/src/gnu/usr.bin
(<bsd.subdir.mk>:48 'all')
*** Error 1 in /net/sirius/temp/routie-build/6.6/src/gnu
(<bsd.subdir.mk>:48 'all')
*** Error 1 in . (<bsd.subdir.mk>:48 'all')
*** Error 1 in . (Makefile:95 'do-build')
*** Error 1 in /usr/src (Makefile:74 'build')
routie#


Maybe the machine has too little memory?

routie$ swapctl -lk
Device      1K-blocks     Used    Avail Capacity  Priority
/dev/sd0b      220770    35824   184946    16%    0
routie$
routie$ sysctl -a | grep physmem
hw.physmem=536870912
routie$


regards,
chris

Reply | Threaded
Open this post in threaded view
|

Re: build error on octeon, 6.6

Janne Johansson-3
Den ons 6 nov. 2019 kl 23:36 skrev Christian Groessler <[hidden email]
>:

> Hi,
> I've installed OpenBSD 6.6 on an EdgeRouter Lite. I wanted to rebuild
> the system.
>
> Maybe the machine has too little memory?
>
> routie$ swapctl -lk
> Device      1K-blocks     Used    Avail Capacity  Priority
> /dev/sd0b      220770    35824   184946    16%    0
> routie$
> routie$ sysctl -a | grep physmem
> hw.physmem=536870912
>

A while back when I needed/wanted to build ports-llvm on ERL, I added some
8G of swap over NFS (to an ssd-x86_64 server) which helps with large builds.
Takes ages, but works.

--
May the most significant bit of your life be positive.
Reply | Threaded
Open this post in threaded view
|

Re: build error on octeon, 6.6

Christian Groessler
On 2019-11-07 09:42, Janne Johansson wrote:
> A while back when I needed/wanted to build ports-llvm on ERL, I added some
> 8G of swap over NFS (to an ssd-x86_64 server) which helps with large builds.
> Takes ages, but works.


I've added 8GB swap, but am still getting the same error:


ild/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms/Utils
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms/IPO
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../include
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include
-DNDEBUG -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -DLLVM_PREFIX="/usr" -DLLDB_DISABLE_PYTHON -c
/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
-o AMDGPUTargetMachine.o
c++: error: unable to execute command: Segmentation fault
c++: error: clang frontend command failed due to signal (use -v to see
invocation)
OpenBSD clang version 8.0.1 (tags/RELEASE_801/final) (based on LLVM 8.0.1)
Target: mips64-unknown-openbsd6.6
Thread model: posix
InstalledDir: /usr/bin
c++: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed
source, and associated run script.
c++: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
c++: note: diagnostic msg: /tmp/AMDGPUTargetMachine-d72802.cpp
c++: note: diagnostic msg: /tmp/AMDGPUTargetMachine-d72802.sh
c++: note: diagnostic msg:

********************
*** Error 254 in
/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM
(<bsd.lib.mk>:67 'AMDGPUTargetMachine.o': @c++ -O2 -pipe -...)
*** Error 1 in /net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang
(<bsd.subdir.mk>:48 'all')
*** Error 1 in /net/sirius/temp/routie-build/6.6/src/gnu/usr.bin
(<bsd.subdir.mk>:48 'all')
*** Error 1 in /net/sirius/temp/routie-build/6.6/src/gnu
(<bsd.subdir.mk>:48 'all')
*** Error 1 in . (<bsd.subdir.mk>:48 'all')
*** Error 1 in . (Makefile:95 'do-build')
*** Error 1 in /usr/src (Makefile:74 'build')
  1460m59.48s real  1246m36.88s user   144m07.46s system
routie#
routie# swapctl -lk
Device      1K-blocks     Used    Avail Capacity  Priority
/dev/sd0b      220770    40336   180434    18%    0
swapfile      8388608        0  8388608     0%    1
Total         8609378    40336  8569042     0%
routie#


regards,
chris

Reply | Threaded
Open this post in threaded view
|

Re: build error on octeon, 6.6

Christian Groessler

On 2019-11-08 14:15, Christian Groessler wrote:
>
> I've added 8GB swap, but am still getting the same error:
>

I've noticed that my /tmp partition might be too small (64M). I'm going
to reinstall with bigger /tmp (1GB) and try again...

regards,
chris


Reply | Threaded
Open this post in threaded view
|

Re: build error on octeon, 6.6

Janne Johansson-3
I wonder if this part is relevant:
c++: error: unable to execute command

Is there any permissions on /net that prevents execution?

I seems it wants to run stuff from here:

...
*** Error 254 in
/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM
(<bsd.lib.mk>:67 'AMDGPUTargetMachine.o': @c++ -O2 -pipe -...)
*** Error 1 in /net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang


> I've noticed that my /tmp partition might be too small (64M). I'm going
> to reinstall with bigger /tmp (1GB) and try again...
>


--
May the most significant bit of your life be positive.
Reply | Threaded
Open this post in threaded view
|

Re: build error on octeon, 6.6

Christian Groessler
In reply to this post by Christian Groessler
On 2019-11-08 14:38, Christian Groessler wrote:
>
> On 2019-11-08 14:15, Christian Groessler wrote:
>>
>> I've added 8GB swap, but am still getting the same error:
>>
>
> I've noticed that my /tmp partition might be too small (64M). I'm
> going to reinstall with bigger /tmp (1GB) and try again...
>

This fails as well, with the same error.

Now I'm going to rebuild again, capturing the "make" output, and try to
replicate the problem manually.

regards,
chris



Reply | Threaded
Open this post in threaded view
|

Re: build error on octeon, 6.6

Christian Groessler
In reply to this post by Janne Johansson-3

On 2019-11-08 14:50, Janne Johansson wrote:
> I wonder if this part is relevant:
> c++: error: unable to execute command
>
> Is there any permissions on /net that prevents execution?


The complete line is:

c++: error: unable to execute command: Segmentation fault

I would have expected a "permission denied" error if there's a
permission problem.
I will try to execute the failing command manually to see if I can nail
it down.

regards,
chris


Reply | Threaded
Open this post in threaded view
|

Re: build error on octeon, 6.6

Rudolf Leitgeb
In reply to this post by Janne Johansson-3
Somewhere in his error output it says:

Target: mips64-unknown-openbsd6.6

This would not work with octeon AFAIK. Maybe this is the
reason the build fails ? It would at least make sense regarding
the "unable to execute command" message.


On Fri, 2019-11-08 at 14:50 +0100, Janne Johansson wrote:

> I wonder if this part is relevant:
> c++: error: unable to execute command
>
> Is there any permissions on /net that prevents execution?
>
> I seems it wants to run stuff from here:
>
> ...
> *** Error 254 in
> /net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM
> (<bsd.lib.mk>:67 'AMDGPUTargetMachine.o': @c++ -O2 -pipe -...)
> *** Error 1 in /net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang
>
>
> > I've noticed that my /tmp partition might be too small (64M). I'm going
> > to reinstall with bigger /tmp (1GB) and try again...
> >
>
>

Reply | Threaded
Open this post in threaded view
|

Re: build error on octeon, 6.6

Christian Groessler
Rudolf,

On 2019-11-11 15:23, Rudolf Leitgeb wrote:
> Somewhere in his error output it says:
>
> Target: mips64-unknown-openbsd6.6
>
> This would not work with octeon AFAIK. Maybe this is the
> reason the build fails ? It would at least make sense regarding
> the "unable to execute command" message


I think your comment is wrong.

See this:


routie# cc --version
OpenBSD clang version 8.0.1 (tags/RELEASE_801/final) (based on LLVM 8.0.1)
Target: mips64-unknown-openbsd6.6
Thread model: posix
InstalledDir: /usr/bin
routie# cat hello.c
#include <stdio.h>

int main(void)
{
         printf("World, Hello\n");
         return 0;
}
routie# cc -o hello hello.c
routie# ./hello
World, Hello
routie# uname -a
OpenBSD routie.xxx.xxx 6.6 GENERIC.MP#107 octeon
routie#


regards,
chris

Reply | Threaded
Open this post in threaded view
|

Re: build error on octeon, 6.6

Christian Groessler
In reply to this post by Christian Groessler
Hi,

On 2019-11-11 12:18, Christian Groessler wrote:
>
> Now I'm going to rebuild again, capturing the "make" output, and try
> to replicate the problem manually.
>

Interestingly, this time the build fails at a later stage.


c++ -O2 -pipe  -fomit-frame-pointer -std=c++11
-fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Wall -W
-Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wno-missing-field-initializers -pedantic -Wno-long-long
-Wdelete-non-virtual-dtor -Wno-comment   -MD -MP
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/AMDGPU
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/AMDGPU
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/AMDGPU
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/AMDGPU
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/AMDGPU
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/AMDGPU
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/AMDGPU
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Analysis
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Analysis
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/BinaryFormat
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Bitcode
-I/include/llvm/CodeGen -I/include/llvm/CodeGen/PBQP
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/IR
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms/Coroutines
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/ProfileData/Coverage
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/DebugInfo/CodeView
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/DebugInfo/DWARF
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/DebugInfo/MSF
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/DebugInfo/PDB
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Demangle
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/ExecutionEngine
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/IRReader
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms/InstCombine
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Transforms/InstCombine
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/LTO
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Linker
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/MC
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/MC/MCParser
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Object
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Option
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Passes
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/ProfileData
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms/Scalar
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Support
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/TableGen
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Target
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms/Utils
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms/IPO
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../include
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj
-I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include
-DNDEBUG -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -DLLVM_PREFIX="/usr" -DLLDB_DISABLE_PYTHON -c
/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Passes/PassBuilder.cpp
-o PassBuilder.o
c++: error: unable to execute command: Segmentation fault
c++: error: clang frontend command failed due to signal (use -v to see
invocation)
OpenBSD clang version 8.0.1 (tags/RELEASE_801/final) (based on LLVM 8.0.1)
Target: mips64-unknown-openbsd6.6
Thread model: posix
InstalledDir: /usr/bin
c++: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed
source, and associated run script.
c++: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
c++: note: diagnostic msg: /tmp/PassBuilder-ebbd64.cpp
c++: note: diagnostic msg: /tmp/PassBuilder-ebbd64.sh
c++: note: diagnostic msg:

********************
*** Error 254 in
/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM
(<bsd.lib.mk>:67 'PassBuilder.o': @c++ -O2 -pipe -fomit-fr...)
*** Error 1 in /net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang
(<bsd.subdir.mk>:48 'all')
*** Error 1 in /net/sirius/temp/routie-build/6.6/src/gnu/usr.bin
(<bsd.subdir.mk>:48 'all')
*** Error 1 in /net/sirius/temp/routie-build/6.6/src/gnu
(<bsd.subdir.mk>:48 'all')
*** Error 1 in . (<bsd.subdir.mk>:48 'all')
*** Error 1 in . (Makefile:95 'do-build')
*** Error 1 in /usr/src (Makefile:74 'build')


And this build until the failure took two days (~48 hours) as opposed to
one day (~24 hours) before. "Build command" was something like (hadn't
written it down)

# make build 2>&1 | tee /tmp/make.log


Complete build log is available at
ftp://ftp.groessler.org/pub/chris/tmp/make.log.bz2 and I've attached
"dmesg" output.


Digging further but it seems that I'm doing somehow something wrong...


regards,
chris


dmesg.txt (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: build error on octeon, 6.6

Diana Eichert
Have you tried restarting make at the point it failed?

I remember trying to compile ports on my Ubiquiti SG and a build failed.
I can't remember who I contacted on @openbsd ports but they mentioned
I should try do that and some of the ports would continue on then fail later.
I ended up buying an Ubiquiti SG Pro which has not shown the same
issue.

just an idea

diana

Reply | Threaded
Open this post in threaded view
|

Re: build error on octeon, 6.6

Theo de Raadt-2
Diana Eichert <[hidden email]> wrote:

> Have you tried restarting make at the point it failed?
>
> I remember trying to compile ports on my Ubiquiti SG and a build failed.
> I can't remember who I contacted on @openbsd ports but they mentioned
> I should try do that and some of the ports would continue on then fail later.
> I ended up buying an Ubiquiti SG Pro which has not shown the same
> issue.

i do builds every day.  obviously the tree is not broken, or i would
be fixing it.

i'm not even looking at those build logs.

the src is not at /usr/src, so i'm going to dig deeper.

Reply | Threaded
Open this post in threaded view
|

Re: build error on octeon, 6.6

Christian Groessler
On 2019-11-16 18:36, Theo de Raadt wrote:
> Diana Eichert <[hidden email]> wrote:
>
>> Have you tried restarting make at the point it failed?
>>
>> I remember trying to compile ports on my Ubiquiti SG and a build failed.
>> I can't remember who I contacted on @openbsd ports but they mentioned
>> I should try do that and some of the ports would continue on then fail later.
>> I ended up buying an Ubiquiti SG Pro which has not shown the same
>> issue.


Diana, it's not a port build that fails, but the build of the base system.


> i do builds every day.  obviously the tree is not broken, or i would
> be fixing it.


We are talking about 6.6 release, not current devel version.
And, sure, this worked somehow somewhere, how else could the
installation tarballs
exist?


> i'm not even looking at those build logs.


I had added them just to back up what I saw.


> the src is not at /usr/src, so i'm going to dig deeper.


(not a native English speaking person) Did you want to say "*not*
going to dig deeper"?


regards,
chris

Reply | Threaded
Open this post in threaded view
|

Re: build error on octeon, 6.6

Theo de Raadt-2
Christian Groessler <[hidden email]> wrote:

> > the src is not at /usr/src, so i'm going to dig deeper.
>
>
> (not a native English speaking person) Did you want to say "*not*
> going to dig deeper"?

indeed.

not going to dig deeper.

problem at your end.

Reply | Threaded
Open this post in threaded view
|

Same result (Re: build error on octeon, 6.6)

Pekka Niiranen-2
In reply to this post by Christian Groessler
Hi misc,

I got the same libLLVM error message

"c++: error: unable to execute command: Segmentation fault"

after about 3 days since "make build". I tried twice and did not use any
external drives. I have 16GB USB stick inside with

- 512 MB /
- 512 MB swap
- 1GB /tmp
- 1GB /var
- 10GB /usr
- the rest is for /home

At the time of the failure the /usr was about 50% full,

I have had no problems in building the kernel and patches.

-pekka-

On 16.11.2019 2.22, Christian Groessler wrote:

> Hi,
>
> On 2019-11-11 12:18, Christian Groessler wrote:
>>
>> Now I'm going to rebuild again, capturing the "make" output, and try
>> to replicate the problem manually.
>>
>
> Interestingly, this time the build fails at a later stage.
>
>
> c++ -O2 -pipe  -fomit-frame-pointer -std=c++11
> -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Wall -W
> -Wno-unused-parameter -Wwrite-strings -Wcast-qual
> -Wno-missing-field-initializers -pedantic -Wno-long-long
> -Wdelete-non-virtual-dtor -Wno-comment   -MD -MP
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/AMDGPU
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/AMDGPU
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/AMDGPU
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/AMDGPU
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/AMDGPU
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/AMDGPU
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/AMDGPU
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Analysis
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Analysis
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/BinaryFormat
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Bitcode
> -I/include/llvm/CodeGen -I/include/llvm/CodeGen/PBQP
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/IR
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms/Coroutines
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/ProfileData/Coverage
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/DebugInfo/CodeView
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/DebugInfo/DWARF
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/DebugInfo/MSF
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/DebugInfo/PDB
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Demangle
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/ExecutionEngine
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/IRReader
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms/InstCombine
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Transforms/InstCombine
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/LTO
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Linker
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/MC
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/MC/MCParser
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Object
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Option
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Passes
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/ProfileData
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms/Scalar
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Support
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/TableGen
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Target
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms/Utils
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms/IPO
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../include
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj
> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include
> -DNDEBUG -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS
> -D__STDC_FORMAT_MACROS -DLLVM_PREFIX="/usr" -DLLDB_DISABLE_PYTHON -c
> /net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Passes/PassBuilder.cpp
> -o PassBuilder.o
> c++: error: unable to execute command: Segmentation fault
> c++: error: clang frontend command failed due to signal (use -v to see
> invocation)
> OpenBSD clang version 8.0.1 (tags/RELEASE_801/final) (based on LLVM 8.0.1)
> Target: mips64-unknown-openbsd6.6
> Thread model: posix
> InstalledDir: /usr/bin
> c++: note: diagnostic msg: PLEASE submit a bug report to
> http://llvm.org/bugs/ and include the crash backtrace, preprocessed
> source, and associated run script.
> c++: note: diagnostic msg:
> ********************
>
> PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
> Preprocessed source(s) and associated run script(s) are located at:
> c++: note: diagnostic msg: /tmp/PassBuilder-ebbd64.cpp
> c++: note: diagnostic msg: /tmp/PassBuilder-ebbd64.sh
> c++: note: diagnostic msg:
>
> ********************
> *** Error 254 in
> /net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM
> (<bsd.lib.mk>:67 'PassBuilder.o': @c++ -O2 -pipe -fomit-fr...)
> *** Error 1 in /net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang
> (<bsd.subdir.mk>:48 'all')
> *** Error 1 in /net/sirius/temp/routie-build/6.6/src/gnu/usr.bin
> (<bsd.subdir.mk>:48 'all')
> *** Error 1 in /net/sirius/temp/routie-build/6.6/src/gnu
> (<bsd.subdir.mk>:48 'all')
> *** Error 1 in . (<bsd.subdir.mk>:48 'all')
> *** Error 1 in . (Makefile:95 'do-build')
> *** Error 1 in /usr/src (Makefile:74 'build')
>
>
> And this build until the failure took two days (~48 hours) as opposed to
> one day (~24 hours) before. "Build command" was something like (hadn't
> written it down)
>
> # make build 2>&1 | tee /tmp/make.log
>
>
> Complete build log is available at
> ftp://ftp.groessler.org/pub/chris/tmp/make.log.bz2 and I've attached
> "dmesg" output.
>
>
> Digging further but it seems that I'm doing somehow something wrong...
>
>
> regards,
> chris
>

Reply | Threaded
Open this post in threaded view
|

Re: Same result (Re: build error on octeon, 6.6)

Christian Groessler
On 2020-02-26 21:50, Pekka Niiranen wrote:
> Hi misc,
>
> I got the same libLLVM error message


I had re-tried a few weeks ago, also with bigger USB stick and NFS out
of the way. And was still getting the error, too.

I got distracted by work things, so I didn't post it.


regards,
chris



>
> "c++: error: unable to execute command: Segmentation fault"
>
> after about 3 days since "make build". I tried twice and did not use
> any external drives. I have 16GB USB stick inside with
>
> - 512 MB /
> - 512 MB swap
> - 1GB /tmp
> - 1GB /var
> - 10GB /usr
> - the rest is for /home
>
> At the time of the failure the /usr was about 50% full,
>
> I have had no problems in building the kernel and patches.
>
> -pekka-
>
> On 16.11.2019 2.22, Christian Groessler wrote:
>> Hi,
>>
>> On 2019-11-11 12:18, Christian Groessler wrote:
>>>
>>> Now I'm going to rebuild again, capturing the "make" output, and try
>>> to replicate the problem manually.
>>>
>>
>> Interestingly, this time the build fails at a later stage.
>>
>>
>> c++ -O2 -pipe  -fomit-frame-pointer -std=c++11
>> -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Wall -W
>> -Wno-unused-parameter -Wwrite-strings -Wcast-qual
>> -Wno-missing-field-initializers -pedantic -Wno-long-long
>> -Wdelete-non-virtual-dtor -Wno-comment   -MD -MP
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/AMDGPU
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/AMDGPU
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/AMDGPU
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/AMDGPU
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/AMDGPU
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/AMDGPU
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/AMDGPU
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Analysis
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Analysis
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/BinaryFormat
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Bitcode
>> -I/include/llvm/CodeGen -I/include/llvm/CodeGen/PBQP
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/IR
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms/Coroutines
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/ProfileData/Coverage
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/DebugInfo/CodeView
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/DebugInfo/DWARF
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/DebugInfo/MSF
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/DebugInfo/PDB
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Demangle
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/ExecutionEngine
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/IRReader
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms/InstCombine
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Transforms/InstCombine
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/LTO
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Linker
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/MC
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/MC/MCParser
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Object
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Option
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Passes
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/ProfileData
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms/Scalar
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Support
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/TableGen
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Target
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms/Utils
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms/IPO
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../include
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj
>> -I/net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/obj/../include
>> -DNDEBUG -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS
>> -D__STDC_FORMAT_MACROS -DLLVM_PREFIX="/usr" -DLLDB_DISABLE_PYTHON -c
>> /net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Passes/PassBuilder.cpp
>> -o PassBuilder.o
>> c++: error: unable to execute command: Segmentation fault
>> c++: error: clang frontend command failed due to signal (use -v to
>> see invocation)
>> OpenBSD clang version 8.0.1 (tags/RELEASE_801/final) (based on LLVM
>> 8.0.1)
>> Target: mips64-unknown-openbsd6.6
>> Thread model: posix
>> InstalledDir: /usr/bin
>> c++: note: diagnostic msg: PLEASE submit a bug report to
>> http://llvm.org/bugs/ and include the crash backtrace, preprocessed
>> source, and associated run script.
>> c++: note: diagnostic msg:
>> ********************
>>
>> PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
>> Preprocessed source(s) and associated run script(s) are located at:
>> c++: note: diagnostic msg: /tmp/PassBuilder-ebbd64.cpp
>> c++: note: diagnostic msg: /tmp/PassBuilder-ebbd64.sh
>> c++: note: diagnostic msg:
>>
>> ********************
>> *** Error 254 in
>> /net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang/libLLVM
>> (<bsd.lib.mk>:67 'PassBuilder.o': @c++ -O2 -pipe -fomit-fr...)
>> *** Error 1 in
>> /net/sirius/temp/routie-build/6.6/src/gnu/usr.bin/clang
>> (<bsd.subdir.mk>:48 'all')
>> *** Error 1 in /net/sirius/temp/routie-build/6.6/src/gnu/usr.bin
>> (<bsd.subdir.mk>:48 'all')
>> *** Error 1 in /net/sirius/temp/routie-build/6.6/src/gnu
>> (<bsd.subdir.mk>:48 'all')
>> *** Error 1 in . (<bsd.subdir.mk>:48 'all')
>> *** Error 1 in . (Makefile:95 'do-build')
>> *** Error 1 in /usr/src (Makefile:74 'build')
>>
>>
>> And this build until the failure took two days (~48 hours) as opposed
>> to one day (~24 hours) before. "Build command" was something like
>> (hadn't written it down)
>>
>> # make build 2>&1 | tee /tmp/make.log
>>
>>
>> Complete build log is available at
>> ftp://ftp.groessler.org/pub/chris/tmp/make.log.bz2 and I've attached
>> "dmesg" output.
>>
>>
>> Digging further but it seems that I'm doing somehow something wrong...
>>
>>
>> regards,
>> chris
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: build error on octeon, 6.7

Christian Groessler
In reply to this post by Christian Groessler
Hi,

I had the same problem on 6.6. And 6.7 version doesn't fix it.

EdgeRouter Lite, local 16GB USB stick as disk.


===> gnu/usr.bin/clang/libLLVM
c++ -O2 -pipe  -fno-ret-protector -fomit-frame-pointer -std=c++11
-fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Wall -W
-Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wno-missing-field-initializers -pedantic -Wno-long-long
-Wdelete-non-virtual-dtor -Wno-comment   -MD -MP
-I/usr/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/AMDGPU
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU
-I/usr/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/AMDGPU
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU
-I/usr/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/AMDGPU
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU
-I/usr/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/AMDGPU
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU
-I/usr/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/AMDGPU
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU
-I/usr/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/AMDGPU
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU
-I/usr/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/AMDGPU
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Analysis
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Analysis
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/BinaryFormat
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Bitcode
-I/include/llvm/CodeGen -I/include/llvm/CodeGen/PBQP
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/IR
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms/Coroutines
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/ProfileData/Coverage
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/DebugInfo/CodeView
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/DebugInfo/DWARF
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/DebugInfo/MSF
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/DebugInfo/PDB
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Demangle
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/ExecutionEngine
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/IRReader
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms/InstCombine
-I/usr/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Transforms/InstCombine
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/LTO
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Linker
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/MC
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/MC/MCParser
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Object
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Option
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Passes
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/ProfileData
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms/Scalar
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Support
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/TableGen
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Target
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms/Utils
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
-I/usr/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
-I/usr/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
-I/usr/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
-I/usr/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
-I/usr/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
-I/usr/src/gnu/usr.bin/clang/libLLVM/obj/../include/llvm/Mips
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/Mips
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include/llvm/Transforms/IPO
-I/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/include
-I/usr/src/gnu/usr.bin/clang/libLLVM/../include
-I/usr/src/gnu/usr.bin/clang/libLLVM/obj
-I/usr/src/gnu/usr.bin/clang/libLLVM/obj/../include -DNDEBUG
-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-DLLVM_PREFIX="/usr" -DLLDB_DISABLE_PYTHON -c
/usr/src/gnu/usr.bin/clang/libLLVM/../../../llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
-o AMDGPUAsmParser.o
c++: error: unable to execute command: Segmentation fault
c++: error: clang frontend command failed due to signal (use -v to see
invocation)
OpenBSD clang version 8.0.1 (tags/RELEASE_801/final) (based on LLVM 8.0.1)
Target: mips64-unknown-openbsd6.7
Thread model: posix
InstalledDir: /usr/bin
c++: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed
source, and associated run script.
c++: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
c++: note: diagnostic msg: /tmp/AMDGPUAsmParser-2fe563.cpp
c++: note: diagnostic msg: /tmp/AMDGPUAsmParser-2fe563.sh
c++: note: diagnostic msg:

********************
*** Error 254 in gnu/usr.bin/clang/libLLVM (<bsd.lib.mk>:67
'AMDGPUAsmParser.o': @c++ -O2 -pipe  -fno-ret-protector
-fomit-frame-pointer -st...)
*** Error 2 in gnu/usr.bin/clang (<bsd.subdir.mk>:48 'all': @for entry
in include/llvm/Config libLLVMSupport libLLVMTableGen llvm-tblgen inc...)
*** Error 2 in gnu/usr.bin (<bsd.subdir.mk>:48 'all': @for entry in cc
clang cxxfilt cvs binutils binutils-2.17 perl texinfo; do  set -e; if...)
*** Error 2 in gnu (<bsd.subdir.mk>:48 'all': @for entry in lib usr.bin
usr.sbin; do  set -e; if test -d /usr/src/gnu/${entry}.octeon; then ...)
*** Error 2 in . (<bsd.subdir.mk>:48 'all': @for entry in lib include
bin libexec sbin usr.bin usr.sbin share games gnu sys; do set -e; if ...)
*** Error 2 in . (Makefile:97 'do-build')

*** Error 2 in /usr/src (Makefile:74 'build')


regards,
chris




AMDGPUAsmParser-2fe563.cpp.bz2 (2M) Download Attachment
AMDGPUAsmParser-2fe563.sh.bz2 (2K) Download Attachment