From: "Daniel St. Clair" <dstclair@fisheye.net>
To: "gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
Subject: gcc 9.3.0 compile error
Date: Sun, 25 Oct 2020 23:01:51 +0000 [thread overview]
Message-ID: <MN2PR04MB5549541ACCFF034408C898F5D0180@MN2PR04MB5549.namprd04.prod.outlook.com> (raw)
Good afternoon,
I am trying to compile gcc 9.3.0 on an IBM power 7 running AIX 7.2, but I have not been able to get past the error:
error: conflicting declaration of C function 'void* sbrk(int)'
488 | extern void *sbrk (int);
I have attempted what I found on this page: https://www.mail-archive.com/bug-bash@gnu.org/msg21215.html. It appeared to get through another stage, but still received the same error.
Any help on this is greatly appreciated.
Configure:
../gcc-9.3.0/configure --prefix=/MACHINE_INSTALL/gcc-9.3.0 --enable-languages=c,c++ --disable-multilib CC=/opt/freeware/bin/gcc CXX=/opt/freeware/bin/g++ CPP=/opt/freeware/bin/cpp --with-gmp=/opt/freeware/lib --with-mpfr=/opt/freeware/lib --with-mpc=/opt/freeware/lib
Full error:
/MACHINE_INSTALL/build/gcc_build_obj_dir/./prev-gcc/xg++ -B/MACHINE_INSTALL/build/gcc_build_obj_dir/./prev-gcc/ -B/MACHINE_INSTALL/gcc-9.3.0/powerpc-ibm-aix7.2.2.0/bin/ -nostdinc++ -B/MACHINE_INSTALL/build/gcc_build_obj_dir/prev-powerpc-ibm-aix7.2.2.0/libstdc++-v3/src/.libs -B/MACHINE_INSTALL/build/gcc_build_obj_dir/prev-powerpc-ibm-aix7.2.2.0/libstdc++-v3/libsupc++/.libs -I/MACHINE_INSTALL/build/gcc_build_obj_dir/prev-powerpc-ibm-aix7.2.2.0/libstdc++-v3/include/powerpc-ibm-aix7.2.2.0 -I/MACHINE_INSTALL/build/gcc_build_obj_dir/prev-powerpc-ibm-aix7.2.2.0/libstdc++-v3/include -I/MACHINE_INSTALL/build/gcc-9.3.0/libstdc++-v3/libsupc++ -L/MACHINE_INSTALL/build/gcc_build_obj_dir/prev-powerpc-ibm-aix7.2.2.0/libstdc++-v3/src/.libs -L/MACHINE_INSTALL/build/gcc_build_obj_dir/prev-powerpc-ibm-aix7.2.2.0/libstdc++-v3/libsupc++/.libs -c -g -O2 -fno-checking -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -DGENERATOR_FILE -fno-PIE -I. -Ibuild -I/MACHINE_INSTALL/build/gcc_build_obj_dir/../gcc-9.3.0/gcc -I/MACHINE_INSTALL/build/gcc_build_obj_dir/../gcc-9.3.0/gcc/build -I/MACHINE_INSTALL/build/gcc_build_obj_dir/../gcc-9.3.0/gcc/../include -I/MACHINE_INSTALL/build/gcc_build_obj_dir/../gcc-9.3.0/gcc/../libcpp/include \
-o build/genmodes.o /MACHINE_INSTALL/build/gcc_build_obj_dir/../gcc-9.3.0/gcc/genmodes.c
In file included from ./bconfig.h:3,
from /MACHINE_INSTALL/build/gcc_build_obj_dir/../gcc-9.3.0/gcc/genmodes.c:20:
./auto-host.h:2379:16: error: declaration does not declare anything [-fpermissive]
2379 | #define rlim_t long
| ^~~~
In file included from /MACHINE_INSTALL/build/gcc_build_obj_dir/../gcc-9.3.0/gcc/genmodes.c:21:
/MACHINE_INSTALL/build/gcc_build_obj_dir/../gcc-9.3.0/gcc/system.h:488:14: error: conflicting declaration of C function 'void* sbrk(int)'
488 | extern void *sbrk (int);
| ^~~~
In file included from /MACHINE_INSTALL/build/gcc_build_obj_dir/../gcc-9.3.0/gcc/system.h:294,
from /MACHINE_INSTALL/build/gcc_build_obj_dir/../gcc-9.3.0/gcc/genmodes.c:21:
/MACHINE_INSTALL/build/gcc_build_obj_dir/prev-gcc/include-fixed/unistd.h:930:34: note: previous declaration 'void* sbrk(intptr_t)'
930 | extern void *sbrk(intptr_t);
| ^~~~
make[3]: *** [Makefile:2666: build/genmodes.o] Error 1
make[3]: Leaving directory '/MACHINE_INSTALL/build/gcc_build_obj_dir/gcc'
make[2]: *** [Makefile:4710: all-stage2-gcc] Error 2
make[2]: Leaving directory '/MACHINE_INSTALL/build/gcc_build_obj_dir'
make[1]: *** [Makefile:20487: stage2-bubble] Error 2
make[1]: Leaving directory '/MACHINE_INSTALL/build/gcc_build_obj_dir'
make: *** [Makefile:997: all] Error 2
Thank you,
Dan
reply other threads:[~2020-10-25 23:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=MN2PR04MB5549541ACCFF034408C898F5D0180@MN2PR04MB5549.namprd04.prod.outlook.com \
--to=dstclair@fisheye.net \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).