On 9 March 2013 20:07, Daniel Ziólkowski <[email protected]> wrote:
> scons uses weird options causing compilation fail:
>> -OPT:Olimit=0
> and
>> -march=core2 -O2 -fplugin=/usr/lib64/llvm/dragonegg.so
>
> Second line is probably from /etc/portage/make.conf, but even after
> commenting line with variable CFLAGS, these options are added.
>
> The first one causes error:
>> cc1plus: error: argument to ‘-O’ should be a non-negative integer
> And the second:
>> cc1plus: error: cannot load plugin /usr/lib64/llvm/dragonegg.so
>> /usr/lib64/llvm/dragonegg.so: undefined symbol: tree_map_base_marked_p
>
> What can be problem and how to fix it?
>
> I'm using Gentoo with clang and
>> CFLAGS="-march=core2 -O2 -fplugin=/usr/lib64/llvm/dragonegg.so"
>> CXXFLAGS="${CFLAGS}"
> in /etc/portage/make.conf

The MyPaint scons file does neither add "-OPT:Olimit=0" nor
"-march=core2 -O2 -fplugin=/usr/lib64/llvm/dragonegg.so".
It will capture CFLAGS/CXXFLAGS from the environment, so please first
try to "unset CFLAGS" and "unset CXXFLAGS" before trying to build.
Furthermore, it will use cflags as specified by its dependencies in
their pkg-config files. So try to do "pkg-config --cflags json-c
python gtk-2.0 lcms-2.0" (note: names of the dependencies are from my
head, check with the scons file for the exact names). Could also grep
your pkg-config files for this strange -OPT thing.

Hope that helps,
Jon

-- 
Jon Nordby - www.jonnor.com

_______________________________________________
Mypaint-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-discuss

Reply via email to