Web lists-archives.org

[Mingw-users] Problems with building elfutils-libelf




Hi,
I'm an absolute newbie in the MinGW world. I'm trying to use
elfutils-libelf to compile my app for Windows. Build is failing and
i'm clueless as the error message is not very clear to me.

$ ./configure --disable-shared
$make

---snip--

Making all in lib
make[2]: Entering directory `C:/msys/1.0/home/indraneelm/elfutils-0.131/lib'
gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -I. -I.. -I./../libelf -I..   -fpic
-Wall -Wshadow -Werror -Wunused -Wextra  -g -O2 -MT xstrndup.o -MD -MP
-MF .deps/xstrndup.Tpo -c -o xstrndup.o xstrndup.c
xstrndup.c:1: warning: -fpic ignored for target (all code is position
independent)
make[2]: *** [xstrndup.o] Error 1
make[2]: Leaving directory `C:/msys/1.0/home/indraneelm/elfutils-0.131/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `C:/msys/1.0/home/indraneelm/elfutils-0.131'
make: *** [all] Error 2


Even the 'make clean' fails to complete with following message


if gcc -D_GNU_SOURCE -DHAVE_CONFIG_H
-DSRCDIR=\"C:/msys/1.0/home/indraneelm/elfutils-0.131/src\"
-DOBJDIR=\"C:/msys/1.0/home/indraneelm/elfutils-0.131/src\" -I. -I..
-I. -I./../libelf -I./../libebl -I./../libdw -I./../libdwfl -I./../lib
-I.. -Wall -Wshadow -std=gnu99 -Werror -Wunused -Wextra -Wformat=2 -g
-O2 -c -o none_ld.os -fpic -DPIC -DSHARED \
          -MT none_ld.os -MD -MP -MF ".deps/none_ld.Tpo" \
          `test -f 'none_ld.c' || echo './'`none_ld.c; \
        then cat ".deps/none_ld.Tpo" >> ".deps/none_ld.Po"; \
             rm -f ".deps/none_ld.Tpo"; \
        else rm -f ".deps/none_ld.Tpo"; exit 1; \
        fi
none_ld.c:1: warning: -fpic ignored for target (all code is position
independent)
make[1]: *** [none_ld.os] Error 1
make[1]: Leaving directory `C:/msys/1.0/home/indraneelm/elfutils-0.131/src'
make: *** [clean-recursive] Error 1

Sources Obtained from:
http://gd.tuwien.ac.at/opsys/linux/Owl/pool/sources/elfutils-libelf/

I have MinGW, MSys and MSys-DTK installed on my system.

Is it something to do with the -fpic option for the compiler (the
warning before the build fails) ??

Any suggestions/help are welcome.

TIA,
Indro

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users