unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* Linker error on installing gcc
@ 2013-04-21 20:27 Chris Dale
  2013-04-22 11:30 ` Ludovic Courtès
  0 siblings, 1 reply; 7+ messages in thread
From: Chris Dale @ 2013-04-21 20:27 UTC (permalink / raw
  To: bug-guix

[-- Attachment #1: Type: text/plain, Size: 2037 bytes --]

/nix/store/9fnjjsbarscbmakr44ixfv9yhg6z12mw-glibc-2.17/include/bits/fcntl-linux.h:305:17:
warning: ISO C forbids zero-size array 'f_handle' [-pedantic]
gcc   -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common
 -DHAVE_CONFIG_H  -o lto1 \
 lto/lto-lang.o lto/lto.o lto/lto-object.o attribs.o main.o tree-browser.o
libbackend.a libcommon-target.a libcommon.a ../libcpp/libcpp.a
../libdecnumber/libdecnumber.a
-L/tmp/nix-build-gcc-4.7.2.drv-0/build/./gmp/.libs
-L/tmp/nix-build-gcc-4.7.2.drv-0/build/./mpfr/src/.libs
-L/tmp/nix-build-gcc-4.7.2.drv-0/build/./mpc/src/.libs -lmpc -lmpfr -lgmp
-rdynamic -ldl  -L../zlib -lz libcommon.a ../libcpp/libcpp.a
../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
collect2: error: ld returned 1 exit status
make[3]: *** [lto1] Error 1
make[3]: Leaving directory `/tmp/nix-build-gcc-4.7.2.drv-0/build/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/tmp/nix-build-gcc-4.7.2.drv-0/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/tmp/nix-build-gcc-4.7.2.drv-0/build'
make: *** [all] Error 2
phase `build' failed after 977 seconds
builder for `/nix/store/law6yjqidyqb7qy1vd3n3vqhd9413gay-gcc-4.7.2.drv'
failed with exit code 1
@ build-failed /nix/store/law6yjqidyqb7qy1vd3n3vqhd9413gay-gcc-4.7.2.drv
/nix/store/lwc6sygaglzfk17v3w15cc2xv97fjgci-gcc-4.7.2 1 builder for
`/nix/store/law6yjqidyqb7qy1vd3n3vqhd9413gay-gcc-4.7.2.drv' failed with
exit code 1
cannot build derivation
`/nix/store/7b51j955338q2kxj3ssvly0i2pw20z7q-hello-2.8.drv': 1 dependencies
couldn't be built
error: build failed: build of
`/nix/store/7b51j955338q2kxj3ssvly0i2pw20z7q-hello-2.8.drv' failed
1442 operations
--------
x86_64 architecture

installing gcc as a dependency

guix package -i hello

GUILE v2.1.0

GUIX branch master, v.2

Thanks!
[Chris] Dale

[-- Attachment #2: Type: text/html, Size: 2586 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Linker error on installing gcc
  2013-04-21 20:27 Linker error on installing gcc Chris Dale
@ 2013-04-22 11:30 ` Ludovic Courtès
  2013-04-22 11:43   ` Chris Dale
  0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2013-04-22 11:30 UTC (permalink / raw
  To: Chris Dale; +Cc: bug-guix

Chris Dale <adventureonthehighseas@gmail.com> skribis:

> /nix/store/9fnjjsbarscbmakr44ixfv9yhg6z12mw-glibc-2.17/include/bits/fcntl-linux.h:305:17:
> warning: ISO C forbids zero-size array 'f_handle' [-pedantic]
> gcc   -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wno-narrowing
> -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
> -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
> -Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common
>  -DHAVE_CONFIG_H  -o lto1 \
>  lto/lto-lang.o lto/lto.o lto/lto-object.o attribs.o main.o tree-browser.o
> libbackend.a libcommon-target.a libcommon.a ../libcpp/libcpp.a
> ../libdecnumber/libdecnumber.a
> -L/tmp/nix-build-gcc-4.7.2.drv-0/build/./gmp/.libs
> -L/tmp/nix-build-gcc-4.7.2.drv-0/build/./mpfr/src/.libs
> -L/tmp/nix-build-gcc-4.7.2.drv-0/build/./mpc/src/.libs -lmpc -lmpfr -lgmp
> -rdynamic -ldl  -L../zlib -lz libcommon.a ../libcpp/libcpp.a
> ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
> collect2: error: ld returned 1 exit status
> make[3]: *** [lto1] Error 1

There’s no actual error message here.  Could you look for the full log
under /nix/var/log/nix/drvs, and check if there’s an error message
somewhere above?  (It may have been built with ‘make -jX’, so the output
is intermingled.)

> x86_64 architecture

Normally it should be using pre-compiled binaries from hydra.gnu.org by
default.

What do you have in /nix/var/nix/substitute-binary/cache?

> GUILE v2.1.0

That version does not exist; that’s what Guile ‘master’ calls itself,
but you’d rather use 2.0.9 or 2.0.7 for now.

That said it doesn’t explain the build problem above.

Thanks for your report!

Ludo’.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Linker error on installing gcc
  2013-04-22 11:30 ` Ludovic Courtès
@ 2013-04-22 11:43   ` Chris Dale
  2013-04-22 11:53     ` Ludovic Courtès
  0 siblings, 1 reply; 7+ messages in thread
From: Chris Dale @ 2013-04-22 11:43 UTC (permalink / raw
  To: Ludovic Courtès; +Cc: bug-guix

[-- Attachment #1: Type: text/plain, Size: 709 bytes --]

>
> There’s no actual error message here.  Could you look for the full log
> under /nix/var/log/nix/drvs, and check if there’s an error message
> somewhere above?  (It may have been built with ‘make -jX’, so the output
> is intermingled.)
>

All that was above what I posted was the output of a linking command that
worked correctly. What would I be looking for, for error message syntax?


>
> > x86_64 architecture
>
> Normally it should be using pre-compiled binaries from hydra.gnu.org by
> default.
>
> What do you have in /nix/var/nix/substitute-binary/cache?
>

I have no directory /nix/var at all - just /nix/store. That may be related!


Thanks for your help!

[Chris] Dale

[-- Attachment #2: Type: text/html, Size: 1267 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Linker error on installing gcc
  2013-04-22 11:43   ` Chris Dale
@ 2013-04-22 11:53     ` Ludovic Courtès
  2013-04-22 12:27       ` Chris Dale
  0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2013-04-22 11:53 UTC (permalink / raw
  To: Chris Dale; +Cc: bug-guix

Chris Dale <adventureonthehighseas@gmail.com> skribis:

>>
>> There’s no actual error message here.  Could you look for the full log
>> under /nix/var/log/nix/drvs, and check if there’s an error message
>> somewhere above?  (It may have been built with ‘make -jX’, so the output
>> is intermingled.)
>>
>
> All that was above what I posted was the output of a linking command that
> worked correctly. What would I be looking for, for error message syntax?

Something starting with “error:”, I guess.

Also, are you running guix-daemon as root, with a special-purpose build
user group, as noted in the “Installation” section of the manual?

>> > x86_64 architecture
>>
>> Normally it should be using pre-compiled binaries from hydra.gnu.org by
>> default.
>>
>> What do you have in /nix/var/nix/substitute-binary/cache?
>>
>
> I have no directory /nix/var at all - just /nix/store. That may be related!

The actual directory name depends on your --localstatedir or --prefix
option passed to ‘configure’.  Can you check the value of
‘localstatedir’ in the config.log file?

TIA!

Ludo’.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Linker error on installing gcc
  2013-04-22 11:53     ` Ludovic Courtès
@ 2013-04-22 12:27       ` Chris Dale
  2013-04-22 16:21         ` Ludovic Courtès
  0 siblings, 1 reply; 7+ messages in thread
From: Chris Dale @ 2013-04-22 12:27 UTC (permalink / raw
  To: Ludovic Courtès; +Cc: bug-guix

[-- Attachment #1: Type: text/plain, Size: 521 bytes --]

> Something starting with “error:”, I guess.
>
>
The only thing with in an error in that part of the message is the one that
says collect2: error: ld returned with exit status 1,the really generic gcc
linker error.


> The actual directory name depends on your --localstatedir or --prefix
> option passed to ‘configure’.  Can you check the value of
> ‘localstatedir’ in the config.log file?
>

It was hiding in /usr/local/var/nix, but unfortunately there's also no
substitute-binaries dir in there either!

[-- Attachment #2: Type: text/html, Size: 938 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Linker error on installing gcc
  2013-04-22 12:27       ` Chris Dale
@ 2013-04-22 16:21         ` Ludovic Courtès
       [not found]           ` <CANV_ih9jw=ua2eh5+g9D8WR=9WEF233b6TnAcBBFuFRZymcwzA@mail.gmail.com>
  0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2013-04-22 16:21 UTC (permalink / raw
  To: Chris Dale; +Cc: bug-guix

Chris Dale <adventureonthehighseas@gmail.com> skribis:

>> Something starting with “error:”, I guess.
>>
>>
> The only thing with in an error in that part of the message is the one that
> says collect2: error: ld returned with exit status 1,the really generic gcc
> linker error.

Hmm, OK.

And are you doing chroot builds?

>> The actual directory name depends on your --localstatedir or --prefix
>> option passed to ‘configure’.  Can you check the value of
>> ‘localstatedir’ in the config.log file?
>>
>
> It was hiding in /usr/local/var/nix, but unfortunately there's also no
> substitute-binaries dir in there either!

Are you using a very recent snapshot of the ‘master’ branch?

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Linker error on installing gcc
       [not found]           ` <CANV_ih9jw=ua2eh5+g9D8WR=9WEF233b6TnAcBBFuFRZymcwzA@mail.gmail.com>
@ 2013-04-22 21:50             ` Ludovic Courtès
  0 siblings, 0 replies; 7+ messages in thread
From: Ludovic Courtès @ 2013-04-22 21:50 UTC (permalink / raw
  To: Chris Dale; +Cc: bug-guix

(Re-adding Cc.)

Chris Dale <adventureonthehighseas@gmail.com> skribis:

>>
>> And are you doing chroot builds?
>>
>>
> If chroot builds are the default, then I believe so.

As I wrote, it means the deamon is running as root and you have a
special-purpose build user group, as noted in Section “Installation”.
Can you confirm?

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-04-22 21:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-21 20:27 Linker error on installing gcc Chris Dale
2013-04-22 11:30 ` Ludovic Courtès
2013-04-22 11:43   ` Chris Dale
2013-04-22 11:53     ` Ludovic Courtès
2013-04-22 12:27       ` Chris Dale
2013-04-22 16:21         ` Ludovic Courtès
     [not found]           ` <CANV_ih9jw=ua2eh5+g9D8WR=9WEF233b6TnAcBBFuFRZymcwzA@mail.gmail.com>
2013-04-22 21:50             ` 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).