Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on AMD64
  • Search

ERROR: crystalspace-0.99_pre20050518 failed emerge [SOLVED]

Have an x86-64 problem? Post here.
Locked
Advanced search
15 posts • Page 1 of 1
Author
Message
Lin-Darian
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 84
Joined: Thu Mar 24, 2005 8:53 pm

ERROR: crystalspace-0.99_pre20050518 failed emerge [SOLVED]

  • Quote

Post by Lin-Darian » Wed Aug 17, 2005 11:35 pm

Code: Select all

LinkPlugin ie3ds.so
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/lib3ds.a(file.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/lib3ds.a: could not read symbols: Bad value
collect2: ld returned 1 exit status

    g++ -o ie3ds.so ./out/linuxamd64/optimize/plugins/mesh/impexp/3ds/ie3ds.o  -lm -ldl -lnsl -L/usr/local/lib -shared ./out/linuxamd64/optimize/libs/libcrystalspace.a -lpthread -lz -l3ds -lm -lm -ldl -lnsl -L/usr/local/lib \
      -Wl,-soname,ie3ds.so

...failed LinkPlugin ie3ds.so ...
***************************
...failed updating 1 target(s)...
...updated 1150 target(s)...

!!! ERROR: dev-games/crystalspace-0.99_pre20050518 failed.
!!! Function src_compile, Line 52, Exitcode 1
!!! compile failed
!!! If you need support, post the topmost build error, NOT this status message.
Any advice on solving this? Needless to say, I tried adding -fPIC to the CXX and C Flags in make.conf
Last edited by Lin-Darian on Sat Sep 24, 2005 12:34 am, edited 1 time in total.
Top
ldoe3000
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 78
Joined: Tue Jul 19, 2005 7:29 pm
Location: Portland, OR

  • Quote

Post by ldoe3000 » Thu Aug 18, 2005 4:20 am

what do you have for your CFLAGS and CXXFLAGS?
Top
Lin-Darian
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 84
Joined: Thu Mar 24, 2005 8:53 pm

  • Quote

Post by Lin-Darian » Thu Sep 08, 2005 10:35 pm

CFLAGS="-march=k8 -O3 -pipe'
CXXFLAGS same.

I tried it with removing the -O3 and -pipe and adding -fPIC to the the flags.
Top
xordan
Tux's lil' helper
Tux's lil' helper
Posts: 148
Joined: Mon Aug 30, 2004 4:33 pm

  • Quote

Post by xordan » Thu Sep 08, 2005 10:53 pm

I never compile ie3ds.so (I think anyway) so I guess that's why I don't get that problem. Can you paste your 'emerge info' and I'll take it upstream if it's a problem in CS rather than in your system or another lib. Have you tried with the latest ebuild?
Top
Lin-Darian
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 84
Joined: Thu Mar 24, 2005 8:53 pm

  • Quote

Post by Lin-Darian » Fri Sep 23, 2005 4:58 am

Code: Select all

Portage 2.0.52-r1 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r1, 2.6.13-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.13-gentoo-r2 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4600+
Gentoo Base System version 1.12.0_pre8
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -pipe -O3 -ffast-math"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -pipe -O3 -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.cites.uiuc.edu/pub/gentoo/ http://gentoo.scphost.com/pub/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="amd64 X a52 acpi alsa apache2 arts audiofile avi bash-completion berkdb bitmap-fonts bzip2 cdparanoia cdr clearcase cpudetection crypt cups curl dv dvb dvd dvdr dvdread dxr3 eds emboss encode fam ffmpeg foomaticdb fortran gd gif gnome gpm gstreamer gtk gtk2 haskell howl imlib ipv6 jpeg jpeg2k kde kdeenablefinal kerberos krb4 libwww lm_sensors logrotate lzw lzw-tiff mad mapeditor mikmod mmap mozilla mp3 mpeg mysql ncurses nls ogg oggvorbis on-the-fly-crypt opengl oss pam parse-clocks pascal pdflib perl php png python qmail qt quicktime readline samba sdl sensord spell sql ssl subversion syslog tcltk tcpd threads tiff truetype truetype-fonts type1-fonts usb userlocales vorbis xine xinerama xml xml2 xmms xpm xscreensaver xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
On a side note, I've been swamped at work so forgive the long delays here, hehe.

Anyway, that's the emerge INFO. Anything else, I'll be glad to provide it

This evening I also downloaded the CVS of CAL3D, CS, and CEL.
CAL3D compiled perfectlly. (make and make install, no issues there)
I didn't get to CEL
CS...well that's why I'm here, isn't it ;)

Also before you ask, _YES_ I tried this on a STABLE build (no global ~amd64) and it's the same error, I know (atleast somewhat) what I'm doing and I'm doing with the ~amd64 setting but this is the only problem that I've run into that has not had a realitively simple solution.

I have also used 'safe' settings for C/CXXFLAGS, and MAKEOPTS so I have pretty much elimated them from being issues.

[edit]
One final note:

The acutal system specs: ATI Radeon X850, 256mb, PCIExpress ; 4 GB DC DDR 400 ; Anthlon64 X2 Dual Core Processor 4600+ ; 4x 250gb SATA Drives ; ASUS A8N-SLI nFORCE 4 mobo
Top
xordan
Tux's lil' helper
Tux's lil' helper
Posts: 148
Joined: Mon Aug 30, 2004 4:33 pm

  • Quote

Post by xordan » Fri Sep 23, 2005 5:36 pm

Can you try re-emerging lib3ds and then try compiling CS again please? Check to see that lib3ds is being compiled with -fPIC.
Top
Lin-Darian
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 84
Joined: Thu Mar 24, 2005 8:53 pm

  • Quote

Post by Lin-Darian » Sat Sep 24, 2005 12:14 am

Alright, I went back and did:

Code: Select all

emerge --unmerge lib3ds
CFLAGS="-fPIC" emerge lib3ds
I then went back and first JAM CLEAN and JAM plugins
What do you know? It worked, no balking.

Since it worked there, I'm fairly sure it will work in the general emerge but I am going to try this next.

Any idea WHY lib3ds wasn't emerge with -fPIC in the first place? And is "-fPIC" something that I should put in my general CFLAGS?
Top
Lin-Darian
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 84
Joined: Thu Mar 24, 2005 8:53 pm

  • Quote

Post by Lin-Darian » Sat Sep 24, 2005 12:32 am

Well as of this writing:

Code: Select all

CFLAGS="-fPIC" emerge crystalspace cel planeshift
worked beautifully
Top
xordan
Tux's lil' helper
Tux's lil' helper
Posts: 148
Joined: Mon Aug 30, 2004 4:33 pm

  • Quote

Post by xordan » Sat Sep 24, 2005 1:30 pm

Ok cool. Glad you got it working.

And no, you should never put -fPIC in your CFLAGS. I suggest making a bug report at bug.gentoo.org so they can fix it in portage.
Top
Flandry
n00b
n00b
Posts: 52
Joined: Fri Feb 27, 2004 4:55 am
Location: Boston, MA

Similar problems?

  • Quote

Post by Flandry » Sun Sep 25, 2005 9:55 pm

Code: Select all

Copy xmlshader.csplugin
MkDir1 ./out/linuxx86/optimize/plugins/video/render3d/null
C++ ./out/linuxx86/optimize/plugins/video/render3d/null/null_txt.o
C++ ./out/linuxx86/optimize/plugins/video/render3d/null/null_render3d.o
C++ ./out/linuxx86/optimize/plugins/video/render3d/null/null_pix.o
LinkPlugin null3d.so
Copy null3d.csplugin
MkDir1 ./out/linuxx86/optimize/plugins/video/cursor
C++ ./out/linuxx86/optimize/plugins/video/cursor/cursor.o
LinkPlugin cscursor.so
Copy cscursor.csplugin
...failed updating 1 target(s)...
...skipped 1 target(s)...
...updated 1193 target(s)...

!!! ERROR: dev-games/crystalspace-0.99_pre20050823 failed.
!!! Function src_compile, Line 52, Exitcode 1
!!! compile failed
!!! If you need support, post the topmost build error, NOT this status message.
I'm having a similar sounding problem, as indicated by the quoted error message. I tried emerging lib3ds with -fPIC, and then

Code: Select all

CFLAGS="-fPIC" emerge crystalspace cel planeshift
, but got the same error. Unfortunately, i have no idea what fPIC is, and until i emerged it just now, did not have lib3ds. So i have no idea what i'm doing. Can anyone give me any suggestions, please?
Top
Lin-Darian
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 84
Joined: Thu Mar 24, 2005 8:53 pm

Re: Similar problems?

  • Quote

Post by Lin-Darian » Mon Sep 26, 2005 5:08 am

Try scrolling back and seeing what target didn't compile, that's just the bottom of the message, you need to look and see what didn't link correctly. Then post that. try maybe:
CFLAGS='-fPIC' emerge crystalspace | grep -i "fail"

And from what I understand fPIC allows the compiler to compile against local symbols in ways that it's generally not allowed to normally. Not 100% sure myself.

[EDIT]

There is a good discussion of what -fPIC does at http://www.gentoo.org/proj/en/hardened/ ... ernals.xml Seeing as how I have never written a shared library this is my first time really understanding what the darned thing does myself :P (is embarresed now lol)
Top
Flandry
n00b
n00b
Posts: 52
Joined: Fri Feb 27, 2004 4:55 am
Location: Boston, MA

  • Quote

Post by Flandry » Mon Sep 26, 2005 3:51 pm

Code: Select all

/var/tmp/portage/crystalspace-0.99_pre20050823/work/crystalspace/out/linuxx86/optimize/plugins/cscript/csjava/src/org/crystalspace3d/csEllipsoid.java:53: GetCenter() is already defined in org.crystalspace3d.csEllipsoid
  public csVector3 GetCenter() {
                   ^
/var/tmp/portage/crystalspace-0.99_pre20050823/work/crystalspace/out/linuxx86/optimize/plugins/cscript/csjava/src/org/crystalspace3d/csEllipsoid.java:65: GetRadius() is already defined in org.crystalspace3d.csEllipsoid
  public csVector3 GetRadius() {
                   ^
2 errors

BUILD FAILED
file:/var/tmp/portage/crystalspace-0.99_pre20050823/work/crystalspace/./out/linuxx86/optimize/plugins/cscript/csjava/build.xml:28: Compile failed; see the compiler error output for details.
That's the only resultant output (out of enough to fill the scrollback buffer that seemed to clearly indicate a failure to compile.

It sounds like the fPIC issue is a straightforward mistake in the ebuild. I don't remember ever specifying anything when compiling shared libraries, so i'm assuming it is something that is off by default.
Top
Lin-Darian
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 84
Joined: Thu Mar 24, 2005 8:53 pm

  • Quote

Post by Lin-Darian » Tue Sep 27, 2005 12:49 am

Acutally those don't jump out at me as being fPIC errors. IT would saying something about local symbols if that were the case.

It sounds like acutal compile failures and conflicts with Java....

Perhaps post your emerge info. OR try turning back your optimazation flags to -O2 or just -O
if the java plugin is what's messing up, you may need to turn off java before emerging crystalspace and then re-emerge java afterwards. Just a shot in the dark but these don't jump out at me as being related to the shared libraries error I was having.

Also I notice that linuxx86 in your portage path. It could be a problem with cross compiling if you're using a x86 under x86_64
Top
xordan
Tux's lil' helper
Tux's lil' helper
Posts: 148
Joined: Mon Aug 30, 2004 4:33 pm

  • Quote

Post by xordan » Tue Sep 27, 2005 5:04 pm

That's a bug in CS which is fixed in CS cvs now. To fix it yourself just edit the ebuild, add a java USE flag and emerge with -java in your USE flags.
Top
Koradji
Tux's lil' helper
Tux's lil' helper
Posts: 86
Joined: Fri Apr 01, 2005 1:25 am
Location: Perth, Australia

  • Quote

Post by Koradji » Sun Oct 02, 2005 7:03 pm

I seemed to be getting a java error, similar to above.
This is with java in the ebuild, and both with or without "-java" in use flags.

Code: Select all

Ant ./out/linux/optimize/plugins/cscript/csjava/crystalspace.jar 
/var/tmp/portage/crystalspace-0.99_pre20050823/work/crystalspace/out/linux/optimize/plugins/cscript/csjava/src/org/crystalspace3d/csElli                         psoid.java:53: GetCenter() is already defined in org.crystalspace3d.csEllipsoid
  public csVector3 GetCenter() {
                   ^
/var/tmp/portage/crystalspace-0.99_pre20050823/work/crystalspace/out/linux/optimize/plugins/cscript/csjava/src/org/crystalspace3d/csElli                         psoid.java:65: GetRadius() is already defined in org.crystalspace3d.csEllipsoid
  public csVector3 GetRadius() {
                   ^
2 errors

BUILD FAILED
/var/tmp/portage/crystalspace-0.99_pre20050823/work/crystalspace/out/linux/optimize/plugins/cscript/csjava/build.xml:28: Compile failed;                          see the compiler error output for details.

Total time: 7 seconds

    
    "/usr/bin/ant" -quiet -emacs -Dbuild.compiler.emacs=true -buildfile ./out/linux/optimize/plugins/cscript/csjava/build.xml
  
...failed Ant ./out/linux/optimize/plugins/cscript/csjava/crystalspace.jar ...
...skipped <csjavafinal>crystalspace.jar for lack of <csjava>crystalspace.jar...

Code: Select all

Copy cscursor.csplugin 
...failed updating 1 target(s)...
...skipped 1 target(s)...
...updated 1177 target(s)...

!!! ERROR: dev-games/crystalspace-0.99_pre20050823 failed.
!!! Function src_compile, Line 52, Exitcode 1
!!! compile failed
!!! If you need support, post the topmost build error, NOT this status message.
Seems to be described here pretty well.
http://bugs.gentoo.org/show_bug.cgi?id=104545

http://bugs.gentoo.org/show_bug.cgi?id=104545
koradji login: emerge nvidia-drivers
password: ...
Top
Locked

15 posts • Page 1 of 1

Return to “Gentoo on AMD64”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic