SCIENTIFIC-LINUX-USERS Archives

August 2014

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Boryeu Mao <[log in to unmask]>
Reply To:
Boryeu Mao <[log in to unmask]>
Date:
Fri, 1 Aug 2014 08:44:18 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (43 lines)
Thank you!   And found the problem: Collect2 runs 'inside' gcc and it
needs $PATHvto find ld - so it is necessary to have 'export
PATH=$PATH' statement before './configure' in the %post section.

On 8/1/14, Steven Timm <[log in to unmask]> wrote:
>
> If you put the right sleep statement at the end of your %post section
> you should be able to get an interactive prompt at the end
> of the install on the ctrl-alt-f2 screen and poke around
> the chroot environment and see what is there and what is not there,
> and try to reproduce the commands that are failing.
>
>
> Steve Timm
>
>
>
> On Fri, 1 Aug 2014, Boryeu Mao wrote:
>
>> Wrong conclusion about gcc/make being 'apparently unavailable yet in
>> chroot environment'.
>>
>> Further investigation found that, during a ./configure test (before
>> 'make'), 'gcc' failed to create executables (for a small
>> 'conftest.c'), with a message of "collect2: cannot find 'ld' ".
>> However, 'binutils' was among the packages that had been installed
>> prior to the %post section, and the directory /usr/bin (where ld
>> lives) is found in PATH by ./configure.
>>
>> Also, in the system booted from the dvd image, the ./configure script
>> runs successfully, and ld is where it should be.
>>
>> Google search so far hasn't turn up anything relevant. Suggestions and
>> help are appreciated.  Thanks
>>
>
> ------------------------------------------------------------------
> Steven C. Timm, Ph.D  (630) 840-8525
> [log in to unmask]  http://home.fnal.gov/~timm/
> Fermilab Scientific Computing Division, Scientific Computing Services Quad.
> Grid and Cloud Services Dept., Associate Dept. Head for Cloud Computing
>

ATOM RSS1 RSS2