Bug 750096 - new sdcc --use-non-free switch not added to new sdcc based projects
Summary: new sdcc --use-non-free switch not added to new sdcc based projects
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: piklab
Version: 15
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Alain Portal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-30 22:01 UTC by ebugzilla
Modified: 2012-02-11 13:17 UTC (History)
5 users (show)

Fixed In Version: piklab-0.15.10-5.fc16
Clone Of:
Environment:
Last Closed: 2012-02-10 21:52:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description ebugzilla 2011-10-30 22:01:11 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1

Updated sdcc 3.0.0 compiler added new --use-non-free switch and piklab needs to add the switch to it's default compiler and linker options for new projects using sdcc.

Failing to add the switch to the command line for the compiler and linker results in required files not being found and no easily searchable error message is generated.

There is an upstream project comment here: http://sourceforge.net/projects/piklab/forums/forum/633023/topic/3984411?message=10566426 has a possible fix by adding a compile time option.

A temporary end user work around is to manually add --use-non-free to each project under Project/Project Options/Toolchain/Compiler and /Linker by setting the configuration to Custom, entering --use-non-free in the box and clicking Add.

Reproducible: Always

Steps to Reproduce:
1.Launch Piklab
2.Create a new project with Project/NewProject
3.Enter any name, any Directory and and Device (I used "test" and 16f871)
4.Choose Toolchain Small Device C Compiler
5.Choose Create template source file
6.Enter any valid C code in main()
7.Build with Build/Build Project

Actual Results:  
test.c:3: 23: error: pic16f871.h: No such file or directory
Additionally the following errors occurred but the fix for them is obvious and can wait for upstream to resolve the issue:
test.c:8: warning 197: keyword 'at' is deprecated, use '__at' instead 
test.c:10: warning 197: keyword 'interrupt' is deprecated, use '__interrupt' instead 

Expected Results:  
Message: *** Success *** 

Versions:
$ sdcc --version
SDCC : mcs51/gbz80/z80/ds390/pic16/pic14/TININative/ds400/hc08 3.0.0 #6037 (Apr 13 2011) (Linux)

Piklab 0.12.10 (Using KDE 3.5.10-31.fc15 Fedora)

Setting to medium priority because the errors produced are non-obvious and are not Google friendly.

Comment 1 Fedora Update System 2012-02-02 10:17:43 UTC
piklab-0.15.10-5.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/piklab-0.15.10-5.fc16

Comment 2 Fedora Update System 2012-02-02 10:17:50 UTC
piklab-0.15.10-5.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/piklab-0.15.10-5.fc15

Comment 3 Fedora Update System 2012-02-02 17:26:55 UTC
Package piklab-0.15.10-5.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing piklab-0.15.10-5.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-1196/piklab-0.15.10-5.fc15
then log in and leave karma (feedback).

Comment 4 ebugzilla 2012-02-02 19:14:01 UTC
The update works perfectly on F15 x86_64.  Will karma.

Comment 5 Fedora Update System 2012-02-10 21:52:52 UTC
piklab-0.15.10-5.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2012-02-10 21:53:16 UTC
piklab-0.15.10-5.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Kevin Kofler 2012-02-11 06:26:18 UTC
Uhm, if those header files are really non-Free, the Fedora SDCC package is not supposed to ship them at all…

Comment 8 ebugzilla 2012-02-11 13:17:59 UTC
The Microchip docs for the latest MPLAB (the source of the information in these non-free files) directly references SDCC as being compatible to MPLAB.  There's clearly intent from Microchip for SDCC to exist even if the license details haven't caught up yet.  Give the SDCC folks time to resolve this issue.
(mplabx-ide-v1.00-release-notes.02-1.zip, Readme for Third Party Tools.htm)


Note You need to log in before you can comment on or make changes to this bug.