Re: gcc --static produces programs that crash

2021-01-14 Thread George Koehler
Hello ports list, In December, I shared this lang/gcc/8 diff to fix egcc -static, before I got distracted. I recently returned to this diff and now confirm that it doesn't break the build of lang/octave and its dependencies (needing gcc for Fortran) on powerpc. I want to commit this diff soon.

Re: gcc --static produces programs that crash

2020-12-05 Thread j
Here is a tgz file for a test suite: it fails as expected for -static on 6.8-release and succeeds on a recent snap with your patch -- on arm64. I have added a -nostdlib test and cleanup up error messages. John On 2020-12-03 19:34, j...@bitminer.ca wrote: Hi George, On 2020-12-02 19:57, Ge

Re: gcc --static produces programs that crash

2020-12-03 Thread j
Hi George, On 2020-12-02 19:57, George Koehler wrote: This diff in lang/gcc/8 works for me on amd64 and powerpc. I would like tests on more arches. Is it ok to commit? I tested this diff on a Raspberry Pi4 (aarch64) and it succeeds with testing -Bdynamic or -static for Fortran and C, and ch

Re: gcc --static produces programs that crash

2020-12-02 Thread George Koehler
This diff in lang/gcc/8 works for me on amd64 and powerpc. I would like tests on more arches. Is it ok to commit? This diff makes 4 changes to LINK_SPEC: 1. use "%{!static:-dynamic-linker /usr/libexec/ld.so}" to fix static linking; you can try the Fortran example below. 2. change %{r*:}

Re: gcc --static produces programs that crash

2020-11-30 Thread George Koehler
On Sun, 29 Nov 2020 22:45:27 -0500 George Koehler wrote: > This diff might fix the problem. This diff was in one of my ports > trees, but I forgot about it The diff that I sent yesterday was bad. Please don't build it (and I'm sorry if you started building it). Adding a REVISION = 0 below

Re: gcc --static produces programs that crash

2020-11-29 Thread George Koehler
On Sat, 28 Nov 2020 12:45:10 + Stuart Henderson wrote: > On 2020/11/28 12:26, helmut karlowski wrote: > > $ldd a.out > > a.out: > > StartEnd Type Open Ref GrpRef Name > > 1a52f000 3a537000 exe 10 0 a.out > > 0302c000 0302c000 ld.so 01 0

Re: gcc --static produces programs that crash

2020-11-28 Thread Stuart Henderson
On 2020/11/28 12:26, helmut karlowski wrote: > Hi, > > when I compile > > #include > void main(void) > { > printf( "test\\n" ); > } > > wich gcc --static t.c (gcc (GCC) 8.4.0), the resulting a.out does crash: > > $a.out > Memory fault (core dumped) The above output with "Memory fault"

gcc --static produces programs that crash

2020-11-28 Thread helmut karlowski
Hi, when I compile #include void main(void) { printf( "test\\n" ); } wich gcc --static t.c (gcc (GCC) 8.4.0), the resulting a.out does crash: $a.out Memory fault (core dumped) In fact it is not really static: $ldd a.out a.out: StartEnd Type Open Ref GrpRef Name