Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 626604 - media-video/movit-1.5.2 - fp16_test.cpp:54:2: error: ‘fp32’ was not declared in this scope
Summary: media-video/movit-1.5.2 - fp16_test.cpp:54:2: error: ‘fp32’ was not declared ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2017-07-30 12:33 UTC by Dennis Schridde
Modified: 2017-09-25 13:24 UTC (History)
25 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,898.68 KB, text/x-log)
2017-07-30 12:33 UTC, Dennis Schridde
Details
Fix compilation on systems natively supporting F16C. (0002-media-video-movit-fix-compilation-on-systems-nativel.patch,786 bytes, patch)
2017-08-02 07:24 UTC, Mihai Moldovan
Details | Diff
Fix compilation on systems natively supporting F16C. (0002-media-video-movit-fix-compilation-on-systems-nativel.patch,1.90 KB, patch)
2017-08-02 08:21 UTC, Mihai Moldovan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2017-07-30 12:33:47 UTC
Created attachment 487366 [details]
build.log

fp16_test.cpp: In member function ‘virtual void movit::FP16Test_NaN_Test::TestBody()’:
fp16_test.cpp:54:2: error: ‘fp32’ was not declared in this scope
  fp32 borderline_inf;
  ^~~~
fp16_test.cpp:55:2: error: ‘borderline_inf’ was not declared in this scope
  borderline_inf.u = 0x7f800000ull;
  ^~~~~~~~~~~~~~
fp16_test.cpp:56:7: error: expected ‘;’ before ‘borderline_nan’
  fp32 borderline_nan;
       ^~~~~~~~~~~~~~
fp16_test.cpp:57:2: error: ‘borderline_nan’ was not declared in this scope
  borderline_nan.u = 0x7f800001ull;
  ^~~~~~~~~~~~~~
make: *** [Makefile:131: fp16_test.o] Error 1
Comment 1 Michal Jakubowski 2017-07-30 21:41:50 UTC
Confirm
Comment 2 Anton Gubarkov 2017-07-31 09:36:59 UTC
(In reply to Michal Jakubowski from comment #1)
> Confirm

me too
Comment 3 André Terpstra 2017-08-01 04:35:15 UTC
same here
Comment 4 Mihai Moldovan 2017-08-01 12:12:13 UTC
After talking to the upstream author, he noticed that the user affected by this problem has been using the -march=bdver3 optimization flag.

Interestingly, this enables FP16C support - just like -march=native might do on any CPU supporting the fp16 built-in type (like mine).

The fp16.h file does not take that into account.

I'll update this report as soon as a fix is available.
Comment 5 Mihai Moldovan 2017-08-02 07:24:13 UTC
Created attachment 487640 [details, diff]
Fix compilation on systems natively supporting F16C.

This patch requires https://bugs.gentoo.org/show_bug.cgi?id=626692 to be applied first.
Comment 6 Dennis Schridde 2017-08-02 08:13:29 UTC
(In reply to Mihai Moldovan from comment #5)
> Created attachment 487640 [details, diff] [details, diff]
> Fix compilation on systems natively supporting F16C.
> 
> This patch requires https://bugs.gentoo.org/show_bug.cgi?id=626692 to be
> applied first.

This patch only includes a change to the ebuild? Where is the actual patch located?
Comment 7 Dennis Schridde 2017-08-02 08:18:22 UTC
(In reply to Dennis Schridde from comment #6)
> Where is the actual patch located?

https://git.sesse.net/?p=movit;a=commit;h=f680714c0378a80e1638824c70c5ec62d6ade8ee
Comment 8 Mihai Moldovan 2017-08-02 08:21:52 UTC
Created attachment 487646 [details, diff]
Fix compilation on systems natively supporting F16C.

Sorry, failure on my part to actually add the patch.


This patch requires https://bugs.gentoo.org/show_bug.cgi?id=626692 to be applied first.
Comment 9 MrPenguin07 2017-08-04 05:49:43 UTC
(In reply to Mihai Moldovan from comment #8)
> Created attachment 487646 [details, diff] [details, diff]
> Fix compilation on systems natively supporting F16C.
> 
> Sorry, failure on my part to actually add the patch.
> 
> 
> This patch requires https://bugs.gentoo.org/show_bug.cgi?id=626692 to be
> applied first.

Curious why your patches have email headers etc?
Comment 10 Mihai Moldovan 2017-08-04 07:24:49 UTC
The upstream ones? Or mine?

Both are fetched out of git repositories with git-format-patch.
Comment 11 Marco Genasci 2017-08-15 16:34:01 UTC
New version 1.5.3 should be resolved the problem
Comment 12 Kobboi 2017-08-15 18:07:39 UTC
(In reply to Marco Genasci from comment #11)
> New version 1.5.3 should be resolved the problem

Indeed, and looking at the diff, a simple bump should be OK.
Comment 13 Juergen Rose 2017-08-20 06:10:01 UTC
(In reply to Marco Genasci from comment #11)
> New version 1.5.3 should be resolved the problem

Where can I find version 1.5.3?
Comment 14 Marco Genasci 2017-08-20 18:46:12 UTC
(In reply to Juergen Rose from comment #13)
> Where can I find version 1.5.3?
You can copy 1.5.2 ebuild in your local overlay and rename it in 1.5.3
Comment 15 Attila Tóth 2017-08-21 17:29:21 UTC
(In reply to Marco Genasci from comment #14)
> (In reply to Juergen Rose from comment #13)
> > Where can I find version 1.5.3?
> You can copy 1.5.2 ebuild in your local overlay and rename it in 1.5.3

Works for me.
Comment 16 Michal Jakubowski 2017-08-21 20:42:49 UTC
(In reply to Attila Tóth from comment #15)
> (In reply to Marco Genasci from comment #14)
> > (In reply to Juergen Rose from comment #13)
> > > Where can I find version 1.5.3?
> > You can copy 1.5.2 ebuild in your local overlay and rename it in 1.5.3
> 
> Works for me.

Confirm.
Comment 17 Juergen Rose 2017-08-21 21:36:38 UTC
(In reply to Marco Genasci from comment #14)
> (In reply to Juergen Rose from comment #13)
> > Where can I find version 1.5.3?
> You can copy 1.5.2 ebuild in your local overlay and rename it in 1.5.3

Thanks, works for me.
Comment 18 Silvio 2017-08-22 02:08:18 UTC
Same problem here, could you update portage?
Comment 19 Konstantin (elxa) 2017-08-22 11:40:11 UTC
1.5.3 built without issues with gcc-7.2
Comment 20 MrPenguin07 2017-08-23 15:48:34 UTC
I don't mean to be rude to the assignee but this bug hasn't even moved passed unconfirmed, despite a simple version bump solving this.

We're all busy people but 10 seconds to version bump can save many users a lot of time and headaches. Please update the gentoo tree.
Comment 21 Silvio 2017-08-24 08:31:16 UTC
(In reply to Konstantin (elxa) from comment #19)
> 1.5.3 built without issues with gcc-7.2

But it is not in portage yet.
Comment 22 Michal Jakubowski 2017-08-24 08:41:39 UTC
(In reply to Silvio from comment #21)
> (In reply to Konstantin (elxa) from comment #19)
> > 1.5.3 built without issues with gcc-7.2
> 
> But it is not in portage yet.

In my opinion should be, looks fine for me.
If you can, try this:
https://github.com/hhoffstaette/portage/tree/master/sys-devel/gcc
Comment 23 klaus818 2017-08-24 08:55:40 UTC
https://gpo.zugaina.org/sys-devel/gcc

Try the ahyangyi-overlay.
Comment 24 Mihai Moldovan 2017-09-02 22:19:29 UTC
The new upstream release, available as part of https://gitweb.gentoo.org/repo/gentoo.git/commit/media-video/movit?id=e1f1f16eefefd7868b26068bffdec3e99077ae6d should fix the issue and make my patches obsolete.

Please close this bug report.

And to commenters: please stop recommending GCC versions in random overlays - that's an easy way to break your system. You won't need GCC 7.2 for movit 1.5.3 to build fine. Any recent, supported, in-tree GCC version will do.