Dear Dmitrii,

My build of source code is successful after following the hint of the
workaround you give.

Thanks very much.
WM Chung

-----Original Message-----
From: sage-support@googlegroups.com [mailto:sage-support@googlegroups.com]
On Behalf Of Dima Pasechnik
Sent: Sunday, November 18, 2012 9:49 PM
To: sage-support@googlegroups.com
Subject: [sage-support] Re: Problem with sage building from source code

On 2012-11-18, WM Chung <wmch...@alumni.cuhk.edu.hk> wrote:
> Hi,
>
> For my build problem, I have tried to run :
>
> sudo apt-get install libc6-dev
>
> But I get message that the package already exist. So I tried a reinstall :
>
> sudo apt-get install --reinstall libc6-dev
>
> My build problem still exists.
>
> For the error message :
>> In file included from /usr/include/stdio.h:28:0,
>>                  from ../../../src/libgcc/../gcc/tsystem.h:87,
>>                  from ../../../src/libgcc/../gcc/libgcc2.c:29:
>> /usr/include/features.h:324:26: fatal error: bits/predefs.h: No such 
>> file or directory
>
> I check that the "bits/predefs.h" does exist in my system. It is in 
> "/usr/include/i386-linux-gnu/bits/predefs.h".
>
> So does the problem relate to search path of the gcc compiler ?

this is a well-known problem with recent Debian systems on i386. See e.g.
https://bugs.launchpad.net/ubuntu/+source/gcc-4.6/+bug/995590
Nothing is wrong with Sage here, it's a Debian/Ubuntu bug.
Hopefully the workaround here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=644986
It appears to say that you should create a symbolic link
/usr/include/gnu/stubs-32.h to ../i386-linux-gnu/gnu/stubs-32.h That is,
check that /usr/include/gnu/stubs-32.h does not exist, then become root and
do 

ln -s /usr/include/i386-linux-gnu/gnu/stubs-32.h /usr/include/gnu/stubs-32.h

Hopefully it will work for you.

Best,
Dmitrii


>
> I would be grateful if anyone can help.
>
> Thanks.
> Wai Man Chung
>
> -----Original Message-----
> From: sage-support@googlegroups.com 
> [mailto:sage-support@googlegroups.com]
> On Behalf Of Minh Nguyen
> Sent: Sunday, November 18, 2012 12:20 PM
> To: WM Chung
> Cc: wmch...@alumni.cuhk.net; sage-support@googlegroups.com
> Subject: [sage-support] Re: Problem with sage building from source 
> code
>
> Hi,
>
> On Sat, Nov 17, 2012 at 11:36 PM, WM Chung 
> <wmch...@alumni.cuhk.edu.hk>
> wrote:
>> I am trying to build Sage from source code but unfortunately I meet 
>> with errors during the build. I try to post a message to the Sage 
>> support forum but I do not know the way. It seems posting problem to 
>> the group require a login account but I do not know exactly how to 
>> create one. I would be much grateful if you can help me on this.
>
> I have added you as a member of the sage-support mailing list.  You 
> should be receiving mail from that list and be able to post to the list.
>
>
>> I also attach details of the problem I met.
>>
>> In file included from /usr/include/stdio.h:28:0,
>>                  from ../../../src/libgcc/../gcc/tsystem.h:87,
>>                  from ../../../src/libgcc/../gcc/libgcc2.c:29:
>> /usr/include/features.h:324:26: fatal error: bits/predefs.h: No such 
>> file or directory
>
> You get this error because you don't have the C headers of the GNU C 
> library.  On Ubuntu 12.10, you can install the headers as follows:
>
> sudo apt-get install libc6-dev
>
> Then compile Sage again.
>
>
>> I am a beginner to Sage and I am interested in participating in the 
>> development work of Sage. As you are an expert in Sage, if you do not 
>> mind, I would be grateful if you can also give some valuable advice 
>> to me as a beginner, e.g. what resources I need to get, what level of 
>> mathematics I need to attain, etc.
>
> As you want to get into developing Sage, perhaps the Sage Developer's 
> Guide is what you should read, in particular this section:
>
> http://www.sagemath.org/doc/developer/walk_through.html
>
> Note that the Developer's Guide requires you to use Mercurial (or hg).
>  Mercurial (http://mercurial.selenic.com) is currently used to manage 
> the source code of the Sage library.  However, the current plan of the 
> Sage project is to transition to using Git (http://git-scm.com) to 
> manage source code.  For now you don't need to worry about Git, as the 
> transition would not take place for another few months.
>
>
>> For the time being, my interest is in linear programming and graph 
>> theory.
>
> You might want to look through the graph theory module
>
> http://www.sagemath.org/doc/reference/graphs.html
>
> or the linear programming tutorial
>
> http://www.sagemath.org/doc/thematic_tutorials/linear_programming.html
>
> to see if anything catches your interest.
>
> In any case, just send an email to sage-support if you want help.
>
> --
> Regards,
> Minh Van Nguyen
> http://bit.ly/mvngu
>
> --
> You received this message because you are subscribed to the Google 
> Groups "sage-support" group.
> To post to this group, send email to sage-support@googlegroups.com.
> To unsubscribe from this group, send email to
> sage-support+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-support?hl=en.
>

--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To post to this group, send email to sage-support@googlegroups.com.
To unsubscribe from this group, send email to
sage-support+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To post to this group, send email to sage-support@googlegroups.com.
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.


Reply via email to