ALT Linux Team development discussions
 help / color / mirror / Atom feed
* Re: [devel] ataidle-0.9-alt1: rebuild failed
  @ 2006-03-07  7:37 ` Anton Farygin
  2006-03-07  9:38   ` Dmitry V. Levin
  0 siblings, 1 reply; 7+ messages in thread
From: Anton Farygin @ 2006-03-07  7:37 UTC (permalink / raw)
  To: devel

Это ошибка компилятора.


QA Team Robot пишет:
> Package: ataidle-0.9-alt1
> Packager: Anton Farygin <rider@altlinux>
> Status: rebuild failed.
> Please investigate.
>
> Why:
>
> Source #0 (ataidle-0.9.tar.gz):
> Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.37632
> + umask 022
> + /bin/mkdir -p /usr/src/RPM/BUILD
> + cd /usr/src/RPM/BUILD
> + rm -rf ataidle-0.9
> + echo 'Source #0 (ataidle-0.9.tar.gz):'
> + /bin/gzip -dc /usr/src/RPM/SOURCES/ataidle-0.9.tar.gz
> + /bin/tar -xf -
> + cd ataidle-0.9
> + /bin/chmod -Rf u+rwX,go-w .
> + exit 0
> + umask 022
> + /bin/mkdir -p /usr/src/RPM/BUILD
> + cd /usr/src/RPM/BUILD
> + cd ataidle-0.9
> + make -f Makefile.altLinux
> make: Entering directory `/usr/src/RPM/BUILD/ataidle-0.9'
> gcc -std=c99 -Wall -pedantic -c linux/ataidle.c
> gcc -std=c99 -Wall -pedantic -c mi/util.c
> gcc -std=c99 -Wall -pedantic -lm -o ataidle main.c ataidle.o util.o
> ataidle.o: In function `ata_getmaxchan':ataidle.c:(.text+0x1b6): undefined reference to `ceil'
> collect2: ld returned 1 exit status
> make: *** [ataidle] Error 1
> make: Leaving directory `/usr/src/RPM/BUILD/ataidle-0.9'
> error: 
>
> RPM build errors:
> Bad exit status from /usr/src/tmp/rpm-tmp.37632 (%build)
>     Bad exit status from /usr/src/tmp/rpm-tmp.37632 (%build)
> 0.24user 0.04system 0:00.33elapsed 84%CPU (0avgtext+0avgdata 0maxresident)k
> 0inputs+0outputs (0major+10560minor)pagefaults 0swaps
> rebuild: rebuild of `ataidle-0.9-alt1.src.rpm' failed.
>
>   



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [devel] ataidle-0.9-alt1: rebuild failed
  2006-03-07  7:37 ` [devel] ataidle-0.9-alt1: rebuild failed Anton Farygin
@ 2006-03-07  9:38   ` Dmitry V. Levin
  2006-03-07 10:04     ` Anton Farygin
  2006-03-07 10:38     ` Michael Shigorin
  0 siblings, 2 replies; 7+ messages in thread
From: Dmitry V. Levin @ 2006-03-07  9:38 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 340 bytes --]

On Tue, Mar 07, 2006 at 10:37:07AM +0300, Anton Farygin wrote:
> Это ошибка компилятора.

Это теперь фича компилятора.

> > gcc -std=c99 -Wall -pedantic -lm -o ataidle main.c ataidle.o util.o
> > ataidle.o: In function `ata_getmaxchan':ataidle.c:(.text+0x1b6): undefined reference to `ceil'

-lm должно быть в конце.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [devel] ataidle-0.9-alt1: rebuild failed
  2006-03-07  9:38   ` Dmitry V. Levin
@ 2006-03-07 10:04     ` Anton Farygin
  2006-03-07 13:17       ` Dmitry V. Levin
  2006-03-07 10:38     ` Michael Shigorin
  1 sibling, 1 reply; 7+ messages in thread
From: Anton Farygin @ 2006-03-07 10:04 UTC (permalink / raw)
  To: ALT Devel discussion list

On Tue, 07 Mar 2006 12:38:54 +0300, Dmitry V. Levin wrote:

> On Tue, Mar 07, 2006 at 10:37:07AM +0300, Anton Farygin wrote:
>> Это ошибка компилятора.
> 
> Это теперь фича компилятора.
> 
>> > gcc -std=c99 -Wall -pedantic -lm -o ataidle main.c ataidle.o util.o
>> > ataidle.o: In function `ata_getmaxchan':ataidle.c:(.text+0x1b6):
>> > undefined reference to `ceil'
> 
> -lm должно быть в конце.

странно.. вообще то всегда работало, когда -lm в начале ;(

Rgds,
Rider



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [devel] ataidle-0.9-alt1: rebuild failed
  2006-03-07  9:38   ` Dmitry V. Levin
  2006-03-07 10:04     ` Anton Farygin
@ 2006-03-07 10:38     ` Michael Shigorin
  2006-03-07 13:17       ` Dmitry V. Levin
  1 sibling, 1 reply; 7+ messages in thread
From: Michael Shigorin @ 2006-03-07 10:38 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 292 bytes --]

On Tue, Mar 07, 2006 at 12:38:54PM +0300, Dmitry V. Levin wrote:
> > Это ошибка компилятора.
> Это теперь фича компилятора.

А собирание -l* после исходников никак не автоматизируется?

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [devel] ataidle-0.9-alt1: rebuild failed
  2006-03-07 10:04     ` Anton Farygin
@ 2006-03-07 13:17       ` Dmitry V. Levin
  2006-03-07 13:48         ` Anton Farygin
  0 siblings, 1 reply; 7+ messages in thread
From: Dmitry V. Levin @ 2006-03-07 13:17 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 635 bytes --]

On Tue, Mar 07, 2006 at 01:04:30PM +0300, Anton Farygin wrote:
> On Tue, 07 Mar 2006 12:38:54 +0300, Dmitry V. Levin wrote:
> 
> > On Tue, Mar 07, 2006 at 10:37:07AM +0300, Anton Farygin wrote:
> >> Это ошибка компилятора.
> > 
> > Это теперь фича компилятора.
> > 
> >> > gcc -std=c99 -Wall -pedantic -lm -o ataidle main.c ataidle.o util.o
> >> > ataidle.o: In function `ata_getmaxchan':ataidle.c:(.text+0x1b6):
> >> > undefined reference to `ceil'
> > 
> > -lm должно быть в конце.
> 
> странно.. вообще то всегда работало, когда -lm в начале ;(

Когда-то давно, когда -lm было libm.a, не работало. :)


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [devel] ataidle-0.9-alt1: rebuild failed
  2006-03-07 10:38     ` Michael Shigorin
@ 2006-03-07 13:17       ` Dmitry V. Levin
  0 siblings, 0 replies; 7+ messages in thread
From: Dmitry V. Levin @ 2006-03-07 13:17 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 300 bytes --]

On Tue, Mar 07, 2006 at 12:38:25PM +0200, Michael Shigorin wrote:
> On Tue, Mar 07, 2006 at 12:38:54PM +0300, Dmitry V. Levin wrote:
> > > Это ошибка компилятора.
> > Это теперь фича компилятора.
> 
> А собирание -l* после исходников никак не автоматизируется?

Ине неизвестно.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [devel] ataidle-0.9-alt1: rebuild failed
  2006-03-07 13:17       ` Dmitry V. Levin
@ 2006-03-07 13:48         ` Anton Farygin
  0 siblings, 0 replies; 7+ messages in thread
From: Anton Farygin @ 2006-03-07 13:48 UTC (permalink / raw)
  To: devel

On Tue, 07 Mar 2006 16:17:04 +0300, Dmitry V. Levin wrote:

> Когда-то давно, когда -lm было libm.a, не
> работало. :)

да, статику всегда надо было в другой секции прописывать.. 

Rgds,
Rider



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-03-07 13:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-07  7:37 ` [devel] ataidle-0.9-alt1: rebuild failed Anton Farygin
2006-03-07  9:38   ` Dmitry V. Levin
2006-03-07 10:04     ` Anton Farygin
2006-03-07 13:17       ` Dmitry V. Levin
2006-03-07 13:48         ` Anton Farygin
2006-03-07 10:38     ` Michael Shigorin
2006-03-07 13:17       ` Dmitry V. Levin

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

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


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