List Info

Thread: Problems with C/c++ compiler




Problems with C/c++ compiler
user name
2007-03-05 05:29:05
I need help changing to the compiler that I have just
compiled because
I keep on getting the following error:

/lib/gcc/i486-linux-gnu/4.1.2/include -isystem
/tools/include
-D_LIBC_REENTRANT -D_LIBC_REENTRANT -include
../include/libc-
symbols.h       -DHAVE_INITFINI -o
/LFS/sources/glibc-build/csu/version.o -MD -MP -MF
/LFS/sources/glibc-build/csu/version.o.dt -MT
/LFS/sources/glibc-build/csu/version.o
In file included from version.c:33:
/LFS/sources/glibc-build/csu/version- info.h:2: error:
missing
terminating " character
/LFS/sources/glibc-build/csu/version-info.h:3: error:
missing
terminating " character
/LFS/sources/glibc-build/csu/version-info.h:4: error:
expected ',' or
';' before string constant
make[2]: *** [/LFS/sources/glibc-build/csu/version.o] Error
1
make[2]: Leaving directory `/LFS/sources/glibc-2.3.6/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/LFS/sources/glibc- 2.3.6'
make: *** [all] Error 2


somebody please help me!
-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page

Re: Problems with C/c++ compiler
user name
2007-03-05 09:03:05
On 3/5/07, sizo nsibande <oozissgmail.com> wrote:
> I need help changing to the compiler that I have just
compiled because
> I keep on getting the following error:
>
> /lib/gcc/i486-linux-gnu/4.1.2/include -isystem
/tools/include
> -D_LIBC_REENTRANT -D_LIBC_REENTRANT -include
../include/libc-
> symbols.h       -DHAVE_INITFINI -o
> /LFS/sources/glibc-build/csu/version.o -MD -MP -MF
> /LFS/sources/glibc-build/csu/version.o.dt -MT
> /LFS/sources/glibc-build/csu/version.o
> In file included from version.c:33:
> /LFS/sources/glibc-build/csu/version- info.h:2: error:
missing
> terminating " character
> /LFS/sources/glibc-build/csu/version-info.h:3: error:
missing
> terminating " character
> /LFS/sources/glibc-build/csu/version-info.h:4: error:
expected ',' or
> ';' before string constant
> make[2]: *** [/LFS/sources/glibc-build/csu/version.o]
Error 1
> make[2]: Leaving directory
`/LFS/sources/glibc-2.3.6/csu'
> make[1]: *** [csu/subdir_lib] Error 2
> make[1]: Leaving directory `/LFS/sources/glibc- 2.3.6'
> make: *** [all] Error 2

Are you on Ubuntu? What's the output from `ls -l /bin/sh'?

--
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page

Re: Problems with C/c++ compiler
user name
2007-03-05 23:56:30
On 3/6/07, sizo nsibande <oozissgmail.com> wrote:
This is the output: lrwxrwxrwx 1 root root 4 2007-02-28
10:59 /bin/sh -> dash

On 3/5/07, Dan Nicholson <dbn.listsgmail.com > wrote:
-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page

Re: Problems with C/c++ compiler
user name
2007-03-06 00:06:35
On 3/5/07, sizo nsibande <oozissgmail.com> wrote:
> On 3/6/07, sizo nsibande <oozissgmail.com> wrote:
> This is the output: lrwxrwxrwx 1 root root 4 2007-02-28
10:59 /bin/sh -> dash

OK, there's a problem because the Makefiles in glibc use
some bash
syntax, but they call /bin/sh by default. The way to get
around this
is to add SHELL=/bin/bash every time you call make for
glibc. This is
only a problem in Ch. 5 since /bin/sh -> bash in Ch. 6.
This is on the
errata for 6.2.

ht
tp://www.linuxfromscratch.org/lfs/errata/stable/

--
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page

Re: Problems with C/c++ compiler
user name
2007-03-06 00:17:49
I'm trying this right now man thanks a lot I'll let you know
how it goes.

On 3/6/07, Dan Nicholson <dbn.listsgmail.com> wrote:
> On 3/5/07, sizo nsibande <oozissgmail.com> wrote:
> > On 3/6/07, sizo nsibande <oozissgmail.com> wrote:
> > This is the output: lrwxrwxrwx 1 root root 4
2007-02-28 10:59 /bin/sh -> dash
>
> OK, there's a problem because the Makefiles in glibc
use some bash
> syntax, but they call /bin/sh by default. The way to
get around this
> is to add SHELL=/bin/bash every time you call make for
glibc. This is
> only a problem in Ch. 5 since /bin/sh -> bash in Ch.
6. This is on the
> errata for 6.2.
>
> ht
tp://www.linuxfromscratch.org/lfs/errata/stable/
>
> --
> Dan
> --
> http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
> FAQ: http://www.linux
fromscratch.org/faq/
> Unsubscribe: See the above information page
>
-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page

Re: Problems with C/c++ compiler
user name
2007-03-06 00:32:14
You are a genius man, smooth like never before, thanks a
million, I'll
bother you guys later again when I run through another
jiffer!

On 3/6/07, sizo nsibande <oozissgmail.com> wrote:
> I'm trying this right now man thanks a lot I'll let you
know how it goes.
>
> On 3/6/07, Dan Nicholson <dbn.listsgmail.com> wrote:
> > On 3/5/07, sizo nsibande <oozissgmail.com> wrote:
> > > On 3/6/07, sizo nsibande <oozissgmail.com> wrote:
> > > This is the output: lrwxrwxrwx 1 root root 4
2007-02-28 10:59 /bin/sh -> dash
> >
> > OK, there's a problem because the Makefiles in
glibc use some bash
> > syntax, but they call /bin/sh by default. The way
to get around this
> > is to add SHELL=/bin/bash every time you call make
for glibc. This is
> > only a problem in Ch. 5 since /bin/sh -> bash
in Ch. 6. This is on the
> > errata for 6.2.
> >
> > ht
tp://www.linuxfromscratch.org/lfs/errata/stable/
> >
> > --
> > Dan
> > --
> > http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
> > FAQ: http://www.linux
fromscratch.org/faq/
> > Unsubscribe: See the above information page
> >
>
-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page

Re: Problems with C/c++ compiler
user name
2007-03-06 00:58:12
Well it started installing on the make for about 7 minutes
then just
went dead and now I have a different error:


/LFS/sources/glibc-build/elf/librtld.os:/LFS/sources/glibc-2
.3.6/elf/dl-load.c:1660:
more undefined references to `__stack_chk_fail_local'
follow
collect2: ld returned 1 exit status
make[2]: *** [/LFS/sources/glibc-build/elf/ld.so] Error 1
make[2]: Leaving directory `/LFS/sources/glibc-2.3.6/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/LFS/sources/glibc-2.3.6'
make: *** [all] Error 2

My superviser who says he does not want to spoon feed me
says one of
my problems is that I am still using

"rootmonox:~# gcc --version
gcc (GCC) 4.1.2 20060928 (prerelease) (Ubuntu
4.1.1-13ubuntu5)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying
conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

rootmonox:~# which gcc
/usr/bin/gcc"

and i need to change and start using the C compiler located
at

"rootmonox:~# /tools/bin/gcc --version
gcc (GCC) 4.0.3
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying
conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE."
-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page

Re: Problems with C/c++ compiler
user name
2007-03-06 01:15:48
On 3/5/07, sizo nsibande <oozissgmail.com> wrote:
>
> My superviser who says he does not want to spoon feed
me says one of
> my problems is that I am still using
>
> "rootmonox:~# gcc --version
> gcc (GCC) 4.1.2 20060928 (prerelease) (Ubuntu
4.1.1-13ubuntu5)
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying
conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
>
> rootmonox:~# which gcc
> /usr/bin/gcc"
>
> and i need to change and start using the C compiler
located at
>
> "rootmonox:~# /tools/bin/gcc --version
> gcc (GCC) 4.0.3
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying
conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE."

Yes. /tools/bin should be at the front of your PATH. If
you're just
going to use the host's tools, then you might as well skip
Ch. 5. That
would defeat a major part of what's going on, though. We go
to great
pains to make sure that your host toolchain has the absolute
minimum
influence on your final system.

You also shouldn't be root in Ch. 5. The main reason for
doing this is
so you don't inadvertently mangle your host. FBBG.

--
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page

[1-8]

about | contact  Other archives ( Real Estate discussion Medical topics )