Bug 227995 - math/sundials fails to build using poudriere with c++11 error
Summary: math/sundials fails to build using poudriere with c++11 error
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Yuri Victorovich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-05 12:48 UTC by Robert Cina
Modified: 2018-05-05 17:05 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (yuri)


Attachments
math/sundials poudriere build log (508.85 KB, text/plain)
2018-05-05 12:48 UTC, Robert Cina
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Cina 2018-05-05 12:48:56 UTC
Created attachment 193062 [details]
math/sundials poudriere build log

The math/sundials port fails to build in poudriere with a c++11 error. I have attached the poudriere build log for the port.

Below is the relevant error from the build.

/wrkdirs/usr/ports/math/sundials/work/.build/src/sunmat_band ../../../src/nvec_ser/libsundials_nvecserial.so.3.1.0 ../../../src/sunlinsol_band/libsundials_sunlinsolband.so.1.1.0 -lm -lrt ../../../src/sunmat_band/libsundials_sunmatrixband.so.1.1.0 -lm 
[100%] Built target test_sunlinsol_band
--- examples/arkode/CXX_serial/CMakeFiles/ark_analytic_sys.dir/all ---
/wrkdirs/usr/ports/math/sundials/work/sundials-3.1.0/examples/arkode/CXX_serial/ark_analytic_sys.cpp:165:20: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
    printf("  %8.4"FSYM"  %8.5"FSYM"  %8.5"FSYM"  %8.5"FSYM"\n",  // access/print solution
                   ^
                    
/wrkdirs/usr/ports/math/sundials/work/sundials-3.1.0/examples/arkode/CXX_serial/ark_analytic_sys.cpp:165:32: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
    printf("  %8.4"FSYM"  %8.5"FSYM"  %8.5"FSYM"  %8.5"FSYM"\n",  // access/print solution
                               ^
                                
/wrkdirs/usr/ports/math/sundials/work/sundials-3.1.0/examples/arkode/CXX_serial/ark_analytic_sys.cpp:165:44: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
    printf("  %8.4"FSYM"  %8.5"FSYM"  %8.5"FSYM"  %8.5"FSYM"\n",  // access/print solution
                                           ^
                                            
/wrkdirs/usr/ports/math/sundials/work/sundials-3.1.0/examples/arkode/CXX_serial/ark_analytic_sys.cpp:165:56: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
    printf("  %8.4"FSYM"  %8.5"FSYM"  %8.5"FSYM"  %8.5"FSYM"\n",  // access/print solution
                                                       ^
                                                        
4 errors generated.
*** [examples/arkode/CXX_serial/CMakeFiles/ark_analytic_sys.dir/ark_analytic_sys.cpp.o] Error code 1

make[3]: stopped in /wrkdirs/usr/ports/math/sundials/work/.build
1 error

make[3]: stopped in /wrkdirs/usr/ports/math/sundials/work/.build
*** [examples/arkode/CXX_serial/CMakeFiles/ark_analytic_sys.dir/all] Error code 2

make[2]: stopped in /wrkdirs/usr/ports/math/sundials/work/.build
1 error

make[2]: stopped in /wrkdirs/usr/ports/math/sundials/work/.build
*** [all] Error code 2

make[1]: stopped in /wrkdirs/usr/ports/math/sundials/work/.build
1 error

make[1]: stopped in /wrkdirs/usr/ports/math/sundials/work/.build
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/math/sundials
=>> Cleaning up wrkdir
===>  Cleaning for sundials-3.1.0_1
build of math/sundials | sundials-3.1.0_1 ended at Fri May  4 18:57:14 EDT 2018
build time: 00:00:32
!!! build failure encountered !!!
Comment 1 Yuri Victorovich freebsd_committer freebsd_triage 2018-05-05 14:54:25 UTC
This is a known problem that only affects 12 and has been resolved upstream. The solution will be in the next release.

I might need to patch the fix in earlier.
Comment 2 commit-hook freebsd_committer freebsd_triage 2018-05-05 17:04:58 UTC
A commit references this bug:

Author: yuri
Date: Sat May  5 17:04:53 UTC 2018
New revision: 469131
URL: https://svnweb.freebsd.org/changeset/ports/469131

Log:
  math/sundials: Fix build on 12

  The previous patching was incomplete, missing another symbol that was aligned with quote characters.

  PR:		227995
  Reported by:	Robert Cina <transitive@gmail.com>

Changes:
  head/math/sundials/Makefile
Comment 3 Yuri Victorovich freebsd_committer freebsd_triage 2018-05-05 17:05:22 UTC
Fix committed, thanks!