Linux PARISC architecture development
 help / color / mirror / Atom feed
* [parisc-linux] evms-0.9.2 build utilities problem
@ 2002-03-13 14:36 joel.soete
  2002-03-13 18:23 ` Randolph Chung
  0 siblings, 1 reply; 5+ messages in thread
From: joel.soete @ 2002-03-13 14:36 UTC (permalink / raw)
  To: parisc-linux

Hi all,

The original way to build some evms utilities as evms_devnode_fixup is:

...
gcc -Wall -fPIC -O2 -I/tools/evms-dpkg/evms-0.9.2/engine/include
-I/tools/evms-dpkg/evms-0.9.2/engine/dlist
-I/tools/evms-dpkg/evms-0.9.2/kernel-headers/include -I/usr/include
-I/usr/local/include -DPluginDirectory=\"/lib/evms\" -DEVMS_DEBUG -DPARANOID
-DMAJOR_VERSION=1 -DMINOR_VERSION=0 -DPATCH_LEVEL=0 -DVERSION=\"1.0.0\"
-DDATE=\"03/13/02\" -c -o evms_devnode_fixup.o evms_devnode_fixup.c
...
gcc -L/tools/evms-dpkg/evms-0.9.2/engine/Engine
-L/tools/evms-dpkg/evms-0.9.2/engine/dlist  -static -o evms_devnode_fixup
evms_devnode_fixup.o -levms -ldlist -lpthread -ldl

...
Well launch it made an immidiate Segmentation fault.

Now I recompile without "-fPIC" and it works fine.

Any idea on what is wrong?

Thanks in advance for help,
    Joel


-------------------------------------------------
This mail sent through Tiscali Webmail (http://webmail.tiscali.be)

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

* Re: [parisc-linux] evms-0.9.2 build utilities problem
  2002-03-13 14:36 [parisc-linux] evms-0.9.2 build utilities problem joel.soete
@ 2002-03-13 18:23 ` Randolph Chung
  2002-03-14  6:40   ` joel.soete
  0 siblings, 1 reply; 5+ messages in thread
From: Randolph Chung @ 2002-03-13 18:23 UTC (permalink / raw)
  To: joel.soete; +Cc: parisc-linux

> Well launch it made an immidiate Segmentation fault.
> 
> Now I recompile without "-fPIC" and it works fine.
> 
> Any idea on what is wrong?

what versions of gcc-3.0 and binutils are you running?

dpkg -s gcc-3.0 |grep Version
dpkg -s binutils |grep Version

randolph
-- 
   @..@                                         http://www.TauSq.org/
  (----)
 ( >__< )
 ^^ ~~ ^^

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

* Re: [parisc-linux] evms-0.9.2 build utilities problem
  2002-03-13 18:23 ` Randolph Chung
@ 2002-03-14  6:40   ` joel.soete
  2002-03-14  7:18     ` Randolph Chung
  0 siblings, 1 reply; 5+ messages in thread
From: joel.soete @ 2002-03-14  6:40 UTC (permalink / raw)
  To: Randolph Chung; +Cc: joel.soete, parisc-linux

Randolph,

Sorry (I would have to mentioned)

Quoting Randolph Chung <randolph@tausq.org>:

> > Well launch it made an immidiate Segmentation fault.
> > 
> > Now I recompile without "-fPIC" and it works fine.
> > 
> > Any idea on what is wrong?
> 
> what versions of gcc-3.0 and binutils are you running?
> 
> dpkg -s gcc-3.0 |grep Version

Version: 1:3.0.4-3

> dpkg -s binutils |grep Version

Version: 2.11.93.0.2-3


Joel

PS: This can be reproduce with a simple "Hello World" (just to avoid to sempt
time to find back the the sources of evms)

-------------------------------------------------
This mail sent through Tiscali Webmail (http://webmail.tiscali.be)

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

* Re: [parisc-linux] evms-0.9.2 build utilities problem
  2002-03-14  6:40   ` joel.soete
@ 2002-03-14  7:18     ` Randolph Chung
  2002-03-14 14:55       ` John David Anglin
  0 siblings, 1 reply; 5+ messages in thread
From: Randolph Chung @ 2002-03-14  7:18 UTC (permalink / raw)
  To: joel.soete; +Cc: parisc-linux, dave

> PS: This can be reproduce with a simple "Hello World" (just to avoid to sempt
> time to find back the the sources of evms)

<sigh> yup... looks like a compiler (linker?) bug...

gcc -fPIC -o test test.c          -> works
gcc -fPIC -static -o test test.c  -> segfaults

test.c is a printf("Hello") kinda program

verified with both gcc-3.0.4 and gcc-3.1.

Dave, is this a known problem?

randolph
-- 
   @..@                                         http://www.TauSq.org/
  (----)
 ( >__< )
 ^^ ~~ ^^

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

* Re: [parisc-linux] evms-0.9.2 build utilities problem
  2002-03-14  7:18     ` Randolph Chung
@ 2002-03-14 14:55       ` John David Anglin
  0 siblings, 0 replies; 5+ messages in thread
From: John David Anglin @ 2002-03-14 14:55 UTC (permalink / raw)
  To: randolph; +Cc: joel.soete, parisc-linux

> <sigh> yup... looks like a compiler (linker?) bug...
> 
> gcc -fPIC -o test test.c          -> works
> gcc -fPIC -static -o test test.c  -> segfaults

I don't think so.  I did a little test and found r19 has the value 4
when main is called.  There must be a problem with the startup code.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

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

end of thread, other threads:[~2002-03-14 14:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-13 14:36 [parisc-linux] evms-0.9.2 build utilities problem joel.soete
2002-03-13 18:23 ` Randolph Chung
2002-03-14  6:40   ` joel.soete
2002-03-14  7:18     ` Randolph Chung
2002-03-14 14:55       ` John David Anglin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox