bugGNU Octave - Bugs: bug #59160, [octave forge] (ocl) Installation...

 
 

bug #59160: [octave forge] (ocl) Installation error using clang

Submitted by:  None
Submitted on:  Tue 22 Sep 2020 06:28:46 PM UTC  
 
Category:  Octave Forge Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Installation Failure
Status:  Confirmed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  dev
Operating System:  GNU/Linux

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 22 Sep 2020 07:47:59 PM UTC, comment #5: 

Success! GCC 10.2.0 built it and Clang 10.0.1 did not. Thank you Markus Mützel for pointing out the compiler connection! This (spurious) bug can be closed.

Anonymous
Tue 22 Sep 2020 07:32:32 PM UTC, comment #4: 

My current installation of Octave was built with Clang 10.0.1. I also have GCC 10.2.0. I will build a new version with GCC since that works for you.

Anonymous
Tue 22 Sep 2020 07:01:12 PM UTC, comment #3: 

Works for me with 6.0.90 and 7.0.0 (hg id b8e9e012bb21).
Which compiler do you use?

>> mkoctfile -p CC
gcc
>> system ("gcc --version")
gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

And please attach long logs as a file. Don't copy them to the discussion.

Markus Mützel <mmuetzel>
Project Member
Tue 22 Sep 2020 06:33:11 PM UTC, comment #2: 

The post is too long to show?

To reproduce: run "pkg install -forge ocl"

Errors:

ocl_array.cc:2066:1: error: explicit specialization of 'array_prog' after instantiation
SPECIALIZE_OCLARRAY (FloatComplex,   single,  float2,   false,  false,  true  );
^
ocl_array.cc:2049:39: note: expanded from macro 'SPECIALIZE_OCLARRAY'
  template <> OclProgram OclArray<T>::array_prog = OclProgram (); \
                                      ^
ocl_array.cc:263:3: note: implicit instantiation first required here
  array_prog.set_kernel_arg (kernel_index, 0, *this);
  ^
ocl_array.cc:2066:1: error: explicit specialization of 'kernel_indices' after instantiation
SPECIALIZE_OCLARRAY (FloatComplex,   single,  float2,   false,  false,  true  );
^
ocl_array.cc:2050:45: note: expanded from macro 'SPECIALIZE_OCLARRAY'
  template <> std::vector<int> OclArray<T>::kernel_indices  = std::vector<int> (); \
                                            ^
ocl_array.cc:261:22: note: implicit instantiation first required here
  int kernel_index = kernel_indices [OclArrayKernels::real2complex_r];
                     ^
ocl_array.cc:2067:1: error: explicit specialization of 'array_prog' after instantiation
SPECIALIZE_OCLARRAY (Complex,        double,  double2,  false,  false,  true  );
^
ocl_array.cc:2049:39: note: expanded from macro 'SPECIALIZE_OCLARRAY'
  template <> OclProgram OclArray<T>::array_prog = OclProgram (); \
                                      ^
ocl_array.cc:243:3: note: implicit instantiation first required here
  array_prog.set_kernel_arg (kernel_index, 0, *this);
  ^
ocl_array.cc:2067:1: error: explicit specialization of 'kernel_indices' after instantiation
SPECIALIZE_OCLARRAY (Complex,        double,  double2,  false,  false,  true  );
^
ocl_array.cc:2050:45: note: expanded from macro 'SPECIALIZE_OCLARRAY'
  template <> std::vector<int> OclArray<T>::kernel_indices  = std::vector<int> (); \
                                            ^
ocl_array.cc:241:22: note: implicit instantiation first required here
  int kernel_index = kernel_indices [OclArrayKernels::real2complex_r];
                     ^

ending with

error: pkg: error running 'make' for the ocl package.
error: called from
    configure_make at line 110 column 9
    install at line 196 column 7
    pkg at line 568 column 9

Anonymous
Tue 22 Sep 2020 06:30:36 PM UTC, comment #1: 

Verbatim tags got messed up. Posting again.

Anonymous
Tue 22 Sep 2020 06:28:46 PM UTC, original submission:  
Anonymous

 

(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 siko1056 (Updated the item)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-09-23 siko1056 StatusNone => Confirmed
    2020-09-23 siko1056 Item GroupUnexpected Error or Warning => Installation Failure
        StatusNeed Info => None
        Summary[octave forge] (ocl) Error installing OCL package, "explicit specialization after instantiation" => [octave forge] (ocl) Installation error using clang
    2020-09-22 mmuetzel StatusNone => Need Info
        Summary[Forge] Error installing OCL package, "explicit specialization after instantiation" => [octave forge] (ocl) Error installing OCL package, "explicit specialization after instantiation"

    Back to the top


    Powered by Savane 3.5