All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick Caulfield <caulfield@sistina.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] lvm-1.0.1 tools build error on SPARC64 (was: lvm-1.0.1 kernel compile errors on SPARC64)
Date: Wed Dec  5 10:06:02 2001	[thread overview]
Message-ID: <20011205083756.B1040@tykepenguin.com> (raw)
In-Reply-To: <Pine.GSO.4.21.0112041349520.27570-100000@devmail.dev.tivoli.com>

On Tue, Dec 04, 2001 at 03:50:57PM -0600, Rich Scheller wrote:
> On Mon, 3 Dec 2001, Patrick Caulfield wrote:
> 
> > On Mon, Dec 03, 2001 at 09:36:04AM -0600, Rich Scheller wrote:
> > > This patch fixed the kernel build break.  Thanks!
> > > 
> > 
> > If that actually works (and I can think of no reason why it would not) can you
> > let me know and I'll send the patch to Dave Miller for inclusion in the stock
> > kernel.
> 
> Patrick,
> 
> Yes, using that patch, I was able to build a working 2.4.16+lvm_1.0.1
> kernel on our Sun Enterprise 250 and (after running into an LVM tools
> build problem, see below) I was able to build some test volume groups and
> volumes, create ext2 file systems on them, fill them with data, extend the
> file systems, etc.  If you have any specific tests that you'd like me to
> run, please let me know.  (My eventual goal is to create XFS or JFS file
> systems in LVM volumes on top of a software RAID5 array running under
> Linux on a Sun E450.)

Thanks for doing that, I'll get the patch off today. I tested the original
SPARC port pretty thoroughly so if the basics work the rest should be OK - barring
other bugs of course!

> After getting the kernel working, I ran into a completely different
> problem in the build of the lvm-1.0.1 tools.  The configure script created
> the file make.tmpl with CFLAGS set to "-g -O0 -Wall -pg".  The -pg
> (profiling) option is incompatible with shared libraries on the gcc SPARC
> compiler.  You get a whole bunch of these warnings:
> 
> cc1: warning: -fPIC and profiling conflict: disabling -fPIC
> 
> With -fPIC (Position Independant Code) disabled, the shared library
> liblvm-10.so.1 is generated, but it's unusable.  Any executable linked
> against this library gets a segmentation fault when the first function
> from this library is called.
> 
> I can't really think of a reason why you'd want to have profiling turned
> on for production code, so may I suggest that the CFLAGS option "-pg" be
> removed from the file make.tmpl.in?  That fixed the problem for me...

You're right, there's no reason that should be in the release Makefile - I'll
remove it, thanks for pointing it out.

patrick

  reply	other threads:[~2001-12-05 10:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-30 10:47 [linux-lvm] lvm-1.0.1 patch causes kernel compile errors on SPARC64 Rich Scheller
2001-11-30 12:15 ` Patrick Caulfield
2001-12-03  2:34 ` Patrick Caulfield
2001-12-03  9:34   ` Rich Scheller
2001-12-03 10:42     ` Patrick Caulfield
2001-12-04 15:49       ` [linux-lvm] lvm-1.0.1 tools build error on SPARC64 (was: lvm-1.0.1 kernel compile errors on SPARC64) Rich Scheller
2001-12-05 10:06         ` Patrick Caulfield [this message]
2001-12-07  2:30           ` Patrick Caulfield

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011205083756.B1040@tykepenguin.com \
    --to=caulfield@sistina.com \
    --cc=linux-lvm@sistina.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.