Hi Steve, how to you get a recent gcc compile on aarch64-freebsd-14.3 ? I am seeing several issues in core libraries of gcc that are far away from where I touched the compiler.
I am configuring with: configure --disable-multilib\ --enable-stage1-languages=c,fortran,c++\ --enable-checking=yes \ --enable-offload-defaulted \ --prefix="${INSTALLPATH}" \ CFLAGS="-g -O0 -DENABLE_ASSERT_CHECKING" CXXFLAGS="-g -O0"\ STAGE1_CFLAGS="-g -O0 -DENABLE_ASSERT_CHECKING" STAGE1_CXXFLAGS="-g -O0" Yes, I am doing only stage1. I run this fully virtualized and it is slow. I don't want to wait three days for a full bootstrap. One of the errors I get is: /libgcc/unwind-dw2-fde-dip.c:69:10: error: 'ElfW' redefined [-Werror] 69 | # define ElfW __ElfN | ^~~~ In file included from /usr/include/machine/elf.h:45, from /usr/include/elf.h:37, from <snip>/gcc/gcc.test/libgcc/unwind-dw2-fde-dip.c:36: /usr/include/sys/elf_generic.h:59:9: note: this is the location of the previous definition 59 | #define ElfW(x) __ElfN(x) | ^~~~ Have you ever seen this before and know a way around it? Regards, Andre On Sun, 29 Jun 2025 22:02:38 -0700 Steve Kargl <s...@troutmask.apl.washington.edu> wrote: > On Sun, Jun 29, 2025 at 06:54:53PM -0700, Steve Kargl wrote: > > On Sun, Jun 29, 2025 at 03:30:21PM -0700, Steve Kargl wrote: > > > On Sun, Jun 29, 2025 at 11:07:31AM -0700, Steve Kargl wrote: > > > > On Sun, Jun 29, 2025 at 10:35:39AM -0700, Steve Kargl wrote: > > > > > > > > > > === gfortran Summary === > > > > > > > > > > # of expected passes 73149 > > > > > # of unexpected failures 522 > > > > > After forcefully adding '#include <unistd.h>', '#include <pthread.h>', > and 'extern char **environ' where needed. I now see > > === gfortran Summary === > > # of expected passes 73561 > # of unexpected failures 110 > # of expected failures 343 > # of unresolved testcases 78 > # of unsupported tests 94 > > for 'gmake check-fortran', and if I use RUNTESTFLAGS='dg.exp=\*unsign\*' > to test the unsigned issue reported earlier, I see > > === gfortran Summary === > > # of expected passes 434 > # of unsupported tests 6 > /home/kargl/gcc/obj/gcc/gfortran version 16.0.0 20250629 (experimental) > (GCC) > > I suspect we'll need to have > > #include "config.h" > > #indef HAVE_UNISTD_H > #include <unistd.h> > #endif > > and similar for other headers files. I further suspect that this > are going to be rough on CYWIN/MINGW. > > -- Andre Vehreschild * Email: vehre ad gmx dot de