Displaying 20 results from an estimated 79 matches for "dynamic_lookup".
2017 Apr 27
2
ld.lld on MacOS question
...ows yet.)
I seem to be able to compile with clang a proper mach object file for a hello function. However, when I link this function into a shared library I (surprisingly for a shared lib?) get undefined symbols like _printf, stub runtime: dyld_stub_binder, _main, etc. Using the flag
-undefined dynamic_lookup
I get no errors or warnings but then when I try to link the shared library to a main program I get the error:
ld: malformed dylib has MH_NO_REEXPORTED_DYLIBS flag
but no LC_REEXPORT_DYLIB load commands: ./libhello.dylib file './libhello.dylib'
I’ve included the shell file that makes t...
2017 Apr 27
1
ld.lld on MacOS question
...e able to compile with clang a proper mach object file for a
> hello function. However, when I link this function into a shared library I
> (surprisingly for a shared lib?) get undefined symbols like _printf, stub
> runtime: dyld_stub_binder, _main, etc. Using the flag
>
> -undefined dynamic_lookup
>
> I get no errors or warnings but then when I try to link the shared library
> to a main program I get the error:
>
> ld: malformed dylib has MH_NO_REEXPORTED_DYLIBS flag
> but no LC_REEXPORT_DYLIB load commands: ./libhello.dylib file
> './libhello.dylib'
>
> I’...
2017 May 11
2
ld.lld on MacOS question
...I seem to be able to compile with clang a proper mach object file for a hello function. However, when I link this function into a shared library I (surprisingly for a shared lib?) get undefined symbols like _printf, stub runtime: dyld_stub_binder, _main, etc. Using the flag
>
> -undefined dynamic_lookup
>
> I get no errors or warnings but then when I try to link the shared library to a main program I get the error:
>
> ld: malformed dylib has MH_NO_REEXPORTED_DYLIBS flag
> but no LC_REEXPORT_DYLIB load commands: ./libhello.dylib file './libhello.dylib'
>
> I’ve i...
2011 Mar 16
1
object not found whilst loading namespace
...* libs
*** arch - i386
gcc -arch i386 -std=gnu99
-I/Library/Frameworks/R.framework/Resources/include
-I/Library/Frameworks/R.framework/Resources/include/i386
-I/usr/local/include -fPIC -g -O2 -c caret.c -o caret.o
gcc -arch i386 -std=gnu99 -dynamiclib -Wl,-headerpad_max_install_names
-undefined dynamic_lookup -single_module -multiply_defined suppress
-L/usr/local/lib -o caret.so caret.o
-F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework
-Wl,CoreFoundation
installing to /Library/Frameworks/R.framework/Resources/library/caret/libs/i386
*** arch - x86_64
gcc -arch x86_64 -std=gnu99
-I/Library...
2008 Sep 22
1
Building binary package fails because of missing dependent package
...es/include
-I/Library/Frameworks/R.framework/Resources/include/i386 -msse3
-fPIC -g -O2 -march=nocona -c init.c -o init.o
gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-mmacosx-version-min=10.4 -std=gnu99 -dynamiclib
-Wl,-headerpad_max_install_names -mmacosx-version-min=10.4 -undefined
dynamic_lookup -single_module -multiply_defined suppress
-L/usr/local/lib -o mxFinance.so init.o
-F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework
-Wl,CoreFoundation
ld: warning, duplicate dylib
/Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libgcc_s.1.dylib
** arch - ppc
gcc -arch ppc -isysroot /De...
2017 May 06
0
ld.lld on MacOS question
...th clang a proper mach object file for a
>> hello function. However, when I link this function into a shared library I
>> (surprisingly for a shared lib?) get undefined symbols like _printf, stub
>> runtime: dyld_stub_binder, _main, etc. Using the flag
>>
>> -undefined dynamic_lookup
>>
>> I get no errors or warnings but then when I try to link the shared
>> library to a main program I get the error:
>>
>> ld: malformed dylib has MH_NO_REEXPORTED_DYLIBS flag
>> but no LC_REEXPORT_DYLIB load commands: ./libhello.dylib file
>> './libh...
2010 Apr 11
0
[LLVMdev] darwin dragon-egg build issues
...nd do:
GCC=/sw/lib/gcc4.5/bin/gcc make CPPFLAGS="-DENABLE_LTO -I/sw/include"
And it worked until the final link, which failed (-shared works in
recent gcc, but is just an alias for -dynamiclib, and doesn't allow
undefined symbols). I copy & pasted the link line, added -undefined
dynamic_lookup, and it linked and apparently works:
mini:dragonegg pogma$ gcc hello.c -S -O1 -o - -fplugin=./dragonegg.so
-fplugin-arg-dragonegg-emit-ir
; ModuleID = 'hello.c'
target datalayout =
"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:...
2016 Oct 10
2
Embedding llvm as a git submodule in Project
...pass -DCMAKE_BUILD_TYPE=Release to change this.
if (NOT CMAKE_BUILD_TYPE)
message ("Setting CMAKE_BUILD_TYPE = Debug")
set(CMAKE_BUILD_TYPE Debug)
endif()
if(APPLE)
set(CMAKE_MACOSX_RPATH ON)
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -undefined
dynamic_lookup")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -undefined
dynamic_lookup")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra
-Wno-unused-parameter")
# While just setting LLVM_DIR...
2008 Mar 12
2
bug with R CMP SHLIB (PR#10945)
...R.
When I try to compile my file.c to make file.so, with the command :
R CMD SHLIB foo.c
return the message :
gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-mmacosx-version-min=10.4 -std=gnu99 -dynamiclib
-Wl,-headerpad_max_install_names -Wl,-macosx_version_min -Wl,10.4 -undefined
dynamic_lookup -single_module -multiply_defined suppress -L/usr/local/lib -o
foo.so foo.o -F/Library/Frameworks/R.framework/.. -framework R
/usr/bin/libtool: for architecture cputype (16777223) cpusubtype (3) object:
/usr/local/lib/libgcc_s.10.4.dylib malformed object (unknown load command 4)
make: *** [foo.so]...
2017 May 12
2
ld.lld on MacOS question
...to be able to compile with clang a proper mach object file for a hello function. However, when I link this function into a shared library I (surprisingly for a shared lib?) get undefined symbols like _printf, stub runtime: dyld_stub_binder, _main, etc. Using the flag
>>
>> -undefined dynamic_lookup
>>
>> I get no errors or warnings but then when I try to link the shared library to a main program I get the error:
>>
>> ld: malformed dylib has MH_NO_REEXPORTED_DYLIBS flag
>> but no LC_REEXPORT_DYLIB load commands: ./libhello.dylib file './libhello.dylib...
2007 Jun 08
2
R CMD SHLIB error using OS X
...he error
/usr/bin/libtool: file: mvndstpack.o is not an object file (not allowed
in a library)
after R outputs (sorry... not sure if this is useful information or not)
gcc-4.0 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -std=gnu99
-dynamiclib -Wl,-macosx_version_min -Wl,10.3 -undefined dynamic_lookup
-single_module -multiply_defined suppress -L/usr/local/lib -o
mhroc_prop.so mhroc_prop.o mvndstpack.o
-L/Library/Frameworks/R.framework/Resources/lib/ppc -lRlapack
-L/Library/Frameworks/R.framework/Resources/lib/ppc -lRblas
-L/usr/local/lib/gcc/powerpc-apple-darwin8/4.2.0 -lgfortran -lgcc_s.10...
2011 Oct 11
1
R CMD INSTALL writes to stderr
...MASS.c -o MASS.o
gcc-4.2 -arch i386 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/i386 -I/usr/local/include -fPIC -g -O2 -c lqs.c -o lqs.o
gcc-4.2 -arch i386 -std=gnu99 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/usr/local/lib -o MASS.so MASS.o lqs.o -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
gcc-4.2 -arch x86_64 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/incl...
2008 Aug 21
1
pnmath compilation failure; dylib issue?
...be most
useful...I'm not sure it will even speed things up but thought I
would try...
pnmath failed:
...
gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-
version-min=10.4 -std=gnu99 -dynamiclib -Wl,-
headerpad_max_install_names -mmacosx-version-min=10.4 -undefined
dynamic_lookup -single_module -multiply_defined suppress -L/usr/local/
lib -o pnmath.so bd0.o beta.o chebyshev.o choose.o d1mach.o dbeta.o
dbinom.o dcauchy.o dchisq.o dexp.o df.o dgamma.o dgeom.o dhyper.o
dlnorm.o dlogis.o dnbeta.o dnbinom.o dnchisq.o dnf.o dnorm.o dnt.o
dpois.o dt.o dunif.o dweibull.o fma...
2007 Nov 06
2
Mac OS X Leopard and C compiling
...ces/include
-I/Library/Frameworks/R.framework/Resources/include/i386 -msse3
-fPIC -g -O2 -march=nocona -c McDonaldHW3.c -o McDonaldHW3.o
gcc-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-std=gnu99 -dynamiclib -Wl,-headerpad_max_install_names
-Wl,-macosx_version_min -Wl,10.3 -undefined dynamic_lookup
-single_module -multiply_defined suppress -L/usr/local/lib -o
McDonaldHW3.so McDonaldHW3.o -F/Library/Frameworks/R.framework/..
-framework R
ld: library not found for -ldylib1.10.5.o
collect2: ld returned 1 exit status
make: *** [McDonaldHW3.so] Error 1
McDonaldHW3.c is the code I am trying to c...
2007 Nov 06
2
Mac OS X Leopard and C compiling
...ces/include
-I/Library/Frameworks/R.framework/Resources/include/i386 -msse3
-fPIC -g -O2 -march=nocona -c McDonaldHW3.c -o McDonaldHW3.o
gcc-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-std=gnu99 -dynamiclib -Wl,-headerpad_max_install_names
-Wl,-macosx_version_min -Wl,10.3 -undefined dynamic_lookup
-single_module -multiply_defined suppress -L/usr/local/lib -o
McDonaldHW3.so McDonaldHW3.o -F/Library/Frameworks/R.framework/..
-framework R
ld: library not found for -ldylib1.10.5.o
collect2: ld returned 1 exit status
make: *** [McDonaldHW3.so] Error 1
McDonaldHW3.c is the code I am trying to c...
2008 Nov 20
3
Turning off compiler optimization
...ameworks/
R.framework/Resources/include -I/Library/Frameworks/R.framework/
Resources/include/x86_64 -I/usr/local/include -I/usr/local/include -
Wall -O0 -g -p -pg -fPIC -g -O2 -c core.c -o core.o
gcc -arch x86_64 -O3 -g -p -std=gnu99 -dynamiclib -Wl,-
headerpad_max_install_names -undefined dynamic_lookup -single_module -
multiply_defined suppress -L/usr/local/lib -o core.so core.o -L/usr/
local/lib -lgsl -F/Library/Frameworks/R.framework/.. -framework R -
Wl,-framework -Wl,CoreFoundation
I am running R 2.7.1 on a Mac Pro (Intel-based) with OS X 10.5.5.
My problem is that, for debugging purpos...
2010 Apr 11
7
[LLVMdev] darwin dragon-egg build issues
...gcc/testsuite/lib/plugin-support.exp (revision 158195)
+++ gcc/testsuite/lib/plugin-support.exp (working copy)
@@ -88,6 +88,10 @@
set optstr "$includes $extra_flags -DIN_GCC -fPIC -shared"
+ if { [ istarget *-*-darwin* ] } {
+ set optstr [concat $optstr "-undefined dynamic_lookup"]
+ }
+
# Temporarily switch to the environment for the plugin compiler.
restore_ld_library_path_env_vars
set status [remote_exec build "$PLUGINCC $PLUGINCFLAGS $plugin_src $optstr -o $plugin_lib"]
I am working towards building current dragon-egg svn against this
i...
2017 May 16
1
ld.lld on MacOS question
...a hello function. However, when I link this function into a shared library
>>>>> I (surprisingly for a shared lib?) get undefined symbols like _printf, stub
>>>>> runtime: dyld_stub_binder, _main, etc. Using the flag
>>>>>
>>>>> -undefined dynamic_lookup
>>>>>
>>>>> I get no errors or warnings but then when I try to link the shared
>>>>> library to a main program I get the error:
>>>>>
>>>>> ld: malformed dylib has MH_NO_REEXPORTED_DYLIBS flag
>>>>> but no LC_...
2016 Mar 14
2
Help with libiconv problem
...are having problems building R-3.2.4 on Mac OS
X El Capitan somehow related to libiconv. I personally don't have any
problems on either of my Macs. I'm hoping thie make log might trigger
something in the readers of this list:
gcc -dynamiclib -Wl,-headerpad_max_install_names -undefined
dynamic_lookup -single_module -multiply_defined suppress
-L../../../../lib -L/usr/local/lib -o tools.so text.o init.o Rmd5.o
md5.o signals.o install.o getfmts.o http.o gramLatex.o gramRd.o
-L../../../../lib -lR -Wl,-framework -Wl,CoreFoundation
mkdir ../../../../library/tools/libs
installing 'sysdata.rda...
2011 Dec 08
2
Compilation error of R-2.14.0 on Mac OS 10.7.2
...Xcode and gfortran for Lion and configure options:
./configure --with-libintl-prefix=/sw --enable-R-shlib (this last option necessary to further install the Rpy Python package)
I got the following unreduced compilation error:
gcc -std=gnu99 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/sw/lib -L/usr/local/lib -o tools.so text.o init.o Rmd5.o md5.o signals.o -L../../../../lib -lR -dylib_file libRblas.dylib:../../../../lib/libRblas.dylib -lintl -Wl,-framework -Wl,CoreFoundation
make[6]: `Makedeps' is up to date.
mkdir ../../../../lib...