Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 360487 - dev-lang/v8-9999 shell.cc undefined reference
Summary: dev-lang/v8-9999 shell.cc undefined reference
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-26 00:41 UTC by fkhp
Modified: 2011-04-08 15:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fkhp 2011-03-26 00:41:25 UTC
x86_64-pc-linux-gnu-g++ -o shell -Wl,-O1 -Wl,--as-needed -m64 obj/sample/shell/release/shell.o -L. -lv8 -lpthread
obj/sample/shell/release/shell.o: In function `RunMain(int, char**)':
shell.cc:(.text+0xa63): undefined reference to `v8::internal::Thread::Thread(v8::internal::Isolate*, v8::internal::Thread::Options const&)'
shell.cc:(.text+0xa7a): undefined reference to `v8::internal::Thread::Start()'
shell.cc:(.text+0xbc1): undefined reference to `v8::internal::Thread::Join()'
shell.cc:(.text+0xce6): undefined reference to `v8::internal::OS::CreateSemaphore(int)'
shell.cc:(.text+0xcf1): undefined reference to `v8::internal::OS::CreateSemaphore(int)'
obj/sample/shell/release/shell.o: In function `SourceGroup::IsolateThread::~IsolateThread()':
shell.cc:(.text._ZN11SourceGroup13IsolateThreadD2Ev[_ZN11SourceGroup13IsolateThreadD5Ev]+0x8): undefined reference to `v8::internal::Thread::~Thread()'
obj/sample/shell/release/shell.o: In function `SourceGroup::IsolateThread::~IsolateThread()':
shell.cc:(.text._ZN11SourceGroup13IsolateThreadD0Ev[_ZN11SourceGroup13IsolateThreadD5Ev]+0xc): undefined reference to `v8::internal::Thread::~Thread()'
collect2: ld returned 1 exit status
scons: *** [shell] Error 1
scons: building terminated because of errors.
 * ERROR: dev-lang/v8-9999 failed (compile phase):
 *   (no error message)


Reproducible: Always
Comment 1 Ralf Mayer 2011-03-26 13:47:50 UTC
Same situation here.(Confirmed)
Comment 2 Mike Gilbert gentoo-dev 2011-03-26 19:27:16 UTC
I used svn-bisect to try and narrow this down. The problem starts in r7322 on the trunk.
http://code.google.com/p/v8/source/detail?r=7322

I also bisected the bleeding_edge branch.

At r7271, I get the following error:
http://code.google.com/p/v8/source/detail?r=7271

cc1plus: warnings being treated as errors
src/virtual-frame-heavy-inl.h:162:62: error: array subscript is below array bounds

After applying v8-no-werror-r0.patch, I get:

shell.cc:(.text+0xd35): undefined reference to `v8::internal::OS::CreateSemaphore(int)'

At r7289, the rest of the errors start to appear.
http://code.google.com/p/v8/source/detail?r=7289

It looks like there is another "isolates" branch that I could investigate if that would provide any useful information.
Comment 3 fkhp 2011-03-31 03:10:35 UTC
version 7451 failed:


x86_64-pc-linux-gnu-g++ -o obj/preparser/release/preparser -Wl,-O1 -Wl,--as-needed -m64 obj/preparser/release/preparser-process.o -L. -lv8preparser -lpthread
obj/preparser/release/preparser-process.o: In function `v8::internal::PreParseIO(_IO_FILE*)':
preparser-process.cc:(.text+0x2c7): undefined reference to `v8::UnicodeInputStream::~UnicodeInputStream()'
obj/preparser/release/preparser-process.o: In function `v8::internal::UTF8InputStream::Next()':
preparser-process.cc:(.text._ZN2v88internal15UTF8InputStream4NextEv[v8::internal::UTF8InputStream::Next()]+0x37): undefined reference to `unibrow::Utf8::CalculateValue(unsigned char const*, unsigned int, unsigned int*)'
obj/preparser/release/preparser-process.o: In function `v8::internal::UTF8InputStream::~UTF8InputStream()':
preparser-process.cc:(.text._ZN2v88internal15UTF8InputStreamD2Ev[_ZN2v88internal15UTF8InputStreamD5Ev]+0x8): undefined reference to `v8::UnicodeInputStream::~UnicodeInputStream()'
obj/preparser/release/preparser-process.o: In function `v8::internal::UTF8InputStream::~UTF8InputStream()':
preparser-process.cc:(.text._ZN2v88internal15UTF8InputStreamD0Ev[_ZN2v88internal15UTF8InputStreamD5Ev]+0xc): undefined reference to `v8::UnicodeInputStream::~UnicodeInputStream()'
collect2: ld returned 1 exit status
Comment 4 Mike Gilbert gentoo-dev 2011-04-02 17:36:23 UTC
Adding a link to a similar report upstream.
Comment 5 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2011-04-08 15:34:10 UTC
This should now compile fine. Please re-open if it doesn't. There are known test failures.