* bug#54626: gcc-4.7 and gcc-4.8 compilation failure in x64 @ 2022-03-29 14:15 Ekaitz Zarraga 2022-03-29 17:53 ` Reza Housseini 0 siblings, 1 reply; 9+ messages in thread From: Ekaitz Zarraga @ 2022-03-29 14:15 UTC (permalink / raw) To: 54626; +Cc: guix-devel\@gnu.org 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? ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: gcc-4.7 and gcc-4.8 compilation failure in x64 2022-03-29 14:15 bug#54626: gcc-4.7 and gcc-4.8 compilation failure in x64 Ekaitz Zarraga @ 2022-03-29 17:53 ` Reza Housseini 2022-03-29 18:39 ` Ekaitz Zarraga 0 siblings, 1 reply; 9+ messages in thread From: Reza Housseini @ 2022-03-29 17:53 UTC (permalink / raw) To: guix-devel [-- Attachment #1.1.1: Type: text/plain, Size: 865 bytes --] 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? > [-- Attachment #1.1.2: OpenPGP public key --] [-- Type: application/pgp-keys, Size: 15557 bytes --] [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: gcc-4.7 and gcc-4.8 compilation failure in x64 2022-03-29 17:53 ` Reza Housseini @ 2022-03-29 18:39 ` Ekaitz Zarraga 2022-03-29 19:01 ` Ekaitz Zarraga 0 siblings, 1 reply; 9+ messages in thread From: Ekaitz Zarraga @ 2022-03-29 18:39 UTC (permalink / raw) To: Reza Housseini; +Cc: guix-devel > 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. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: gcc-4.7 and gcc-4.8 compilation failure in x64 2022-03-29 18:39 ` Ekaitz Zarraga @ 2022-03-29 19:01 ` Ekaitz Zarraga 2022-03-30 19:27 ` Reza Housseini 2022-04-01 8:43 ` Ludovic Courtès 0 siblings, 2 replies; 9+ messages in thread From: Ekaitz Zarraga @ 2022-03-29 19:01 UTC (permalink / raw) To: Ekaitz Zarraga; +Cc: guix-devel > 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 ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: gcc-4.7 and gcc-4.8 compilation failure in x64 2022-03-29 19:01 ` Ekaitz Zarraga @ 2022-03-30 19:27 ` Reza Housseini 2022-03-30 19:32 ` Ekaitz Zarraga 2022-04-01 8:43 ` Ludovic Courtès 1 sibling, 1 reply; 9+ messages in thread From: Reza Housseini @ 2022-03-30 19:27 UTC (permalink / raw) To: Ekaitz Zarraga; +Cc: guix-devel [-- Attachment #1.1.1: Type: text/plain, Size: 1884 bytes --] 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 [-- Attachment #1.1.2: OpenPGP public key --] [-- Type: application/pgp-keys, Size: 15557 bytes --] [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: gcc-4.7 and gcc-4.8 compilation failure in x64 2022-03-30 19:27 ` Reza Housseini @ 2022-03-30 19:32 ` Ekaitz Zarraga 2022-03-30 19:40 ` Reza Housseini 0 siblings, 1 reply; 9+ messages in thread From: Ekaitz Zarraga @ 2022-03-30 19:32 UTC (permalink / raw) To: Reza Housseini; +Cc: guix-devel Hi Reza, On Wednesday, March 30th, 2022 at 9:27 PM, Reza Housseini <reza.housseini@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? ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: gcc-4.7 and gcc-4.8 compilation failure in x64 2022-03-30 19:32 ` Ekaitz Zarraga @ 2022-03-30 19:40 ` Reza Housseini 2022-03-30 19:43 ` Ekaitz Zarraga 0 siblings, 1 reply; 9+ messages in thread From: Reza Housseini @ 2022-03-30 19:40 UTC (permalink / raw) To: Ekaitz Zarraga; +Cc: guix-devel [-- Attachment #1.1.1: Type: text/plain, Size: 2304 bytes --] 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.housseini@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? > [-- Attachment #1.1.2: OpenPGP public key --] [-- Type: application/pgp-keys, Size: 15557 bytes --] [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: gcc-4.7 and gcc-4.8 compilation failure in x64 2022-03-30 19:40 ` Reza Housseini @ 2022-03-30 19:43 ` Ekaitz Zarraga 0 siblings, 0 replies; 9+ messages in thread From: Ekaitz Zarraga @ 2022-03-30 19:43 UTC (permalink / raw) To: Reza Housseini; +Cc: guix-devel Good idea, I will! ------- Original Message ------- On Wednesday, March 30th, 2022 at 9:40 PM, Reza Housseini <reza.housseini@gmail.com> 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.housseini@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? ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: gcc-4.7 and gcc-4.8 compilation failure in x64 2022-03-29 19:01 ` Ekaitz Zarraga 2022-03-30 19:27 ` Reza Housseini @ 2022-04-01 8:43 ` Ludovic Courtès 1 sibling, 0 replies; 9+ messages in thread From: Ludovic Courtès @ 2022-04-01 8:43 UTC (permalink / raw) To: Ekaitz Zarraga; +Cc: guix-devel Hi! Ekaitz Zarraga <ekaitz@elenq.tech> 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’. ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2022-04-01 8:44 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-03-29 14:15 bug#54626: gcc-4.7 and gcc-4.8 compilation failure in x64 Ekaitz Zarraga 2022-03-29 17:53 ` Reza Housseini 2022-03-29 18:39 ` Ekaitz Zarraga 2022-03-29 19:01 ` Ekaitz Zarraga 2022-03-30 19:27 ` Reza Housseini 2022-03-30 19:32 ` Ekaitz Zarraga 2022-03-30 19:40 ` Reza Housseini 2022-03-30 19:43 ` Ekaitz Zarraga 2022-04-01 8:43 ` Ludovic Courtès
Code repositories for project(s) associated with this public inbox https://git.savannah.gnu.org/cgit/guix.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).