[Opengcd-discuss] [bug] basicproject build error
Portable implementation of Grand Central Dispatch
Brought to you by:
mheily
|
From: 신영호 <you...@lg...> - 2013-03-14 12:00:54
|
Dear Mark.
I tried to compile and make opengcd with baseproject in Ubuntu.
And then, An error has occurred. See the following message.
youngho.shin@aot-gsm:~/work/opengcd-test$ make
cd libBlocksRuntime && make
make[1]: Entering directory `/home/youngho.shin/work/opengcd-
test/libBlocksRuntime'
clang -DHAVE_CONFIG_H -I. -DBlocksRuntime_EXPORTS -
DHAVE_SYNC_BOOL_COMPARE_AND_SWAP_INT -DHAVE_SYNC_BOOL_COMPARE_AND_SWAP_LONG
-std=c99 -Wall -Wextra -W -pedantic -Wno-unused-parameter -o runtime.o -
fPIC -DPIC -c runtime.c
clang -DHAVE_CONFIG_H -I. -DBlocksRuntime_EXPORTS -
DHAVE_SYNC_BOOL_COMPARE_AND_SWAP_INT -DHAVE_SYNC_BOOL_COMPARE_AND_SWAP_LONG
-std=c99 -Wall -Wextra -W -pedantic -Wno-unused-parameter -o data.o -fPIC -
DPIC -c data.c
clang -o libBlocksRuntime.so -shared -fPIC -L . -Wl,-
soname,libBlocksRuntime.so.0 runtime.o data.o
ar cru libBlocksRuntime.a runtime.o data.o
libBlocksRuntime.a
make[1]: libBlocksRuntime.a: Command not found
make[1]: *** [libBlocksRuntime.a] Error 127
make[1]: Leaving directory `/home/youngho.shin/work/opengcd-
test/libBlocksRuntime'
make: *** [libBlocksRuntime-build-stamp] Error 2
The reason is that because there is not $(RANLIB) definition.
So, I added on following line.
youngho.shin@aot-gsm:~/work/opengcd-test/libBlocksRuntime$ svn diff
makeconf/makeconf/installer.rb
Index: makeconf/makeconf/installer.rb
===================================================================
--- makeconf/makeconf/installer.rb (revision 402)
+++ makeconf/makeconf/installer.rb (working copy)
@@ -29,6 +29,7 @@
:sbindir => '$(EPREFIX)/sbin',
:sysconfdir => '$(PREFIX)/etc',
:sharedstatedir => '$(PREFIX)/com',
+ :ranlib => 'ranlib',
# Package-specific directories
:pkgincludedir => '$(INCLUDEDIR)/$(PACKAGE)'
I wonder if it is correct.
But I success configure and make both baseproject and androidproject.
Also I found out a typographical error.
youngho.shin@aot-gsm:~/work/opengcd-test/libBlocksRuntime$ svn diff
makeconf/makeconf/baseproject.rb
Index: makeconf/makeconf/baseproject.rb
===================================================================
--- makeconf/makeconf/baseproject.rb (revision 402)
+++ makeconf/makeconf/baseproject.rb (working copy)
@@ -628,7 +628,7 @@
printf "checking for ranlib.. "
for ranlib in ${host_system_type}-ranlib ranlib
do
- $ar --version >/dev/null 2>&1
+ $ranlib --version >/dev/null 2>&1
if [ $? -eq 0 ] ; then ranlib="$ranlib" ; break ; fi
done
if [ -n "$ranlib" ] ; then
------------------------------------------------------------------------
I modified the files as below.
youngho.shin@aot-gsm:~/work/opengcd-test$ svn status [root(libdispatch),
libBlocksRuntime, libkqueue and libpthreadworkqueue are the same]
M makeconf/makeconf/installer.rb
M makeconf/makeconf/baseproject.rb
Thank you.
Youngho.
|