10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I would like to acquire a very old version of gcc: 4.4.3 and set it up in such a way that I can use the update-alternatives command to switch between my current version and the older version. I believe I may have found a website where I can download 4.4.3 from. However, I am not sure what all I... (6 Replies)
Discussion started by: Circuits
6 Replies
2. Programming
Hi,
I just try to solve the problem why one app failing on box1 and runs ok on box2, they have diff gcc version as I see from /proc/version:
box1:: 3.4.1
box2:: 4.1.2
It's RedHat 64b boxes, so I can not run some <make all> command on box1, do you think I need to upgrade (if I'm using... (1 Reply)
Discussion started by: mario17
1 Replies
3. Programming
I am getting the a random failure after upgrading the gcc version 3.1 to 3.4.6. My code where it is failing contains some STL and shared memory concepts.It is perfectly working on old version of gcc.I want to know what are possible causes that made this random error after upgrading gcc 3.4.6. (2 Replies)
Discussion started by: kapilkumawat
2 Replies
4. HP-UX
Hi,
In unix box GCC installed under the /usr/local/bin/gcc, i want to know the version of GCC.
Could you please let me know the process for that.
Thanks & Regards,
Suji (1 Reply)
Discussion started by: srujana
1 Replies
5. UNIX for Dummies Questions & Answers
Please someone can say me how to know the gcc version installed on my sunsolaris?
Thanks (2 Replies)
Discussion started by: Minguccio75
2 Replies
6. Solaris
Hello everybody,
I am having two machines. I am using g++v2.95
When I do the build,the size of output file on both machines differ. I am not able to find what can be the problem. Both the machines are solaris 5.6
The command is :
g++ -c -g -I./ -I../../../include -I/usr/local/include/g++-3... (1 Reply)
Discussion started by: manishs13
1 Replies
7. Programming
Hi mates,
I am a new comer of this forums.
I have a problem while using function "fread(buffer, size, number, file-pointer)" to read a binary file.
While I used the "fread()" to read the binary file under Solaris UNIX System, it worked very well. But it gets a incorrect result... (6 Replies)
Discussion started by: cquedugdylp
6 Replies
8. UNIX for Dummies Questions & Answers
How do you determine which version of the GNU gcc compiler is on your system? (1 Reply)
Discussion started by: Ben070371
1 Replies
9. Programming
I have some crypting functions in object-file - for example,func.o
Main file,from where crypting functions called, named as main.cpp .
"gcc main.cpp -o main func.o" print "undefined reference to ... "
But if I rename main.cpp to main.c and execute
"gcc main.c -o main func.o" - ok. If anybody,... (3 Replies)
Discussion started by: Gigachel
3 Replies
10. Shell Programming and Scripting
Folks,
I am using gcc 2.7.2.1 for NeXT PDO on my Solaris box. I want to get gcc version in a script. I do gcc -v and try to filter the output through awk. It won't come. Strange. Assigning it to the variable is also not possible. Any ideas ?
Cheers,
Amol. (4 Replies)
Discussion started by: amol
4 Replies
sb2-init(1) sb2-init man page sb2-init(1)
NAME
sb2-init - initialize a target for scratchbox2
SYNOPSIS
sb2-init [OPTION]... [TARGETNAME] [COMPILER[:SPECS]] [SECONDARY_COMPILER...]
DESCRIPTION
sb2-init initializes a target for scratchbox2. If no options or other parameters are given, already initialized targets are listed.
A scratchbox2 target is simply a light-weight, symbolic name for a configuration set. A target does not contain anything that is active,
like running processes; hence a user never "works inside a target". Instead, sessions are used for all active operations. Sessions are
created by the sb2 command.
sb2-init is expected to be run in the directory you want to use as the target root filesystem.
TARGETNAME is the name of the target to initialize. If it refers to an existing target, then the target is re-initialized. Otherwise a new
one is created.
COMPILER is full path to a cross-compiler (gcc), of the form $HOME/arm-2006q3/bin/arm-linux-gcc. An optional SPECS parameter is path to
the compiler specs file.
If more than one compiler is specified, additional compilers are available by version number (e.g. if the primary is known as "gcc" and
"gcc-4.1", the secondary may be "gcc-3.4", etc)
Note that the compiler is usually used during the target creation process to determine CPU architecture of the target system.
OPTIONS
-c "command"
specify cpu transparency command, for example: "qemu-arm", "sbrsh" or "qemu-arm -R 256M". CPU transparency method is the program
which is used to execute foreign binaries, that the host computer can not execute directly.
-p "command"
specify cpu transparency command for staticly linked native binaries.
-r [hostname]
generate sbrsh config using remote device address
-l [hostname]
NFS server/localhost address seen by remote device
-d set target as default scratchbox2 target (default target can also be set later with the sb2-config command)
-m [mapping_mode]
use mapping_mode as default. Default for this is "simple"
-h Print help.
-n don't build libtool for the target
-N don't generate localization files for the target
-s skip checks for target root's /usr/include etc.
-t [tools_dir]
set directory containing the build tools distribution
-C "options"
add extra options for the compiler, for example: -C "-fgnu89-inline"
-A arch
manually override target architecture
-M arch
manually override machine name (see uname(2)). This defaults to the target architecture (see option -A)
-v display version
EXAMPLES
mkdir $HOME/buildroot
cd $HOME/buildroot
[fetch a rootfs from somewhere and extract it here]
sb2-init -c qemu-arm TARGET /path/to/cross-compiler/bin/arm-linux-gcc
FILES
$HOME/.scratchbox2/*
SEE ALSO
sb2(1), sb2-config(1), qemu(1)
BUGS
No known bugs at this time.
AUTHORS
Lauri T. Aarnio
2.2 17 December 2010 sb2-init(1)