ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Ivan Adzhubey <iadzhubey@rics.bwh.harvard.edu>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] binutils problem?
Date: Mon, 24 Apr 2006 23:25:39 -0400
Message-ID: <200604242325.40046.iadzhubey@rics.bwh.harvard.edu> (raw)
In-Reply-To: <20060425031704.GR8441@localhost>

On Monday 24 April 2006 23:17, Alexey Tourbin wrote:
> On Mon, Apr 24, 2006 at 11:05:35PM -0400, Ivan Adzhubey wrote:
> > On Monday 24 April 2006 23:03, Alexey Tourbin wrote:
> > > On Mon, Apr 24, 2006 at 10:56:51PM -0400, Ivan Adzhubey wrote:
> > > > # nm /usr/lib/libm.so
> > > > nm: /usr/lib/libm.so: no symbols
> > >
> > > nm -D
> >
> > Спасибо за наводку, так работает. Это изменение в nm?
>
> Нет, всегда так было.
> Кажется, nm штука древняя и без опций "правильно" работает с *.a архивами.
>
> > Надо править configure
> > скрипты? Подскажите пожалуйста, если у вас есть опыт, а то у меня - нет,
> > а собрать надо срочно!
>
> А зачем это вообще для сборки нужно?  Там наверное можно целый кусок
> закомментировать, если понять, чего он хочет и что ему на самом деле нужно.

Да вот я никак и не могу понять, чего же ему нехватает... Тест, который не 
проходит, очень простой: собирается тестовая программа, которая содеожит в 
main() вызовы всех функций, определенных в тестируемой библиотеке (libgoto, 
оптимизированная библиотека линейной алгебры), затем эта тестовая программа 
линкуется со свежесобранной библиотекой. В самой библиотеке есть вызоовы к 
стандартной libm (sqrt() например), линкуется это все конечно с флагом -lm. 
Но линковка все равно обламывается:

./gensymbol linktest _ > linktest.c
gcc -O2  -Wall -fPIC  -DF_INTERFACE_F2C -DNEED_F2CCONV -DSMP_SERVER -pthread -DMAX_CPU_NUMBER=2 -DASMNAME= -DASMFNAME=_ -DNAME=_ -DCNAME= -DBUNDERSCORE=_ -DNEEDBUNDERSCORE -I.. -DARCH_X86 -DPENTIUM4 -DL1_DATA_SIZE=8192 -DL1_DATA_LINESIZE=64 -DL2_SIZE=524288 -DL2_LINESIZE=64 -DDTB_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=8 -DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2  -DCORE_NORTHWOOD -w -o /dev/null 
linktest.c ../libgoto_northwoodp-r1.02.so -lpthread -lm && echo OK.
../libgoto_northwoodp-r1.02.so: undefined reference to `sqrt'
collect2: ld returned 1 exit status
make: *** [test] Error 1

Наверное можно и проще, слинковать что-то типа:

int main(void){
sqrt();
return 0;}

Сейчас попробую. Что-то я совсем не понимаю, что происходит...

-- 
Иван


  reply	other threads:[~2006-04-25  3:25 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-25  2:56 Ivan Adzhubey
2006-04-25  3:03 ` Alexey Tourbin
2006-04-25  3:05   ` Ivan Adzhubey
2006-04-25  3:17     ` Alexey Tourbin
2006-04-25  3:25       ` Ivan Adzhubey [this message]
2006-04-25  3:29         ` Andrey Rahmatullin
2006-04-25  3:38           ` Ivan Adzhubey
2006-04-25  3:59             ` Andrey Rahmatullin
2006-04-25  4:07               ` Ivan Adzhubey
2006-04-25 12:21             ` Michael Shigorin
2006-04-25  3:36         ` Alexey Tourbin
2006-04-25  3:39           ` Ivan Adzhubey
2006-04-25  4:02           ` Ivan Adzhubey
2006-04-25  4:17             ` Alexey Tourbin
2006-04-25  4:31               ` Ivan Adzhubey
2006-04-25  4:36                 ` Alexey Tourbin
2006-04-25  4:41                   ` Ivan Adzhubey
2006-04-25  3:28     ` Andrey Rahmatullin
2006-04-25  4:15       ` Ivan Adzhubey
2006-04-25  4:22         ` Alexey Tourbin
2006-04-25  4:38           ` Ivan Adzhubey
2006-04-25  4:45             ` Alexey Tourbin
2006-04-25  4:55               ` Ivan Adzhubey
2006-04-25  9:25               ` Alexander Bokovoy
2006-04-26 15:31               ` [sisyphus] R-base Alexey Tourbin
2006-04-27  1:11                 ` Valery Pipin
2006-04-27  1:21                   ` Alexey Tourbin
2006-04-25  4:51             ` [sisyphus] binutils problem? Alexey Tourbin
2006-04-25  5:03               ` Ivan Adzhubey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200604242325.40046.iadzhubey@rics.bwh.harvard.edu \
    --to=iadzhubey@rics.bwh.harvard.edu \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git