You are not logged in.

#1 2010-09-18 19:04:07

CheatCat
Member
Registered: 2009-07-10
Posts: 54

[Solved] gcc 4.5.1 error

I installed gcc 4.5.1 but get error when I try to compile this test program:

 #include <stdio.h>

int main()
{
printf("GCC Works");
}

The errors I get:

/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../crt1.o: In function `_start':
(.text+0xc): undefined reference to `__libc_csu_fini'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../crt1.o: In function `_start':
(.text+0x11): undefined reference to `__libc_csu_init'
collect2: ld returned 1 exit status

Is that caused by broken packages? Please help me. sad

EDIT: I think it is caused by glibc, that I installed manually from the Packages section.

Last edited by CheatCat (2010-09-18 19:14:31)

Offline

#2 2010-09-18 19:12:35

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [Solved] gcc 4.5.1 error

If you install the Arch packages via pacman there won't be a problem, so it must be the manually installed glibc.

Last edited by loafer (2010-09-18 19:12:50)


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2010-09-18 19:14:08

CheatCat
Member
Registered: 2009-07-10
Posts: 54

Re: [Solved] gcc 4.5.1 error

Yeah, sorry for that, updating and reinstalling glibc fixed it.

Offline

#4 2010-09-19 00:35:50

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,396
Website

Re: [Solved] gcc 4.5.1 error

Yes... you stripped glibc too much.

Offline

Board footer

Powered by FluxBB