Bertfried Fauser wrote:
> 
> Dear Waldek,
> 
>    I googled a bit to see if my problem with compiling the
> graphics is apparent in other programs. There seem to be
> quite a few such instances, failing with a similar error
> message. The cure seems to be twofold:
> 
> * missing shared library (but I am confident that I have installed all
> the necessary
>   libraries, so that should not cause problems)
> * it seems that gcc from a certain version onwards (4.2) has
>   a problem with some
>   older code if the compiler optimisation is set to -O2 (I use gcc
> 4.6.1-9ubuntu)
>   So I tried to remove/replace that compiler option in the makefiles,
> but that failed too.
>   I fear that I do not really understand the make process and which
> files are needed
>   to be recompiled to make the viewport (for 3D), I tried to change
> the compiler flags
>   for files in ../src/graph/view3D/   (there are two such instances there)
> 
> I will use some more spare time to see if I can localize the problem
> better. If you could
> pass me a short mail how to make sure I use un-optimized gcc that
> would be hepfull too.
 
To change flags for testing look at line 61 in
src/graph/view3D/Makefile.in:

        $(CC) -c $(CFLAGS) $(AXIOM_CFLAGS) -o $@ $<

and try replacing it by

        $(CC) -c $(CFLAGS) $(AXIOM_CFLAGS) -O0 -o $@ $<

Note1: There is a tab at the beggining of the line, if you
loose the tab Makefile will stop working.
Note2: After change to the Makefile.in you need to force
recompilation of appropriate files, for examle by running
touch on C files in source directory or by deleting .o
files in build directory (it is not enough to remove
executable, because then it will be relinked from .o files
wothout recompilation).
Note3: make prints commands that it executes.  If you capture
messages to a file you can check what gcc options were used.

-- 
                              Waldek Hebisch
[email protected] 

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/fricas-devel?hl=en.

Reply via email to