You are not logged in.

#1 2012-10-10 07:14:55

miko
Member
From: Poland
Registered: 2006-04-16
Posts: 48

gcc 4.7.2 with wrong references to 4.7.1 [workaround]

Hello, I tried to compile some program after upgrading gcc to 4.7.2, and got following error:

  CXXLD    libzmq.la
g++: error: /usr/lib/gcc/i686-pc-linux-gnu/4.7.1/../../../crti.o: No such file or directory
g++: error: /usr/lib/gcc/i686-pc-linux-gnu/4.7.1/crtbeginS.o: No such file or directory
g++: error: /usr/lib/gcc/i686-pc-linux-gnu/4.7.1/crtendS.o: No such file or directory
g++: error: /usr/lib/gcc/i686-pc-linux-gnu/4.7.1/../../../crtn.o: No such file or directory
make[4]: *** [libzmq.la] Error 1

Then did:

# cd /usr/lib/gcc/i686-pc-linux-gnu/
# ls
4.7.2
# ln -s 4.7.2 4.7.1

and that fixed my compilation.
I was not able to spot the exact file, but it looks like something within gcc (?) package references the directory from earlier version.

Offline

#2 2012-10-10 07:22:00

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 6,888

Re: gcc 4.7.2 with wrong references to 4.7.1 [workaround]

Most likely the program itself hardcodes locations. libzmq... isn't that provided by the zeromq package in [community]?


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#3 2012-10-10 07:25:48

miko
Member
From: Poland
Registered: 2006-04-16
Posts: 48

Re: gcc 4.7.2 with wrong references to 4.7.1 [workaround]

Actually I was compiling https://github.com/richardhundt/luv, and it has libzmq as a submodule (pulls it from github). Please compile by yourself and report back if you can.

Offline

#4 2012-10-10 07:26:08

Allan
is always right
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,465
Website

Re: gcc 4.7.2 with wrong references to 4.7.1 [workaround]

Did you update in the middle of the compilation?

Offline

#5 2012-10-10 07:56:33

miko
Member
From: Poland
Registered: 2006-04-16
Posts: 48

Re: gcc 4.7.2 with wrong references to 4.7.1 [workaround]

Of course not: "git pull; make clean; make all" is what I did.

Last edited by miko (2012-10-10 07:56:47)

Offline

#6 2012-10-10 08:51:52

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 5,912
Website

Re: gcc 4.7.2 with wrong references to 4.7.1 [workaround]

Works fine for me?: http://pastebin.com/NKPtzZcd


Sakura:-
Mobo: ASUS P8Z77-V PRO // Processor: Intel Core i7-3770K 3.4GHz // GFX: nVidia GeForce GTX 970 Ti // RAM: 32GB (4x 8GB) Corsair DDR3 (@ 2133MHz) // Storage: 1x 3TB Seagate SATAII 5x 1TB Samsung SATAII, 2x 120GB Corsair SSD

Making lemonade from lemons since 2015.

Offline

#7 2012-10-10 09:59:17

miko
Member
From: Poland
Registered: 2006-04-16
Posts: 48

Re: gcc 4.7.2 with wrong references to 4.7.1 [workaround]

OK, so this must be my setup then... Thanks for checking this out.

Offline

Board footer

Powered by FluxBB