public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc 9.3.0 compile error
@ 2020-10-25 23:01 Daniel St. Clair
  0 siblings, 0 replies; only message in thread
From: Daniel St. Clair @ 2020-10-25 23:01 UTC (permalink / raw)
  To: gcc-help

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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-25 23:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-25 23:01 gcc 9.3.0 compile error Daniel St. Clair

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).