public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* saveconfig is dropping configurations
@ 2013-12-16 22:37 Bryce Schober
  2014-01-03 17:53 ` Bryce Schober
  2014-05-12 20:10 ` Yann E. MORIN
  0 siblings, 2 replies; 4+ messages in thread
From: Bryce Schober @ 2013-12-16 22:37 UTC (permalink / raw)
  To: crossgcc

When I saveconfig after loading a modified sample containing the
following configuration, it drops the configurations for
CT_LOCAL_TARBALLS_DIR, CT_PREFIX_DIR, and CT_LIBC_GLIBC_FORCE_UNWIND.
This makes any round-tripping through menuconfig and saveconfig not
work properly.

This is on latest tip - I haven't yet tried going back in time to a
released version.

Is this a bug, or am I missing something?
<><  <><  <><
Bryce Schober


CT_EXPERIMENTAL=y
CT_LOCAL_TARBALLS_DIR="${CT_TOP_DIR}/../dl_cache"
CT_SAVE_TARBALLS=y
CT_PREFIX_DIR="${CT_TOP_DIR}/../${CT_TARGET}"
CT_USE_MIRROR=y
CT_MIRROR_BASE_URL="http://ymorin.is-a-geek.org/mirrors/"
CT_PARALLEL_JOBS=16
CT_LOG_DEBUG=y
CT_ARCH_ARCH="i686"
CT_ARCH_x86=y
CT_STATIC_TOOLCHAIN=y
CT_TARGET_VENDOR="dynon"
CT_TARGET_ALIAS="i686-linux"
CT_KERNEL_linux=y
CT_KERNEL_V_3_0=y
CT_BINUTILS_V_2_21_53=y
CT_BINUTILS_LINKER_LD_GOLD=y
CT_BINUTILS_GOLD_THREADS=y
CT_BINUTILS_LD_WRAPPER=y
CT_BINUTILS_FOR_TARGET=y
CT_CC_V_4_3_6=y
CT_CC_GCC_USE_GRAPHITE=y
CT_CC_GCC_USE_LTO=y
CT_CC_LANG_CXX=y
CT_CC_GCC_LIBMUDFLAP=y
CT_CC_GCC_LIBGOMP=y
CT_CC_GCC_LIBSSP=y
CT_LIBC_glibc=y
CT_LIBC_GLIBC_V_2_9=y
CT_LIBC_GLIBC_FORCE_UNWIND=y
CT_DEBUG_gdb=y
CT_GDB_V_7_4_1=y
CT_GMP_V_4_3_2=y
CT_MPFR_V_2_4_2=y

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: saveconfig is dropping configurations
  2013-12-16 22:37 saveconfig is dropping configurations Bryce Schober
@ 2014-01-03 17:53 ` Bryce Schober
  2014-05-12 20:10 ` Yann E. MORIN
  1 sibling, 0 replies; 4+ messages in thread
From: Bryce Schober @ 2014-01-03 17:53 UTC (permalink / raw)
  To: crossgcc

I just discovered that ct-ng saveconfig is also dropping
"CT_LOG_FILE_COMPRESS=n". Does someone have pointers to where I could
look for patching this problem? I'm willing to work on it...

<><  <><  <><
Bryce Schober


On Mon, Dec 16, 2013 at 2:37 PM, Bryce Schober <bryce.schober@gmail.com> wrote:
> When I saveconfig after loading a modified sample containing the
> following configuration, it drops the configurations for
> CT_LOCAL_TARBALLS_DIR, CT_PREFIX_DIR, and CT_LIBC_GLIBC_FORCE_UNWIND.
> This makes any round-tripping through menuconfig and saveconfig not
> work properly.
>
> This is on latest tip - I haven't yet tried going back in time to a
> released version.
>
> Is this a bug, or am I missing something?
> <><  <><  <><
> Bryce Schober
>
>
> CT_EXPERIMENTAL=y
> CT_LOCAL_TARBALLS_DIR="${CT_TOP_DIR}/../dl_cache"
> CT_SAVE_TARBALLS=y
> CT_PREFIX_DIR="${CT_TOP_DIR}/../${CT_TARGET}"
> CT_USE_MIRROR=y
> CT_MIRROR_BASE_URL="http://ymorin.is-a-geek.org/mirrors/"
> CT_PARALLEL_JOBS=16
> CT_LOG_DEBUG=y
> CT_ARCH_ARCH="i686"
> CT_ARCH_x86=y
> CT_STATIC_TOOLCHAIN=y
> CT_TARGET_VENDOR="dynon"
> CT_TARGET_ALIAS="i686-linux"
> CT_KERNEL_linux=y
> CT_KERNEL_V_3_0=y
> CT_BINUTILS_V_2_21_53=y
> CT_BINUTILS_LINKER_LD_GOLD=y
> CT_BINUTILS_GOLD_THREADS=y
> CT_BINUTILS_LD_WRAPPER=y
> CT_BINUTILS_FOR_TARGET=y
> CT_CC_V_4_3_6=y
> CT_CC_GCC_USE_GRAPHITE=y
> CT_CC_GCC_USE_LTO=y
> CT_CC_LANG_CXX=y
> CT_CC_GCC_LIBMUDFLAP=y
> CT_CC_GCC_LIBGOMP=y
> CT_CC_GCC_LIBSSP=y
> CT_LIBC_glibc=y
> CT_LIBC_GLIBC_V_2_9=y
> CT_LIBC_GLIBC_FORCE_UNWIND=y
> CT_DEBUG_gdb=y
> CT_GDB_V_7_4_1=y
> CT_GMP_V_4_3_2=y
> CT_MPFR_V_2_4_2=y

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: saveconfig is dropping configurations
  2013-12-16 22:37 saveconfig is dropping configurations Bryce Schober
  2014-01-03 17:53 ` Bryce Schober
@ 2014-05-12 20:10 ` Yann E. MORIN
  2014-05-13 16:43   ` Bryce Schober
  1 sibling, 1 reply; 4+ messages in thread
From: Yann E. MORIN @ 2014-05-12 20:10 UTC (permalink / raw)
  To: Bryce Schober; +Cc: crossgcc

Bryce, All,

Sorry for the delay... :-(

On 2013-12-16 14:37 -0800, Bryce Schober spake thusly:
> When I saveconfig after loading a modified sample containing the
> following configuration, it drops the configurations for
> CT_LOCAL_TARBALLS_DIR, CT_PREFIX_DIR, and CT_LIBC_GLIBC_FORCE_UNWIND.
> This makes any round-tripping through menuconfig and saveconfig not
> work properly.
> 
> This is on latest tip - I haven't yet tried going back in time to a
> released version.
> 
> Is this a bug, or am I missing something?

This is on purpose. The code responsible for that is in:
    scripts/saveSample.sh.in

We drop those configurations because we want the samples to be
re-useable as-is by other users. Samples are meant to be bundled in
crosstool-NG, so we do want any user to be able to use them.

For example, if you were to store the prefix' or tarballs' directory in
the sample, then what would ensure that those locations are valid on any
other user's machine?

The only way it is is to use the defaults for those variables, which
default to a sub-dir in ${HOME}, which is the only location we can
guarantee is writeable by the user.

On the other hand, if you want to save a minimal defconfig, you can use:
    ct-ng savedefconfig

which creates a file named 'defconfig' in the current directory.

Note the difference between a sample and a defconfig, however:

  - sampels will save both the crosstool-Ng configuration *and* any
    associated file (eg. the uClibc .config file).

  - a defconfig will only save a crosstool-Ng minimal defconfig, and no
    associted file

As for CT_LIBC_GLIBC_FORCE_UNWIND, it gets dropped because it defaults
to being set. Did you miss it when recalling a sample?

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: saveconfig is dropping configurations
  2014-05-12 20:10 ` Yann E. MORIN
@ 2014-05-13 16:43   ` Bryce Schober
  0 siblings, 0 replies; 4+ messages in thread
From: Bryce Schober @ 2014-05-13 16:43 UTC (permalink / raw)
  To: Yann E. MORIN; +Cc: crossgcc

On Mon, May 12, 2014 at 1:10 PM, Yann E. MORIN <yann.morin.1998@free.fr> wrote:
> As for CT_LIBC_GLIBC_FORCE_UNWIND, it gets dropped because it defaults
> to being set. Did you miss it when recalling a sample?

It's been a while... but I think that my configuration was needing a
non-default value and it was getting dropped on reload.

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-05-13 16:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-16 22:37 saveconfig is dropping configurations Bryce Schober
2014-01-03 17:53 ` Bryce Schober
2014-05-12 20:10 ` Yann E. MORIN
2014-05-13 16:43   ` Bryce Schober

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).