Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 574160 - sys-devel/gdb-7.10.1-r99 does not compile on musl-amd64 due to unknown type name ‘mode_t’
Summary: sys-devel/gdb-7.10.1-r99 does not compile on musl-amd64 due to unknown type n...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2016-02-08 12:54 UTC by tt_1
Modified: 2016-02-12 19:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
compressed build.log (gdb-7.10.1-r99-missing-some-headers.log.gz,46.72 KB, application/octet-stream)
2016-02-08 12:54 UTC, tt_1
Details
output of emerge --info (emerge-info,5.05 KB, text/plain)
2016-02-08 12:57 UTC, tt_1
Details

Note You need to log in before you can comment on or make changes to this bug.
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.