ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Openjdk buid failed - undefined reference to `operator new(unsigned long)'
@ 2017-09-28  7:16 Evgeniy Korneechev
  2017-09-28 12:39 ` Alexey V. Vissarionov
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Evgeniy Korneechev @ 2017-09-28  7:16 UTC (permalink / raw)
  To: ALT Linux Team development discussions

Всем доброго дня!

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

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++ - тоже пробовал, тож самое


-- 
WBR, Korneechev Evgeniy
BaseALT/ALTLinux Team


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

end of thread, other threads:[~2018-01-19  2:48 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-28  7:16 [devel] Openjdk buid failed - undefined reference to `operator new(unsigned long)' Evgeniy Korneechev
2017-09-28 12:39 ` Alexey V. Vissarionov
2017-09-28 17:43   ` Evgeniy Korneechev
2017-09-28 12:54 ` Ivan Zakharyaschev
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

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