[Bug d/100324] gcc-10.2.0 (and earlier) fails to build on x86_64, but has builds just fine aarch64

2021-05-12 Thread ibuclaw at gdcproject dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100324

--- Comment #9 from Iain Buclaw  ---
Does configure succeed in all multilib subdirectories?

tail x86_64-linux-gnu/*/libphobos/config.log
x86_64-linux-gnu/libphobos/config.log

And if one doesn't, inspect it to see why.

[Bug d/100324] gcc-10.2.0 (and earlier) fails to build on x86_64, but has builds just fine aarch64

2021-05-10 Thread ibuclaw at gdcproject dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100324

--- Comment #8 from Iain Buclaw  ---
(In reply to Tor from comment #6)
> Built with -j 256 on aarch64 Cavium Tx2 CN9980 nodes. Worked like a charm.
> 
> Not sure why "dash" is ok, while "bash" is not!? Do you?
> 
> I will set default shell to dash on amd64/x86_64 and see how it goes. 
> 
> Thx.
Ran make -j64 using bash on AMD Ryzen Threadripper 3960X 24-Core, don't get any
issues building libphobos.

[Bug d/100324] gcc-10.2.0 (and earlier) fails to build on x86_64, but has builds just fine aarch64

2021-04-29 Thread ibuclaw at gdcproject dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100324

--- Comment #7 from Iain Buclaw  ---
(In reply to Richard Biener from comment #3)
> /bin/sh: ../libtool: No such file or directory
> 
> that's odd.  What's your host operating system, in particular what shell
> is /bin/sh?
> 
> You'd need to see what (and why) libphobos picks up as @LIBTOOL@
LIBTOOL is unconditionally set as:

---
# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
---

Which is the same everywhere as far as I understand.

[Bug d/100324] gcc-10.2.0 (and earlier) fails to build on x86_64, but has builds just fine aarch64

2021-04-29 Thread torel at simula dot no via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100324

--- Comment #6 from Tor  ---
(In reply to Iain Buclaw from comment #5)

> Never had an issue with parallel builds up to -j16. Won't have the hardware
> to even attempt -j64 for another fortnight.
> 
> Minimal libtool support is in libphobos/m4/libtool.m4, however I don't think
> there'd be anything there that might explain why libtool is called before it
> is created.

Built with -j 256 on aarch64 Cavium Tx2 CN9980 nodes. Worked like a charm.

Not sure why "dash" is ok, while "bash" is not!? Do you?

I will set default shell to dash on amd64/x86_64 and see how it goes. 

Thx.

[Bug d/100324] gcc-10.2.0 (and earlier) fails to build on x86_64, but has builds just fine aarch64

2021-04-29 Thread ibuclaw at gdcproject dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100324

--- Comment #5 from Iain Buclaw  ---
(In reply to Tor from comment #0)
> make -j 64
> 
Never had an issue with parallel builds up to -j16. Won't have the hardware to
even attempt -j64 for another fortnight.

Minimal libtool support is in libphobos/m4/libtool.m4, however I don't think
there'd be anything there that might explain why libtool is called before it is
created.

[Bug d/100324] gcc-10.2.0 (and earlier) fails to build on x86_64, but has builds just fine aarch64

2021-04-29 Thread torel at simula dot no via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100324

--- Comment #4 from Tor  ---
(In reply to Richard Biener from comment #3)

> that's odd.  What's your host operating system, in particular what shell
> is /bin/sh?

Ubuntu 18.04.5LTS on any arch. Interestingly, on aarch it is dash while on
where it is not working it is /bin/bash

torel@srl-login1:~$ uname -ar
Linux srl-login1 4.15.0-142-generic #124-Ubuntu SMP Thu Oct 15 13:03:05 UTC
2020 x86_64 x86_64 x86_64 GNU/Linux

torel@srl-login1:~$ ll /bin/sh
lrwxrwxrwx 1 root root 4 Mar 18  2019 /bin/sh -> bash*
torel@srl-login1:~$ srun --partition=armq --ntasks=1 --nodes=1
--cpus-per-task=256 --pty /bin/bash --login
srun: job 155896 queued and waiting for resources
srun: job 155896 has been allocated resources
You are on an Aarch64 node

torel@n005:~$ ll /bin/sh
lrwxrwxrwx 1 root root 4 Apr 30  2019 /bin/sh -> dash*

torel@n005:~$ uname -ar
Linux n005 4.15.0-142-generic #146-Ubuntu SMP Tue Apr 13 01:08:49 UTC 2021
aarch64 aarch64 aarch64 GNU/Linux
torel@n005:~$

[Bug d/100324] gcc-10.2.0 (and earlier) fails to build on x86_64, but has builds just fine aarch64

2021-04-29 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100324

--- Comment #3 from Richard Biener  ---
/bin/sh: ../libtool: No such file or directory

that's odd.  What's your host operating system, in particular what shell
is /bin/sh?

You'd need to see what (and why) libphobos picks up as @LIBTOOL@

[Bug d/100324] gcc-10.2.0 (and earlier) fails to build on x86_64, but has builds just fine aarch64

2021-04-29 Thread torel at simula dot no via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100324

--- Comment #2 from Tor  ---
Same issue on gcc-11.1.0.  Can't pick D language on x86_64/amd64 platform.

make[2]: Leaving directory
'/home/torel/workspace/GCC/gcc-11_1_0-release/Build-x86_64/x86_64-linux-gnu/zlib'
make[2]: Entering directory
'/home/torel/workspace/GCC/gcc-11_1_0-release/Build-x86_64/x86_64-linux-gnu/libphobos'
make "AR_FLAGS=rc" "CC_FOR_BUILD=x86_64-linux-gnu-gcc"
"CC_FOR_TARGET=/home/torel/workspace/GCC/gcc-11_1_0-release/Build-x86_64/./gcc/xgcc
-B/home/torel/workspace/GCC/gcc-11_1_0-release/Build-x86_64/./gcc/"
"CCASFLAGS=-g -O2" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2 -D_GNU_SOURCE"
"CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-g -O2"
"GDC_FOR_TARGET=/home/torel/workspace/GCC/gcc-11_1_0-release/Build-x86_64/./gcc/gdc
-B/home/torel/workspace/GCC/gcc-11_1_0-release/Build-x86_64/./gcc/"
"GDC=/home/torel/workspace/GCC/gcc-11_1_0-release/Build-x86_64/./gcc/gdc
-B/home/torel/workspace/GCC/gcc-11_1_0-release/Build-x86_64/./gcc/
-B/cm/shared/apps/gcc/11.1.0/x86_64-linux-gnu/bin/
-B/cm/shared/apps/gcc/11.1.0/x86_64-linux-gnu/lib/ -isystem
/cm/shared/apps/gcc/11.1.0/x86_64-linux-gnu/include -isystem
/cm/shared/apps/gcc/11.1.0/x86_64-linux-gnu/sys-include   -fchecking=1"
"GDCFLAGS=-O2 -g" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install
-c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c"
"INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=" "LIBCFLAGS=-g -O2"
"LIBCFLAGS_FOR_TARGET=-g -O2" "MAKE=make" "MAKEINFO=makeinfo
--split-size=500 --split-size=500 " "PICFLAG=" "PICFLAG_FOR_TARGET="
"SHELL=/bin/sh" "RUNTESTFLAGS=" "exec_prefix=/cm/shared/apps/gcc/11.1.0"
"infodir=/cm/shared/apps/gcc/11.1.0/share/info"
"libdir=/cm/shared/apps/gcc/11.1.0/usr/lib"
"includedir=/cm/shared/apps/gcc/11.1.0/include"
"prefix=/cm/shared/apps/gcc/11.1.0"
"tooldir=/cm/shared/apps/gcc/11.1.0/x86_64-linux-gnu"
"gdc_include_dir=/cm/shared/apps/gcc/11.1.0/usr/lib/gcc/x86_64-linux-gnu/11/include/d"
"AR=x86_64-linux-gnu-ar"
"AS=/home/torel/workspace/GCC/gcc-11_1_0-release/Build-x86_64/./gcc/as"
"LD=/home/torel/workspace/GCC/gcc-11_1_0-release/Build-x86_64/./gcc/collect-ld"
"RANLIB=x86_64-linux-gnu-ranlib"
"NM=/home/torel/workspace/GCC/gcc-11_1_0-release/Build-x86_64/./gcc/nm"
"NM_FOR_BUILD=" "NM_FOR_TARGET=x86_64-linux-gnu-nm" "DESTDIR=" "WERROR="
all-recursive
make[3]: Entering directory
'/home/torel/workspace/GCC/gcc-11_1_0-release/Build-x86_64/x86_64-linux-gnu/libphobos'
Making all in libdruntime
make[4]: Entering directory
'/home/torel/workspace/GCC/gcc-11_1_0-release/Build-x86_64/x86_64-linux-gnu/libphobos/libdruntime'
/bin/sh ../libtool --tag=D   --mode=compile
/home/torel/workspace/GCC/gcc-11_1_0-release/Build-x86_64/./gcc/gdc
-B/home/torel/workspace/GCC/gcc-11_1_0-release/Build-x86_64/./gcc/
-B/cm/shared/apps/gcc/11.1.0/x86_64-linux-gnu/bin/
-B/cm/shared/apps/gcc/11.1.0/x86_64-linux-gnu/lib/ -isystem
/cm/shared/apps/gcc/11.1.0/x86_64-linux-gnu/include -isystem
/cm/shared/apps/gcc/11.1.0/x86_64-linux-gnu/sys-include   -fchecking=1
-prefer-pic -fversion=Shared -Wall  -frelease  -ffunction-sections
-fdata-sections -fcf-protection -mshstk -fversion=CET -O2 -g  -nostdinc -I
../../../../libphobos/libdruntime -I . -c -o core/atomic.lo
../../../../libphobos/libdruntime/core/atomic.d
/bin/sh: ../libtool: No such file or directory
Makefile:2338: recipe for target 'core/atomic.lo' failed
make[4]: *** [core/atomic.lo] Error 127
make[4]: Leaving directory
'/home/torel/workspace/GCC/gcc-11_1_0-release/Build-x86_64/x86_64-linux-gnu/libphobos/libdruntime'
Makefile:484: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
'/home/torel/workspace/GCC/gcc-11_1_0-release/Build-x86_64/x86_64-linux-gnu/libphobos'
Makefile:411: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory
'/home/torel/workspace/GCC/gcc-11_1_0-release/Build-x86_64/x86_64-linux-gnu/libphobos'
Makefile:23601: recipe for target 'all-target-libphobos' failed
make[1]: *** [all-target-libphobos] Error 2
make[1]: Leaving directory
'/home/torel/workspace/GCC/gcc-11_1_0-release/Build-x86_64'
Makefile:1001: recipe for target 'all' failed
make: *** [all] Error 2
torel@srl-login1:~/workspace/GCC/gcc-11_1_0-release/Build-x86_64$

[Bug d/100324] gcc-10.2.0 (and earlier) fails to build on x86_64, but has builds just fine aarch64

2021-04-28 Thread torel at simula dot no via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100324

--- Comment #1 from Tor  ---
Just compiled gcc-11.1.0 on aarch64. No problem for all languages.