You are not logged in.

#26 2020-10-12 13:41:19

seth
Member
Registered: 2012-09-03
Posts: 16,575

Re: [Solved] Segmentation fault during buidling Alpine from AUR

wget http://alpine.x10host.com/alpine/release/src/alpine-2.23.tar.xz
--2020-10-12 08:11:53--  http://alpine.x10host.com/alpine/release/src/alpine-2.23.tar.xz
Auflösen des Hostnamens alpine.x10host.com (alpine.x10host.com)… 198.91.81.12
Verbindungsaufbau zu alpine.x10host.com (alpine.x10host.com)|198.91.81.12|:80 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 404 Not Found
2020-10-12 08:11:53 FEHLER 404: Not Found.

It however just worked here as well, so transient issue.

The "-I../include -I../include" is from regex/Makefile, but string.h isn't actually resolved out of this file, but the PWD (I guess I was seriously tired)
Some global gcc config?
Output of

echo | gcc -E -Wp,-v -

?

Offline

#27 2020-10-12 17:25:31

redshoe
Member
Registered: 2015-12-16
Posts: 52

Re: [Solved] Segmentation fault during buidling Alpine from AUR

Here is the output of

echo | gcc -E -Wp,-v -
ignoring nonexistent directory "/usr/include/CL"
ignoring nonexistent directory "/usr/include/CL"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 .
 /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include
 /usr/local/include
 /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include-fixed
 /usr/include
End of search list.
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 31 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 32 "<command-line>" 2
# 1 "<stdin>"

Offline

#28 2020-10-12 19:25:21

seth
Member
Registered: 2012-09-03
Posts: 16,575

Re: [Solved] Segmentation fault during buidling Alpine from AUR

#include <...> search starts here:
 .
 /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include

There's your dot.
Output of

type gcc
printenv

?

Offline

#29 2020-10-12 19:46:02

redshoe
Member
Registered: 2015-12-16
Posts: 52

Re: [Solved] Segmentation fault during buidling Alpine from AUR

Here are the outputs

gcc is /usr/bin/gcc
SHELL=/bin/bash
WINDOWID=41943043
COLORTERM=truecolor
GTK_IM_MODULE=ibus
I3SOCK=/run/user/1000/i3/ipc-socket.562
XMODIFIERS=@im=ibus
XDG_SEAT=seat0
PWD=/home/rangke
LOGNAME=rangke
XDG_SESSION_TYPE=tty
XAUTHORITY=/home/rangke/.Xauthority
WINDOWPATH=1
MOTD_SHOWN=pam
HOME=/home/rangke
LANG=en_US.UTF-8
VTE_VERSION=6200
INVOCATION_ID=17b68ebf76e345e39309c9a7cd45436a
XDG_SESSION_CLASS=user
TERM=xterm-256color
USER=rangke
DISPLAY=:0
SHLVL=2
QT_IM_MODULE=ibus
XDG_VTNR=1
XDG_SESSION_ID=1
MPLBACKEND=GTK3Agg
XDG_RUNTIME_DIR=/run/user/1000
JOURNAL_STREAM=8:22879
PATH=/home/rangke/Work/Cloud/Core/Stable_Ver:/home/rangke/.HWs:/home/rangke/Work/Cloud/Core/Stable_Ver:/home/rangke/.HWs:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
MAIL=/var/spool/mail/rangke
_=/usr/bin/printenv

Offline

#30 2020-10-12 20:03:32

seth
Member
Registered: 2012-09-03
Posts: 16,575

Re: [Solved] Segmentation fault during buidling Alpine from AUR

Nope, let's see whether it finds some config file.

echo | strace gcc -E -Wp,-v 2>&1 | curl -F 'f:1=<-' ix.io

Offline

#31 2020-10-12 20:25:41

redshoe
Member
Registered: 2015-12-16
Posts: 52

Re: [Solved] Segmentation fault during buidling Alpine from AUR

This is what I get...

http://ix.io/1NP2

Offline

#32 2020-10-12 20:33:47

seth
Member
Registered: 2012-09-03
Posts: 16,575

Re: [Solved] Segmentation fault during buidling Alpine from AUR

bash: strace: command not found

Install strace, then run the command again (it uploads a strace of the gcc call, showing which files it opens etc.)

Offline

#33 2020-10-12 22:20:45

redshoe
Member
Registered: 2015-12-16
Posts: 52

Re: [Solved] Segmentation fault during buidling Alpine from AUR

Here is the output

execve("/usr/bin/gcc", ["gcc", "-E", "-Wp,-v"], 0x7ffddc7c6040 /* 37 vars */) = 0
brk(NULL)                               = 0x2018000
arch_prctl(0x3001 /* ARCH_??? */, 0x7ffebcd0c440) = -1 EINVAL (Invalid argument)
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=103032, ...}) = 0
mmap(NULL, 103032, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fbfc7864000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\363\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1332096, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbfc7862000
mmap(NULL, 1331224, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fbfc771c000
mmap(0x7fbfc772b000, 638976, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf000) = 0x7fbfc772b000
mmap(0x7fbfc77c7000, 626688, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xab000) = 0x7fbfc77c7000
mmap(0x7fbfc7860000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x143000) = 0x7fbfc7860000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\202\2\0\0\0\0\0"..., 832) = 832
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
pread64(3, "\4\0\0\0\20\0\0\0\5\0\0\0GNU\0\2\0\0\300\4\0\0\0\3\0\0\0\0\0\0\0", 32, 848) = 32
pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0\364[g\253(\257\25\201\313\250\344q>\17\323\262"..., 68, 880) = 68
fstat(3, {st_mode=S_IFREG|0755, st_size=2159552, ...}) = 0
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
mmap(NULL, 1868448, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fbfc7553000
mmap(0x7fbfc7579000, 1363968, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x26000) = 0x7fbfc7579000
mmap(0x7fbfc76c6000, 311296, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x173000) = 0x7fbfc76c6000
mmap(0x7fbfc7712000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1be000) = 0x7fbfc7712000
mmap(0x7fbfc7718000, 12960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fbfc7718000
close(3)                                = 0
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbfc7550000
arch_prctl(ARCH_SET_FS, 0x7fbfc7550740) = 0
mprotect(0x7fbfc7712000, 12288, PROT_READ) = 0
mprotect(0x7fbfc7860000, 4096, PROT_READ) = 0
mprotect(0x525000, 12288, PROT_READ)    = 0
mprotect(0x7fbfc78aa000, 4096, PROT_READ) = 0
munmap(0x7fbfc7864000, 103032)          = 0
brk(NULL)                               = 0x2018000
brk(0x2039000)                          = 0x2039000
brk(0x205b000)                          = 0x205b000
openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=4378768, ...}) = 0
mmap(NULL, 4378768, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fbfc7122000
close(3)                                = 0
openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2998, ...}) = 0
read(3, "# Locale name alias data base.\n#"..., 4096) = 2998
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/usr/share/locale/en_US.UTF-8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en_US.utf8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en_US/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en.UTF-8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en.utf8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
ioctl(2, TCGETS, 0x7ffebcd0c2c0)        = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(2, TCGETS, 0x7ffebcd0c2d0)        = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(2, TCGETS, 0x7ffebcd0c2d0)        = -1 ENOTTY (Inappropriate ioctl for device)
rt_sigaction(SIGINT, {sa_handler=SIG_IGN, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fbfc75906a0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGINT, {sa_handler=0x409d50, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fbfc75906a0}, {sa_handler=SIG_IGN, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fbfc75906a0}, 8) = 0
rt_sigaction(SIGHUP, {sa_handler=SIG_IGN, sa_mask=[HUP], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fbfc75906a0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGHUP, {sa_handler=0x409d50, sa_mask=[HUP], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fbfc75906a0}, {sa_handler=SIG_IGN, sa_mask=[HUP], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fbfc75906a0}, 8) = 0
rt_sigaction(SIGTERM, {sa_handler=SIG_IGN, sa_mask=[TERM], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fbfc75906a0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGTERM, {sa_handler=0x409d50, sa_mask=[TERM], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fbfc75906a0}, {sa_handler=SIG_IGN, sa_mask=[TERM], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fbfc75906a0}, 8) = 0
rt_sigaction(SIGPIPE, {sa_handler=SIG_IGN, sa_mask=[PIPE], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fbfc75906a0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGPIPE, {sa_handler=0x409d50, sa_mask=[PIPE], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fbfc75906a0}, {sa_handler=SIG_IGN, sa_mask=[PIPE], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fbfc75906a0}, 8) = 0
rt_sigaction(SIGCHLD, {sa_handler=SIG_DFL, sa_mask=[CHLD], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fbfc75906a0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
prlimit64(0, RLIMIT_STACK, {rlim_cur=65536*1024, rlim_max=RLIM64_INFINITY}, NULL) = 0
access("/home/rangke/Work/Cloud/Core/Stable_Ver/gcc", X_OK) = -1 ENOENT (No such file or directory)
access("/home/rangke/.HWs/gcc", X_OK)   = -1 ENOENT (No such file or directory)
access("/home/rangke/Work/Cloud/Core/Stable_Ver/gcc", X_OK) = -1 ENOENT (No such file or directory)
access("/home/rangke/.HWs/gcc", X_OK)   = -1 ENOENT (No such file or directory)
access("/usr/local/sbin/gcc", X_OK)     = -1 ENOENT (No such file or directory)
access("/usr/local/bin/gcc", X_OK)      = -1 ENOENT (No such file or directory)
access("/usr/bin/gcc", X_OK)            = 0
stat("/usr/bin/gcc", {st_mode=S_IFREG|0755, st_size=1215280, ...}) = 0
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/bin", {st_mode=S_IFDIR|0755, st_size=77824, ...}) = 0
lstat("/usr/bin/gcc", {st_mode=S_IFREG|0755, st_size=1215280, ...}) = 0
access("/home/rangke/Work/Cloud/Core/Stable_Ver/gcc", X_OK) = -1 ENOENT (No such file or directory)
access("/home/rangke/.HWs/gcc", X_OK)   = -1 ENOENT (No such file or directory)
access("/home/rangke/Work/Cloud/Core/Stable_Ver/gcc", X_OK) = -1 ENOENT (No such file or directory)
access("/home/rangke/.HWs/gcc", X_OK)   = -1 ENOENT (No such file or directory)
access("/usr/local/sbin/gcc", X_OK)     = -1 ENOENT (No such file or directory)
access("/usr/local/bin/gcc", X_OK)      = -1 ENOENT (No such file or directory)
access("/usr/bin/gcc", X_OK)            = 0
stat("/usr/bin/gcc", {st_mode=S_IFREG|0755, st_size=1215280, ...}) = 0
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/bin", {st_mode=S_IFDIR|0755, st_size=77824, ...}) = 0
lstat("/usr/bin/gcc", {st_mode=S_IFREG|0755, st_size=1215280, ...}) = 0
access("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/", X_OK) = 0
access("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/", X_OK) = 0
access("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/specs", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/lib/x86_64-pc-linux-gnu/10.2.0/specs", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/lib/specs", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/x86_64-pc-linux-gnu/specs", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/", X_OK) = 0
write(2, "gcc: fatal error: no input files"..., 33gcc: fatal error: no input files
) = 33
write(2, "compilation terminated.\n", 24compilation terminated.
) = 24
exit_group(1)                           = ?
+++ exited with 1 +++

Offline

#34 2020-10-13 06:03:10

seth
Member
Registered: 2012-09-03
Posts: 16,575

Re: [Solved] Segmentation fault during buidling Alpine from AUR

echo | strace gcc -E -Wp,-v - 2>&1 | curl -F 'f:1=<-' ix.io

I accidentally omitted the stdin dash (the output is just an error that there's no input)
The actual strace is going to be somewhat longer.

Offline

#35 2020-10-13 17:57:27

redshoe
Member
Registered: 2015-12-16
Posts: 52

Re: [Solved] Segmentation fault during buidling Alpine from AUR

Here is the output

execve("/usr/bin/gcc", ["gcc", "-E", "-Wp,-v", "-"], 0x7ffcb4998688 /* 37 vars */) = 0
brk(NULL)                               = 0x1e78000
arch_prctl(0x3001 /* ARCH_??? */, 0x7fffe2dcd7f0) = -1 EINVAL (Invalid argument)
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=103032, ...}) = 0
mmap(NULL, 103032, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb66d576000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\363\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1332096, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb66d574000
mmap(NULL, 1331224, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fb66d42e000
mmap(0x7fb66d43d000, 638976, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf000) = 0x7fb66d43d000
mmap(0x7fb66d4d9000, 626688, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xab000) = 0x7fb66d4d9000
mmap(0x7fb66d572000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x143000) = 0x7fb66d572000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\202\2\0\0\0\0\0"..., 832) = 832
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
pread64(3, "\4\0\0\0\20\0\0\0\5\0\0\0GNU\0\2\0\0\300\4\0\0\0\3\0\0\0\0\0\0\0", 32, 848) = 32
pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0\364[g\253(\257\25\201\313\250\344q>\17\323\262"..., 68, 880) = 68
fstat(3, {st_mode=S_IFREG|0755, st_size=2159552, ...}) = 0
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
mmap(NULL, 1868448, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fb66d265000
mmap(0x7fb66d28b000, 1363968, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x26000) = 0x7fb66d28b000
mmap(0x7fb66d3d8000, 311296, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x173000) = 0x7fb66d3d8000
mmap(0x7fb66d424000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1be000) = 0x7fb66d424000
mmap(0x7fb66d42a000, 12960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fb66d42a000
close(3)                                = 0
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb66d262000
arch_prctl(ARCH_SET_FS, 0x7fb66d262740) = 0
mprotect(0x7fb66d424000, 12288, PROT_READ) = 0
mprotect(0x7fb66d572000, 4096, PROT_READ) = 0
mprotect(0x525000, 12288, PROT_READ)    = 0
mprotect(0x7fb66d5bc000, 4096, PROT_READ) = 0
munmap(0x7fb66d576000, 103032)          = 0
brk(NULL)                               = 0x1e78000
brk(0x1e99000)                          = 0x1e99000
brk(0x1ebb000)                          = 0x1ebb000
openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=4378768, ...}) = 0
mmap(NULL, 4378768, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb66ce34000
close(3)                                = 0
openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2998, ...}) = 0
read(3, "# Locale name alias data base.\n#"..., 4096) = 2998
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/usr/share/locale/en_US.UTF-8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en_US.utf8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en_US/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en.UTF-8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en.utf8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
ioctl(2, TCGETS, 0x7fffe2dcd670)        = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(2, TCGETS, 0x7fffe2dcd680)        = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(2, TCGETS, 0x7fffe2dcd680)        = -1 ENOTTY (Inappropriate ioctl for device)
rt_sigaction(SIGINT, {sa_handler=SIG_IGN, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fb66d2a26a0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGINT, {sa_handler=0x409d50, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fb66d2a26a0}, {sa_handler=SIG_IGN, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fb66d2a26a0}, 8) = 0
rt_sigaction(SIGHUP, {sa_handler=SIG_IGN, sa_mask=[HUP], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fb66d2a26a0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGHUP, {sa_handler=0x409d50, sa_mask=[HUP], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fb66d2a26a0}, {sa_handler=SIG_IGN, sa_mask=[HUP], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fb66d2a26a0}, 8) = 0
rt_sigaction(SIGTERM, {sa_handler=SIG_IGN, sa_mask=[TERM], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fb66d2a26a0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGTERM, {sa_handler=0x409d50, sa_mask=[TERM], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fb66d2a26a0}, {sa_handler=SIG_IGN, sa_mask=[TERM], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fb66d2a26a0}, 8) = 0
rt_sigaction(SIGPIPE, {sa_handler=SIG_IGN, sa_mask=[PIPE], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fb66d2a26a0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGPIPE, {sa_handler=0x409d50, sa_mask=[PIPE], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fb66d2a26a0}, {sa_handler=SIG_IGN, sa_mask=[PIPE], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fb66d2a26a0}, 8) = 0
rt_sigaction(SIGCHLD, {sa_handler=SIG_DFL, sa_mask=[CHLD], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fb66d2a26a0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
prlimit64(0, RLIMIT_STACK, {rlim_cur=65536*1024, rlim_max=RLIM64_INFINITY}, NULL) = 0
access("/home/rangke/Work/Cloud/Core/Stable_Ver/gcc", X_OK) = -1 ENOENT (No such file or directory)
access("/home/rangke/.HWs/gcc", X_OK)   = -1 ENOENT (No such file or directory)
access("/home/rangke/Work/Cloud/Core/Stable_Ver/gcc", X_OK) = -1 ENOENT (No such file or directory)
access("/home/rangke/.HWs/gcc", X_OK)   = -1 ENOENT (No such file or directory)
access("/usr/local/sbin/gcc", X_OK)     = -1 ENOENT (No such file or directory)
access("/usr/local/bin/gcc", X_OK)      = -1 ENOENT (No such file or directory)
access("/usr/bin/gcc", X_OK)            = 0
stat("/usr/bin/gcc", {st_mode=S_IFREG|0755, st_size=1215280, ...}) = 0
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/bin", {st_mode=S_IFDIR|0755, st_size=77824, ...}) = 0
lstat("/usr/bin/gcc", {st_mode=S_IFREG|0755, st_size=1215280, ...}) = 0
access("/home/rangke/Work/Cloud/Core/Stable_Ver/gcc", X_OK) = -1 ENOENT (No such file or directory)
access("/home/rangke/.HWs/gcc", X_OK)   = -1 ENOENT (No such file or directory)
access("/home/rangke/Work/Cloud/Core/Stable_Ver/gcc", X_OK) = -1 ENOENT (No such file or directory)
access("/home/rangke/.HWs/gcc", X_OK)   = -1 ENOENT (No such file or directory)
access("/usr/local/sbin/gcc", X_OK)     = -1 ENOENT (No such file or directory)
access("/usr/local/bin/gcc", X_OK)      = -1 ENOENT (No such file or directory)
access("/usr/bin/gcc", X_OK)            = 0
stat("/usr/bin/gcc", {st_mode=S_IFREG|0755, st_size=1215280, ...}) = 0
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/bin", {st_mode=S_IFDIR|0755, st_size=77824, ...}) = 0
lstat("/usr/bin/gcc", {st_mode=S_IFREG|0755, st_size=1215280, ...}) = 0
access("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/", X_OK) = 0
access("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/", X_OK) = 0
access("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/specs", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/lib/x86_64-pc-linux-gnu/10.2.0/specs", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/lib/specs", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/x86_64-pc-linux-gnu/specs", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/", X_OK) = 0
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/cc1", {st_mode=S_IFREG|0755, st_size=29849456, ...}) = 0
access("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/cc1", X_OK) = 0
pipe2([3, 4], O_CLOEXEC)                = 0
vfork()                                 = 4063
close(4)                                = 0
read(3, "", 16)                         = 0
close(3)                                = 0
wait4(4063, ignoring nonexistent directory "/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include
 /usr/local/include
 /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include-fixed
 /usr/include
End of search list.
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 31 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 32 "<command-line>" 2
# 1 "<stdin>"
[{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 4063
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=4063, si_uid=1000, si_status=0, si_utime=0, si_stime=1} ---
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu/10.2.0/.", 0x7fffe2dcd500) = -1 ENOENT (No such file or directory)
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/.", 0x7fffe2dcd500) = -1 ENOENT (No such file or directory)
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/lib/x86_64-pc-linux-gnu/10.2.0/.", 0x7fffe2dcd500) = -1 ENOENT (No such file or directory)
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/lib/../lib/.", 0x7fffe2dcd500) = -1 ENOENT (No such file or directory)
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../x86_64-pc-linux-gnu/10.2.0/.", 0x7fffe2dcd500) = -1 ENOENT (No such file or directory)
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib/.", {st_mode=S_IFDIR|0755, st_size=106496, ...}) = 0
stat("/lib/x86_64-pc-linux-gnu/10.2.0/.", 0x7fffe2dcd500) = -1 ENOENT (No such file or directory)
stat("/lib/../lib/.", {st_mode=S_IFDIR|0755, st_size=106496, ...}) = 0
stat("/usr/lib/x86_64-pc-linux-gnu/10.2.0/.", 0x7fffe2dcd500) = -1 ENOENT (No such file or directory)
stat("/usr/lib/../lib/.", {st_mode=S_IFDIR|0755, st_size=106496, ...}) = 0
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/lib/.", 0x7fffe2dcd500) = -1 ENOENT (No such file or directory)
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../.", {st_mode=S_IFDIR|0755, st_size=106496, ...}) = 0
stat("/lib/.", {st_mode=S_IFDIR|0755, st_size=106496, ...}) = 0
stat("/usr/lib/.", {st_mode=S_IFDIR|0755, st_size=106496, ...}) = 0
exit_group(0)                           = ?
+++ exited with 0 +++

Offline

#36 2020-10-13 18:16:40

seth
Member
Registered: 2012-09-03
Posts: 16,575

Re: [Solved] Segmentation fault during buidling Alpine from AUR

wait4(4063, ignoring nonexistent directory "/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include
 /usr/local/include
 /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include-fixed
 /usr/include
End of search list.
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 31 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 32 "<command-line>" 2
# 1 "<stdin>"
[{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 4063

I don't get it - the dot path is gone…
If you just run "echo | gcc -E -Wp,-v -", is it back again?

Offline

#37 2020-10-13 19:16:08

redshoe
Member
Registered: 2015-12-16
Posts: 52

Re: [Solved] Segmentation fault during buidling Alpine from AUR

ignoring nonexistent directory "/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include
 /usr/local/include
 /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include-fixed
 /usr/include
End of search list.
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 31 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 32 "<command-line>" 2
# 1 "<stdin>"

Offline

#38 2020-10-13 19:17:55

seth
Member
Registered: 2012-09-03
Posts: 16,575

Re: [Solved] Segmentation fault during buidling Alpine from AUR

So the dot is gone. Can you build alpine from that shell?
If not, does the dot re-appear after trying??

Offline

#39 2020-10-13 20:05:07

redshoe
Member
Registered: 2015-12-16
Posts: 52

Re: [Solved] Segmentation fault during buidling Alpine from AUR

Uhhh.... it's weird. It is somehow working now.

output of : echo | strace gcc -E -Wp,-v - 2>&1 | curl -F 'f:1=<-' ix.io

execve("/usr/bin/gcc", ["gcc", "-E", "-Wp,-v", "-"], 0x7fff0c97b238 /* 38 vars */) = 0
brk(NULL)                               = 0x113b000
arch_prctl(0x3001 /* ARCH_??? */, 0x7ffc2d162bb0) = -1 EINVAL (Invalid argument)
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=103032, ...}) = 0
mmap(NULL, 103032, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f2f36983000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\363\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1332096, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2f36981000
mmap(NULL, 1331224, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f2f3683b000
mmap(0x7f2f3684a000, 638976, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf000) = 0x7f2f3684a000
mmap(0x7f2f368e6000, 626688, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xab000) = 0x7f2f368e6000
mmap(0x7f2f3697f000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x143000) = 0x7f2f3697f000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\202\2\0\0\0\0\0"..., 832) = 832
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
pread64(3, "\4\0\0\0\20\0\0\0\5\0\0\0GNU\0\2\0\0\300\4\0\0\0\3\0\0\0\0\0\0\0", 32, 848) = 32
pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0\364[g\253(\257\25\201\313\250\344q>\17\323\262"..., 68, 880) = 68
fstat(3, {st_mode=S_IFREG|0755, st_size=2159552, ...}) = 0
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
mmap(NULL, 1868448, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f2f36672000
mmap(0x7f2f36698000, 1363968, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x26000) = 0x7f2f36698000
mmap(0x7f2f367e5000, 311296, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x173000) = 0x7f2f367e5000
mmap(0x7f2f36831000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1be000) = 0x7f2f36831000
mmap(0x7f2f36837000, 12960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f2f36837000
close(3)                                = 0
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2f3666f000
arch_prctl(ARCH_SET_FS, 0x7f2f3666f740) = 0
mprotect(0x7f2f36831000, 12288, PROT_READ) = 0
mprotect(0x7f2f3697f000, 4096, PROT_READ) = 0
mprotect(0x525000, 12288, PROT_READ)    = 0
mprotect(0x7f2f369c9000, 4096, PROT_READ) = 0
munmap(0x7f2f36983000, 103032)          = 0
brk(NULL)                               = 0x113b000
brk(0x115c000)                          = 0x115c000
brk(0x117e000)                          = 0x117e000
openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=4378768, ...}) = 0
mmap(NULL, 4378768, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f2f36241000
close(3)                                = 0
openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2998, ...}) = 0
read(3, "# Locale name alias data base.\n#"..., 4096) = 2998
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/usr/share/locale/en_US.UTF-8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en_US.utf8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en_US/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en.UTF-8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en.utf8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
ioctl(2, TCGETS, 0x7ffc2d162a30)        = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(2, TCGETS, 0x7ffc2d162a40)        = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(2, TCGETS, 0x7ffc2d162a40)        = -1 ENOTTY (Inappropriate ioctl for device)
rt_sigaction(SIGINT, {sa_handler=SIG_IGN, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f2f366af6a0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGINT, {sa_handler=0x409d50, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f2f366af6a0}, {sa_handler=SIG_IGN, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f2f366af6a0}, 8) = 0
rt_sigaction(SIGHUP, {sa_handler=SIG_IGN, sa_mask=[HUP], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f2f366af6a0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGHUP, {sa_handler=0x409d50, sa_mask=[HUP], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f2f366af6a0}, {sa_handler=SIG_IGN, sa_mask=[HUP], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f2f366af6a0}, 8) = 0
rt_sigaction(SIGTERM, {sa_handler=SIG_IGN, sa_mask=[TERM], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f2f366af6a0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGTERM, {sa_handler=0x409d50, sa_mask=[TERM], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f2f366af6a0}, {sa_handler=SIG_IGN, sa_mask=[TERM], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f2f366af6a0}, 8) = 0
rt_sigaction(SIGPIPE, {sa_handler=SIG_IGN, sa_mask=[PIPE], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f2f366af6a0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGPIPE, {sa_handler=0x409d50, sa_mask=[PIPE], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f2f366af6a0}, {sa_handler=SIG_IGN, sa_mask=[PIPE], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f2f366af6a0}, 8) = 0
rt_sigaction(SIGCHLD, {sa_handler=SIG_DFL, sa_mask=[CHLD], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f2f366af6a0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
prlimit64(0, RLIMIT_STACK, {rlim_cur=65536*1024, rlim_max=RLIM64_INFINITY}, NULL) = 0
access("/home/rangke/Work/Cloud/Core/Stable_Ver/gcc", X_OK) = -1 ENOENT (No such file or directory)
access("/home/rangke/.HWs/gcc", X_OK)   = -1 ENOENT (No such file or directory)
access("/home/rangke/Work/Cloud/Core/Stable_Ver/gcc", X_OK) = -1 ENOENT (No such file or directory)
access("/home/rangke/.HWs/gcc", X_OK)   = -1 ENOENT (No such file or directory)
access("/usr/local/sbin/gcc", X_OK)     = -1 ENOENT (No such file or directory)
access("/usr/local/bin/gcc", X_OK)      = -1 ENOENT (No such file or directory)
access("/usr/bin/gcc", X_OK)            = 0
stat("/usr/bin/gcc", {st_mode=S_IFREG|0755, st_size=1215280, ...}) = 0
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/bin", {st_mode=S_IFDIR|0755, st_size=77824, ...}) = 0
lstat("/usr/bin/gcc", {st_mode=S_IFREG|0755, st_size=1215280, ...}) = 0
access("/home/rangke/Work/Cloud/Core/Stable_Ver/gcc", X_OK) = -1 ENOENT (No such file or directory)
access("/home/rangke/.HWs/gcc", X_OK)   = -1 ENOENT (No such file or directory)
access("/home/rangke/Work/Cloud/Core/Stable_Ver/gcc", X_OK) = -1 ENOENT (No such file or directory)
access("/home/rangke/.HWs/gcc", X_OK)   = -1 ENOENT (No such file or directory)
access("/usr/local/sbin/gcc", X_OK)     = -1 ENOENT (No such file or directory)
access("/usr/local/bin/gcc", X_OK)      = -1 ENOENT (No such file or directory)
access("/usr/bin/gcc", X_OK)            = 0
stat("/usr/bin/gcc", {st_mode=S_IFREG|0755, st_size=1215280, ...}) = 0
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/bin", {st_mode=S_IFDIR|0755, st_size=77824, ...}) = 0
lstat("/usr/bin/gcc", {st_mode=S_IFREG|0755, st_size=1215280, ...}) = 0
access("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/", X_OK) = 0
access("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/", X_OK) = 0
access("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/specs", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/lib/x86_64-pc-linux-gnu/10.2.0/specs", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/lib/specs", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/x86_64-pc-linux-gnu/specs", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/", X_OK) = 0
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/cc1", {st_mode=S_IFREG|0755, st_size=29849456, ...}) = 0
access("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/cc1", X_OK) = 0
pipe2([3, 4], O_CLOEXEC)                = 0
vfork()                                 = 29404
close(4)                                = 0
read(3, "", 16)                         = 0
close(3)                                = 0
wait4(29404, ignoring nonexistent directory "/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include
 /usr/local/include
 /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include-fixed
 /usr/include
End of search list.
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 31 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 32 "<command-line>" 2
# 1 "<stdin>"
[{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 29404
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=29404, si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu/10.2.0/.", 0x7ffc2d1628c0) = -1 ENOENT (No such file or directory)
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/.", 0x7ffc2d1628c0) = -1 ENOENT (No such file or directory)
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/lib/x86_64-pc-linux-gnu/10.2.0/.", 0x7ffc2d1628c0) = -1 ENOENT (No such file or directory)
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/lib/../lib/.", 0x7ffc2d1628c0) = -1 ENOENT (No such file or directory)
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../x86_64-pc-linux-gnu/10.2.0/.", 0x7ffc2d1628c0) = -1 ENOENT (No such file or directory)
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib/.", {st_mode=S_IFDIR|0755, st_size=106496, ...}) = 0
stat("/lib/x86_64-pc-linux-gnu/10.2.0/.", 0x7ffc2d1628c0) = -1 ENOENT (No such file or directory)
stat("/lib/../lib/.", {st_mode=S_IFDIR|0755, st_size=106496, ...}) = 0
stat("/usr/lib/x86_64-pc-linux-gnu/10.2.0/.", 0x7ffc2d1628c0) = -1 ENOENT (No such file or directory)
stat("/usr/lib/../lib/.", {st_mode=S_IFDIR|0755, st_size=106496, ...}) = 0
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/lib/.", 0x7ffc2d1628c0) = -1 ENOENT (No such file or directory)
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../.", {st_mode=S_IFDIR|0755, st_size=106496, ...}) = 0
stat("/lib/.", {st_mode=S_IFDIR|0755, st_size=106496, ...}) = 0
stat("/usr/lib/.", {st_mode=S_IFDIR|0755, st_size=106496, ...}) = 0
exit_group(0)                           = ?
+++ exited with 0 +++

and the output of : echo | gcc -E -Wp,-v -

#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include
 /usr/local/include
 /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include-fixed
 /usr/include
End of search list.
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 31 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 32 "<command-line>" 2
# 1 "<stdin>"

Offline

#40 2020-10-13 20:08:42

seth
Member
Registered: 2012-09-03
Posts: 16,575

Re: [Solved] Segmentation fault during buidling Alpine from AUR

You somehow™ got the dot path into the includes, most likely by  C_INCLUDE_PATH or  CPLUS_INCLUDE_PATH exports, but how or why is impossible to say - and it's gone now (so the proper headre is resolved, thus the error gone)

Offline

#41 2020-10-13 20:10:50

redshoe
Member
Registered: 2015-12-16
Posts: 52

Re: [Solved] Segmentation fault during buidling Alpine from AUR

I would like to post the output of makepkg -Ccs, but the board does not allow such long lines. Is there another way to do it?

Offline

#42 2020-10-13 20:13:40

seth
Member
Registered: 2012-09-03
Posts: 16,575

Re: [Solved] Segmentation fault during buidling Alpine from AUR

… | curl -F 'f:1=<-' ix.io

Offline

#43 2020-10-13 20:21:58

redshoe
Member
Registered: 2015-12-16
Posts: 52

Re: [Solved] Segmentation fault during buidling Alpine from AUR

Ahh. I think I found the problem.

In my .bashrc I added

# C library path
C_INCLUDE_PATH=/usr/include/CL:$C_INCLUDE_PATH
export C_INCLUDE_PATH

where /usr/include/CL does not exist. Excluding /usr/include/CL it works.

So, reverting back to including /usr/include/CL output of echo | strace gcc -E -Wp,-v - 2>&1 | curl -F 'f:1=<-' ix.io is

execve("/usr/bin/gcc", ["gcc", "-E", "-Wp,-v", "-"], 0x7fff202dedb8 /* 39 vars */) = 0
brk(NULL)                               = 0xc45000
arch_prctl(0x3001 /* ARCH_??? */, 0x7ffdc04c8c60) = -1 EINVAL (Invalid argument)
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=103032, ...}) = 0
mmap(NULL, 103032, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fedf6a6c000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\363\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1332096, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fedf6a6a000
mmap(NULL, 1331224, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fedf6924000
mmap(0x7fedf6933000, 638976, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf000) = 0x7fedf6933000
mmap(0x7fedf69cf000, 626688, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xab000) = 0x7fedf69cf000
mmap(0x7fedf6a68000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x143000) = 0x7fedf6a68000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\202\2\0\0\0\0\0"..., 832) = 832
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
pread64(3, "\4\0\0\0\20\0\0\0\5\0\0\0GNU\0\2\0\0\300\4\0\0\0\3\0\0\0\0\0\0\0", 32, 848) = 32
pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0\364[g\253(\257\25\201\313\250\344q>\17\323\262"..., 68, 880) = 68
fstat(3, {st_mode=S_IFREG|0755, st_size=2159552, ...}) = 0
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
mmap(NULL, 1868448, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fedf675b000
mmap(0x7fedf6781000, 1363968, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x26000) = 0x7fedf6781000
mmap(0x7fedf68ce000, 311296, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x173000) = 0x7fedf68ce000
mmap(0x7fedf691a000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1be000) = 0x7fedf691a000
mmap(0x7fedf6920000, 12960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fedf6920000
close(3)                                = 0
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fedf6758000
arch_prctl(ARCH_SET_FS, 0x7fedf6758740) = 0
mprotect(0x7fedf691a000, 12288, PROT_READ) = 0
mprotect(0x7fedf6a68000, 4096, PROT_READ) = 0
mprotect(0x525000, 12288, PROT_READ)    = 0
mprotect(0x7fedf6ab2000, 4096, PROT_READ) = 0
munmap(0x7fedf6a6c000, 103032)          = 0
brk(NULL)                               = 0xc45000
brk(0xc66000)                           = 0xc66000
brk(0xc88000)                           = 0xc88000
openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=4378768, ...}) = 0
mmap(NULL, 4378768, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fedf632a000
close(3)                                = 0
openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2998, ...}) = 0
read(3, "# Locale name alias data base.\n#"..., 4096) = 2998
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/usr/share/locale/en_US.UTF-8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en_US.utf8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en_US/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en.UTF-8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en.utf8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
ioctl(2, TCGETS, 0x7ffdc04c8ae0)        = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(2, TCGETS, 0x7ffdc04c8af0)        = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(2, TCGETS, 0x7ffdc04c8af0)        = -1 ENOTTY (Inappropriate ioctl for device)
rt_sigaction(SIGINT, {sa_handler=SIG_IGN, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fedf67986a0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGINT, {sa_handler=0x409d50, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fedf67986a0}, {sa_handler=SIG_IGN, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fedf67986a0}, 8) = 0
rt_sigaction(SIGHUP, {sa_handler=SIG_IGN, sa_mask=[HUP], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fedf67986a0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGHUP, {sa_handler=0x409d50, sa_mask=[HUP], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fedf67986a0}, {sa_handler=SIG_IGN, sa_mask=[HUP], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fedf67986a0}, 8) = 0
rt_sigaction(SIGTERM, {sa_handler=SIG_IGN, sa_mask=[TERM], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fedf67986a0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGTERM, {sa_handler=0x409d50, sa_mask=[TERM], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fedf67986a0}, {sa_handler=SIG_IGN, sa_mask=[TERM], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fedf67986a0}, 8) = 0
rt_sigaction(SIGPIPE, {sa_handler=SIG_IGN, sa_mask=[PIPE], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fedf67986a0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGPIPE, {sa_handler=0x409d50, sa_mask=[PIPE], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fedf67986a0}, {sa_handler=SIG_IGN, sa_mask=[PIPE], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fedf67986a0}, 8) = 0
rt_sigaction(SIGCHLD, {sa_handler=SIG_DFL, sa_mask=[CHLD], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fedf67986a0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
prlimit64(0, RLIMIT_STACK, {rlim_cur=65536*1024, rlim_max=RLIM64_INFINITY}, NULL) = 0
access("/home/rangke/Work/Cloud/Core/Stable_Ver/gcc", X_OK) = -1 ENOENT (No such file or directory)
access("/home/rangke/.HWs/gcc", X_OK)   = -1 ENOENT (No such file or directory)
access("/home/rangke/Work/Cloud/Core/Stable_Ver/gcc", X_OK) = -1 ENOENT (No such file or directory)
access("/home/rangke/.HWs/gcc", X_OK)   = -1 ENOENT (No such file or directory)
access("/home/rangke/Work/Cloud/Core/Stable_Ver/gcc", X_OK) = -1 ENOENT (No such file or directory)
access("/home/rangke/.HWs/gcc", X_OK)   = -1 ENOENT (No such file or directory)
access("/usr/local/sbin/gcc", X_OK)     = -1 ENOENT (No such file or directory)
access("/usr/local/bin/gcc", X_OK)      = -1 ENOENT (No such file or directory)
access("/usr/bin/gcc", X_OK)            = 0
stat("/usr/bin/gcc", {st_mode=S_IFREG|0755, st_size=1215280, ...}) = 0
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/bin", {st_mode=S_IFDIR|0755, st_size=77824, ...}) = 0
lstat("/usr/bin/gcc", {st_mode=S_IFREG|0755, st_size=1215280, ...}) = 0
access("/home/rangke/Work/Cloud/Core/Stable_Ver/gcc", X_OK) = -1 ENOENT (No such file or directory)
access("/home/rangke/.HWs/gcc", X_OK)   = -1 ENOENT (No such file or directory)
access("/home/rangke/Work/Cloud/Core/Stable_Ver/gcc", X_OK) = -1 ENOENT (No such file or directory)
access("/home/rangke/.HWs/gcc", X_OK)   = -1 ENOENT (No such file or directory)
access("/home/rangke/Work/Cloud/Core/Stable_Ver/gcc", X_OK) = -1 ENOENT (No such file or directory)
access("/home/rangke/.HWs/gcc", X_OK)   = -1 ENOENT (No such file or directory)
access("/usr/local/sbin/gcc", X_OK)     = -1 ENOENT (No such file or directory)
access("/usr/local/bin/gcc", X_OK)      = -1 ENOENT (No such file or directory)
access("/usr/bin/gcc", X_OK)            = 0
stat("/usr/bin/gcc", {st_mode=S_IFREG|0755, st_size=1215280, ...}) = 0
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/bin", {st_mode=S_IFDIR|0755, st_size=77824, ...}) = 0
lstat("/usr/bin/gcc", {st_mode=S_IFREG|0755, st_size=1215280, ...}) = 0
access("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/", X_OK) = 0
access("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/", X_OK) = 0
access("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/specs", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/lib/x86_64-pc-linux-gnu/10.2.0/specs", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/lib/specs", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/x86_64-pc-linux-gnu/specs", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/", X_OK) = 0
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/cc1", {st_mode=S_IFREG|0755, st_size=29849456, ...}) = 0
access("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/cc1", X_OK) = 0
pipe2([3, 4], O_CLOEXEC)                = 0
vfork()                                 = 58771
close(4)                                = 0
read(3, "", 16)                         = 0
close(3)                                = 0
wait4(58771, ignoring nonexistent directory "/usr/include/CL"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 .
 /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include
 /usr/local/include
 /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include-fixed
 /usr/include
End of search list.
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 31 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 32 "<command-line>" 2
# 1 "<stdin>"
[{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 58771
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=58771, si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu/10.2.0/.", 0x7ffdc04c8970) = -1 ENOENT (No such file or directory)
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/.", 0x7ffdc04c8970) = -1 ENOENT (No such file or directory)
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/lib/x86_64-pc-linux-gnu/10.2.0/.", 0x7ffdc04c8970) = -1 ENOENT (No such file or directory)
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/lib/../lib/.", 0x7ffdc04c8970) = -1 ENOENT (No such file or directory)
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../x86_64-pc-linux-gnu/10.2.0/.", 0x7ffdc04c8970) = -1 ENOENT (No such file or directory)
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib/.", {st_mode=S_IFDIR|0755, st_size=106496, ...}) = 0
stat("/lib/x86_64-pc-linux-gnu/10.2.0/.", 0x7ffdc04c8970) = -1 ENOENT (No such file or directory)
stat("/lib/../lib/.", {st_mode=S_IFDIR|0755, st_size=106496, ...}) = 0
stat("/usr/lib/x86_64-pc-linux-gnu/10.2.0/.", 0x7ffdc04c8970) = -1 ENOENT (No such file or directory)
stat("/usr/lib/../lib/.", {st_mode=S_IFDIR|0755, st_size=106496, ...}) = 0
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/lib/.", 0x7ffdc04c8970) = -1 ENOENT (No such file or directory)
stat("/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../.", {st_mode=S_IFDIR|0755, st_size=106496, ...}) = 0
stat("/lib/.", {st_mode=S_IFDIR|0755, st_size=106496, ...}) = 0
stat("/usr/lib/.", {st_mode=S_IFDIR|0755, st_size=106496, ...}) = 0
exit_group(0)                           = ?
+++ exited with 0 +++

and the output of echo | gcc -E -Wp,-v - is

 .
 /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include
 /usr/local/include
 /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include-fixed
 /usr/include
End of search list.
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 31 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 32 "<command-line>" 2
# 1 "<stdin>"

Last edited by redshoe (2020-10-13 20:24:55)

Offline

#44 2020-10-13 20:36:00

redshoe
Member
Registered: 2015-12-16
Posts: 52

Re: [Solved] Segmentation fault during buidling Alpine from AUR

Thank seth. I really appreciate it!

Offline

Board footer

Powered by FluxBB