Forum Rule: Always post complete source code & details to reproduce any issue!
Page 3 of 3 FirstFirst 1 2 3
Results 51 to 62 of 62

Thread: Teensy 3.0 Beta12 Software

  1. #51
    Senior Member+ MichaelMeissner's Avatar
    Join Date
    Nov 2012
    Location
    Ayer Massachussetts
    Posts
    3,248

    Cool

    Quote Originally Posted by hpyle View Post
    For what it's worth, you can *add* compiler options, by editing hardware/teensy/boards.txt & restarting Arduino, to add (e.g.)
    teensy3.build.cppoption2=-O3
    teensy3.build.cppoption3=-ffunctions-section
    etc, (just increment the number for each option you add). For example I've found it useful to dump an assembler output instead of actually compiling, by
    teensy3.build.cppoption<N>=-S
    If the Arduino IDE leaves the objects around, you can use the -save-temps option that leaves a .ii and .s file in the directory the build was done, but it still does the compile (.ii is the output after the pre-processing has been done, .s is the assembler input file). Using teensy 3.0 build 1.12 you can use -save-temps=obj (-save-temps has a problem if you have the same name being compiled in different subdirectories, while -save-temps=obj leaves the .ii/.s files in the output directory, and not the current directory, but honestly most of the Arduino/teensy stuff I've seen does not do things like use -j<n> with several builds each with different -o <dir>/<file>.o at the same time). Unfortunately, if you are using the AVR compiler, you probably can't use -save-temps=obj, at least until the Arduino folk decide to upgrade compilers.
    Last edited by MichaelMeissner; 02-06-2013 at 11:55 PM.

  2. #52
    Senior Member jimmayhugh's Avatar
    Join Date
    Nov 2012
    Posts
    168
    I get these, I guess they're warnings, when I compile my program for the Teensy3.0

    Code:
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/ld: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/ld)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/arm-none-eabi-objcopy: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/arm-none-eabi-objcopy)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/arm-none-eabi-objcopy: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/arm-none-eabi-objcopy)
    When I compile the same code for the Mega2560, it compiles with no warnings. Also these warnings popped up when I moved to arduino1.0.3/teensy-beta-12, I did not have these warnings with arduino1.0.1/teensy-beta-11. Any ideas?
    Last edited by jimmayhugh; 02-10-2013 at 01:44 AM.

  3. #53
    Senior Member+ MichaelMeissner's Avatar
    Join Date
    Nov 2012
    Location
    Ayer Massachussetts
    Posts
    3,248
    The error message is that it is looking for libz, which is a library for doing compression and decompression, which is not supplied by the arm toolchain, so it decided to pick up /lib/libz.so.1 from your host OS. Unless you are running on a native arm system, it is extremely unlikely that using the host library will work. You need to find and remove any -lz from the link line.

  4. #54
    Senior Member jimmayhugh's Avatar
    Join Date
    Nov 2012
    Posts
    168
    I'm using the arduino IDE, what link line are you referring to?

  5. #55
    Senior Member+ MichaelMeissner's Avatar
    Join Date
    Nov 2012
    Location
    Ayer Massachussetts
    Posts
    3,248
    I was referring to the error messages in your last post, where you were using the Arm toolchain and were getting errors on: /lib/libz.so.1: no version information available. I was telling you what the error meant (that the linker was trying to read host libraries for something intended for an Arm microprocessor).

  6. #56
    Senior Member jimmayhugh's Avatar
    Join Date
    Nov 2012
    Posts
    168
    I'm referring to your last sentence:

    "You need to find and remove any -lz from the link line"

    Again, I don't know what "link line" you are referring to. I use the Arduino IDE to compile and upload, not the command line.

  7. #57
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,551
    Which Linux distro are you using, and which version?

  8. #58
    Senior Member jimmayhugh's Avatar
    Join Date
    Nov 2012
    Posts
    168
    Centos 6.3 both 32 and 64 bit.

  9. #59
    Senior Member jimmayhugh's Avatar
    Join Date
    Nov 2012
    Posts
    168
    OK, I went back and compiled my program with the arduino-1.0.3/beta-10 IDE combination, and it compiled with no errors or warnings, with a sketch size of 18,452 and estimated memory use of 7,460.

    With arduino-1.03/beta11 the warnings show up:
    /home/teensypi/arduino-1.0.3-beta11/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3-beta11/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as)
    /home/teensypi/arduino-1.0.3-beta11/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/ld: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3-beta11/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/ld)
    /home/teensypi/arduino-1.0.3-beta11/hardware/tools/arm-none-eabi/bin/arm-none-eabi-objcopy: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3-beta11/hardware/tools/arm-none-eabi/bin/arm-none-eabi-objcopy)
    /home/teensypi/arduino-1.0.3-beta11/hardware/tools/arm-none-eabi/bin/arm-none-eabi-objcopy: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3-beta11/hardware/tools/arm-none-eabi/bin/arm-none-eabi-objcopy)
    Opening Teensy Loader...
    Binary sketch size: 18,460 bytes (of a 131,072 byte maximum)
    Estimated memory use: 7,648 bytes (of a 16,384 byte maximum)
    The same program under arduino-1.0.3/beta-12 IDE:
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/as)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/ld: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/ld)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/arm-none-eabi-objcopy: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/arm-none-eabi-objcopy)
    /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/arm-none-eabi-objcopy: /lib/libz.so.1: no version information available (required by /home/teensypi/arduino-1.0.3/hardware/tools/arm-none-eabi/bin/arm-none-eabi-objcopy)
    Opening Teensy Loader...
    Binary sketch size: 18,452 bytes (of a 131,072 byte maximum)
    Estimated memory use: 7,460 bytes (of a 16,384 byte maximum)
    .

    Both sets of warnings have been considerably shortened to meet character length requirements for the post.

    All versions "appear" to be running properly.

    Any other thoughts / suggestions?

  10. #60
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,551
    Could you try the same thing on a different linux distro, like a recent Ubuntu?

    My best guess is there's some minor and harmless issue with Centos's libz.so not being quite as expected. Maybe?

  11. #61
    Senior Member jimmayhugh's Avatar
    Join Date
    Nov 2012
    Posts
    168
    Centos 6.3 is the only distro I have running at this time, I'll try setting up an old laptop later this week.

  12. #62
    Senior Member jimmayhugh's Avatar
    Join Date
    Nov 2012
    Posts
    168
    Just an FYI, I updated to CentOS 6.4, which included an updated zlib, and the errors (warnings?) no longer appear. It also works fine with 1.0.4/Teensyduino1.13

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •