[solved] big problem with compiling lazarus on x86_64 lazarus / 1-Linux ---------------------------------------------------------------------- Amnon82 · 2007-06-06 22:02 I'm using paldo gnu/linux. After installing the package i686-pc-linux- gnu I can't compile lazarus anymore. The makefile generates a link.res file with this: Code: [Select]SEARCH_DIR(/lib64/) SEARCH_DIR(/usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.3/) SEARCH_DIR(/usr/local/lib/) SEARCH_DIR(/lib/i686-pc-linux-gnu/) SEARCH_DIR(/usr/lib/i686-pc-linux-gnu/) ... /usr/lib/i686-pc-linux-gnu/crti.o ... ) INPUT( /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.3/crtend.o /usr/lib/i686-pc-linux-gnu/crtn.o ) crti.o and crtn.o are both 32bit-builds. The 64bit-builds are located in /usr/lib. how can I prevent makefile to add i686-pc-linux-gnu to the link.res- file? Must be here: Code: [Select]ifneq ($(findstring darwin,$(OSTYPE)),) inUnix=1 #darwin SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH))) else ifeq ($(findstring ;,$(PATH)),) inUnix=1 SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH))) else SEARCHPATH:=$(subst ;, ,$(PATH)) endif endif SEARCHPATH+=$(patsubst %/,%,$(subst \,/,$(dir $(MAKE)))) and here: Code: [Select]endif endif ifndef OTHERLIBDIR OTHERLIBDIR:=$(shell grep -v "^\#" /etc/ld.so.conf | awk '{ ORS=" "; print $1 }') endif endif ifdef inUnix ... in the makefile. Must be in SEARCHPATH and OTHERLIBDIR ... ---------------------------------------------------------------------- Vincent Snijders · 2007-06-07 05:57 Check the fpc.cfg file for -Fl lines and fix them. ---------------------------------------------------------------------- Amnon82 · 2007-06-07 06:04 I checked the file, but there isn't any line with i686-pc-linux-gnu in it. How can I fix it then? ---------------------------------------------------------------------- Amnon82 · 2007-06-07 06:44 found the solution: Code: [Select]             mv /etc/ld.so.conf /etc/ld.so.disabled       echo '/lib' > /etc/ld.so.conf       echo '/usr/lib' >> /etc/ld.so.conf       cp -a lazarus /opt       chmod -R 777 /opt/lazarus       cd /opt/lazarus       make clean all       ln -svf /opt/lazarus/startlazarus /usr/bin/lazarus       cd /opt/lazarus/lcl       make LCL_PLATFORM=gtk       make LCL_PLATFORM=gtk2       ln -svf /lib /lib64             rm /etc/ld.so.conf       mv /etc/ld.so.disabled /etc/ld.so.conf ---------------------------------------------------------------------- Vincent Snijders · 2007-06-07 07:54 It seems to me there is something wrong with that ld.so.conf, does it for 32 bits things?