Compile with GCC from GithubWhat does “./configure; make; make install” do?Use Old GCC Versiondiff between x86_64-linux-gnu-gcc and plain old gcc?How can I make a .deb package from github?How can I install a library from github?Change gcc Version for Single UserHow do I install PrusaSlicer from github?
Are the Shimano Derailleurs sold in Ali Express genuine or fake?
What's a good strategy for offering low on a house?
Why did the Government cancel Saturday's Brexit-deal vote?
Run "cd" command as superuser in Linux
Why buy a first class ticket on Southern trains?
How to deal with non-stop callers in the service desk
Adjusting the definition of a well-powered category to category theory with universes: size issues
Intuition behind the paradox of instantaneous heat propagation
Why is Ancient Greek "δέ" translated by Gothic "þan" /then/?
Are there any spells that aren't on any class's spell list?
What is a word for the feeling of constantly wanting new possessions?
Spent or spend?
Why past tense of vomit generally spelled 'vomited' rather than 'vomitted'?
Hypothesis testing- with normal approximation
Asking my PhD advisor for a postdoc position. Is it bad to appear desperate?
Problem aligning two alphabets
Starting a fire in a cold planet that was full of flammable gas
Did Bercow say the would have sent the EU extension-request letter himself had Johnson not done so?
Why is the Falcon Heavy center core recovery done at sea?
Does the FIDE 75-move rule apply after checkmate or resignation?
Modeling the Choose function
Why are my plastic credit card and activation code sent separately?
What happens if we run out of terrain tiles?
iPhone 11 - Leave lock screen after FaceId
Compile with GCC from Github
What does “./configure; make; make install” do?Use Old GCC Versiondiff between x86_64-linux-gnu-gcc and plain old gcc?How can I make a .deb package from github?How can I install a library from github?Change gcc Version for Single UserHow do I install PrusaSlicer from github?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I'd like to know how to compile with this version of GCC from Github:
https://github.com/parmance/par_offload
I've cloned it in my directory but I'm new to Ubuntu and don't know how to install and use from Github. There's no src directory
to call make
from.
gcc github
|
show 1 more comment
I'd like to know how to compile with this version of GCC from Github:
https://github.com/parmance/par_offload
I've cloned it in my directory but I'm new to Ubuntu and don't know how to install and use from Github. There's no src directory
to call make
from.
gcc github
Shouldn't the Makefile in the main directory be what you want?
– Hagen von Eitzen
Jun 3 at 21:34
If I type "make" in the main directory I get the error "no targets specified and no makefile found"
– kali
Jun 4 at 8:54
"par_offload" is a gcc version. See 2.2 System Requirements linuxfromscratch.org/lfs/downloads/stable/… .... Building "par_offload" :cd [folder-with-par_offload] && mkdir build-par_offload && cd build-par_offload/ && ../par_offload/configure --prefix=/usr/local/gcc82 --program-suffix=82 --enable-languages=c,c++ --disable-multilib --disable-libstdcxx-pch && make && sudo make install
– Knud Larsen
Jun 4 at 17:35
@Knud Larsen after trying out your answer , I did manage to build this version of gcc. However , when trying to compile MyFile.cc with g++ -std=c++17 -fpar_offload MyFile.cc -o MyFile I get the error "-fpar_offload not found , did you mean -foffload" . Does this occur because I need something else installed or because of the par_offload gcc?
– kali
Jun 4 at 19:35
The version appears to begcc version 9.0.0 20180509 (experimental) (GCC)
. ... (I guessed on 8.2.0) . ... I renamed to /usr/local/gcc82/bin/gcc9, g++9. My OK "test command" is$ g++9 -std=c++17 -fpar-offload cc-new.cc
, (where "cc-new.cc" is my test file.) Note : Do not use g++ but g++-[new-name]. ... Note2 : No underscore in option "-fpar-offload".
– Knud Larsen
Jun 4 at 20:34
|
show 1 more comment
I'd like to know how to compile with this version of GCC from Github:
https://github.com/parmance/par_offload
I've cloned it in my directory but I'm new to Ubuntu and don't know how to install and use from Github. There's no src directory
to call make
from.
gcc github
I'd like to know how to compile with this version of GCC from Github:
https://github.com/parmance/par_offload
I've cloned it in my directory but I'm new to Ubuntu and don't know how to install and use from Github. There's no src directory
to call make
from.
gcc github
gcc github
asked Jun 3 at 18:58
kalikali
31 bronze badge
31 bronze badge
Shouldn't the Makefile in the main directory be what you want?
– Hagen von Eitzen
Jun 3 at 21:34
If I type "make" in the main directory I get the error "no targets specified and no makefile found"
– kali
Jun 4 at 8:54
"par_offload" is a gcc version. See 2.2 System Requirements linuxfromscratch.org/lfs/downloads/stable/… .... Building "par_offload" :cd [folder-with-par_offload] && mkdir build-par_offload && cd build-par_offload/ && ../par_offload/configure --prefix=/usr/local/gcc82 --program-suffix=82 --enable-languages=c,c++ --disable-multilib --disable-libstdcxx-pch && make && sudo make install
– Knud Larsen
Jun 4 at 17:35
@Knud Larsen after trying out your answer , I did manage to build this version of gcc. However , when trying to compile MyFile.cc with g++ -std=c++17 -fpar_offload MyFile.cc -o MyFile I get the error "-fpar_offload not found , did you mean -foffload" . Does this occur because I need something else installed or because of the par_offload gcc?
– kali
Jun 4 at 19:35
The version appears to begcc version 9.0.0 20180509 (experimental) (GCC)
. ... (I guessed on 8.2.0) . ... I renamed to /usr/local/gcc82/bin/gcc9, g++9. My OK "test command" is$ g++9 -std=c++17 -fpar-offload cc-new.cc
, (where "cc-new.cc" is my test file.) Note : Do not use g++ but g++-[new-name]. ... Note2 : No underscore in option "-fpar-offload".
– Knud Larsen
Jun 4 at 20:34
|
show 1 more comment
Shouldn't the Makefile in the main directory be what you want?
– Hagen von Eitzen
Jun 3 at 21:34
If I type "make" in the main directory I get the error "no targets specified and no makefile found"
– kali
Jun 4 at 8:54
"par_offload" is a gcc version. See 2.2 System Requirements linuxfromscratch.org/lfs/downloads/stable/… .... Building "par_offload" :cd [folder-with-par_offload] && mkdir build-par_offload && cd build-par_offload/ && ../par_offload/configure --prefix=/usr/local/gcc82 --program-suffix=82 --enable-languages=c,c++ --disable-multilib --disable-libstdcxx-pch && make && sudo make install
– Knud Larsen
Jun 4 at 17:35
@Knud Larsen after trying out your answer , I did manage to build this version of gcc. However , when trying to compile MyFile.cc with g++ -std=c++17 -fpar_offload MyFile.cc -o MyFile I get the error "-fpar_offload not found , did you mean -foffload" . Does this occur because I need something else installed or because of the par_offload gcc?
– kali
Jun 4 at 19:35
The version appears to begcc version 9.0.0 20180509 (experimental) (GCC)
. ... (I guessed on 8.2.0) . ... I renamed to /usr/local/gcc82/bin/gcc9, g++9. My OK "test command" is$ g++9 -std=c++17 -fpar-offload cc-new.cc
, (where "cc-new.cc" is my test file.) Note : Do not use g++ but g++-[new-name]. ... Note2 : No underscore in option "-fpar-offload".
– Knud Larsen
Jun 4 at 20:34
Shouldn't the Makefile in the main directory be what you want?
– Hagen von Eitzen
Jun 3 at 21:34
Shouldn't the Makefile in the main directory be what you want?
– Hagen von Eitzen
Jun 3 at 21:34
If I type "make" in the main directory I get the error "no targets specified and no makefile found"
– kali
Jun 4 at 8:54
If I type "make" in the main directory I get the error "no targets specified and no makefile found"
– kali
Jun 4 at 8:54
"par_offload" is a gcc version. See 2.2 System Requirements linuxfromscratch.org/lfs/downloads/stable/… .... Building "par_offload" :
cd [folder-with-par_offload] && mkdir build-par_offload && cd build-par_offload/ && ../par_offload/configure --prefix=/usr/local/gcc82 --program-suffix=82 --enable-languages=c,c++ --disable-multilib --disable-libstdcxx-pch && make && sudo make install
– Knud Larsen
Jun 4 at 17:35
"par_offload" is a gcc version. See 2.2 System Requirements linuxfromscratch.org/lfs/downloads/stable/… .... Building "par_offload" :
cd [folder-with-par_offload] && mkdir build-par_offload && cd build-par_offload/ && ../par_offload/configure --prefix=/usr/local/gcc82 --program-suffix=82 --enable-languages=c,c++ --disable-multilib --disable-libstdcxx-pch && make && sudo make install
– Knud Larsen
Jun 4 at 17:35
@Knud Larsen after trying out your answer , I did manage to build this version of gcc. However , when trying to compile MyFile.cc with g++ -std=c++17 -fpar_offload MyFile.cc -o MyFile I get the error "-fpar_offload not found , did you mean -foffload" . Does this occur because I need something else installed or because of the par_offload gcc?
– kali
Jun 4 at 19:35
@Knud Larsen after trying out your answer , I did manage to build this version of gcc. However , when trying to compile MyFile.cc with g++ -std=c++17 -fpar_offload MyFile.cc -o MyFile I get the error "-fpar_offload not found , did you mean -foffload" . Does this occur because I need something else installed or because of the par_offload gcc?
– kali
Jun 4 at 19:35
The version appears to be
gcc version 9.0.0 20180509 (experimental) (GCC)
. ... (I guessed on 8.2.0) . ... I renamed to /usr/local/gcc82/bin/gcc9, g++9. My OK "test command" is $ g++9 -std=c++17 -fpar-offload cc-new.cc
, (where "cc-new.cc" is my test file.) Note : Do not use g++ but g++-[new-name]. ... Note2 : No underscore in option "-fpar-offload".– Knud Larsen
Jun 4 at 20:34
The version appears to be
gcc version 9.0.0 20180509 (experimental) (GCC)
. ... (I guessed on 8.2.0) . ... I renamed to /usr/local/gcc82/bin/gcc9, g++9. My OK "test command" is $ g++9 -std=c++17 -fpar-offload cc-new.cc
, (where "cc-new.cc" is my test file.) Note : Do not use g++ but g++-[new-name]. ... Note2 : No underscore in option "-fpar-offload".– Knud Larsen
Jun 4 at 20:34
|
show 1 more comment
1 Answer
1
active
oldest
votes
GCC, the Ubuntu build prerequisites are : sudo apt install g++ autoconf libtool gawk flex bison binutils-dev libelf-dev libmpfr-dev libgmp-dev libmpc-dev texinfo
Prepare the OS for a "gcc build" : Make /bin/sh a link to bash → cd /bin/ && sudo rm -f sh && sudo ln -s bash sh
Build the "experimental par_offload gcc-9.0.0" : gcc requires a build directory outside the source code directory ....
cd [folder-with-par_offload]
mkdir build-par_offload
cd build-par_offload/
../par_offload/configure --prefix=/usr/local/gcc9 --program-suffix=9 --enable-languages=c,c++ --disable-multilib --disable-libstdcxx-pch
make
sudo make install
cd /usr/bin/
sudo ln -s /usr/local/gcc9/bin/gcc9
sudo ln -s /usr/local/gcc9/bin/g++9
My "OK test command" is $ g++9 -std=c++17 -fpar-offload cc-new.cc
, (where "cc-new.cc" is my test file.) : The file a.out
is created.
add a comment
|
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1148359%2fcompile-with-gcc-from-github%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
GCC, the Ubuntu build prerequisites are : sudo apt install g++ autoconf libtool gawk flex bison binutils-dev libelf-dev libmpfr-dev libgmp-dev libmpc-dev texinfo
Prepare the OS for a "gcc build" : Make /bin/sh a link to bash → cd /bin/ && sudo rm -f sh && sudo ln -s bash sh
Build the "experimental par_offload gcc-9.0.0" : gcc requires a build directory outside the source code directory ....
cd [folder-with-par_offload]
mkdir build-par_offload
cd build-par_offload/
../par_offload/configure --prefix=/usr/local/gcc9 --program-suffix=9 --enable-languages=c,c++ --disable-multilib --disable-libstdcxx-pch
make
sudo make install
cd /usr/bin/
sudo ln -s /usr/local/gcc9/bin/gcc9
sudo ln -s /usr/local/gcc9/bin/g++9
My "OK test command" is $ g++9 -std=c++17 -fpar-offload cc-new.cc
, (where "cc-new.cc" is my test file.) : The file a.out
is created.
add a comment
|
GCC, the Ubuntu build prerequisites are : sudo apt install g++ autoconf libtool gawk flex bison binutils-dev libelf-dev libmpfr-dev libgmp-dev libmpc-dev texinfo
Prepare the OS for a "gcc build" : Make /bin/sh a link to bash → cd /bin/ && sudo rm -f sh && sudo ln -s bash sh
Build the "experimental par_offload gcc-9.0.0" : gcc requires a build directory outside the source code directory ....
cd [folder-with-par_offload]
mkdir build-par_offload
cd build-par_offload/
../par_offload/configure --prefix=/usr/local/gcc9 --program-suffix=9 --enable-languages=c,c++ --disable-multilib --disable-libstdcxx-pch
make
sudo make install
cd /usr/bin/
sudo ln -s /usr/local/gcc9/bin/gcc9
sudo ln -s /usr/local/gcc9/bin/g++9
My "OK test command" is $ g++9 -std=c++17 -fpar-offload cc-new.cc
, (where "cc-new.cc" is my test file.) : The file a.out
is created.
add a comment
|
GCC, the Ubuntu build prerequisites are : sudo apt install g++ autoconf libtool gawk flex bison binutils-dev libelf-dev libmpfr-dev libgmp-dev libmpc-dev texinfo
Prepare the OS for a "gcc build" : Make /bin/sh a link to bash → cd /bin/ && sudo rm -f sh && sudo ln -s bash sh
Build the "experimental par_offload gcc-9.0.0" : gcc requires a build directory outside the source code directory ....
cd [folder-with-par_offload]
mkdir build-par_offload
cd build-par_offload/
../par_offload/configure --prefix=/usr/local/gcc9 --program-suffix=9 --enable-languages=c,c++ --disable-multilib --disable-libstdcxx-pch
make
sudo make install
cd /usr/bin/
sudo ln -s /usr/local/gcc9/bin/gcc9
sudo ln -s /usr/local/gcc9/bin/g++9
My "OK test command" is $ g++9 -std=c++17 -fpar-offload cc-new.cc
, (where "cc-new.cc" is my test file.) : The file a.out
is created.
GCC, the Ubuntu build prerequisites are : sudo apt install g++ autoconf libtool gawk flex bison binutils-dev libelf-dev libmpfr-dev libgmp-dev libmpc-dev texinfo
Prepare the OS for a "gcc build" : Make /bin/sh a link to bash → cd /bin/ && sudo rm -f sh && sudo ln -s bash sh
Build the "experimental par_offload gcc-9.0.0" : gcc requires a build directory outside the source code directory ....
cd [folder-with-par_offload]
mkdir build-par_offload
cd build-par_offload/
../par_offload/configure --prefix=/usr/local/gcc9 --program-suffix=9 --enable-languages=c,c++ --disable-multilib --disable-libstdcxx-pch
make
sudo make install
cd /usr/bin/
sudo ln -s /usr/local/gcc9/bin/gcc9
sudo ln -s /usr/local/gcc9/bin/g++9
My "OK test command" is $ g++9 -std=c++17 -fpar-offload cc-new.cc
, (where "cc-new.cc" is my test file.) : The file a.out
is created.
edited Jun 5 at 19:48
answered Jun 4 at 21:25
Knud LarsenKnud Larsen
1,8411 gold badge7 silver badges9 bronze badges
1,8411 gold badge7 silver badges9 bronze badges
add a comment
|
add a comment
|
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1148359%2fcompile-with-gcc-from-github%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Shouldn't the Makefile in the main directory be what you want?
– Hagen von Eitzen
Jun 3 at 21:34
If I type "make" in the main directory I get the error "no targets specified and no makefile found"
– kali
Jun 4 at 8:54
"par_offload" is a gcc version. See 2.2 System Requirements linuxfromscratch.org/lfs/downloads/stable/… .... Building "par_offload" :
cd [folder-with-par_offload] && mkdir build-par_offload && cd build-par_offload/ && ../par_offload/configure --prefix=/usr/local/gcc82 --program-suffix=82 --enable-languages=c,c++ --disable-multilib --disable-libstdcxx-pch && make && sudo make install
– Knud Larsen
Jun 4 at 17:35
@Knud Larsen after trying out your answer , I did manage to build this version of gcc. However , when trying to compile MyFile.cc with g++ -std=c++17 -fpar_offload MyFile.cc -o MyFile I get the error "-fpar_offload not found , did you mean -foffload" . Does this occur because I need something else installed or because of the par_offload gcc?
– kali
Jun 4 at 19:35
The version appears to be
gcc version 9.0.0 20180509 (experimental) (GCC)
. ... (I guessed on 8.2.0) . ... I renamed to /usr/local/gcc82/bin/gcc9, g++9. My OK "test command" is$ g++9 -std=c++17 -fpar-offload cc-new.cc
, (where "cc-new.cc" is my test file.) Note : Do not use g++ but g++-[new-name]. ... Note2 : No underscore in option "-fpar-offload".– Knud Larsen
Jun 4 at 20:34