You are not logged in.

#1 2007-06-19 22:32:24

dunkelstern
Member
From: Augsburg, Germany
Registered: 2007-02-08
Posts: 68
Website

Problems with GCC 4.2 here... about hidden-visibility...

Hi!

My current problem is, that I can't compile KDE with hidden visibility with the current GCC (4.2).

I get error messages about 64Bit relocation:

relocation R_X86_64_PC32 against ...

On the GCC bugtrackers the maintainers don't know if they threat it as a bug or not.

So I wanted to downgrade GCC. Problem here: Old packages are not in the repository.
(Suggestion: Provide at least 2 versions of integral packages like gcc and kernel in the repos please)

So I tried to use an old PKGBUILD of GCC 4.1 from the cvs, but I have to say I am totally ignorant of cvs, I only know svn.
Can someone provide me a commandline to check an older version out?
(Suggestion2: Integrate that into the "abs" command please)

I would need the version from 2007/05/06 08:03:23 and I tried to do it with the cvs documentation but I am stuck.
Sorry that I have to ask but I am very enerved by that error and it seems I can't find the solution in appropriate time.

Perhaps someone may be so kind and help me out smile
Thanks.

Offline

#2 2007-06-19 22:39:40

tardo
Member
Registered: 2006-07-15
Posts: 526

Re: Problems with GCC 4.2 here... about hidden-visibility...

You can upgrade binutils to 2.17.50, this should fix your compilation problem. Here's a package you can just download and run with pacman -U. Otherwise you can get the pkgbuild and modify it. (Note: you dont need to downgrade gcc for this). I think a push is being made to bump the official version to this. Beware, that this is a development snapshot (and while nothing has broken for me yet), anything is possible.

http://nagi-fanboi.net/arch/binutils-2. … pkg.tar.gz

Last edited by tardo (2007-06-19 22:40:30)

Offline

#3 2007-06-19 22:40:16

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Problems with GCC 4.2 here... about hidden-visibility...

Offline

#4 2007-06-19 23:09:41

dunkelstern
Member
From: Augsburg, Germany
Registered: 2007-02-08
Posts: 68
Website

Re: Problems with GCC 4.2 here... about hidden-visibility...

Thanks you two smile

I didn't know of phraktured's mirror, thanks for that pointer.

But I tried tardo's solution and it worked. So it is finally "defined" as a bug? Or are they uncertain as of some days ago?

Offline

#5 2007-06-19 23:19:33

tardo
Member
Registered: 2006-07-15
Posts: 526

Re: Problems with GCC 4.2 here... about hidden-visibility...

It's a bug in gcc, supposedly they are going to fix it in their next release. And this bug has been around for at least a month to my knowledge... whenever gcc 4.2 first came.

Offline

#6 2007-06-19 23:35:54

dunkelstern
Member
From: Augsburg, Germany
Registered: 2007-02-08
Posts: 68
Website

Re: Problems with GCC 4.2 here... about hidden-visibility...

How can such a critical bug slip into such a critical release sad
Whatever... waiting for the update smile

Offline

#7 2007-06-20 07:02:53

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: Problems with GCC 4.2 here... about hidden-visibility...

Do NOT downgrade gcc 4.2 to 4.1 or earlier, it will break your system!

Offline

#8 2007-06-20 09:41:52

dunkelstern
Member
From: Augsburg, Germany
Registered: 2007-02-08
Posts: 68
Website

Re: Problems with GCC 4.2 here... about hidden-visibility...

Why is that? It didn't break my system as gcc 4.2 was in testing and i downgraded then. (But now I used the binutils provided above, so no downgrading here.)

Was there an ABI change?

Offline

#9 2007-06-20 13:09:25

tardo
Member
Registered: 2006-07-15
Posts: 526

Re: Problems with GCC 4.2 here... about hidden-visibility...

i think gcc 4.2 and glibc2.6 go hand in hand... most programs may have been recompiled for either or both hence the probability of breakage

Offline

#10 2007-06-23 22:44:47

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: Problems with GCC 4.2 here... about hidden-visibility...

we will soon have a new set of binutils 2.17.50.0.17 and a fresh stable gcc snapshot in testing. it will fix most issues.

Offline

Board footer

Powered by FluxBB