bugGNU Octave - Bugs: bug #43123, [MXE] checksum error

 
 

bug #43123: [MXE] checksum error

Submitter:  Mark <mb1234>
Submitted:  Mon 01 Sep 2014 12:56:53 PM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  lostbard
Originator Name:  Open/Closed:  * Closed
Release:  * other Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Mon 08 Sep 2014 10:52:55 AM UTC, comment #17: 

Some of them use CONFIGURE_CPPFLAGS, and CONFIGURE_LDFLAGS set in Makefile.in, however some require a number of additional flags to compile and so it isnt consistent.

John Donoghue <lostbard>
Group Member
Mon 08 Sep 2014 02:45:51 AM UTC, comment #16: 

I looked in a few mk files... lapack.mk and openblas.mk in particular. Yikes! Looks like passing compiler flags is a unique and special pleasure for each package. I guess I'm happy with the defaults after all!

Mark <mb1234>
Fri 05 Sep 2014 02:30:58 PM UTC, comment #15: 

I don't think there is a way of setting additional flags except manually adding to Makefile.in or to specific .mk files in src.

John Donoghue <lostbard>
Group Member
Fri 05 Sep 2014 01:09:41 PM UTC, comment #14: 

Thanks John. That did the trick (also needed enable-pic-flag).

./configure --enable-native-build --enable-pic-flag host_alias=gnu-linux

Can I ask, how do you choose gcc optimization flags (CFLAGS, CXXFLAGS, FFLAGS)? Is it necessary to go into indivudual .mk files and add/edit them? I really just want to add march=native across the board.

Mark <mb1234>
Thu 04 Sep 2014 02:27:34 PM UTC, comment #13: 

I believe you need to set the system type your are building for if using the native build option, otherwise it defaults to attempting to build for mingw - which wont work as you cant native build mingw on a Linux system.

if you are attempting to cross compile on a Linux box for mingw:
./configure
make

If you are attempting to compile mxe-octave on a Linux box for Linux:
./configure --enable-native-build host_alias=gnu-Linux
make

John Donoghue <lostbard>
Group Member
Thu 04 Sep 2014 01:17:14 PM UTC, comment #12: 

./configure --enable-native-build
make

[download] build-pkg-config
[build]    build-pkg-config

Failed to build package build-pkg-config!
------------------------------------------------------------
configure: error: in `/home/mark/mxe-octave-d95b8b84cea7/tmp-build-pkg-config/pkg-config-0.28.build':
configure: error: C compiler cannot create executables
See `config.log' for more details
/home/mark/mxe-octave-d95b8b84cea7/Makefile:661: recipe for target 'build-only-build-pkg-config' failed
make[1]: * [build-only-build-pkg-config] Error 77
make[1]: Leaving directory '/home/mark/mxe-octave-d95b8b84cea7'


Looking in tmp-build-pkg-config/pkg-config-0.28.build/config.log there are the following errors:

configure:3344: checking whether the C compiler works
configure:3366: gcc  -march=i486  conftest.c  >&5
conftest.c:1:0: error: CPU you selected does not support x86-64 instruction set


This leads back to src/build-pkg-config.mk which has this:

# native mingw needs to be told an architechure for the internal glib to build
ifeq ($(MXE_NATIVE_MINGW_BUILD),yes)
  $(PKG)_CONFIG_OPTS := CPPFLAGS='-march=i486' LN=$(LN)
endif


If I change i486 to native, then compilation proceeds. However it fails on the next package with this:


[download] build-scons
[build]    build-scons

Failed to build package build-scons!
------------------------------------------------------------
running install_lib
creating /usr/local/lib/scons-2.3.1
error: could not create '/usr/local/lib/scons-2.3.1': Permission denied
/home/mark/mxe-octave-d95b8b84cea7/Makefile:661: recipe for target 'build-only-build-scons' failed
make[1]: * [build-only-build-scons] Error 1
make[1]: Leaving directory '/home/mark/mxe-octave-d95b8b84cea7'
real 0m1.662s
user 0m0.900s
sys 0m0.132s
------------------------------------------------------------
[log]      /home/mark/mxe-octave-d95b8b84cea7/log/build-scons

Makefile:661: recipe for target '/home/mark/mxe-octave-d95b8b84cea7/installed-packages/build-scons' failed
make: * [/home/mark/mxe-octave-d95b8b84cea7/installed-packages/build-scons] Error 1

Mark <mb1234>
Wed 03 Sep 2014 04:32:57 PM UTC, comment #11: 

I missed the configure line from comment 4.
You cant use the system gcc to cross compile for cross compiling mingw.

Let mxe-octave build the cross compiler.

John Donoghue <lostbard>
Group Member
Wed 03 Sep 2014 04:21:21 PM UTC, comment #10: 
John Donoghue <lostbard>
Group Member
Wed 03 Sep 2014 03:48:42 PM UTC, comment #9: 

[download] sqlite

Wrong checksum of package sqlite!
------------------------------------------------------------
Connecting to s3.amazonaws.com (s3.amazonaws.com)|176.32.101.82|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-09-03 11:47:15 ERROR 404: Not Found.
--2014-09-03 11:47:15--  http://d1yihgixbnrglp.cloudfront.net/sqlite-autoconf-3080500.tar.gz
Resolving d1yihgixbnrglp.cloudfront.net (d1yihgixbnrglp.cloudfront.net)... 204.246.169.122, 54.192.39.175, 54.230.37.207, ...
Connecting to d1yihgixbnrglp.cloudfront.net (d1yihgixbnrglp.cloudfront.net)|204.246.169.122|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-09-03 11:47:15 ERROR 404: Not Found.

Mark <mb1234>
Wed 03 Sep 2014 12:07:50 PM UTC, comment #8: 
John Donoghue <lostbard>
Group Member
Wed 03 Sep 2014 10:22:06 AM UTC, comment #7: 

Did it build build-gcc before attempting to build blas? (The Makefile should do this, unless told not to)

What configure options did you use prior to the running make on mxe-octave?

John Donoghue <lostbard>
Group Member
Wed 03 Sep 2014 03:45:18 AM UTC, comment #6: 

make update

.        a52dec  0.7.4
.        agg  2.5
NEW      apr-util  1.3.10 --> 1.5.3
NEW      apr  1.4.2 --> 1.5.1
NEW      armadillo  3.4.4 --> 4.400.1
Warning: Updates are temporarily disabled for package arpack.
.        arpack  3.1.5
NEW      atk  2.8.0 --> 2.12.0
NEW      atkmm  2.22.6 --> 2.22.7
NEW      aubio  0.3.2 --> 0.4.1
NEW      bfd  2.22 --> 2.24
.        blas  1
NEW      boost  1.53.0 --> 1.56.0
.        bzip2  1.0.6
NEW      cairo  1.12.14 --> 1.12.16
NEW      cairomm  1.10.0 --> 1.11.2
.        cblas  1
Warning: Updates are temporarily disabled for package cfitsio.
.        cfitsio  3370
NEW      cgal  4.0.2 --> 4.4
bash: -V: command not found
Makefile:694: * Unable to update version number of package cloog.  Stop.

Mark <mb1234>
Wed 03 Sep 2014 03:43:49 AM UTC, comment #5: 

[download] hdf5

Wrong checksum of package hdf5!
------------------------------------------------------------
Connecting to s3.amazonaws.com (s3.amazonaws.com)|54.231.16.152|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-09-02 23:42:58 ERROR 404: Not Found.
--2014-09-02 23:42:58--  http://d1yihgixbnrglp.cloudfront.net/hdf5-1.8.10.tar.bz2
Resolving d1yihgixbnrglp.cloudfront.net (d1yihgixbnrglp.cloudfront.net)... 54.230.39.102, 54.192.36.77, 54.230.38.164, ...
Connecting to d1yihgixbnrglp.cloudfront.net (d1yihgixbnrglp.cloudfront.net)|54.230.39.102|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-09-02 23:42:58 ERROR 404: Not Found.
------------------------------------------------------------
[log]      /home/mark/mxe-octave-d30ced3f489e/log/hdf5-download

Makefile:659: recipe for target '/home/mark/mxe-octave-d30ced3f489e/installed-packages/hdf5' failed
make: * [/home/mark/mxe-octave-d30ced3f489e/installed-packages/hdf5] Error 1

Mark <mb1234>
Wed 03 Sep 2014 12:47:04 AM UTC, comment #4: 

More errors.

./configure  --enable-system-gcc
make


[build]    blas

Failed to build package blas!
------------------------------------------------------------
Makefile:171: recipe for target 'isamax.o' failed
make[2]: * [isamax.o] Error 127
make[2]: Leaving directory '/home/mark/mxe-octave-d30ced3f489e/tmp-blas/BLAS'
/home/mark/mxe-octave-d30ced3f489e/Makefile:659: recipe for target 'build-only-blas' failed
make[1]: * [build-only-blas] Error 2
make[1]: Leaving directory '/home/mark/mxe-octave-d30ced3f489e'
real 0m1.746s
user 0m0.868s
sys 0m0.104s
------------------------------------------------------------
[log]      /home/mark/mxe-octave-d30ced3f489e/log/blas

Makefile:659: recipe for target '/home/mark/mxe-octave-d30ced3f489e/installed-packages/blas' failed
make: * [/home/mark/mxe-octave-d30ced3f489e/installed-packages/blas] Error 1


The log/blas file revealed Makefile is pointing to a non-existent mingw32-gfortran.


make[1]: Entering directory '/home/mark/mxe-octave-d30ced3f489e'
rm -rf   '/home/mark/mxe-octave-d30ced3f489e/tmp-blas' '/home/mark/mxe-octave-d30ced3f489e/tmp-blas-install'
mkdir -p '/home/mark/mxe-octave-d30ced3f489e/tmp-blas'
( cd '/home/mark/mxe-octave-d30ced3f489e/tmp-blas' && tar xzf '/home/mark/mxe-octave-d30ced3f489e/pkg/blas.tgz' ) ||  false
test ! -d '/home/mark/mxe-octave-d30ced3f489e/src/blas' || cp -a '/home/mark/mxe-octave-d30ced3f489e/src/blas' '/home/mark/mxe-octave-d30ced3f489e/tmp-blas'
cd '/home/mark/mxe-octave-d30ced3f489e/tmp-blas/BLAS'
sed -i 's,$(FORTRAN),'/home/mark/mxe-octave-d30ced3f489e/usr/bin/i686-w64-mingw32-gfortran'  ,g' '/home/mark/mxe-octave-d30ced3f489e/tmp-blas/BLAS/Makefile'
make -C '/home/mark/mxe-octave-d30ced3f489e/tmp-blas/BLAS' -j '1'
make[2]: Entering directory '/home/mark/mxe-octave-d30ced3f489e/tmp-blas/BLAS'
/home/mark/mxe-octave-d30ced3f489e/usr/bin/i686-w64-mingw32-gfortran   -O3 -c isamax.f -o isamax.o
make[2]: /home/mark/mxe-octave-d30ced3f489e/usr/bin/i686-w64-mingw32-gfortran: Command not found
Makefile:171: recipe for target 'isamax.o' failed
make[2]: * [isamax.o] Error 127
make[2]: Leaving directory '/home/mark/mxe-octave-d30ced3f489e/tmp-blas/BLAS'
/home/mark/mxe-octave-d30ced3f489e/Makefile:659: recipe for target 'build-only-blas' failed
make[1]: * [build-only-blas] Error 2
make[1]: Leaving directory '/home/mark/mxe-octave-d30ced3f489e'



I made a symbolic link to /usr/bin/gcc (ditto for /usr/bin/ar) and it made progress. Until it broke with this:

[build]    blas

Failed to build package blas!
------------------------------------------------------------
/usr/bin/ld: unrecognized option '--export-all-symbols'
/usr/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
/home/mark/mxe-octave-d30ced3f489e/Makefile:659: recipe for target 'build-only-blas' failed
make[1]: * [build-only-blas] Error 1
make[1]: Leaving directory '/home/mark/mxe-octave-d30ced3f489e'




Mark <mb1234>
Tue 02 Sep 2014 03:47:05 PM UTC, comment #3: 

I updated the png version to 1.6.13 and fixed the url.  Works for me now.  Thanks.

John W. Eaton <jwe>
Group administrator
Tue 02 Sep 2014 03:11:26 PM UTC, comment #2: 

Thanks - got another one. Hope you don't mind if I just append errors as I get them :)


[download] libpng

Wrong checksum of package libpng!
------------------------------------------------------------
Connecting to s3.amazonaws.com (s3.amazonaws.com)|205.251.243.74|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-09-02 10:54:02 ERROR 404: Not Found.
--2014-09-02 10:54:02--  http://d1yihgixbnrglp.cloudfront.net/libpng-1.6.12.tar.xz
Resolving d1yihgixbnrglp.cloudfront.net (d1yihgixbnrglp.cloudfront.net)... 54.230.37.207, 54.230.37.111, 204.246.169.160, ...
Connecting to d1yihgixbnrglp.cloudfront.net (d1yihgixbnrglp.cloudfront.net)|54.230.37.207|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-09-02 10:54:03 ERROR 404: Not Found.

Mark <mb1234>
Mon 01 Sep 2014 04:02:05 PM UTC, comment #1: 

It cant download gnutls: (ERROR 404 NOT FOUND)

Since it couldnt download, the checksum then fails.

I updated mxe-octave so the same links as mxe uses and it works for me now:
http://hg.octave.org/mxe-octave/rev/81e0df6182ba


John Donoghue <lostbard>
Group Member
Mon 01 Sep 2014 12:56:53 PM UTC, original submission:  

I'm getting the following error with make using the default configuration.


[download] gnutls

Wrong checksum of package gnutls!
------------------------------------------------------------
Connecting to s3.amazonaws.com (s3.amazonaws.com)|54.231.16.120|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-09-01 08:49:08 ERROR 404: Not Found.
--2014-09-01 08:49:08--  http://d1yihgixbnrglp.cloudfront.net/gnutls-3.2.15.tar.xz
Resolving d1yihgixbnrglp.cloudfront.net (d1yihgixbnrglp.cloudfront.net)... 54.230.37.69, 54.230.39.232, 54.230.38.220, ...
Connecting to d1yihgixbnrglp.cloudfront.net (d1yihgixbnrglp.cloudfront.net)|54.230.37.69|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-09-01 08:49:09 ERROR 404: Not Found.
------------------------------------------------------------
[log]      /home/mark/mxe-octave-902562ce85fc/log/gnutls-download

Makefile:659: recipe for target '/home/mark/mxe-octave-902562ce85fc/installed-packages/gnutls' failed
make: * [/home/mark/mxe-octave-902562ce85fc/installed-packages/gnutls] Error 1

Mark <mb1234>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by mb1234 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-09-08 lostbard Open/ClosedOpen Closed
    2014-09-01 lostbard CategoryNone Configuration and Build System
        Item GroupNone Build Failure
        StatusNone Fixed
        Assigned toNone lostbard

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code