Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 574160

Summary: sys-devel/gdb-7.10.1-r99 does not compile on musl-amd64 due to unknown type name ‘mode_t’
Product: Gentoo Linux Reporter: tt_1 <herrtimson>
Component: [OLD] Core systemAssignee: Gentoo musl team <musl>
Status: RESOLVED FIXED    
Severity: normal CC: musl
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 430702    
Attachments: compressed build.log
output of emerge --info

Description tt_1 2016-02-08 12:54:33 UTC
Created attachment 424888 [details]
compressed build.log

I am using the -r99 version from the musl overlay, which fails to compile due to this error 


x86_64-gentoo-linux-musl-gcc -march=core2 -O2 -pipe -fomit-frame-pointer    -I. -I. -I./../common -I./../regformats -I./.. -I./../../include -I./../gnulib/import -Ibuild-gnulib-gdbserver/import  -Wall -Wpointer-arith -Wformat-nonliteral -Wno-char-subscripts -Wempty-body -Wdeclaration-after-statement  -DGDBSERVER  -DCONFIG_UST_GDB_INTEGRATION -fPIC -DIN_PROCESS_AGENT -fvisibility=hidden -c -o ax-ipa.o -MT ax-ipa.o -MMD -MP -MF .deps/ax-ipa.Tpo `echo " -Wall -Wpointer-arith -Wformat-nonliteral -Wno-char-subscripts -Wempty-body -Wdeclaration-after-statement " | sed "s/ -Wformat-nonliteral / -Wno-format-nonliteral /g"` ax.c
In file included from server.h:61:0,
                 from ax.c:19:
target.h:424:21: error: unknown type name ‘mode_t’
          int flags, mode_t mode);
                     ^
Makefile:470: recipe for target 'ax-ipa.o' failed

I have the full build.log attached. It may be because of a missing include of sys/types.h , but I'm not sure about anything.
Comment 1 tt_1 2016-02-08 12:57:42 UTC
Created attachment 424896 [details]
output of emerge --info

the useflags are

[ebuild     U  ] sys-devel/gdb-7.10.1-r99::musl [7.9.1-r99::musl] USE="client nls python server zlib -expat -lzma -multitarget {-test} -vanilla" PYTHON_SINGLE_TARGET="python2_7 -python3_3 -python3_4" PYTHON_TARGETS="python2_7 python3_4 -python3_3" 0 KiB

emerge-info is attached
Comment 2 SpanKY gentoo-dev 2016-02-09 18:41:35 UTC
there is no such version in the main tree
Comment 3 tt_1 2016-02-12 19:25:37 UTC
fixed with the stat.h patch from the overlay.