Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 255309 - dev-embedded/openocd doesn't support ftdi useflag on amd64
Summary: dev-embedded/openocd doesn't support ftdi useflag on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Embedded Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-17 21:04 UTC by Andrej Gelenberg
Modified: 2009-06-17 10:04 UTC (History)
0 users

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


Attachments
get openocd compiled on amd64 with libftdi (openocd.ebuild.patch,1.11 KB, text/plain)
2009-01-19 00:21 UTC, Andrej Gelenberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrej Gelenberg 2009-01-17 21:04:11 UTC
With  useflags ft2232 and ftdi set, it break with "ft2232 is x86 and ftdi is amd64, choose one or the other!" and only with ftdi "You enabled libftdi but not ft2232! libftdi is only used for ft2232, so this is meaningless!" and it will be compiled without ft2232 support.

Reproducible: Always
Comment 1 Wormo (RETIRED) gentoo-dev 2009-01-18 01:26:14 UTC
It looks like this is intended behavior -- ftdi useflag is just not supported on amd64 because it is too much trouble. It would need a emul-linux-x86-libftd2xx package to get a 32-bit version compatible with other 32-bit stuff required for ft2232.

Are you interested enough in ftdi support to build your own emul-linux package and try this approach in a local overlay?
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-01-18 11:48:09 UTC
It really doesn't seem intended, it actually seems like the ebuild is very much a mess wrt those particular USE flags.

And if the USE flags are not supported on amd64 they should be masked properly by profiles.
Comment 3 Andrej Gelenberg 2009-01-19 00:21:38 UTC
Created attachment 178939 [details]
get openocd compiled on amd64 with libftdi

When i copiled it with USE="-ftdi ft2232" it was correctly compiled 32-bit. (there was one segfault in libftd2xx, but it is other problem).

Hier my patch for ebuil, that get openocd compiled for me with libftdi, but it is quick and dirty.
Comment 4 SpanKY gentoo-dev 2009-06-17 10:04:20 UTC
libftd2xx now supports amd64, so the USE flags have been split in the ebuild