On Sat, Mar 23, 2013 at 3:52 AM, Ruben Van Boxem
<[email protected]> wrote:
> 2013/3/23 Ruben Van Boxem <[email protected]>
>>
>> Hi,
>>
>> I'm trying to get GCC 4.8 built, but I run into this error:
>> libtool: compile:  /home/ruben/mingw-w64/linux64mingw32/gcc/./gcc/xgcc
>> -B/home/ruben/mingw-w64/linux64mingw32/gcc/./gcc/
>> -L/home/ruben/mingw-w64/linux64mingw32/mingw32/i686-w64-mingw32/lib
>> -L/home/ruben/mingw-w64/linux64mingw32/mingw32/mingw/lib -isystem
>> /home/ruben/mingw-w64/linux64mingw32/mingw32/i686-w64-mingw32/include
>> -isystem /home/ruben/mingw-w64/linux64mingw32/mingw32/mingw/include
>> -B/home/ruben/mingw-w64/linux64mingw32/mingw32/i686-w64-mingw32/bin/
>> -B/home/ruben/mingw-w64/linux64mingw32/mingw32/i686-w64-mingw32/lib/
>> -isystem
>> /home/ruben/mingw-w64/linux64mingw32/mingw32/i686-w64-mingw32/include
>> -isystem
>> /home/ruben/mingw-w64/linux64mingw32/mingw32/i686-w64-mingw32/sys-include
>> -DHAVE_CONFIG_H -I. -I/home/ruben/mingw-w64/src/gcc/libbacktrace -I
>> /home/ruben/mingw-w64/src/gcc/libbacktrace/../include -I
>> /home/ruben/mingw-w64/src/gcc/libbacktrace/../libgcc -I ../libgcc
>> -funwind-tables -frandom-seed=dwarf.lo -W -Wall -Wwrite-strings
>> -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
>> -Wmissing-format-attribute -Wcast-qual -Werror -fPIC -g -O2 -march=nocona
>> -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer -c
>> /home/ruben/mingw-w64/src/gcc/libbacktrace/dwarf.c  -DDLL_EXPORT -DPIC -o
>> .libs/dwarf.o
>> /home/ruben/mingw-w64/src/gcc/libbacktrace/dwarf.c:1:0: error: -fPIC
>> ignored for target (all code is position independent) [-Werror]
>>  /* dwarf.c -- Get file/line information from DWARF for backtraces.
>>  ^
>> cc1: all warnings being treated as errors
>>
>> This, even though I explicitly passed --disable-werror to configure.
>>
>> Checking the readme of libbacktrace,
>> https://github.com/mirrors/gcc/tree/master/libbacktrace
>> it seems this should only be built for ELF targets.
>
>
> And it seems this is built because I enabled go as a language for GCC and
> libgo depends on it. The joys of trying to give more features...
>

Why is -fPIC and -DPIC being added?  Is there a libtool bug?  Is there
a sub-package bug related to the Windows OS for your libgo?  I would
be tempted to manually modify libbacktrace Makefile to remove the
-fPIC flag or perhaps its config.status file and reexecute it.

-- 
Earnie
-- https://sites.google.com/site/earnieboyd

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to