ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Ivan Zakharyaschev <imz@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Openjdk buid failed - undefined reference to `operator new(unsigned long)'
Date: Thu, 28 Sep 2017 15:54:29 +0300 (MSK)
Message-ID: <alpine.LFD.2.20.1709281551130.9493@imap.altlinux.org> (raw)
In-Reply-To: <1123565339.202968.1506582998121.JavaMail.zimbra@remotesystems.ru>

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

Hello!

On Thu, 28 Sep 2017, Evgeniy Korneechev wrote:

> Собираю openjdk (для Zimbra), но что-то я встрял - собственно ошибка в сабже

А чем не устраивает 
https://packages.altlinux.org/en/Sisyphus/srpms/java-1.8.0-openjdk/patches 
?

Оно успешно собирается сейчас: 
http://git.altlinux.org/beehive/logs/Sisyphus-x86_64/latest/success/java-1.8.0-openjdk-0:1.8.0.71-alt7_1.b15jpp8

> Making adlc
> ../generated/adfiles/adlparse.o: In function `ADLParser::instr_parse()':
> ~/rpm/BUILD/openjdk-1.8.0u144b01/hotspot/src/share/vm/adlc/adlparse.cpp:153: undefined reference to `operator new(unsigned long)'
> ~/rpm/BUILD/openjdk-1.8.0u144b01/hotspot/src/share/vm/adlc/adlparse.cpp:286: undefined reference to `operator new(unsigned long)'
> ../generated/adfiles/adlparse.o: In function `ADLParser::adjust_set_rule(InstructForm*)':
> ~/rpm/BUILD/openjdk-1.8.0u144b01/hotspot/src/share/vm/adlc/adlparse.cpp:341: undefined reference to `operator new(unsigned long)'
> ~/rpm/BUILD/openjdk-1.8.0u144b01/hotspot/src/share/vm/adlc/adlparse.cpp:358: undefined reference to `operator new(unsigned long)'
> ~/rpm/BUILD/openjdk-1.8.0u144b01/hotspot/src/share/vm/adlc/adlparse.cpp:384: undefined reference to `operator new(unsigned long)'
> ../generated/adfiles/adlparse.o:~/rpm/BUILD/openjdk-1.8.0u144b01/hotspot/src/share/vm/adlc/adlparse.cpp:416: more undefined references to `operator new(unsigned long)' follow
> ../generated/adfiles/adlparse.o: In function `__static_initialization_and_destruction_0(int, int)':
> /usr/include/c++/5/iostream:74: undefined reference to `std::ios_base::Init::Init()'
> /usr/include/c++/5/iostream:74: undefined reference to `std::ios_base::Init::~Init()'
> ../generated/adfiles/adlparse.o: In function `PreHeaderForm::~PreHeaderForm()':
> ~/rpm/BUILD/openjdk-1.8.0u144b01/hotspot/src/share/vm/adlc/forms.hpp:496: undefined reference to `operator delete(void*)'
>
> Соответственно пытался добавить в CFLAGS -lstdc++: (или надо в CXXFLAGS? если да, туда от безысходности тоже пробовал)
> говорит: configure: WARNING: Ignoring CFLAGS(-lstdc++) found in environment. Use --with-extra-cflags
>
> Далее последовал совету:
> ./configure --prefix=/opt/zimbra/common '--with-extra-cflags=-O2 -g -lstdc++' --enable-unlimited-crypto --with-update-version=144 --with-build-number=b01 --with-milestone=zimbra
>
> все равно чего-то не хватает...
>
> $ rpm -qa *++*
> gcc-c++-common-1.4.20-alt1.noarch
> gcc5-c++-5.3.1-alt4.x86_64
> libstdc++5-devel-5.3.1-alt4.x86_64
> libstdc++5-devel-static-5.3.1-alt4.x86_64
> libstdc++6-6.3.1-alt2.x86_64
> libstdc++6-devel-6.3.1-alt2.x86_64
>
> Подскажите в чем может быть проблема то?
> PS gcc6-c++ - тоже пробовал, тож самое


-- 
Best regards,
Ivan

  parent reply	other threads:[~2017-09-28 12:54 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-28  7:16 Evgeniy Korneechev
2017-09-28 12:39 ` Alexey V. Vissarionov
2017-09-28 17:43   ` Evgeniy Korneechev
2017-09-28 12:54 ` Ivan Zakharyaschev [this message]
2017-09-28 18:03   ` Evgeniy Korneechev
2017-09-29  0:58     ` Ivan Zakharyaschev
2017-09-29  7:10       ` Evgeniy Korneechev
2017-10-04  5:41       ` Evgeniy Korneechev
2017-10-04 19:23         ` Ivan Zakharyaschev
2017-10-04 19:45           ` Igor Vlasenko
2017-10-05  8:50             ` Evgeniy Korneechev
2018-01-17 13:34 ` Evgeniy Korneechev
2018-01-17 13:51   ` Dmitry V. Levin
2018-01-17 14:14     ` Evgeniy Korneechev
2018-01-18  2:34       ` Alexei Takaseev
2018-01-18 16:53         ` Michael Shigorin
2018-01-19  2:48           ` Alexei Takaseev
2018-01-18  2:28   ` Alexei Takaseev

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=alpine.LFD.2.20.1709281551130.9493@imap.altlinux.org \
    --to=imz@altlinux.org \
    --cc=devel@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 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