Re: gcc-4.7 and gcc-4.8 compilation failure in x64

2022-04-01 Thread Ludovic Courtès
Hi!

Ekaitz Zarraga  skribis:

> More specifically I mean the output of that command is:
>
> ./md-unwind-support.h:60:47: error: dereferencing pointer to incomplete type

[...]

> build of /gnu/store/bx2zldsx3by529hri5pfx15k12f67gzb-gcc-4.7.4.drv failed

Could you try building it with an older GCC?  For example, you could add
say ‘gcc-7’ to ‘native-inputs’ (make sure it doesn’t propagate to the
other GCC variants that inherit from it, though).

HTH,
Ludo’.



Re: gcc-4.7 and gcc-4.8 compilation failure in x64

2022-03-30 Thread Ekaitz Zarraga
Good idea, I will!


--- Original Message ---

On Wednesday, March 30th, 2022 at 9:40 PM, Reza Housseini 
 wrote:

> Did you try to use guix time-machine and compile 4.7 from there? Perhaps
>
> the issue is the glibc version?
>
> On 3/30/22 21:32, Ekaitz Zarraga wrote:
>
> > Hi Reza,
> >
> > On Wednesday, March 30th, 2022 at 9:27 PM, Reza Housseini 
> > reza.housse...@gmail.com wrote:
> >
> > > Looks like a bug in gcc: 
> > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81712
> > >
> > > You probably have to patch gcc 4.* as it was only backported until gcc 5.5
> > >
> > > On 3/29/22 21:01, Ekaitz Zarraga wrote:
> > >
> > > > > And you try to compile that using `guix build -m manifest.scm` the 
> > > > > compilation fails. The same happens when choosing 4.8.
> > > > >
> > > > > More specifically I mean the output of that command is:
> > > >
> > > > ./md-unwind-support.h:60:47: error: dereferencing pointer to incomplete 
> > > > type
> > > >
> > > > ...
> > > >
> > > > error: in phase 'build': uncaught exception:
> > > >
> > > > %exception #<&invoke-error program: "make" arguments: ("-j" "8" 
> > > > "LDFLAGS_FOR_TARGET=-B/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib
> > > >  -Wl,-dynamic-linker 
> > > > -Wl,/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/ld-linux-x86-64.so.2"
> > > >  
> > > > "LDFLAGS=-Wl,-rpath=/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib
> > > >  -Wl,-dynamic-linker 
> > > > -Wl,/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/ld-linux-x86-64.so.2"
> > > >  "BOOT_CFLAGS=-O2 -g0") exit-status: 2 term-signal: #f stop-signal: #f>
> > > >
> > > > phase `build' failed after 256.1 seconds command "make" "-j" "8" 
> > > > "LDFLAGS_FOR_TARGET=-B/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib
> > > >  -Wl,-dynamic-linker 
> > > > -Wl,/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/ld-linux-x86-64.so.2"
> > > >  
> > > > "LDFLAGS=-Wl,-rpath=/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib
> > > >  -Wl,-dynamic-linker 
> > > > -Wl,/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/ld-linux-x86-64.so.2"
> > > >  "BOOT_CFLAGS=-O2 -g0" failed with status 2 builder for` 
> > > > /gnu/store/bx2zldsx3by529hri5pfx15k12f67gzb-gcc-4.7.4.drv' failed with 
> > > > exit code 1
> > > >
> > > > build of /gnu/store/bx2zldsx3by529hri5pfx15k12f67gzb-gcc-4.7.4.drv 
> > > > failed
> > > >
> > > > View build log at 
> > > > '/var/log/guix/drvs/bx/2zldsx3by529hri5pfx15k12f67gzb-gcc-4.7.4.drv.gz'.
> > > >
> > > > guix build: error: build of 
> > > > `/gnu/store/bx2zldsx3by529hri5pfx15k12f67gzb-gcc-4.7.4.drv' failed
> >
> > So the gcc-4.7 and gcc-4.8 packages never worked? Or we need an older libc?



Re: gcc-4.7 and gcc-4.8 compilation failure in x64

2022-03-30 Thread Reza Housseini
Did you try to use guix time-machine and compile 4.7 from there? Perhaps 
the issue is the glibc version?


On 3/30/22 21:32, Ekaitz Zarraga wrote:

Hi Reza,



On Wednesday, March 30th, 2022 at 9:27 PM, Reza Housseini 
 wrote:


Looks like a bug in gcc: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81712

You probably have to patch gcc 4.* as it was only backported until gcc 5.5

On 3/29/22 21:01, Ekaitz Zarraga wrote:


And you try to compile that using `guix build -m manifest.scm` the compilation 
fails. The same happens when choosing 4.8.

More specifically I mean the output of that command is:

./md-unwind-support.h:60:47: error: dereferencing pointer to incomplete type

...

error: in phase 'build': uncaught exception:

%exception #<&invoke-error program: "make" arguments: ("-j" "8" 
"LDFLAGS_FOR_TARGET=-B/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib -Wl,-dynamic-linker 
-Wl,/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/ld-linux-x86-64.so.2" 
"LDFLAGS=-Wl,-rpath=/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib -Wl,-dynamic-linker 
-Wl,/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/ld-linux-x86-64.so.2" "BOOT_CFLAGS=-O2 -g0") exit-status: 2 
term-signal: #f stop-signal: #f>

phase `build' failed after 256.1 seconds command "make" "-j" "8" 
"LDFLAGS_FOR_TARGET=-B/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib -Wl,-dynamic-linker 
-Wl,/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/ld-linux-x86-64.so.2" 
"LDFLAGS=-Wl,-rpath=/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib -Wl,-dynamic-linker 
-Wl,/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/ld-linux-x86-64.so.2" "BOOT_CFLAGS=-O2 -g0" failed with 
status 2 builder for` /gnu/store/bx2zldsx3by529hri5pfx15k12f67gzb-gcc-4.7.4.drv' failed with exit code 1

build of /gnu/store/bx2zldsx3by529hri5pfx15k12f67gzb-gcc-4.7.4.drv failed

View build log at 
'/var/log/guix/drvs/bx/2zldsx3by529hri5pfx15k12f67gzb-gcc-4.7.4.drv.gz'.

guix build: error: build of 
`/gnu/store/bx2zldsx3by529hri5pfx15k12f67gzb-gcc-4.7.4.drv' failed


So the gcc-4.7 and gcc-4.8 packages never worked? Or we need an older libc?



OpenPGP_0xC375C6AF05125C52.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: gcc-4.7 and gcc-4.8 compilation failure in x64

2022-03-30 Thread Ekaitz Zarraga
Hi Reza,



On Wednesday, March 30th, 2022 at 9:27 PM, Reza Housseini 
 wrote:

> Looks like a bug in gcc: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81712
>
> You probably have to patch gcc 4.* as it was only backported until gcc 5.5
>
> On 3/29/22 21:01, Ekaitz Zarraga wrote:
>
> > > And you try to compile that using `guix build -m manifest.scm` the 
> > > compilation fails. The same happens when choosing 4.8.
> >
> > More specifically I mean the output of that command is:
> >
> > ./md-unwind-support.h:60:47: error: dereferencing pointer to incomplete type
> >
> > ...
> >
> > error: in phase 'build': uncaught exception:
> >
> > %exception #<&invoke-error program: "make" arguments: ("-j" "8" 
> > "LDFLAGS_FOR_TARGET=-B/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib
> >  -Wl,-dynamic-linker 
> > -Wl,/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/ld-linux-x86-64.so.2"
> >  
> > "LDFLAGS=-Wl,-rpath=/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib
> >  -Wl,-dynamic-linker 
> > -Wl,/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/ld-linux-x86-64.so.2"
> >  "BOOT_CFLAGS=-O2 -g0") exit-status: 2 term-signal: #f stop-signal: #f>
> >
> > phase `build' failed after 256.1 seconds command "make" "-j" "8" 
> > "LDFLAGS_FOR_TARGET=-B/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib
> >  -Wl,-dynamic-linker 
> > -Wl,/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/ld-linux-x86-64.so.2"
> >  
> > "LDFLAGS=-Wl,-rpath=/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib
> >  -Wl,-dynamic-linker 
> > -Wl,/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/ld-linux-x86-64.so.2"
> >  "BOOT_CFLAGS=-O2 -g0" failed with status 2 builder for` 
> > /gnu/store/bx2zldsx3by529hri5pfx15k12f67gzb-gcc-4.7.4.drv' failed with exit 
> > code 1
> >
> > build of /gnu/store/bx2zldsx3by529hri5pfx15k12f67gzb-gcc-4.7.4.drv failed
> >
> > View build log at 
> > '/var/log/guix/drvs/bx/2zldsx3by529hri5pfx15k12f67gzb-gcc-4.7.4.drv.gz'.
> >
> > guix build: error: build of 
> > `/gnu/store/bx2zldsx3by529hri5pfx15k12f67gzb-gcc-4.7.4.drv' failed


So the gcc-4.7 and gcc-4.8 packages never worked? Or we need an older libc?




Re: gcc-4.7 and gcc-4.8 compilation failure in x64

2022-03-30 Thread Reza Housseini

Looks like a bug in gcc: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81712

You probably have to patch gcc 4.* as it was only backported until gcc 5.5

On 3/29/22 21:01, Ekaitz Zarraga wrote:

And you try to compile that using `guix build -m manifest.scm` the compilation 
fails. The same happens when choosing 4.8.


More specifically I mean the output of that command is:

./md-unwind-support.h:60:47: error: dereferencing pointer to incomplete type
...
error: in phase 'build': uncaught exception:
%exception #<&invoke-error program: "make" arguments: ("-j" "8" 
"LDFLAGS_FOR_TARGET=-B/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib -Wl,-dynamic-linker 
-Wl,/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/ld-linux-x86-64.so.2" 
"LDFLAGS=-Wl,-rpath=/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib -Wl,-dynamic-linker 
-Wl,/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/ld-linux-x86-64.so.2" "BOOT_CFLAGS=-O2 -g0") exit-status: 2 
term-signal: #f stop-signal: #f>
phase `build' failed after 256.1 seconds
command "make" "-j" "8" "LDFLAGS_FOR_TARGET=-B/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib 
-Wl,-dynamic-linker -Wl,/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/ld-linux-x86-64.so.2" 
"LDFLAGS=-Wl,-rpath=/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib -Wl,-dynamic-linker 
-Wl,/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/ld-linux-x86-64.so.2" "BOOT_CFLAGS=-O2 -g0" failed with 
status 2
builder for `/gnu/store/bx2zldsx3by529hri5pfx15k12f67gzb-gcc-4.7.4.drv' failed 
with exit code 1
build of /gnu/store/bx2zldsx3by529hri5pfx15k12f67gzb-gcc-4.7.4.drv failed
View build log at 
'/var/log/guix/drvs/bx/2zldsx3by529hri5pfx15k12f67gzb-gcc-4.7.4.drv.gz'.
guix build: error: build of 
`/gnu/store/bx2zldsx3by529hri5pfx15k12f67gzb-gcc-4.7.4.drv' failed


OpenPGP_0xC375C6AF05125C52.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: gcc-4.7 and gcc-4.8 compilation failure in x64

2022-03-29 Thread Ekaitz Zarraga


> And you try to compile that using `guix build -m manifest.scm` the 
> compilation fails. The same happens when choosing 4.8.


More specifically I mean the output of that command is:

./md-unwind-support.h:60:47: error: dereferencing pointer to incomplete type
...
error: in phase 'build': uncaught exception:
%exception #<&invoke-error program: "make" arguments: ("-j" "8" 
"LDFLAGS_FOR_TARGET=-B/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib
 -Wl,-dynamic-linker 
-Wl,/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/ld-linux-x86-64.so.2"
 "LDFLAGS=-Wl,-rpath=/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib 
-Wl,-dynamic-linker 
-Wl,/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/ld-linux-x86-64.so.2"
 "BOOT_CFLAGS=-O2 -g0") exit-status: 2 term-signal: #f stop-signal: #f>
phase `build' failed after 256.1 seconds
command "make" "-j" "8" 
"LDFLAGS_FOR_TARGET=-B/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib
 -Wl,-dynamic-linker 
-Wl,/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/ld-linux-x86-64.so.2"
 "LDFLAGS=-Wl,-rpath=/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib 
-Wl,-dynamic-linker 
-Wl,/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/ld-linux-x86-64.so.2"
 "BOOT_CFLAGS=-O2 -g0" failed with status 2
builder for `/gnu/store/bx2zldsx3by529hri5pfx15k12f67gzb-gcc-4.7.4.drv' failed 
with exit code 1
build of /gnu/store/bx2zldsx3by529hri5pfx15k12f67gzb-gcc-4.7.4.drv failed
View build log at 
'/var/log/guix/drvs/bx/2zldsx3by529hri5pfx15k12f67gzb-gcc-4.7.4.drv.gz'.
guix build: error: build of 
`/gnu/store/bx2zldsx3by529hri5pfx15k12f67gzb-gcc-4.7.4.drv' failed



Re: gcc-4.7 and gcc-4.8 compilation failure in x64

2022-03-29 Thread Ekaitz Zarraga


> Hi Ekaitz
>
> Not that I am in any position to answer the question, but could you
>
> share a little bit more context?
>
> Did the error occur when you were compiling gcc-4.7 or do programs
>
> compiled with this compiler have this issue?
>
> What path led you to gcc-4.7? Can you share your compilation settings? etc..
>
> Kind regards,
>
> Reza



The failure appears on the compilation on the gcc-4.7 and gcc-4.8 packages.

If you make a `manifest.scm` that looks like this:

(use-modules (gnu packages gcc))
(packages->manifest (list gcc-4.7))

And you try to compile that using `guix build -m manifest.scm` the compilation 
fails. The same happens when choosing 4.8.

I'm on x64.

Hope that clarifies a little bit.




Re: gcc-4.7 and gcc-4.8 compilation failure in x64

2022-03-29 Thread Reza Housseini

Hi Ekaitz

Not that I am in any position to answer the question, but could you 
share a little bit more context?


Did the error occur when you were compiling gcc-4.7 or do programs 
compiled with this compiler have this issue?


What path led you to gcc-4.7? Can you share your compilation settings? etc..

Kind regards,

Reza

On 3/29/22 16:15, Ekaitz Zarraga wrote:

Hi,

I'm digging on old compiler versions for bootstrapping purposes and I realized 
that gcc 4.7 and 4.8 packages don't compile on x64.

We have been able to reproduce the failure of gcc 4.7 but we didn't test the 
4.8 error that far.

In gcc-4.7 the error is the following:

./md-unwind-support.h:60:47: error: dereferencing pointer to incomplete type

I guess there's something missing there but I'm out of ideas to dig on this 
further.

Anyone?



OpenPGP_0xC375C6AF05125C52.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


gcc-4.7 and gcc-4.8 compilation failure in x64

2022-03-29 Thread Ekaitz Zarraga
Hi,

I'm digging on old compiler versions for bootstrapping purposes and I realized 
that gcc 4.7 and 4.8 packages don't compile on x64.

We have been able to reproduce the failure of gcc 4.7 but we didn't test the 
4.8 error that far.

In gcc-4.7 the error is the following:

./md-unwind-support.h:60:47: error: dereferencing pointer to incomplete type

I guess there's something missing there but I'm out of ideas to dig on this 
further.

Anyone?