Looking for errors in a mingw cabal build

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Looking for errors in a mingw cabal build

Maurí­cio CA
Hi,

One user of my package bindings-gsl reports a problem when building in a
mingw environment. Cabal returns with an 'ExitFailure' message, following
what at first I thought to be the error reason: a message saying that
"</c/Haskell/2011.2.0.1/mingw/include> is a relative path."

However, a second test with a minimal package, with just enough to build
and a pkgconfig-depends on gsl, shows that same "relative path" message,
but doesn't fail to build and install.

So, I'm not sure where to look for problems. Do you know of anything
that go wrong in mingw without error messages showing up?

Thanks for your help,
Maurício

P.S.: I'm appending a build log, in case it helps.

Resolving dependencies...
Configuring bindings-gsl-0.2...
Preprocessing library bindings-gsl-0.2...
Building bindings-gsl-0.2...
[ 1 of 45] Compiling Bindings.Gsl.VectorsAndMatrices.DataTypes ( dist\build\Bindings\Gsl\VectorsAndMatrices\DataTypes.hs, dist\build\Bindings\Gsl\VectorsAndMatrices\DataTypes.o )
[ 2 of 45] Compiling Bindings.Gsl.VectorsAndMatrices.Blocks ( dist\build\Bindings\Gsl\VectorsAndMatrices\Blocks.hs, dist\build\Bindings\Gsl\VectorsAndMatrices\Blocks.o )
[ 3 of 45] Compiling Bindings.Gsl.WaveletTransforms ( dist\build\Bindings\Gsl\WaveletTransforms.hs, dist\build\Bindings\Gsl\WaveletTransforms.o )
[ 4 of 45] Compiling Bindings.Gsl.Version ( dist\build\Bindings\Gsl\Version.hs, dist\build\Bindings\Gsl\Version.o )
[ 5 of 45] Compiling Bindings.Gsl.Statistics ( dist\build\Bindings\Gsl\Statistics.hs, dist\build\Bindings\Gsl\Statistics.o )
[ 6 of 45] Compiling Bindings.Gsl.SeriesAcceleration ( dist\build\Bindings\Gsl\SeriesAcceleration.hs, dist\build\Bindings\Gsl\SeriesAcceleration.o )
[ 7 of 45] Compiling Bindings.Gsl.RandomNumberGeneration ( dist\build\Bindings\Gsl\RandomNumberGeneration.hs, dist\build\Bindings\Gsl\RandomNumberGeneration.o )
[ 8 of 45] Compiling Bindings.Gsl.SimulatedAnnealing ( dist\build\Bindings\Gsl\SimulatedAnnealing.hs, dist\build\Bindings\Gsl\SimulatedAnnealing.o )
[ 9 of 45] Compiling Bindings.Gsl.RandomNumberDistributions ( dist\build\Bindings\Gsl\RandomNumberDistributions.hs, dist\build\Bindings\Gsl\RandomNumberDistributions.o )
[10 of 45] Compiling Bindings.Gsl.QuasiRandomSequences ( dist\build\Bindings\Gsl\QuasiRandomSequences.hs, dist\build\Bindings\Gsl\QuasiRandomSequences.o )
[11 of 45] Compiling Bindings.Gsl.PhysicalConstants ( dist\build\Bindings\Gsl\PhysicalConstants.hs, dist\build\Bindings\Gsl\PhysicalConstants.o )
[12 of 45] Compiling Bindings.Gsl.Permutations ( dist\build\Bindings\Gsl\Permutations.hs, dist\build\Bindings\Gsl\Permutations.o )
[13 of 45] Compiling Bindings.Gsl.Sorting ( dist\build\Bindings\Gsl\Sorting.hs, dist\build\Bindings\Gsl\Sorting.o )
[14 of 45] Compiling Bindings.Gsl.OrdinaryDifferentialEquations ( dist\build\Bindings\Gsl\OrdinaryDifferentialEquations.hs, dist\build\Bindings\Gsl\OrdinaryDifferentialEquations.o )
[15 of 45] Compiling Bindings.Gsl.MultidimensionalRootFinding ( dist\build\Bindings\Gsl\MultidimensionalRootFinding.hs, dist\build\Bindings\Gsl\MultidimensionalRootFinding.o )
[16 of 45] Compiling Bindings.Gsl.MultidimensionalMinimization ( dist\build\Bindings\Gsl\MultidimensionalMinimization.hs, dist\build\Bindings\Gsl\MultidimensionalMinimization.o )
[17 of 45] Compiling Bindings.Gsl.MonteCarloIntegration ( dist\build\Bindings\Gsl\MonteCarloIntegration.hs, dist\build\Bindings\Gsl\MonteCarloIntegration.o )
[18 of 45] Compiling Bindings.Gsl.MathematicalFunctions ( dist\build\Bindings\Gsl\MathematicalFunctions.hs, dist\build\Bindings\Gsl\MathematicalFunctions.o )
[19 of 45] Compiling Bindings.Gsl.NumericalDifferentiation ( dist\build\Bindings\Gsl\NumericalDifferentiation.hs, dist\build\Bindings\Gsl\NumericalDifferentiation.o )
[20 of 45] Compiling Bindings.Gsl.NumericalIntegration ( dist\build\Bindings\Gsl\NumericalIntegration.hs, dist\build\Bindings\Gsl\NumericalIntegration.o )
[21 of 45] Compiling Bindings.Gsl.OneDimensionalMinimization ( dist\build\Bindings\Gsl\OneDimensionalMinimization.hs, dist\build\Bindings\Gsl\OneDimensionalMinimization.o )
[22 of 45] Compiling Bindings.Gsl.OneDimensionalRootFinding ( dist\build\Bindings\Gsl\OneDimensionalRootFinding.hs, dist\build\Bindings\Gsl\OneDimensionalRootFinding.o )
[23 of 45] Compiling Bindings.Gsl.LeastSquaresFitting ( dist\build\Bindings\Gsl\LeastSquaresFitting.hs, dist\build\Bindings\Gsl\LeastSquaresFitting.o )
[24 of 45] Compiling Bindings.Gsl.Interpolation ( dist\build\Bindings\Gsl\Interpolation.hs, dist\build\Bindings\Gsl\Interpolation.o )
[25 of 45] Compiling Bindings.Gsl.IeeeFloatingPointArithmetic ( dist\build\Bindings\Gsl\IeeeFloatingPointArithmetic.hs, dist\build\Bindings\Gsl\IeeeFloatingPointArithmetic.o )
[26 of 45] Compiling Bindings.Gsl.Histograms ( dist\build\Bindings\Gsl\Histograms.hs, dist\build\Bindings\Gsl\Histograms.o )
[27 of 45] Compiling Bindings.Gsl.NTuples ( dist\build\Bindings\Gsl\NTuples.hs, dist\build\Bindings\Gsl\NTuples.o )
[28 of 45] Compiling Bindings.Gsl.ErrorHandling ( dist\build\Bindings\Gsl\ErrorHandling.hs, dist\build\Bindings\Gsl\ErrorHandling.o )
[29 of 45] Compiling Bindings.Gsl.DiscreteHankelTransforms ( dist\build\Bindings\Gsl\DiscreteHankelTransforms.hs, dist\build\Bindings\Gsl\DiscreteHankelTransforms.o )
[30 of 45] Compiling Bindings.Gsl.ComplexNumbers ( dist\build\Bindings\Gsl\ComplexNumbers.hs, dist\build\Bindings\Gsl\ComplexNumbers.o )
[31 of 45] Compiling Bindings.Gsl.FastFourierTransforms ( dist\build\Bindings\Gsl\FastFourierTransforms.hs, dist\build\Bindings\Gsl\FastFourierTransforms.o )
[32 of 45] Compiling Bindings.Gsl.Polynomials ( dist\build\Bindings\Gsl\Polynomials.hs, dist\build\Bindings\Gsl\Polynomials.o )
[33 of 45] Compiling Bindings.Gsl.VectorsAndMatrices.Matrices ( dist\build\Bindings\Gsl\VectorsAndMatrices\Matrices.hs, dist\build\Bindings\Gsl\VectorsAndMatrices\Matrices.o )
[34 of 45] Compiling Bindings.Gsl.VectorsAndMatrices.Vectors ( dist\build\Bindings\Gsl\VectorsAndMatrices\Vectors.hs, dist\build\Bindings\Gsl\VectorsAndMatrices\Vectors.o )
[35 of 45] Compiling Bindings.Gsl.VectorsAndMatrices ( src\Bindings\Gsl\VectorsAndMatrices.hs, dist\build\Bindings\Gsl\VectorsAndMatrices.o )
[36 of 45] Compiling Bindings.Gsl.Eigensystems ( dist\build\Bindings\Gsl\Eigensystems.hs, dist\build\Bindings\Gsl\Eigensystems.o )
[37 of 45] Compiling Bindings.Gsl.NonlinearLeastSquaresFitting ( dist\build\Bindings\Gsl\NonlinearLeastSquaresFitting.hs, dist\build\Bindings\Gsl\NonlinearLeastSquaresFitting.o )
[38 of 45] Compiling Bindings.Gsl.SpecialFunctions ( dist\build\Bindings\Gsl\SpecialFunctions.hs, dist\build\Bindings\Gsl\SpecialFunctions.o )
[39 of 45] Compiling Bindings.Gsl.LinearAlgebra ( dist\build\Bindings\Gsl\LinearAlgebra.hs, dist\build\Bindings\Gsl\LinearAlgebra.o )
[40 of 45] Compiling Bindings.Gsl.Combinations ( dist\build\Bindings\Gsl\Combinations.hs, dist\build\Bindings\Gsl\Combinations.o )
[41 of 45] Compiling Bindings.Gsl.ChebyshevApproximations ( dist\build\Bindings\Gsl\ChebyshevApproximations.hs, dist\build\Bindings\Gsl\ChebyshevApproximations.o )
[42 of 45] Compiling Bindings.Gsl.Cblas ( dist\build\Bindings\Gsl\Cblas.hs, dist\build\Bindings\Gsl\Cblas.o )
[43 of 45] Compiling Bindings.Gsl.BlasSupport ( dist\build\Bindings\Gsl\BlasSupport.hs, dist\build\Bindings\Gsl\BlasSupport.o )
[44 of 45] Compiling Bindings.Gsl.BasisSplines ( dist\build\Bindings\Gsl\BasisSplines.hs, dist\build\Bindings\Gsl\BasisSplines.o )
[45 of 45] Compiling Bindings.Gsl     ( src\Bindings\Gsl.hs, dist\build\Bindings\Gsl.o )
GNU ld (GNU Binutils) 2.20.51.20100613
  Supported emulations:
   i386pe
using internal linker script:
==================================================
/* Script for ld -r: link without relocation */
OUTPUT_FORMAT(pe-i386)
SEARCH_DIR("=/usr/local/lib"); SEARCH_DIR("=/lib"); SEARCH_DIR("=/usr/lib");
SECTIONS
{
  .text  :
  {
    *(.text)
    *(.glue_7t)
    *(.glue_7)
    /* ??? Why is .gcc_exc here?  */
  }
  /* The Cygwin32 library uses a section to avoid copying certain data
     on fork.  This used to be named ".data".  The linker used
     to include this between __data_start__ and __data_end__, but that
     breaks building the cygwin32 dll.  Instead, we name the section
     ".data_cygwin_nocopy" and explictly include it after __data_end__. */
  .data  :
  {
    *(.data)
    *(.data2)
    *(.jcr)
  }
  .rdata  :
  {
    *(.rdata)
    *(.rdata_runtime_pseudo_reloc)
  }
  .eh_frame  :
  {
    *(.eh_frame)
  }
  .pdata  :
  {
    *(.pdata)
  }
  .bss  :
  {
    *(.bss)
    *(COMMON)
  }
  .edata  :
  {
    *(.edata)
  }
  /DISCARD/ :
  {
    *(.debug$S)
    *(.debug$T)
    *(.debug$F)
    *(.drectve)
  }
  .idata  :
  {
    /* This cannot currently be handled with grouped sections.
        See pe.em:sort_sections.  */
  }
  .CRT  :
  {
    /* ___crt_xl_end__ is defined in the TLS Directory support code */
  }
  .tls  :
  {
  }
  .endjunk  :
  {
    /* end is deprecated, don't use it */
  }
  .rsrc  :
  {
    *(.rsrc)
  }
  .reloc  :
  {
    *(.reloc)
  }
  .stab   :
  {
    *(.stab)
  }
  .stabstr   :
  {
    *(.stabstr)
  }
  /* DWARF debug sections.
     Symbols in the DWARF debugging sections are relative to the beginning
     of the section.  Unlike other targets that fake this by putting the
     section VMA at 0, the PE format will not allow it.  */
  /* DWARF 1.1 and DWARF 2.  */
  .debug_aranges   :
  {
    *(.debug_aranges)
  }
  .debug_pubnames   :
  {
    *(.debug_pubnames)
  }
  .debug_pubtypes   :
  {
    *(.debug_pubtypes)
  }
  /* DWARF 2.  */
  .debug_info   :
  {
    *(.debug_info) *(.gnu.linkonce.wi.*)
  }
  .debug_abbrev   :
  {
    *(.debug_abbrev)
  }
  .debug_line   :
  {
    *(.debug_line)
  }
  .debug_frame   :
  {
    *(.debug_frame)
  }
  .debug_str   :
  {
    *(.debug_str)
  }
  .debug_loc   :
  {
    *(.debug_loc)
  }
  .debug_macinfo   :
  {
    *(.debug_macinfo)
  }
  /* SGI/MIPS DWARF 2 extensions.  */
  .debug_weaknames   :
  {
    *(.debug_weaknames)
  }
  .debug_funcnames   :
  {
    *(.debug_funcnames)
  }
  .debug_typenames   :
  {
    *(.debug_typenames)
  }
  .debug_varnames   :
  {
    *(.debug_varnames)
  }
  /* DWARF 3.  */
  .debug_ranges   :
  {
    *(.debug_ranges)
  }
}


==================================================
attempt to open dist\build\Bindings\Gsl.o succeeded
dist\build\Bindings\Gsl.o
attempt to open dist\build\Bindings\Gsl\BasisSplines.o succeeded
dist\build\Bindings\Gsl\BasisSplines.o
attempt to open dist\build\Bindings\Gsl\BlasSupport.o succeeded
dist\build\Bindings\Gsl\BlasSupport.o
attempt to open dist\build\Bindings\Gsl\Cblas.o succeeded
dist\build\Bindings\Gsl\Cblas.o
attempt to open dist\build\Bindings\Gsl\ChebyshevApproximations.o succeeded
dist\build\Bindings\Gsl\ChebyshevApproximations.o
attempt to open dist\build\Bindings\Gsl\Combinations.o succeeded
dist\build\Bindings\Gsl\Combinations.o
attempt to open dist\build\Bindings\Gsl\ComplexNumbers.o succeeded
dist\build\Bindings\Gsl\ComplexNumbers.o
attempt to open dist\build\Bindings\Gsl\DiscreteHankelTransforms.o succeeded
dist\build\Bindings\Gsl\DiscreteHankelTransforms.o
attempt to open dist\build\Bindings\Gsl\Eigensystems.o succeeded
dist\build\Bindings\Gsl\Eigensystems.o
attempt to open dist\build\Bindings\Gsl\ErrorHandling.o succeeded
dist\build\Bindings\Gsl\ErrorHandling.o
attempt to open dist\build\Bindings\Gsl\FastFourierTransforms.o succeeded
dist\build\Bindings\Gsl\FastFourierTransforms.o
attempt to open dist\build\Bindings\Gsl\Histograms.o succeeded
dist\build\Bindings\Gsl\Histograms.o
attempt to open dist\build\Bindings\Gsl\IeeeFloatingPointArithmetic.o succeeded
dist\build\Bindings\Gsl\IeeeFloatingPointArithmetic.o
attempt to open dist\build\Bindings\Gsl\Interpolation.o succeeded
dist\build\Bindings\Gsl\Interpolation.o
attempt to open dist\build\Bindings\Gsl\LeastSquaresFitting.o succeeded
dist\build\Bindings\Gsl\LeastSquaresFitting.o
attempt to open dist\build\Bindings\Gsl\LinearAlgebra.o succeeded
dist\build\Bindings\Gsl\LinearAlgebra.o
attempt to open dist\build\Bindings\Gsl\MathematicalFunctions.o succeeded
dist\build\Bindings\Gsl\MathematicalFunctions.o
attempt to open dist\build\Bindings\Gsl\MonteCarloIntegration.o succeeded
dist\build\Bindings\Gsl\MonteCarloIntegration.o
attempt to open dist\build\Bindings\Gsl\MultidimensionalMinimization.o succeeded
dist\build\Bindings\Gsl\MultidimensionalMinimization.o
attempt to open dist\build\Bindings\Gsl\MultidimensionalRootFinding.o succeeded
dist\build\Bindings\Gsl\MultidimensionalRootFinding.o
attempt to open dist\build\Bindings\Gsl\NonlinearLeastSquaresFitting.o succeeded
dist\build\Bindings\Gsl\NonlinearLeastSquaresFitting.o
attempt to open dist\build\Bindings\Gsl\NTuples.o succeeded
dist\build\Bindings\Gsl\NTuples.o
attempt to open dist\build\Bindings\Gsl\NumericalDifferentiation.o succeeded
dist\build\Bindings\Gsl\NumericalDifferentiation.o
attempt to open dist\build\Bindings\Gsl\NumericalIntegration.o succeeded
dist\build\Bindings\Gsl\NumericalIntegration.o
attempt to open dist\build\Bindings\Gsl\OneDimensionalMinimization.o succeeded
dist\build\Bindings\Gsl\OneDimensionalMinimization.o
attempt to open dist\build\Bindings\Gsl\OneDimensionalRootFinding.o succeeded
dist\build\Bindings\Gsl\OneDimensionalRootFinding.o
attempt to open dist\build\Bindings\Gsl\OrdinaryDifferentialEquations.o succeeded
dist\build\Bindings\Gsl\OrdinaryDifferentialEquations.o
attempt to open dist\build\Bindings\Gsl\Permutations.o succeeded
dist\build\Bindings\Gsl\Permutations.o
attempt to open dist\build\Bindings\Gsl\PhysicalConstants.o succeeded
dist\build\Bindings\Gsl\PhysicalConstants.o
attempt to open dist\build\Bindings\Gsl\Polynomials.o succeeded
dist\build\Bindings\Gsl\Polynomials.o
attempt to open dist\build\Bindings\Gsl\QuasiRandomSequences.o succeeded
dist\build\Bindings\Gsl\QuasiRandomSequences.o
attempt to open dist\build\Bindings\Gsl\RandomNumberDistributions.o succeeded
dist\build\Bindings\Gsl\RandomNumberDistributions.o
attempt to open dist\build\Bindings\Gsl\RandomNumberGeneration.o succeeded
dist\build\Bindings\Gsl\RandomNumberGeneration.o
attempt to open dist\build\Bindings\Gsl\SeriesAcceleration.o succeeded
dist\build\Bindings\Gsl\SeriesAcceleration.o
attempt to open dist\build\Bindings\Gsl\SimulatedAnnealing.o succeeded
dist\build\Bindings\Gsl\SimulatedAnnealing.o
attempt to open dist\build\Bindings\Gsl\Sorting.o succeeded
dist\build\Bindings\Gsl\Sorting.o
attempt to open dist\build\Bindings\Gsl\SpecialFunctions.o succeeded
dist\build\Bindings\Gsl\SpecialFunctions.o
attempt to open dist\build\Bindings\Gsl\Statistics.o succeeded
dist\build\Bindings\Gsl\Statistics.o
attempt to open dist\build\Bindings\Gsl\VectorsAndMatrices.o succeeded
dist\build\Bindings\Gsl\VectorsAndMatrices.o
attempt to open dist\build\Bindings\Gsl\VectorsAndMatrices\Blocks.o succeeded
dist\build\Bindings\Gsl\VectorsAndMatrices\Blocks.o
attempt to open dist\build\Bindings\Gsl\VectorsAndMatrices\DataTypes.o succeeded
dist\build\Bindings\Gsl\VectorsAndMatrices\DataTypes.o
attempt to open dist\build\Bindings\Gsl\VectorsAndMatrices\Matrices.o succeeded
dist\build\Bindings\Gsl\VectorsAndMatrices\Matrices.o
attempt to open dist\build\Bindings\Gsl\VectorsAndMatrices\Vectors.o succeeded
dist\build\Bindings\Gsl\VectorsAndMatrices\Vectors.o
attempt to open dist\build\Bindings\Gsl\Version.o succeeded
dist\build\Bindings\Gsl\Version.o
attempt to open dist\build\Bindings\Gsl\WaveletTransforms.o succeeded
dist\build\Bindings\Gsl\WaveletTransforms.o
attempt to open dist\build\src/inlines.o succeeded
dist\build\src/inlines.o
attempt to open dist\build\Bindings\Gsl\ErrorHandling_stub.o succeeded
dist\build\Bindings\Gsl\ErrorHandling_stub.o
attempt to open dist\build\Bindings\Gsl\NumericalIntegration_stub.o succeeded
dist\build\Bindings\Gsl\NumericalIntegration_stub.o
attempt to open dist\build\Bindings\Gsl\OneDimensionalMinimization_stub.o succeeded
dist\build\Bindings\Gsl\OneDimensionalMinimization_stub.o
attempt to open dist\build\Bindings\Gsl\SimulatedAnnealing_stub.o succeeded
dist\build\Bindings\Gsl\SimulatedAnnealing_stub.o
attempt to open dist\build\Bindings\Gsl\Sorting_stub.o succeeded
dist\build\Bindings\Gsl\Sorting_stub.o
Registering bindings-gsl-0.2...
cabal.exe: bindings-gsl-0.2: library-dirs: /c/Haskell/2011.2.0.1/mingw/lib is
a relative path (use --force to override)
bindings-gsl-0.2: include-dirs: /c/Haskell/2011.2.0.1/mingw/include is a
relative path (use --force to override)
cabal.exe: Error: some packages failed to install:
bindings-gsl-0.2 failed during the building phase. The exception was:
ExitFailure 1


_______________________________________________
Libraries mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/libraries