Displaying 20 results from an estimated 6000 matches similar to: "Cross compiling an empty program results in a segfault"
2019 May 03
2
Cross compiling an empty program results in a segfault
Sorry for the late reply.
Thanks, Eli. That was really helpful.
On Fri, Apr 12, 2019 at 9:31 PM Eli Friedman <efriedma at quicinc.com> wrote:
> “--entry main” is not going to do what you want; the entry point for a
> Linux program is not equivalent to the C “main”.
> http://dbp-consulting.com/tutorials/debugging/linuxProgramStartup.html
> has a description of how a C program
2013 Jan 31
3
Locate Patients who have multiple high blood pressure readings
On Thu, Jan 31, 2013 at 10:29 AM, Weijia Wang <wwang.nyu@gmail.com> wrote:
> Hi,
>
>
>
> I have a new question about subsetting in R.
>
>
>
> Say we have this data frame:
>
>
>
> PT_ID Blood_Pressure OBS_TYPE
>
> 92 1900 90.0 DBP
>
> 94 1900 90.0 DBP
>
> 174 2900 140.0 SBP
>
> 176 2900
2019 Jun 07
2
ld.lld fails with "undefined symbol: _fopen" on macOS, while working as expected on Linux
Thanks, Tim.
You are right, it's using macOS' stdio.h, which is a terrible idea.
Clang docs on --sysroot:
When you have extracted your cross-compiler from a zip file into a
directory, you have to use --sysroot=<path>. The path is the root directory
where you have unpacked your file, and Clang will look for the directories
bin, lib, include in there.
I have a silly question: where
2010 Sep 06
3
Finding the two most recent dates
Dear R help,
I have the following data frame:
structure(list(prochi = c("ind_1", "ind_1", "ind_1",
"ind_1", "ind_1", "ind_1", "ind_1", "ind_1",
"ind_1", "ind_1"), date_1st_event = structure(c(14784,
14784, 14784, 14784, 14784, 14784, 14784, 14784, 14784, 14784
), class = "Date"),
2005 May 27
4
plotting box plots on same x
I am trying to construct a graph of 6 box plots of blood pressures. I
want them to be on a single set of axis and I want the SBP to be ontop
of the DBP. I have an array bp with the data in it and I tried
a[1,]<-c(145,60,147,62,140,57)
a[2,]<-c(160,75,160,74,160,70)
a[3,]<-c(140,55,140,65,142,55)
boxplot(data.frame(a), main = "Blood Pressures", at=c(1,1,2,2,3,3),
2012 Mar 19
1
car/MANOVA question
Dear colleagues,
I had a question wrt the car package. How do I evaluate whether a
simpler multivariate regression model is adequate?
For instance, I do the following:
ami <- read.table(file =
"http://www.public.iastate.edu/~maitra/stat501/datasets/amitriptyline.dat",
col.names=c("TCAD", "drug", "gender", "antidepressant","PR",
2020 May 14
2
ld.lld ignoring --sysroot
On 2020-05-14, Rui Ueyama via llvm-dev wrote:
>On Thu, May 14, 2020 at 11:04 AM Ivan Medoedov via llvm-dev <
>llvm-dev at lists.llvm.org> wrote:
>
>> Hello,
>>
>> I'm trying to compile a Linux hello world executable on macOS.
>>
>> The first step is simple:
>>
>> clang -c -target x86_64-linux-gnu -c -o hello.o hello.c
>>
>>
2008 Nov 09
2
[LLVMdev] Mingw, cross-compiling,___eprintf
Cross-compiling from Ubuntu 8.04 x86_64 to mingw with the cmake
build system fails with this error while linking some tools:
../../lib/libLLVMSystem.a(DynamicLibrary.cpp.obj):DynamicLibrary.cpp:(.text+0x367):
undefined reference to `___eprintf'
___eprintf is mentioned in lib/System/Win32/DynamicLibrary.inc. This
symbol is referenced by libLLVMSystem.a when LLVM is natively built on
2007 Oct 06
1
override variables
Hi,
I am trying to allow certain nodes to override variables in inherited
classes. Here''s an example:
node ''my.server.com'' inherits webserver {}
node ''other.server.com'' inherits webserver { $var = "newvalue" }
node webserver { $var = "value"
include snmp, dns, classx
}
In this example classx ends up using
2019 Jun 07
2
ld.lld fails with "undefined symbol: _fopen" on macOS, while working as expected on Linux
Hi,
I'm trying to cross-compile my app.
#include <stdio.h>
int main() {
puts("test");
fopen("test", "r"); // removing fopen() call removes the error
return 0;
}
clang -c -target x86_64-linux-gnu test.c
ld.lld -v -o test -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2
/usr/lib/x86_64-linux-gnu/crt1.o /usr/lib/x86_64-linux-gnu/crti.o test.o
2016 May 05
2
LLVM cross compilation for arm target
Hello All,
I am building llvm-clang tool chain for *arm target* by following the steps
from
http://clang.llvm.org/docs/CrossCompilation.html
*However when I tried following cmake command for build tool chain it gives
the error message :*
#CC='clang' CXX='clang++' cmake -G Ninja /home/iiita/llvm-exp/llvm
-DCMAKE_CROSSCOMPILING=True
2001 Jun 15
1
contrasts in lm and lme
I am using RW 1.2.3. on an IBM PC 300GL.
Using the data bp.dat which accompanies
Helen Brown and Robin Prescott
1999 Applied Mixed Models in Medicine. Statistics in Practice.
John Wiley & Sons, Inc., New York, NY, USA
which is also found at www.med.ed.ac.uk/phs/mixed. The data file was opened
and initialized with
> dat <- read.table("bp.dat")
>
2008 Nov 09
0
[LLVMdev] Mingw, cross-compiling,___eprintf
Hello, Oscar
> oscar at qcore:~/dev/llvm/mingw-x$ i586-mingw32msvc-g++ --version
> i586-mingw32msvc-g++ (GCC) 4.2.1-sjlj (mingw32-2)
Have you tried to build llvm natively with exact same compiler
version? AFAIR, someone reported, that either this was not possible or
there was a miscompilation.
PS: Everything is with crosscompilation via gcc 3.4.6 & ld 2.18
--
With best regards, Anton
2006 Jan 14
2
CentOS 4.2 x86_64
I have a couple of 64-Bit Xeon's with CentOS 4.2 x86_64 installed on
them. They don't all have the same motherboards.
I've having a difficult time getting CentOS 4.2 x86_64 to boot on some
of them in SMP mode (UP works fine). After the installation of CD, it
boots up but kernel panics with the following error:
Badness in i8042_panic_blink at drivers/input/serio/i8042.c:992
This is
2020 May 14
2
ld.lld ignoring --sysroot
Hello,
I'm trying to compile a Linux hello world executable on macOS.
The first step is simple:
clang -c -target x86_64-linux-gnu -c -o hello.o hello.c
But linking results in an error:
ld.lld --sysroot=/linuxroot/ -o hello -m elf_x86_64 \
-dynamic-linker /lib64/ld-linux-x86-64.so.2 \
/lib/crt1.o \
/usr/lib/x86_64-linux-gnu/crti.o ../hello.o \
/usr/lib/x86_64-linux-gnu/libc.so \
2006 Oct 05
13
Unbootable system recovery
I have just recently (physically) moved a system with 16 hard drives (for the array) and 1 OS drive; and in doing so, I needed to pull out the 16 drives so that it would be light enough for me to lift.
When I plugged the drives back in, initially, it went into a panic-reboot loop. After doing some digging, I deleted the file /etc/zfs/zpool.cache.
When I try to import the pool using the zpool
2017 Oct 31
3
Cross compiling for Baremetal ARM without using GCC
Dear LLVM developers,
Hello,
I'm trying to find a way of cross-compiling my c code against Baremetal Cortex-M device (so target triple will be arm-none-eabi) only using LLVM/Clang, and not using anything from GNU (ld or libc).
I'm doing this to know which one of LLVM/clang and GCC produces smaller flash image size because saving flash is a big deal in our projects.
1) When I just follow
2010 Aug 05
1
an issue about missing data
Hi,
I am using a function 'polygenic' in the package called 'GenABEL'.
--------------------------------------------------------------------------------
> h2.gs <- polygenic(b.dbp~age+age2+age3+sex+b.bmi, kin=gs.gkin, data=gs)
-------------------------------------------------------------------------------
## and I got the following error message:
Error in svd(X): infinite or
2015 Mar 05
2
[LLVMdev] A question to LLVM for ARMv6
Hi, all
I want to use LLVM to compile an ARM Cortex-M0 project on windows. Who can send me a sample, including command arguments and introdution about debug process. Thanks a lot.
-Steven
***************************** Legal Disclaimer *****************************
"This email may contain confidential and privileged material for the sole
use of the intended recipient. Any unauthorized
2013 Dec 17
1
[LLVMdev] Cross compiling to ARM using LLC {Help}
Hello,
I'm trying to cross compile the MiBench benchmarks using LLC and ARM cross compiler the binaries generated will be used on pandaboard or the qemu-arm emulator.
I have faced multiple issues during the compilation process, here are the commands used.
# generate LLVM-IR for dijkstra_large.c
$gcc -S -flto -o dijkstra_large.bc -fplugin=${DRAGONEGG} dijkstra_large.c
# generate TARGET