compiling on archlinux (64bit) fails

Hi!

I am using Arch linux (with gcc 4.7). I am trying to compile panda3d from AUR as well as from cvs, and version from this site. I’ve tried to compile on computer with nvidia and intel hd graphics card, and I always get the same error. This is the output from it:

[ 43%] Building Flex object built/tmp/p3egg_lexer.o
[ 43%] Building C++ object built/tmp/p3egg_composite1.o
[ 43%] Building C++ object built/tmp/p3egg_composite2.o
[ 44%] Building Interrogate database built/pandac/input/libp3egg.in
[ 44%] Building C++ object built/tmp/p3egg2pg_composite1.o
[ 44%] Building C++ object built/tmp/p3egg2pg_composite2.o
[ 44%] Building Interrogate database built/pandac/input/libp3egg2pg.in
[ 45%] Building C++ object built/tmp/p3framework_composite1.o
[ 45%] Linking dynamic library built/lib/libp3framework.so
[ 45%] Building C++ object built/tmp/p3glstuff_glpure.o
[ 45%] Linking dynamic library built/lib/libp3glstuff.so
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../../lib/libGL.so when searching for -lGL
/usr/bin/ld: skipping incompatible /lib/../lib/libGL.so when searching for -lGL
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libGL.so when searching for -lGL
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../libGL.so when searching for -lGL
/usr/bin/ld: skipping incompatible /usr/lib/libGL.so when searching for -lGL
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
Storing dependency cache.
Elapsed Time: 19 min 22 sec
The following command returned a non-zero value: g++ -shared -Wl,-soname=libp3glstuff.so.1.9 -o built/lib/libp3glstuff.so.1.9 -Lbuilt/lib -Lbuilt/tmp -L/usr/X11R6/lib built/tmp/p3glstuff_glpure.o -lpanda -lpandaexpress -lp3dtool -lp3dtoolconfig -Wl,-O1,--sort-common,--as-needed,-z,relro -lGL -lCg -lCgGL -pthread -ldl
Build terminated.
==> ERROR: Wystąpił błąd w build().
    Przerywam...
The build failed.

I didn’t find solution to this problem in net. Please help :slight_smile:
If you need any further information, just ask.

.

Thanks for answer. I’ve already done that, I can’t install libgl becouse i have GL files from nvidia driver (but as I said with intel hd building also fails). For now I can only post --verbose mode:

[ 47%] Linking dynamic library built/lib/libp3glstuff.so
g++ -shared -Wl,-soname=libp3glstuff.so.0.0 -o built/lib/libp3glstuff.so.0.0 -Lbuilt/lib -Lbuilt/tmp -L/usr/X11R6/lib built/tmp/p3glstuff_glpure.o -lpanda -lpandaexpress -lp3dtool -lp3dtoolconfig -lGL -lCg -lCgGL -pthread -ldl                                                                                                              
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
Process exited with exit status 1 and signal code 0
Storing dependency cache

I can compile this package on virtual machine with the same arch. But when I tried to install and run on real system it throws seg fault.

.

Thanks for anwser. I’ve compiled panda3d by removing symlink from /usr/lib/libGL.so and creating new one that is pointing /usr/lib64/libGL.so, but I am still getting Segmentation fault. For example:

GNU gdb (GDB) 7.5
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/pview...(no debugging symbols found)...done.
(gdb) start /usr/bin/pview
Function "main" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Temporary breakpoint 1 (main) pending.
Starting program: /usr/bin/pview /usr/bin/pview
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Known pipe types:
  glxGraphicsPipe
(all display modules loaded.)
Loading /usr/bin/pview

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff54cd9d9 in VirtualFileSystem::make_directory_full(Filename const&) () from /usr/lib/panda3d/libpandaexpress.so.1.8
(gdb) 

Strange situation becouse few months before I’ve successfully compiled and started panda3d apps.

.

It would help if you got an actual gdb backtrace; eg actually typed “bt” in the gdb window after it crashed.

bt output:

$ gdb pview
GNU gdb (GDB) 7.5
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/pview...(no debugging symbols found)...done.
(gdb) start
Function "main" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Temporary breakpoint 1 (main) pending.
Starting program: /usr/bin/pview 
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Known pipe types:
  glxGraphicsPipe
(all display modules loaded.)

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff549dac9 in VirtualFileSystem::make_directory_full(Filename const&) ()
   from /usr/lib/panda3d/libpandaexpress.so.1.9
(gdb) bt
#0  0x00007ffff549dac9 in VirtualFileSystem::make_directory_full(Filename const&) ()
   from /usr/lib/panda3d/libpandaexpress.so.1.9
#1  0x00007ffff692cf83 in BamCache::set_root(Filename const&) () from /usr/lib/panda3d/libpanda.so.1.9
#2  0x00007ffff692d6a8 in BamCache::BamCache() () from /usr/lib/panda3d/libpanda.so.1.9
#3  0x00007ffff692db93 in BamCache::make_global() () from /usr/lib/panda3d/libpanda.so.1.9
#4  0x00007ffff63229bb in GraphicsEngine::render_frame() () from /usr/lib/panda3d/libpanda.so.1.9
#5  0x00007ffff7b8e1d2 in PandaFramework::task_igloop(GenericAsyncTask*, void*) ()
   from /usr/lib/panda3d/libp3framework.so.1.9
#6  0x00007ffff63c231a in AsyncTask::unlock_and_do_task() () from /usr/lib/panda3d/libpanda.so.1.9
#7  0x00007ffff63cc31f in AsyncTaskChain::service_one_task(AsyncTaskChain::AsyncTaskChainThread*) ()
   from /usr/lib/panda3d/libpanda.so.1.9
#8  0x00007ffff63ccd30 in AsyncTaskChain::do_poll() () from /usr/lib/panda3d/libpanda.so.1.9
#9  0x00007ffff63ccec1 in AsyncTaskManager::poll() () from /usr/lib/panda3d/libpanda.so.1.9
#10 0x00007ffff7b8e227 in PandaFramework::do_frame(Thread*) () from /usr/lib/panda3d/libp3framework.so.1.9
#11 0x00007ffff7b8fdec in PandaFramework::main_loop() () from /usr/lib/panda3d/libp3framework.so.1.9
#12 0x00000000004082b7 in ?? ()
#13 0x00007ffff43f1725 in __libc_start_main () from /lib/libc.so.6
#14 0x00000000004088d9 in ?? ()
(gdb)