segmentation fault, building opencv
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| gcc-9 (Ubuntu) |
Expired
|
Undecided
|
Unassigned | ||
Bug Description
GCC Version:
------------
9.3.0 (Ubuntu 9.3.0-10ubuntu2)
System Type:
------------
x86_64-linux-gnu
Configured with:
----------------
../src/configure -v --with-
Thread model: posix
Command Line that triggered the bug:
-------
sudo make -j4
Error Message:
--------------
opt/opencv/
/opt/opencv/
107 | }
| ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:/
make[2]: *** [apps/version/
make[1]: *** [CMakeFiles/
make[1]: *** Waiting for unfinished jobs....
[ 35%] Building CXX object modules/
/opt/opencv/
/opt/opencv/
56 | }
| ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:/
make[2]: *** [modules/
make[1]: *** [CMakeFiles/
[ 35%] Building CXX object modules/
/opt/opencv/
/opt/opencv/
4717 | } // namespace cv
| ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:/
make[2]: *** [modules/
make[1]: *** [CMakeFiles/
[ 35%] Building CXX object modules/
/opt/opencv/
/opt/opencv/
530 | }}
| ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:/
make[2]: *** [modules/
make[2]: *** Waiting for unfinished jobs....
/opt/opencv/
/opt/opencv/
1043 | }}
| ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:/
make[2]: *** [modules/
make[1]: *** [CMakeFiles/
make: *** [Makefile:163: all] Error 2
The preprocessed file (*.i*) that triggers the bug:
-------
make: invalid option -- 'a'
make: invalid option -- '-'
# GNU Make 4.2.1
# Built for x86_64-pc-linux-gnu
# Copyright (C) 1988-2016 Free Software Foundation, Inc.
# License GPLv3+: GNU GPL version 3 or later <http://
# This is free software: you are free to change and redistribute it.
# There is NO WARRANTY, to the extent permitted by law.
Usage: make [options] [target] ...
Options:
-b, -m Ignored for compatibility.
-B, --always-make Unconditionally make all targets.
-C DIRECTORY, --directory=
-d Print lots of debugging information.
--debug[=FLAGS] Print various types of debugging information.
-e, --environment-
--eval=STRING Evaluate STRING as a makefile statement.
-f FILE, --file=FILE, --makefile=FILE
-h, --help Print this message and exit.
-i, --ignore-errors Ignore errors from recipes.
-I DIRECTORY, --include-
-j [N], --jobs[=N] Allow N jobs at once; infinite jobs with no arg.
-k, --keep-going Keep going when some targets can't be made.
-l [N], --load-average[=N], --max-load[=N]
-L, --check-
-n, --just-print, --dry-run, --recon
-o FILE, --old-file=FILE, --assume-old=FILE
-O[TYPE], --output-
-p, --print-data-base Print make's internal database.
-q, --question Run no recipe; exit status says if up to date.
-r, --no-builtin-rules Disable the built-in implicit rules.
-R, --no-builtin-
-s, --silent, --quiet Don't echo recipes.
-S, --no-keep-going, --stop
-t, --touch Touch targets instead of remaking them.
--trace Print tracing information.
-v, --version Print the version number of make and exit.
-w, --print-directory Print the current directory.
--no-
-W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
--warn-
This program built for x86_64-pc-linux-gnu
Report bugs to <email address hidden>
# Make data base, printed on Sat Oct 3 15:42:17 2020
# Variables
# default
.SHELLFLAGS := -c
# environment
XAUTHORITY = /run/user/
# environment
SHELL = /bin/bash
# environment
SUDO_COMMAND = /usr/bin/make -j4 -save-temps
# environment
GNUMAKEFLAGS :=
# environment
PATH = /usr/local/
# default
.FEATURES := target-specific order-only second-expansion else-if shortest-stem undefine oneshell archives jobserver output-sync check-symlink load
# environment
LS_COLORS = rs=0:di=
# environment
DISPLAY = :0
# default
.LOADED :=
# environment
HOME = /root
# environment
SUDO_USER = ayesha
# environment
LOGNAME = root
# environment
SUDO_GID = 1000
# environment
COLORTERM = truecolor
# environment
SUDO_UID = 1000
# environment
USER = root
# default
.VARIABLES :=
# environment
MAIL = /var/mail/root
# default
.RECIPEPREFIX :=
# environment
LANG = en_US.UTF-8
# environment
TERM = xterm-256color
# variable set hash-table stats:
# Load=22/1024=2%, Rehash=0, Collisions=0/24=0%
# Pattern-specific Variable Values
# No pattern-specific variable values.
# Directories
# No files, no impossibilities in 0 directories.
# Implicit Rules
# No implicit rules.
# Files
# files hash-table stats:
# Load=0/1024=0%, Rehash=0, Collisions=0/0=0%
# VPATH Search Paths
# No 'vpath' search paths.
# No general ('VPATH' variable) search path.
# No strcache buffers

please recheck with 9.3.0-17ubuntu1 ~20.04 from focal-updates. If the issue persists, please attach the preprocessed source for the ICE (you can save the .ii file adding -save-temps to CXXFLAGS).