Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: final link failed, hidden symbol `__cpu_model'  (Read 6428 times)

0 Members and 1 Guest are viewing this topic.

c-jay

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
final link failed, hidden symbol `__cpu_model'
« on: August 18, 2016, 09:48:21 pm »
Hi, after updating (C)SFML I get an known error but the known solution with -l gcc_s -l gcc didn't work any more :(

Building target: TEST
Invoking: Cross GCC Linker
g++ -L/home/user/Programme/CSFML_build/lib -L/home/user/Programme/SFML_build/lib -o "TextFS"  ./src/dir.o ./src/gen_tfs.o ./src/iname.o ./src/init_tfs.o ./src/inode.o ./src/main.o ./src/read_from_fs.o ./src/sf_Inodes.o ./src/sf_buttons.o ./src/sf_functions.o ./src/sfml.o ./src/spec_tfs.o ./src/utils.o ./src/write_to_fs.o   -lcsfml-window -lsfml-window -lcsfml-graphics -lsfml-graphics -lcsfml-system -lsfml-system -lgcc_s -lgcc
/usr/bin/ld: warning: libsfml-window.so.2.3, needed by /home/user/Programme/CSFML_build/lib/libcsfml-window.so, may conflict with libsfml-window.so.2.4
/usr/bin/ld: warning: libsfml-graphics.so.2.3, needed by /home/user/Programme/CSFML_build/lib/libcsfml-graphics.so, may conflict with libsfml-graphics.so.2.4
/usr/bin/ld: TEST: hidden symbol `__cpu_model' in /usr/lib/gcc/x86_64-linux-gnu/5/libgcc.a(cpuinfo.o) is referenced by DSO
/usr/bin/ld: final link failed: Ungültiger Wert
collect2: error: ld returned 1 exit status

I'm very thankful for every help

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
AW: final link failed, hidden symbol `__cpu_model'
« Reply #1 on: August 18, 2016, 11:34:31 pm »
Search engines are your friend: http://en.sfml-dev.org/forums/index.php?topic=20638.0

It's a GCC bug that requires a small patch.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

c-jay

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Re: final link failed, hidden symbol `__cpu_model'
« Reply #2 on: August 20, 2016, 09:23:22 am »
okay thank you. I thought my resolution would take the same effect - but it doesn't.