This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 238627 - Can no longer add new toolchains (where executables have a prefix)
Summary: Can no longer add new toolchains (where executables have a prefix)
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Toolchain (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-20 18:01 UTC by tbrunhoff
Modified: 2013-12-09 08:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
My current toolchain properties. (19.08 KB, application/zip)
2013-11-20 18:01 UTC, tbrunhoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tbrunhoff 2013-11-20 18:01:20 UTC
Created attachment 142419 [details]
My current toolchain properties.

We have long used multiple toolchains to build different products on embedded platforms, and I have long been able to add them to NB. All of the tool executable file names are prefixed with a bit of info about the cross compile. e.g.

x86_64-linux-addr2line         x86_64-linux-g++
x86_64-linux-ar                x86_64-linux-gcc
x86_64-linux-as                x86_64-linux-gcc-4.6.3
x86_64-linux-c++               x86_64-linux-gcov
x86_64-linux-c++filt           x86_64-linux-gprof
x86_64-linux-cjpeg             x86_64-linux-jpegtran
x86_64-linux-cpp               x86_64-linux-ld
x86_64-linux-dfbdump           x86_64-linux-ld.bfd
x86_64-linux-dfbfx             x86_64-linux-ld.gold
x86_64-linux-dfbg              x86_64-linux-mkdfiff
x86_64-linux-dfbinfo           x86_64-linux-mkdgiff
x86_64-linux-dfbinput          x86_64-linux-nm
x86_64-linux-dfbinspector      x86_64-linux-objcopy
x86_64-linux-dfblayer          x86_64-linux-objdump
x86_64-linux-dfbmaster         x86_64-linux-ranlib
x86_64-linux-dfbpenmount       x86_64-linux-rdjpgcom
x86_64-linux-dfbscreen         x86_64-linux-readelf
x86_64-linux-directfb-config   x86_64-linux-size
x86_64-linux-directfb-csource  x86_64-linux-strings
x86_64-linux-djpeg             x86_64-linux-strip
x86_64-linux-elfedit           x86_64-linux-wrjpgcom

And these existing toolchains continue to work in NB. However in the version below, I cannot create a new toolset, apparently because none of the tools are named gcc. I can fool it and create a link to gcc, and then continue to configure the tools with the actual file names.

It is not uncommon for cross-compilation tools to be renamed in this way. This limitation should be removed.

Product Version: NetBeans IDE Dev (Build 201310150001)
Updates: Updates available
Java: 1.7.0_25; Java HotSpot(TM) Client VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15
System: Linux version 3.6.11-4.fc16.x86_64 running on i386; UTF-8; en_US (nb)
User directory: /home/toddb/.netbeans/dev
Cache directory: /home/toddb/.cache/netbeans/dev
Comment 1 Alexander Simon 2013-11-27 10:45:12 UTC
fixed, change set:
e51320ae5266
Comment 2 igor_nikiforov 2013-12-02 14:30:36 UTC
Integrated to releases:
  9f55fec102aa
Comment 3 Quality Engineering 2013-12-05 01:33:02 UTC
Integrated into 'releases/release74', will be available in build *201312042201* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/9f55fec102aa
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #238627 Can no longer add new toolchains (where executables have a prefix)
(transplanted from e51320ae52666eca1e6892c45b14cfc541a23778)
Comment 4 soldatov 2013-12-09 08:54:19 UTC
verified in NetBeans IDE 7.4 (Build 201312082348)

Supported scenario in 7.4 patch 2:
- /export/files/toolchain folder contains "x86_64-linux-g++" and "x86_64-linux-gcc" files only
- Press Add... button in "Build Tools" tab
- Type /export/files/toolchain in "Base Directory" field
==> "No compiler sets were found in the directory" message appears
- Select "GNU" toolchain
==> OK button is enabled now
- Press OK
==> "C Compiler" and "C++ Compiler" are empty text fields
- Select x86_64-linux-gcc in "C Compiler" field
- Select x86_64-linux-g++ in "C++ Compiler" field
- Press Apply button
==> code assistance and build works nicely