Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 528508 - dev-lang/mercury-extras-13.05.2 - In function ‘open’, inlined from ‘posix__open_module4’ at posix.open.m:74:19: /usr/include/bits/fcntl2.h:50:24: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument
Summary: dev-lang/mercury-extras-13.05.2 - In function ‘open’, inlined from ‘posix...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Keri Harris
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-06 22:20 UTC by Toralf Förster
Modified: 2018-02-20 16:49 UTC (History)
1 user (show)

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


Attachments
emerge log (dev-lang:mercury-extras-13.05.2:20141104-163351.log,270.93 KB, text/plain)
2014-11-06 22:20 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2014-11-06 22:20:55 UTC
Created attachment 388708 [details]
emerge log

an ~amd64 chroot gives :


mmc --compile-to-c --grade asm_fast.gc         posix.write > posix.write.err 2>&1
mgnuc --grade asm_fast.gc    --no-ansi   --      -c posix.c -o posix.o
mgnuc --grade asm_fast.gc    --no-ansi   --      -c posix.closedir.c -o posix.closedir.o
mgnuc --grade asm_fast.gc    --no-ansi   --      -c posix.dup.c -o posix.dup.o
mgnuc --grade asm_fast.gc    --no-ansi   --      -c posix.exec.c -o posix.exec.o
posix.exec.m: In function ‘posix__exec_module0’:
posix.exec.m:75:13: warning: passing argument 2 of ‘execve’ from incompatible pointer type [enabled by default]
             ((MR_ArrayType *)Env)->elements);
             ^
In file included from posix.exec.m:38:0,
                 from posix.exec.c:26:
/usr/include/unistd.h:551:12: note: expected ‘char * const*’ but argument is of type ‘MR_Word *’
 extern int execve (const char *__path, char *const __argv[],
            ^
posix.exec.m:75:13: warning: passing argument 3 of ‘execve’ from incompatible pointer type [enabled by default]
             ((MR_ArrayType *)Env)->elements);
             ^
In file included from posix.exec.m:38:0,
                 from posix.exec.c:26:
/usr/include/unistd.h:551:12: note: expected ‘char * const*’ but argument is of type ‘MR_Word *’
 extern int execve (const char *__path, char *const __argv[],
            ^
posix.exec.m: In function ‘posix__exec_module3’:
posix.exec.m:75:13: warning: passing argument 2 of ‘execve’ from incompatible pointer type [enabled by default]
             ((MR_ArrayType *)Env)->elements);
             ^
In file included from posix.exec.m:38:0,
                 from posix.exec.c:26:
/usr/include/unistd.h:551:12: note: expected ‘char * const*’ but argument is of type ‘MR_Word *’
 extern int execve (const char *__path, char *const __argv[],
            ^
posix.exec.m:75:13: warning: passing argument 3 of ‘execve’ from incompatible pointer type [enabled by default]
             ((MR_ArrayType *)Env)->elements);
             ^
In file included from posix.exec.m:38:0,
                 from posix.exec.c:26:
/usr/include/unistd.h:551:12: note: expected ‘char * const*’ but argument is of type ‘MR_Word *’
 extern int execve (const char *__path, char *const __argv[],
            ^
In file included from /usr/lib/mercury/inc/mercury_context.h:59:0,
                 from /usr/lib/mercury/inc/mercury_heap.h:29,
                 from /usr/lib/mercury/inc/mercury_string.h:12,
                 from /usr/lib/mercury/inc/mercury_imp.h:51,
                 from posix.exec.c:24:
posix.exec.c: At top level:
  MR_PASTE2(mercury__, label)
            ^
/usr/lib/mercury/inc/mercury_goto.h:881:14: note: in definition of macro ‘MR_declare_static’
  static void label(void) __asm__("_entry_" MR_STRINGIFY(label))
              ^
/usr/lib/mercury/inc/mercury_std.h:268:26: note: in expansion of macro ‘MR_PASTE2_2’
 #define MR_PASTE2(a,b)   MR_PASTE2_2(a,b)
                          ^
/usr/lib/mercury/inc/mercury_goto.h:30:2: note: in expansion of macro ‘MR_PASTE2’
  MR_PASTE2(mercury__, label)
  ^
/usr/lib/mercury/inc/mercury_goto.h:1672:20: note: in expansion of macro ‘MR_add_prefix’
  MR_declare_static(MR_add_prefix(e));
                    ^
posix.exec.c:132:1: note: in expansion of macro ‘MR_decl_static’
 MR_decl_static(fn__posix__exec__variable_1_0)
 ^
mgnuc --grade asm_fast.gc    --no-ansi   --      -c posix.fork.c -o posix.fork.o
mgnuc --grade asm_fast.gc    --no-ansi   --      -c posix.getpid.c -o posix.getpid.o
mgnuc --grade asm_fast.gc    --no-ansi   --      -c posix.kill.c -o posix.kill.o
mgnuc --grade asm_fast.gc    --no-ansi   --      -c posix.lseek.c -o posix.lseek.o
mgnuc --grade asm_fast.gc    --no-ansi   --      -c posix.mkdir.c -o posix.mkdir.o
mgnuc --grade asm_fast.gc    --no-ansi   --      -c posix.open.c -o posix.open.o
In file included from /usr/lib/mercury/inc/mercury_context.h:59:0,
                 from /usr/lib/mercury/inc/mercury_heap.h:29,
                 from /usr/lib/mercury/inc/mercury_string.h:12,
                 from /usr/lib/mercury/inc/mercury_imp.h:51,
                 from posix.open.c:24:
  MR_PASTE2(mercury__, label)
            ^
/usr/lib/mercury/inc/mercury_goto.h:881:14: note: in definition of macro ‘MR_declare_static’
  static void label(void) __asm__("_entry_" MR_STRINGIFY(label))
              ^
/usr/lib/mercury/inc/mercury_std.h:268:26: note: in expansion of macro ‘MR_PASTE2_2’
 #define MR_PASTE2(a,b)   MR_PASTE2_2(a,b)
                          ^
/usr/lib/mercury/inc/mercury_goto.h:30:2: note: in expansion of macro ‘MR_PASTE2’
  MR_PASTE2(mercury__, label)
  ^
/usr/lib/mercury/inc/mercury_goto.h:1672:20: note: in expansion of macro ‘MR_add_prefix’
  MR_declare_static(MR_add_prefix(e));
                    ^
posix.open.c:90:1: note: in expansion of macro ‘MR_decl_static’
 MR_decl_static(posix__open__orflags_3_0)
 ^
In file included from /usr/include/fcntl.h:302:0,
                 from posix.open.m:55,
                 from posix.open.c:26:
In function ‘open’,
    inlined from ‘posix__open_module4’ at posix.open.m:74:19:
/usr/include/bits/fcntl2.h:50:24: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
    __open_missing_mode ();
                        ^
In function ‘open’,
    inlined from ‘posix__open_module0’ at posix.open.m:74:19:
/usr/include/bits/fcntl2.h:50:24: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
    __open_missing_mode ();
                        ^
/var/tmp/portage/dev-lang/mercury-extras-13.05.2/temp/mmake.tsANG9:3733: recipe for target 'posix.open.o' failed
gmake[1]: *** [posix.open.o] Error 1
gmake[1]: Leaving directory '/var/tmp/portage/dev-lang/mercury-extras-13.05.2/work/mercury-srcdist-13.05.2/extras/posix'
/var/tmp/portage/dev-lang/mercury-extras-13.05.2/temp/mmake.Xn4CS0:828: recipe for target 'posix' failed
gmake: *** [posix] Error 2
 * ERROR: dev-lang/mercury-extras-13.05.2::gentoo failed (compile phase):
 *   mmake failed
Comment 1 Pacho Ramos gentoo-dev 2018-02-20 09:05:37 UTC
please retry with 14.01.1