On 5/7/19 1:48 PM, Ken Moffat wrote:
On Tue, May 07, 2019 at 08:24:11AM -0400, [email protected] wrote:
Building perl ( both chapter 5 and 6 ) under the host system (pclinuxos)
works fine.
The issue is when I use the newly built LFS-8.4 to build its self ie as the
host system.
The perl build for both chapter 5 and chapter 6 produces some segfaults
outputs to stderr.
The build always completes and I when boot to this new build (lfs as the
host) and it works.
From what you say, you have not captured stderr along with stdout
(i.e. 2>&1) and therefore you cannot say what the build was doing at
the time ?
Yes it was not captured
function Perl {
# Perl-5.28.1
local pkg=perl-5.28.1.tar.xz
local pkg_dir=${pkg%%.tar*}
local logfile="${TOPDIR}/LOGS/tools-${FUNCNAME}.log"
[ -e ${logfile}.complete ] && { msg "Skipping: ${FUNCNAME}";return
0; } || msg "Building: ${FUNCNAME}"
> ${logfile}
pushd ${TOPDIR}/BUILD >> /dev/null 2>&1
unpack "${pkg}"
pushd ${pkg_dir} >> /dev/null 2>&1
msg_line " Configure: "
sh Configure -des -Dprefix=/tools -Dlibs=-lm
-Uloclibpth -Ulocincpth >> ${logfile} 2>&1
msg_success
msg_line " Make: "
make ${MKFLAGS} >> ${logfile} 2>&1
msg_success
msg_line " Install: "
cp -v perl cpan/podlators/scripts/pod2man /tools/bin >>
${logfile} 2>&1
mkdir -pv /tools/lib/perl5/5.28.1 >> ${logfile} 2>&1
cp -Rv lib/* /tools/lib/perl5/5.28.1 >> ${logfile} 2>&1
msg_success
popd > /dev/null 2>&1
popd > /dev/null 2>&1
clean_build-directory
mv ${logfile} ${logfile}.complete
return
}
I've looked at screens where perl was building (with stdout and
stderr diverted to a log) several times in recent months - mainly
when the perl tests are running - and not seen this, nor is there
any sign of it in my build logs.
What I have seen are segmentation faults in my _system_ log. I
think these are during the tests, and are expected. But obviously
that doesn't apply to chapter 5. Oh, and for the tests it is
obviously impractical to know which was running at the time (no
regular output until all tests have run).
I have not looked at the system log to see if the segfaults are there.
I have since built it using the host kernel and initrd image and it does
not segfault.
I am going to build the kernel using the pclinuxos config file after I
change it to add the SATA drivers as they are modules in their config file.
ĸen
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style