Displaying 20 results from an estimated 38 matches for "hello_world".
2018 Apr 02
2
LLD-linked binary segfaults at runtime on alpine linux
Alpine linux is a distribution that uses musl libc instead glibc. Here are
my steps to reproduce:
On Alpine linux, download LLVM, Clang, LLD 6.0.0 from releases.llvm.org,
and build them from source.
$ clang -c hello_world.c
$ ld.lld --gc-sections -m elf_x86_64 -o hello_world
/usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../lib/Scrt1.o
/usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../lib/crti.o
/usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/crtbegin.o -L
/usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../....
2018 Apr 02
0
LLD-linked binary segfaults at runtime on alpine linux
...a llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Alpine linux is a distribution that uses musl libc instead glibc. Here are
> my steps to reproduce:
>
> On Alpine linux, download LLVM, Clang, LLD 6.0.0 from releases.llvm.org,
> and build them from source.
>
> $ clang -c hello_world.c
> $ ld.lld --gc-sections -m elf_x86_64 -o hello_world
> /usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../lib/Scrt1.o
> /usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../lib/crti.o
> /usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/crtbegin.o -L
> /usr/lib/gcc/x86_64-alpine...
2018 Apr 02
1
LLD-linked binary segfaults at runtime on alpine linux
...s.llvm.org> wrote:
>
>> Alpine linux is a distribution that uses musl libc instead glibc. Here
>> are my steps to reproduce:
>>
>> On Alpine linux, download LLVM, Clang, LLD 6.0.0 from releases.llvm.org,
>> and build them from source.
>>
>> $ clang -c hello_world.c
>> $ ld.lld --gc-sections -m elf_x86_64 -o hello_world
>> /usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../lib/Scrt1.o
>> /usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../lib/crti.o
>> /usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/crtbegin.o -L
>> /usr/l...
2011 Dec 25
2
[LLVMdev] Using output from dragonegg
Howdy!
I am trying to understand how to properly use dragonegg. I've gotten it on
my machine and it runs everything and seems to compile fortran well.
If I run this command:
gcc-4.6 tests/hello_world.f -o hello_world.o -fplugin=./dragonegg.so -S
-flto
I get a bunch of LLVM code in the hello_world.o file. What do I do with it
next if I want to execute it?
I've tried llvm-as and llvm-nm but both of them just throw errors up about
file formats or errors that seem to indicate they aren't be...
2008 Apr 30
0
[LLVMdev] newbie question regarding llvm-mingw
Hello,
I'm playing around with the llvm-tools.
On linux everything worked as expected: I downloaded and compiled the
llvm-source. Assembled (llvm-as) and linked (llvm-ld) a hello_world
program and executed it successfully.
For windows I have downloaded the compiled mingw32-binaries:
http://llvm.org/releases/2.2/llvm-2.2-x86-mingw32.tar.bz2
I used the following hello_world program from the documentation:
hello_world.ll:
----------------------------------------------------------...
2016 Oct 04
2
(Thin)LTO llvm build
On Mon, Oct 3, 2016 at 5:24 PM, Xinliang David Li <xinliangli at gmail.com>
wrote:
> Small repro:
>
> __attribute__((weak)) int hello_world();
>
> int test() {
> if (hello_world)
> return hello_world();
> return 0;
> }
>
> $ clang -fuse-ld=gold -flto=thin -O2 -shared -fPIC -o libmore.so more.c
> $ objdump -t libmore.so |grep hello
> 0000000000000000 w *UND* 0000000000000000 he...
2008 May 01
1
[LLVMdev] newbie question regarding llvm-mingw
Hello, Ralf
> ERROR: Program used external function '__main' wich could not be
> resolved!
This was the bug fixed soon after 2.2 release.
> I get the same error if I link the program with: "llvm-ld -v --stats
> hello_world.bc -o hello_world.exe"
> ... and execute the resulting "hello_world.exe"
Right, because produced .exe just calls lli for bytecode execution.
> Only the standard c library?
See above, it really depends how you're producing the .exe.
--
WBR, Anton Korobeynikov
2016 Oct 04
2
(Thin)LTO llvm build
...Oct 3, 2016 at 6:15 PM, Teresa Johnson <tejohnson at google.com>
> wrote:
>
>>
>>
>> On Mon, Oct 3, 2016 at 5:24 PM, Xinliang David Li <xinliangli at gmail.com>
>> wrote:
>>
>>> Small repro:
>>>
>>> __attribute__((weak)) int hello_world();
>>>
>>> int test() {
>>> if (hello_world)
>>> return hello_world();
>>> return 0;
>>> }
>>>
>>> $ clang -fuse-ld=gold -flto=thin -O2 -shared -fPIC -o libmore.so more.c
>>> $ objdump -t libmore.so |grep he...
2013 Mar 06
2
multi-line content= construct for puppet resource file command
Hello all,
How does one enter multi-line content using ''puppet resource file ...''
at the command line?
For example, I am trying to create a file called /tmp/hw.txt with two
lines of content:
$ cat /tmp/hw.txt
hello
world
This does not work:
$ puppet resource file hello_world \
path=/tmp/hw.txt \
ensure=file \
content="hello\nworld\n"
This does, but use "puppet apply" :
cat <<"eof" | puppet apply
file { "hello_world":
path => "/tmp/hw.txt",
ensure => "file",
content => "hello\n...
2014 Jul 30
2
[LLVMdev] [3.5 Release] Release Candidate 1 Sources and Binaries Available
...lvm/3.5rc1/build/Release+Asserts/bin/llvm-tblgen
>>
>> Ben
> Here's the result:
>
> -*- mode: compilation; default-directory:
> "~/dwnlds/llvm/3.5rc1/build-variants/" -*-
> Compilation started at Wed Jul 30 10:03:38
>
> make -f my.mk chrpath
> cat hello_world.cpp
> #include <iostream>
> int main()
> {
> std::cout<<"Hello World!\n";
> return 0;
> }
> g++ --version
> g++ (GCC) 4.9.0
> Copyright (C) 2014 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions....
2014 Jul 30
2
[LLVMdev] [3.5 Release] Release Candidate 1 Sources and Binaries Available
On Wednesday, July 30, 2014 01:31 PM, Ben Pope wrote:
> ldd your_built_clang | grep libstdc++
> chrpath -l your_built_clang
Hmm, where "your_built_clang" should be the actual failing executable:
/home/evansl/dwnlds/llvm/3.5rc1/build/Release+Asserts/bin/llvm-tblgen
Ben
2006 Dec 15
5
Testing event driven Socket classes
...not stub it) . Since in
actual scenario, you can''t do this on this class:
@server = TickServer.new # will toss an exception at your face
you must initialize the server like this:
EventMachine.run {
EventMachine.start_server("192.168.2.252",6200,TickServer) do |conn|
conn.hello_world
end
}
Where conn holds the instance of the class TickServer. So, I want to
mock this class, so that i don''t have to create an actual socket
connection.
Please look in the code, carefully. most of the methods in class are
actually callbacks, which respond to certain events.
Is it possi...
2016 Oct 03
2
(Thin)LTO llvm build
On Mon, Oct 3, 2016 at 3:53 PM, Xinliang David Li <xinliangli at gmail.com>
wrote:
> What is the linker command line buidling liblldb.so? is libgcc.a passed in?
>
There is no difference in the linker command for liblldb.so or bin/lldb
between the ld.bfd and ld.gold cases, and neither links libgcc.a that I can
see.
The difference appears to be that the __morestack symbol is weak in
2012 Oct 18
2
Different return codes on exec during puppet agent run vs command line Windows
...find out why the return codes are different. FYI, I am using the
sysnative path to avoid the file system redirection on windows.
Platform: Windows 2008R2 64 bit
Running PE 2.6 agent and PE 2.6 master.
Exec statement(It''s horrendous I know....) :
$AILogFile=''C:\\Program Files\\HELLO_WORLD\\log\\IIS7.log''
exec { ''install_iis'':
command => "c:\\Windows\\sysnative\\dism.exe /online /norestart
/logpath:\"C:\\temp\\log.etw.txt\" /enable-feature /ignorecheck
/featurename:\"IIS-ApplicationDevelopment\" /featurename:\"IIS...
2007 Jan 03
12
instalation problem
...2. wxruby2-preview 0.0.35 (powerpc-darwin7.9.0)
13. wxruby2-preview 0.0.35 (i486-linux)
14. Cancel installation
> 10
Successfully installed wxruby2-preview-0.0.36-i486-linux
Executing my class ----------------------------------------------------------
pedro@la-vaca-azul:~/work/rad/gui/wx$ ls
hello_world.rb
pedro@la-vaca-azul:~/work/rad/gui/wx$ ruby hello_world.rb
hello_world.rb:1:in `require'': no such file to load -- wx (LoadError)
from hello_world.rb:1
Load alone and irb ------------------------------------------------
pedro@la-vaca-azul:~/work/rad/gui/wx$ ruby -rubygems -e &quo...
2008 Jan 25
2
"undefined symbol" with wxRuby gem on Fedora Core 5...
I''m trying to test on platforms other than Windows, starting with my
Fedora Core 5 box. I''m getting this error when trying to run the
Hello World script
(http://wxruby.rubyforge.org/wiki/wiki.pl?Hello_World):
undefined symbol: gtk_widget_is_composited -
/usr/local/lib/ruby/gems/1.8/gems/wxruby-1.9.4-x86-
linux/lib/wxruby2.so (LoadError)
This happens with both the wxRuby 1.9.4 and 1.9.2 gems. I''m not
really looking to build from source; I want the gem to auto-download
and "...
2007 Dec 08
3
Multiple Worker Methods on Different Schedules
Quick question: If I want to schedule different worker methods defined in
the same worker to trigger at different times, is this possible? Would the
following scheduler yaml work?
:schedules:
:foo_worker:
:worker_method: method1
:trigger_args: 0 */10 * * * * *
:job_key: some_key_1
:foo_worker:
:worker_method: method2
:trigger_args: 0 */15 * * * * *
:job_key:
2007 Aug 15
5
Misc notes concerning view_paths
Hi all,
I''ve been playing in the trunk with putting stuff in different dirs
to keep files from a reusable framework separate from the app files.
Here are a few considerations regarding the view_paths setting:
config.view_path is used to set both action_controller.view_paths and
action_mailer.template_root. We get some buggy/unexpected behavior
here because
2010 Jun 14
6
ERROR: Failed to build gem native extension (win server 2003/2008 ruby 1.9.1/1.8.7)
I am trying to install mongrel_service gem on Windows (although this
problem seems to hold for any non-compiled gem). I have tried this
with Windows Server 2003 and 2008. Also with Ruby version 1.8.7 and
1.9.1 (Luis Lavena''s one click installer). Both with the same result.
The error message (full text below) mentions that I have to install
development tools first. I have installed MinGW
2018 Nov 11
3
A stage2 build causes changes to libllvm impacting program using it (exemple: rustc)
...ile::ChecksumInfo<llvm::StringRef> >, llvm::Optional<llvm::StringRef>) () from /usr/lib/x86_64-linux-gnu/libLLVM-7.so.1
#5 0x00007ffff50a01f2 in LLVMRustDIBuilderCreateFile (Builder=0x5555555d4180, Filename=0x7ffffffeedd8 "src/main.rs", Directory=0x555555b3dd10 "$HOME/hello_world")
at /usr/lib/llvm-7/include/llvm/ADT/StringRef.h:85
#6 0x00007ffff501d39e in rustc_codegen_llvm::debuginfo::metadata::compile_unit_metadata (tcx=..., codegen_unit_name=..., debug_context=0x7ffffffeeeb0) at librustc_codegen_llvm/debuginfo/metadata.rs:859
Disabling the debug generation fo...