[Bug 1350884] Review Request: mspgcc - Rebase of GCC for the MSP430 to TI / Red Hat upstream

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1350884



--- Comment #23 from Brandon Nielsen <nielsenb@xxxxxxxxxxx> ---
Follow up, I've confused myself, and could use guidance. The documentation for
packaging cross compilers[0] states "All cross-compilers should add
--prefix=/usr/arch-os-libc to ./configure when building the toolchain. This is
according to the cross-compiling guidelines in GCC's INSTALL document." I
cannot find this guideline in the GCC documentation[1]. I can do this of
course, but it results in /usr/msp430-elf/bin, /usr/msp430-elf/lib, etc... I
have experimented with this, and with symlinking the resulting binaries into
/usr/bin (as noted in the Fedora documentation), the compiler works as
expected.

That being said, that it not how the most similar cross compiler, avr-gcc, is
packaged[2].

So, I count 3 paths forward:

1: Specify prefix as per Fedora guidelines
2: Try to match avr-gcc, with everything going roughly where I would expect,
binaries in /usr/bin, library files in /usr/lib/gcc/avr, etc...
3: The terrible hybrid I've done in all the builds above, with binaries going
in /usr/bin, libraries and include files mostly going in /usr/msp430-elf/lib,
but some going in /usr/lib...

I really don't like 3, and I regret ever doing it. In my haste to get a working
package together I went with the first thing that worked. I've been trying to
do 2, but I'll be darned if I can get a working compiler out of it. 1 is easy,
and I've proved it works, but it feels "weird".

0 -
https://fedoraproject.org/wiki/Packaging_Cross_Compiling_Toolchains#Cross-compiling_GCC_tool-chains
1 - https://gcc.gnu.org/install/configure.html 
2 - https://src.fedoraproject.org/rpms/avr-gcc


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux