1 |
Yrjö Hatakka wrote: |
2 |
|
3 |
>for some reason when compiling file zrle.cc -march gets value of 1 instead |
4 |
>i686 |
5 |
> |
6 |
>gcc -c -march=i686 -O3 -pipe -ansi -pedantic -I. |
7 |
>-I../../../../exports/include/X11 -I../../../../include/fonts |
8 |
>-I../../../../exports/include/X11 -I../../cfb -I../../mfb -I../../mi |
9 |
>-I../../include -I../../os -I../../../../.. -Wall -I../../../.. |
10 |
>-I../../../../exports/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L |
11 |
>-D_POSIX_SOURCE -D_XOPEN_SOURCE=500L -D_BSD_SOURCE -D_SVID_SOURCE -DSHAPE |
12 |
>-DGCCUSESGAS -DSTATIC_COLOR -DAVOID_GLYPHBLT -DPIXPRIV -DNDEBUG |
13 |
>-DFUNCPROTO=15 -DNARROWPROTO -DDDXOSINIT -DSERVER_LOCK -DDDXOSFATALERROR |
14 |
>-DDDXTIME -DPART_NET hextile.c |
15 |
>rm -f zrle.o |
16 |
>c++ -c -march=1 -O3 -pipe -Wall -I. -I../../../../exports/include/X11 |
17 |
>-I../../../../include/fonts -I../../../../exports/include/X11 |
18 |
>-I../../cfb -I../../mfb -I../../mi -I../../include -I../../os |
19 |
>-I../../../../.. -Wall -I../../../.. -I../../../../exports/include -Dlinux |
20 |
>-D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE=500L |
21 |
>-D_BSD_SOURCE -D_SVID_SOURCE -DSHAPE -DGCCUSESGAS -DSTATIC_COLOR |
22 |
>-DAVOID_GLYPHBLT -DPIXPRIV -DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO |
23 |
>-DDDXOSINIT -DSERVER_LOCK -DDDXOSFATALERROR -DDDXTIME -DPART_NET zrle.cc |
24 |
>cc1plus: bad value (1) for -march= switch |
25 |
>make[5]: *** [zrle.o] Error 1 |
26 |
>make[5]: Target `all' not remade because of errors. |
27 |
>make[5]: Target `all' not remade because of errors. |
28 |
>make[5]: Leaving directory |
29 |
>`/var/tmp/portage/vnc-3.3.4/work/vnc-3.3.4-unixsrc/Xvnc/programs/Xserver/hw/vnc' |
30 |
>make[4]: *** [hw/vnc] Error 2 |
31 |
>make[4]: *** No rule to make target `hw/vnc/libvnc.a', needed by `Xvnc'. |
32 |
>make[4]: Target `all' not remade because of errors. |
33 |
>make[4]: Leaving directory |
34 |
>`/var/tmp/portage/vnc-3.3.4/work/vnc-3.3.4-unixsrc/Xvnc/programs/Xserver' |
35 |
>make[3]: *** [all] Error 2 |
36 |
>make[3]: Leaving directory |
37 |
>`/var/tmp/portage/vnc-3.3.4/work/vnc-3.3.4-unixsrc/Xvnc/programs' |
38 |
>make[2]: *** [all] Error 2 |
39 |
>make[2]: Leaving directory |
40 |
>`/var/tmp/portage/vnc-3.3.4/work/vnc-3.3.4-unixsrc/Xvnc' |
41 |
>make[1]: *** [World] Error 2 |
42 |
>make[1]: Leaving directory |
43 |
>`/var/tmp/portage/vnc-3.3.4/work/vnc-3.3.4-unixsrc/Xvnc' |
44 |
>make: *** [World] Error 2 |
45 |
> |
46 |
>!!! ERROR: The ebuild did not complete successfully. |
47 |
>!!! Function src_compile, Line 28, Exitcode 2 |
48 |
>!!! (no error message) |
49 |
> |
50 |
> |
51 |
> |
52 |
> |
53 |
|
54 |
That same error happens, when you edit the XFree86 Makefiles to use the |
55 |
march flag. |
56 |
I noticed this on an LFS system where I compiled X from source. |
57 |
|
58 |
To circumvent that error, you have to put the value of the march flag |
59 |
into quotation marks, e.g. -march="i686". |
60 |
|
61 |
Juergen |