mailing list of musl libc
 help / color / mirror / Atom feed
* [musl] fatal error: asm/prctl.h: No such file or directory
@ 2020-08-21 20:14 Jeffrey Walton
  2020-08-21 20:20 ` Khem Raj
  0 siblings, 1 reply; 2+ messages in thread
From: Jeffrey Walton @ 2020-08-21 20:14 UTC (permalink / raw)
  To: musl

Hi Everyone,

Forgive my ignorance... I'm trying to build GDB 9.2 from sources. I
can't tell whose bug this is (GDB, Musl, Alpine or mine due to a bad
config).

I'm performing a native build. My triplet is x86_64-pc-linux-gnu. I've
seen similar messages, but they seem to be due to a cross-compile or
wrong triplet. Neither apply to me.

Who should claim the compile error?

g++ -x c++  -g2 -O2 -march=native -fPIC -pthread   -I. -I../../gdb
-I../../gdb/config
-DLOCALEDIR="\"/home/jwalton/tmp/ok2delete/share/locale\""
-DHAVE_CONFIG_H -I../../gdb/../include/opcode
-I../../gdb/../readline/readline/.. -I../../gdb/../zlib -I../bfd
-I../../gdb/../bfd -I../../gdb/../include -I../libdecnumber
-I../../gdb/../libdecnumber  -I../../gdb/../gnulib/import
-I../gnulib/import  -DTUI=1 -I/home/jwalton/tmp/ok2delete/include
-I../../gdb/.. -pthread -Wall -Wpointer-arith -Wno-unused
-Wunused-value -Wunused-variable -Wunused-function -Wno-switch
-Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter
-Wunused-but-set-variable -Wno-sign-compare
-Wno-error=maybe-uninitialized -Wsuggest-override
-Wimplicit-fallthrough=3 -Wduplicated-cond -Wshadow=local -Wformat
-Wformat-nonliteral  -c -o amd64-linux-nat.o -MT amd64-linux-nat.o
-MMD -MP -MF ./.deps/amd64-linux-nat.Tpo ../../gdb/amd64-linux-nat.c
../../gdb/amd64-linux-nat.c:27:10: fatal error: asm/prctl.h: No such
file or directory
 #include <asm/prctl.h>
          ^~~~~~~~~~~~~
compilation terminated.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [musl] fatal error: asm/prctl.h: No such file or directory
  2020-08-21 20:14 [musl] fatal error: asm/prctl.h: No such file or directory Jeffrey Walton
@ 2020-08-21 20:20 ` Khem Raj
  0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2020-08-21 20:20 UTC (permalink / raw)
  To: musl, Jeffrey Walton



On 8/21/20 1:14 PM, Jeffrey Walton wrote:
> Hi Everyone,
> 
> Forgive my ignorance... I'm trying to build GDB 9.2 from sources. I
> can't tell whose bug this is (GDB, Musl, Alpine or mine due to a bad
> config).
> 
> I'm performing a native build. My triplet is x86_64-pc-linux-gnu. I've
> seen similar messages, but they seem to be due to a cross-compile or
> wrong triplet. Neither apply to me.
> 
> Who should claim the compile error?
> 
> g++ -x c++  -g2 -O2 -march=native -fPIC -pthread   -I. -I../../gdb
> -I../../gdb/config
> -DLOCALEDIR="\"/home/jwalton/tmp/ok2delete/share/locale\""
> -DHAVE_CONFIG_H -I../../gdb/../include/opcode
> -I../../gdb/../readline/readline/.. -I../../gdb/../zlib -I../bfd
> -I../../gdb/../bfd -I../../gdb/../include -I../libdecnumber
> -I../../gdb/../libdecnumber  -I../../gdb/../gnulib/import
> -I../gnulib/import  -DTUI=1 -I/home/jwalton/tmp/ok2delete/include
> -I../../gdb/.. -pthread -Wall -Wpointer-arith -Wno-unused
> -Wunused-value -Wunused-variable -Wunused-function -Wno-switch
> -Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter
> -Wunused-but-set-variable -Wno-sign-compare
> -Wno-error=maybe-uninitialized -Wsuggest-override
> -Wimplicit-fallthrough=3 -Wduplicated-cond -Wshadow=local -Wformat
> -Wformat-nonliteral  -c -o amd64-linux-nat.o -MT amd64-linux-nat.o
> -MMD -MP -MF ./.deps/amd64-linux-nat.Tpo ../../gdb/amd64-linux-nat.c
> ../../gdb/amd64-linux-nat.c:27:10: fatal error: asm/prctl.h: No such
> file or directory
>   #include <asm/prctl.h>
>            ^~~~~~~~~~~~~
> compilation terminated.
> 

this should be coming from linux kernel UAPI headers, do you have that 
installed ?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-21 20:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-21 20:14 [musl] fatal error: asm/prctl.h: No such file or directory Jeffrey Walton
2020-08-21 20:20 ` Khem Raj

mailing list of musl libc

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/musl

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 musl musl/ http://inbox.vuxu.org/musl \
		musl@inbox.vuxu.org
	public-inbox-index musl

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.musl


code repositories for the project(s) associated with this inbox:

	https://git.vuxu.org/mirror/musl/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git