Hi!

Trying to build revision fd9e53249c6c269e68f9aca71b3d17b3ecee8e8a on 32-bit
PowerPC fails with:

g++ -c   -g -O2 -DIN_GCC     -fno-exceptions -fno-rtti 
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings 
-Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute 
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros 
-Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H  -DGENERATOR_FILE -fno-PIE 
-I. -Ibuild -I../../gcc -I../../gcc/build -I../../gcc/../include  
-I../../gcc/../libcpp/include  \
        -o build/genpreds.o ../../gcc/genpreds.c
In file included from ./tm.h:32,
                 from ../../gcc/genpreds.c:26:
../../gcc/config/rs6000/linux.h:63:3: error: #error "TARGET_RUST_OS_INFO 
already defined in linux.h (rs6000) - c++ undefines it and redefines it."
   63 | # error "TARGET_RUST_OS_INFO already defined in linux.h (rs6000) - c++ 
undefines it and redefines it."
      |   ^~~~~
../../gcc/config/rs6000/linux.h:65: warning: "TARGET_RUST_OS_INFO" redefined
   65 | #define TARGET_RUST_OS_INFO()          \
      |
In file included from ./tm.h:31,
                 from ../../gcc/genpreds.c:26:
../../gcc/config/rs6000/sysv4.h:554: note: this is the location of the previous 
definition
  554 | #define TARGET_RUST_OS_INFO()  \
      |
make[2]: *** [Makefile:2833: build/genpreds.o] Error 1
make[2]: Leaving directory '/home/glaubitz/gccrs/build/gcc'
make[1]: *** [Makefile:4415: all-gcc] Error 2
make[1]: Leaving directory '/home/glaubitz/gccrs/build'
make: *** [Makefile:944: all] Error 2

Reported as [1].

Adrian

> [1] https://github.com/Rust-GCC/gccrs/issues/468

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
-- 
Gcc-rust mailing list
Gcc-rust@gcc.gnu.org
https://gcc.gnu.org/mailman/listinfo/gcc-rust

Reply via email to