-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Usage of relative paths when building toolchain #1
Comments
This would be my preferred solution too, I just couldn't figure out how to do it and gave up! If you know how to tell the build system to build with relative paths, I would be very thankful too ;-P |
I've played a bit around with the configuration but have not manage to obtain satisfactory results. In theory it should suffice to do the following replacement: - --with-ld=${root}/${INSTALL}/avr-binutils/bin/avr-ld \
- --with-as=${root}/${INSTALL}/avr-binutils/bin/avr-as \
+ --with-ld=../../../avr-gcc/avr-binutils/bin/avr-ld \
+ --with-as=../../../avr-gcc/avr-binutils/bin/avr-as \ but alas
|
Yep, that's what I encountered too 馃槩. |
Hm, maybe the path needs to be relative to whatever binary is calling that (gcc?)? So maybe just |
I agree with you. Running it only with |
Since #3 we now build So this issue should now be fixed (for everybody who installs it to $ avr-gcc -v
Using built-in specs.
Reading specs from /opt/avr-gcc/avr-gcc/lib/gcc/avr/10.2.0/device-specs/specs-avr2
COLLECT_GCC=avr-gcc
COLLECT_LTO_WRAPPER=/opt/avr-gcc/avr-gcc/libexec/gcc/avr/10.2.0/lto-wrapper
Target: avr
Configured with: ../configure --target=avr --prefix=/opt/avr-gcc/avr-gcc/ --with-ld=/opt/avr-gcc/avr-binutils/bin/avr-ld --with-as=/opt/avr-gcc/avr-binutils/bin/avr-as --enable-languages=c,c++ --with-dwarf2 --disable-nls --disable-libssp --disable-shared --disable-threads --disable-libgomp --disable-bootstrap
Thread model: single
Supported LTO compression algorithms: zlib
gcc version 10.2.0 (GCC) |
I mean is there any reason for not installing in |
Someone might want to install more than one version simultaneously. But this should not happen often. |
Hi 馃憢
Thank you for creating this docker container to build an up-to-date AVR toolchain. I've got one question though: Running your toolchain in combination with a cmake based project I run into the issue that instead of
avr-as
the hostas
is invoked. Investigating I've found hard-coded paths in your compilers configuration:By creating a symbolic link at
/work/avr-gcc/avr-binutils/bin/avr-as
to the actual location ofavr-as
I can migitate this problem. However, this kind of fix is not really to my taste. Can you remove the hard-coded paths and rebuild the toolchain with relative paths instead? (PS: I've already exhausted alternative options such as exporting the location toPATH
and providing symlinks within/usr/local/bin
).The text was updated successfully, but these errors were encountered: