You are not logged in.

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

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

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: 7,354

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: 49

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
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
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: 49

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: 11,788
Website

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

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


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

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

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

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