This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [BUILDROBOT] gcov patch


On Fri, 2014-07-11 15:03:06 +0200, Jan-Benedict Glaw <jbglaw@lug-owl.de> wrote:
> See eg. http://toolchain.lug-owl.de/buildbot/show_build_details.php?id=289639,
> it breaks like this:
> 
> [...]
> g++ -c   -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -I. -I. -I/home/jbglaw/repos/gcc/gcc -I/home/jbglaw/repos/gcc/gcc/. -I/home/jbglaw/repos/gcc/gcc/../include -I/home/jbglaw/repos/gcc/gcc/../libcpp/include  -I/home/jbglaw/repos/gcc/gcc/../libdecnumber -I/home/jbglaw/repos/gcc/gcc/../libdecnumber/dpd -I../libdecnumber -I/home/jbglaw/repos/gcc/gcc/../libbacktrace    -o gcov-tool.o -MT gcov-tool.o -MMD -MP -MF ./.deps/gcov-tool.TPo /home/jbglaw/repos/gcc/gcc/gcov-tool.c
> /usr/include/sys/stat.h: In function âvoid gcov_output_files(const char*, gcov_info*)â:
> /usr/include/sys/stat.h:323: error: too few arguments to function âint mkdir(const char*, __mode_t)â
> /home/jbglaw/repos/gcc/gcc/gcov-tool.c:96: error: at this point in file
> make[1]: *** [gcov-tool.o] Error 1
> make[1]: Leaving directory `/home/jbglaw/build/rl78-elf/build-gcc/gcc'
> make: *** [all-gcc] Error 2

[...]

+#ifdef TARGET_POSIX_IO
+      if (mkdir (out, 0755) == -1 && errno != EEXIST)
+#else
+      if (mkdir (out) == -1 && errno != EEXIST)
+#endif


And with POSIX I/O, this should probably use the S_I* macros for the
mode bits?

MfG, JBG

-- 
      Jan-Benedict Glaw      jbglaw@lug-owl.de              +49-172-7608481
 Signature of:                    Arroganz verkÃrzt fruchtlose GesprÃche.
 the second  :                                   -- Jan-Benedict Glaw

Attachment: signature.asc
Description: Digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]