You are not logged in.

#1 2009-04-14 17:39:37

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

[Solved] Programs segfaults when compiled by makepkg

Hi!

I changed my computer recently and now makepkg is giving me segfaults. When I try to build mplayer from aur I get segfaults when ./configure is run.

The strange thing it that mplayer unset CFLAGS... makepkg change something else in the enviroment? I'm getting segfaults on building asymptote too. Outside of makepkg, compiling mplayer manually works.

I have a  Intel Core2 Duo CPU and my makepkg.conf have the following

CARCH="x86_64"
CHOST="x86_64-pc-linux-gnu"

#-- Exclusive: will only run on -march=x86-64 
# -march (or -mcpu) builds exclusively for an architecture
# -mtune optimizes for an architecture, but builds for whole processor family
CFLAGS="-march=nocona -mtune=generic -O2 -pipe"
CXXFLAGS="-march=nocona -mtune=generic -O2 -pipe"
#-- Make Flags: change this for DistCC/SMP systems
MAKEFLAGS="-j3"

Thanks.

Last edited by kazuo (2009-04-15 17:05:12)

Offline

#2 2009-04-14 19:13:18

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: [Solved] Programs segfaults when compiled by makepkg

you have nvidia-utils installed? Is a know issue [#1]

if true use this workaround:

LD_PRELOAD=/xyz/usr/lib/libGL/libGL.so.1.2 makepkg

Where "xyz" is the path to a extracted libgl package from Arch Linux for example /home/kazuo/libgl wink

[#1] http://bugs.archlinux.org/task/13375#comment39966

Offline

#3 2009-04-15 17:04:45

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: [Solved] Programs segfaults when compiled by makepkg

Thanks!

This solved the problem!

Offline

Board footer

Powered by FluxBB