[U-Boot] Cannot build u-boot for arria5

Hello all,

I am facing some problem that I cannot build u-boot for arria5.
The platform is x86_64 Ubuntu 14.04 LTS.

At first I executed as below.

$ cd intelFPGA/18.0/embedded
$ ./embedded_command_shell.sh

$ ... #download and install gcclinaro-7.3.1
$ export CROSS_COMPILE=/path/to/linaro_installation_directory/bin/arm-linux-gnueabihf-

$ mkdir -p ~/u-boot
$ cd ~/u-boot
$ git clone https://github.com/altera-opensource/u-boot-socfpga.git
$ cd u-boot-socfpga

$ git checkout rel_socfpga_v2017.09_18.06.02_pr  #This tag is the latest of rel*
$ make socfpga_arria5_config
$ make 

On the make, I got the next messages.

...

LD    u-boot
drives/ddr/altera/built-in.o: In function `sdram_calculate_size':
~/u-boot/u-boot-sockfpga/drivers/ddr/altera/sdram.c:482: undefined reference to `socfpga_get_sdram_config'
path/to/linaro_installation_directory/bin/arm-linux-gnueabihf-ld.bfd: BFD (Linaro_Binutils-2018.05) 2.28.2.20170706 assertion fail /home/tcwg-buildslave/workspace/tcwg-make-release/builder-arch/adm64/label/tcwg-x86_64-build/target/arm-linux-gnueabihf/snapshots/binutils-gdb.git~users~linaro~binutils-2_28-branch/bfd/elf32-arm.c:9514
make: *** [u-boot] Error 1

However, on a commit tagged with v2018.07-rc3, we successfully built u-boot.

Could you tell me why this fails?
Or is it enough to use u-boot from a commit “v2018.07-rc3”?

Thank you.