On Sat, 13 Aug 2011 16:42:13 +0200
Björn Persson <bj...@xn--rombobjrn-67a.se> wrote:

> Ilyes Gouta wrote:
> > I'm trying to put together an initial spec file for Fedora.
> 
> According to PathScale's license document their products are partly
> free and partly unfree. You can of course only package the free
> parts. How useful are they without the unfree parts?
> 
> Björn Persson

http://www.pathscale.com/ekopath4-open-source-announcement
June 13th, 2011

"PathScale announced today that the EKOPath 4 Compiler Suite is now
available as an open source project and free download for Linux,
FreeBSD and Solaris. This release includes documentation and the
complete development stack, including compiler, debugger, assembler,
runtimes and standard libraries. EKOPath is the product of years of
ongoing development, representing one of the industries highest
performance Intel 64 and AMD C, C++ and Fortran compilers."


The sources seem to be available at
 https://github.com/path64 

The compiler part is GPLv3, the debugger is CDDL. I tried to get the
compiler packaged for a few hours, but ran into some problems in the
build phase; the compiler segfaulted in the bootstrap phase. This was
on Fedora 15. My spec file is attached, maybe someone can get it to
build.
-- 
Jussi Lehtola
Fedora Project Contributor
jussileht...@fedoraproject.org
# Git snapshot version
%global gitver 20326a5
# Version of system GCC
%global gccver 4.6

Name:		path64-compiler
Version:	4.0.10
Release:	1.%{gitver}git%{?dist}
Summary:	PathScale EKOPath compiler suite

Group:		Development/Languages
License:	GPLv3
URL:		http://www.pathscale.com/ekopath-compiler-suite
# Tarball got from https://github.com/path64/compiler/tarball/4.0.10
# it is automatically generated, so checksums might not match
Source0:	path64-compiler-%{version}-0-g%{gitver}.tar.gz
BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
ExclusiveArch:	x86_64 %{ix86}

BuildRequires:	cmake
BuildRequires:	gcc-gfortran
BuildRequires:	glibc-static%{?_isa}

%description
The PathScale® EKOPath Compiler Suite offers programmers a rich set of tools
and one of the world's most sophisticated optimization infrastructures to
maximize program performance on any Intel® 64 or AMD64 platform supporting
Intel® MMX™, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AMD SSE4A and AVX.

* Intel® 64 & AMD64 performance tuned
* ISO C99/C++ 2003 & GNU compatible
* Fortran 90/95 and 2003
* Industry proven robustness and quality

%prep
%setup -q -n %{name}-%{gitver}

%build
mkdir objdir-%{_target_platform} 
cd objdir-%{_target_platform} 

gccdir=`echo %{_target_platform} | sed 's|-gnu||g'`
gccdir=/usr/lib/gcc/$gccdir/%{gccver}

%ifarch x86_64
export plat=x86_64
%else
export plat=x86_32
%endif

# The build will use the compiled compiler. Need to remove GNU specific flags from OPTFLAGS
#export CFLAGS=`echo %{optflags} | sed "s|-fstack-protector||g;s|--param=ssp-buffer-size=4||g;s|-mtune=generic||g"`
export CFLAGS="-Wall"
export CXXFLAGS=$CFLAGS
export FFLAGS=$CFLAGS

%{cmake} \
	-DPATH64_ENABLE_TARGETS=${plat} \
	-DPATH64_ENABLE_MATHLIBS=ON \
	-DPATH64_ENABLE_FORTRAN=ON \
	-DPATH64_ENABLE_HUGEPAGES=ON \
	-DPATH64_ENABLE_OPENMP=ON \
	-DCMAKE_BUILD_TYPE=Release \
	-DPSC_CRT_PATH_${plat}=%{_libdir} \
%ifarch x86_64
	-DPSC_DYNAMIC_LINKER_${plat}=/%{_lib}/ld-linux-x86-64.so.2 \
%else
	-DPSC_DYNAMIC_LINKER_${plat}=/%{_lib}/ld-linux.so.2 \
%endif
	-DPSC_CRT_PATH_${plat}=%{_libdir} \
	-DPSC_LIBSUPCPP_PATH_${plat}=$gccdir \
	-DPSC_LIBSTDCPP_PATH_${plat}=$gccdir \
	-DPSC_LIBGCC_PATH_${plat}=$gccdir \
	-DPSC_LIBGCC_EH_PATH_${plat}=$gccdir \
	-DPSC_LIBGCC_S_PATH_${plat}=$gccdir \
	..
#make %{?_smp_mflags} VERBOSE=1
make VERBOSE=1

%install
rm -rf %{buildroot}
make -C objdir-%{_target_platform} install DESTDIR=%{buildroot}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc



%changelog

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Reply via email to