public inbox for gentoo-science@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-science] Question before setting up sage-on-gentoo
@ 2015-01-26 13:42 JC D
  2015-01-26 17:44 ` François Bissey
  0 siblings, 1 reply; 5+ messages in thread
From: JC D @ 2015-01-26 13:42 UTC (permalink / raw
  To: gentoo-science@lists.gentoo.org

[-- Attachment #1: Type: text/plain, Size: 615 bytes --]

Hi!I want to install sage-on-gentoo using gentoo_prefix on a Mac OS 10.10.My first try was not successful and it seems it was related to the "kind of outdated" gcc-apple compiler that is originally used in gentoo_prefix on Mac.
I have a question: Would it be possible to install a more recent gcc such as gcc-4.8 (as soon as it is unmasked) and then build the whole sage-on-gentoo with this compiler, but keeping the rest untouched?
And how could I do this? Would it be possible to set up layman using the gcc-4.8 for everything in the overlay or could I use /etc/portage/env for that? 
Best regards from a newbie


[-- Attachment #2: Type: text/html, Size: 1957 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-science] Question before setting up sage-on-gentoo
  2015-01-26 13:42 [gentoo-science] Question before setting up sage-on-gentoo JC D
@ 2015-01-26 17:44 ` François Bissey
  2015-01-29 14:21   ` JC D
  0 siblings, 1 reply; 5+ messages in thread
From: François Bissey @ 2015-01-26 17:44 UTC (permalink / raw
  To: gentoo-science

Hi,

Well that would be an interesting experiment. You may have to limit yourself
to gcc 4.7.x, I haven’t been able to get 4.8 to compile and I think that the old
binutils is too blame. For env you could set CC CXX F77 and FC with the
appropriate x86_64-apple-darwin14-{gcc,g++,gfortran}-4.7.3 value.
I would be interested in your experience if you decide to go ahead.

François
> On 27/01/2015, at 02:42, JC D <mail2jcdx@yahoo.de> wrote:
> 
> Hi!
> I want to install sage-on-gentoo using gentoo_prefix on a Mac OS 10.10.
> My first try was not successful and it seems it was related to the "kind of outdated" gcc-apple compiler that is originally used in gentoo_prefix on Mac.
> I have a question: Would it be possible to install a more recent gcc such as gcc-4.8 (as soon as it is unmasked) and then build the whole sage-on-gentoo with this compiler, but keeping the rest untouched?
> And how could I do this? Would it be possible to set up layman using the gcc-4.8 for everything in the overlay or could I use /etc/portage/env for that? 
> Best regards from a newbie
> 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-science] Question before setting up sage-on-gentoo
  2015-01-26 17:44 ` François Bissey
@ 2015-01-29 14:21   ` JC D
  2015-01-29 19:09     ` François Bissey
  2015-01-30  0:04     ` [gentoo-science] clang on Mac OS X (Was: Question before setting up sage-on-gentoo) heroxbd
  0 siblings, 2 replies; 5+ messages in thread
From: JC D @ 2015-01-29 14:21 UTC (permalink / raw
  To: gentoo-science@lists.gentoo.org

[-- Attachment #1: Type: text/plain, Size: 2467 bytes --]

Hi,here are the first results. It did not work so far because I found my gcc-4.7.3 on gentoo_prefix (Mac OS 10.10) is broken. emerge gcc works and installs but if I try to compile a simple hello.cpp I get a segmentation fault 11. I am using the new binutils-apple-6.1. So far it seems that I can not get a newer gcc and thus also no llvm or any other package that asks for a more recent gcc. Right now I get a working basic system but almost all "higher" application fail to build one or the other way.

Now I try to get llvm/clang working. For the compilation I am going to use the native llvm-gcc and llvm-g++ from Mac. 
I set up a package.env for llvm with:sys-devel/llvm llvm.conf
llvm.conf contains:CC=/usr/bin/llvm-gcc
CXX=/usr/bin/llvm-g++

The compilation works but there is an error when writing the llvm files to the right path. Here are emerge --infoshow at bpaste 
|   |
|   |  |   |   |   |   |   |
| show at bpastePortage 2.2.14-prefix (python 3.3.3-final-0, prefix/darwin/macos/10.10/x64, gcc-4.2.1, unavailable, 14.1.0 x86_64)==================================... |
|  |
| Auf bpaste.net anzeigen | Vorschau nach Yahoo |
|  |
|   |

and the log file https://bpaste.net/show/62a0d5b0d4f4
I will experiment further ... 
 
 

     François Bissey <frp.bissey@gmail.com> schrieb am 18:45 Montag, 26.Januar 2015:
   

 Hi,

Well that would be an interesting experiment. You may have to limit yourself
to gcc 4.7.x, I haven’t been able to get 4.8 to compile and I think that the old
binutils is too blame. For env you could set CC CXX F77 and FC with the
appropriate x86_64-apple-darwin14-{gcc,g++,gfortran}-4.7.3 value.
I would be interested in your experience if you decide to go ahead.

François
> On 27/01/2015, at 02:42, JC D <mail2jcdx@yahoo.de> wrote:
> 
> Hi!
> I want to install sage-on-gentoo using gentoo_prefix on a Mac OS 10.10.
> My first try was not successful and it seems it was related to the "kind of outdated" gcc-apple compiler that is originally used in gentoo_prefix on Mac.
> I have a question: Would it be possible to install a more recent gcc such as gcc-4.8 (as soon as it is unmasked) and then build the whole sage-on-gentoo with this compiler, but keeping the rest untouched?
> And how could I do this? Would it be possible to set up layman using the gcc-4.8 for everything in the overlay or could I use /etc/portage/env for that? 
> Best regards from a newbie
> 



   

[-- Attachment #2: Type: text/html, Size: 12840 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-science] Question before setting up sage-on-gentoo
  2015-01-29 14:21   ` JC D
@ 2015-01-29 19:09     ` François Bissey
  2015-01-30  0:04     ` [gentoo-science] clang on Mac OS X (Was: Question before setting up sage-on-gentoo) heroxbd
  1 sibling, 0 replies; 5+ messages in thread
From: François Bissey @ 2015-01-29 19:09 UTC (permalink / raw
  To: gentoo-science

[-- Attachment #1: Type: text/plain, Size: 240 bytes --]

That really belongs to gentoo-alt. Anyway the current ebuild in prefix misses one 
bit, probably because it is so difficult to get there traditionally in the first place.
Apply the attached patch to the ebuild for llvm-3.5.0.

François

[-- Attachment #2: llvm-3.5.0.ebuild.patch --]
[-- Type: application/octet-stream, Size: 811 bytes --]

--- usr/portage/sys-devel/llvm/llvm-3.5.0.ebuild	2015-01-02 10:54:16.000000000 +1300
+++ Overlays/local/sys-devel/llvm/llvm-3.5.0.ebuild	2015-01-19 13:33:19.000000000 +1300
@@ -438,7 +439,7 @@
 	if [[ ${CHOST} == *-darwin* ]] ; then
 		eval $(grep PACKAGE_VERSION= configure)
 		[[ -n ${PACKAGE_VERSION} ]] && libpv=${PACKAGE_VERSION}
-		for lib in lib{EnhancedDisassembly,LLVM-${libpv},LTO,profile_rt,clang}.dylib LLVMHello.dylib clang/${libpv}/lib/darwin/libclang_rt.asan_osx_dynamic.dylib; do
+		for lib in lib{EnhancedDisassembly,LLVM-${libpv},LTO,profile_rt,clang}.dylib LLVMHello.dylib clang/${libpv}/lib/darwin/libclang_rt.asan_{osx,iossim}_dynamic.dylib; do
 			# libEnhancedDisassembly is Darwin10 only, so non-fatal
 			# + omit clang libs if not enabled
 			[[ -f ${ED}/usr/lib/${lib} ]] || continue

[-- Attachment #3: Type: text/plain, Size: 2603 bytes --]


> On 30/01/2015, at 03:21, JC D <mail2jcdx@yahoo.de> wrote:
> 
> Hi,
> here are the first results. It did not work so far because I found my gcc-4.7.3 on gentoo_prefix (Mac OS 10.10) is broken. emerge gcc works and installs but if I try to compile a simple hello.cpp I get a segmentation fault 11. I am using the new binutils-apple-6.1. So far it seems that I can not get a newer gcc and thus also no llvm or any other package that asks for a more recent gcc. Right now I get a working basic system but almost all "higher" application fail to build one or the other way.
> 
> Now I try to get llvm/clang working. For the compilation I am going to use the native llvm-gcc and llvm-g++ from Mac. 
> I set up a package.env for llvm with:
> sys-devel/llvm llvm.conf
> 
> llvm.conf contains:
> CC=/usr/bin/llvm-gcc
> CXX=/usr/bin/llvm-g++
> 
> The compilation works but there is an error when writing the llvm files to the right path. Here are emerge --info
> show at bpaste 
>  
>  
> 
>  
>  
>  
>  
>  
> show at bpaste
> Portage 2.2.14-prefix (python 3.3.3-final-0, prefix/darwin/macos/10.10/x64, gcc-4.2.1, unavailable, 14.1.0 x86_64) ==================================...
> Auf bpaste.net anzeigen
> Vorschau nach Yahoo
>  
> and the log file https://bpaste.net/show/62a0d5b0d4f4
> 
> I will experiment further ... 
> 
> 
> 
> François Bissey <frp.bissey@gmail.com> schrieb am 18:45 Montag, 26.Januar 2015:
> 
> 
> Hi,
> 
> Well that would be an interesting experiment. You may have to limit yourself
> to gcc 4.7.x, I haven’t been able to get 4.8 to compile and I think that the old
> binutils is too blame. For env you could set CC CXX F77 and FC with the
> appropriate x86_64-apple-darwin14-{gcc,g++,gfortran}-4.7.3 value.
> I would be interested in your experience if you decide to go ahead.
> 
> François
> 
> > On 27/01/2015, at 02:42, JC D <mail2jcdx@yahoo.de> wrote:
> > 
> > Hi!
> > I want to install sage-on-gentoo using gentoo_prefix on a Mac OS 10.10.
> > My first try was not successful and it seems it was related to the "kind of outdated" gcc-apple compiler that is originally used in gentoo_prefix on Mac.
> > I have a question: Would it be possible to install a more recent gcc such as gcc-4.8 (as soon as it is unmasked) and then build the whole sage-on-gentoo with this compiler, but keeping the rest untouched?
> > And how could I do this? Would it be possible to set up layman using the gcc-4.8 for everything in the overlay or could I use /etc/portage/env for that? 
> > Best regards from a newbie
> > 
> 
> 
> 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [gentoo-science] clang on Mac OS X (Was: Question before setting up sage-on-gentoo)
  2015-01-29 14:21   ` JC D
  2015-01-29 19:09     ` François Bissey
@ 2015-01-30  0:04     ` heroxbd
  1 sibling, 0 replies; 5+ messages in thread
From: heroxbd @ 2015-01-30  0:04 UTC (permalink / raw
  To: gentoo-science; +Cc: gentoo-alt

Hi,

There are efforts on-going to make modern toolchain on gentoo-prefix @
darwin.

I am sure guys from gentoo-alt (in the Cc) will show you the most recent
progress.

Benda

JC D <mail2jcdx@yahoo.de> writes:

> here are the first results. It did not work so far because I found my
> gcc-4.7.3 on gentoo_prefix (Mac OS 10.10) is broken. emerge gcc works
> and installs but if I try to compile a simple hello.cpp I get a
> segmentation fault 11. I am using the new binutils-apple-6.1. So far
> it seems that I can not get a newer gcc and thus also no llvm or any
> other package that asks for a more recent gcc. Right now I get a
> working basic system but almost all "higher" application fail to build
> one or the other way.
>
> Now I try to get llvm/clang working. For the compilation I am going to
> use the native llvm-gcc and llvm-g++ from Mac. 
> I set up a package.env for llvm with:
> sys-devel/llvm llvm.conf
>
> llvm.conf contains:
> CC=/usr/bin/llvm-gcc
> CXX=/usr/bin/llvm-g++
>
> The compilation works but there is an error when writing the llvm
> files to the right path. Here are emerge --info
> show at bpaste 
>
>                                                               
>                                                               
>                                                               
>                                      image                    
>                                                               
>  show at bpaste                                               
>  Portage 2.2.14-prefix (python                                
>  3.3.3-final-0,                                               
>  prefix/darwin/macos/10.10/x64,                               
>  gcc-4.2.1, unavailable, 14.1.0                               
>  x86_64)                                                      
>  ==================================.                          
>  ..                                                           
>                                                               
>                                                               
>                                                               
>  Auf bpaste.net anzeigen             Vorschau nach Yahoo      
>                                                               
>                                                               
>                                                               
>                                                               
>                                                               
> image
> and the log file https://bpaste.net/show/62a0d5b0d4f4
>
> I will experiment further ... 


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-01-30  0:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-26 13:42 [gentoo-science] Question before setting up sage-on-gentoo JC D
2015-01-26 17:44 ` François Bissey
2015-01-29 14:21   ` JC D
2015-01-29 19:09     ` François Bissey
2015-01-30  0:04     ` [gentoo-science] clang on Mac OS X (Was: Question before setting up sage-on-gentoo) heroxbd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox